:root {
  --primary-color: #6e45e2;
  --secondary-color: #88d3ce;
  --dark-color: #1a1a2e;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f0c29;
  color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-spinner {
  position: relative;
  width: 100px;
  height: 100px;
}

.spinner-sector {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid transparent;
  mix-blend-mode: overlay;
}

.spinner-sector-1 { border-top-color: #00e6ff; animation: rotate 1.5s ease infinite; }
.spinner-sector-2 { border-left-color: #a600ff; animation: rotate 2s ease-in infinite; }
.spinner-sector-3 { border-right-color: #ff00e1; animation: rotate 2.5s ease-out infinite; }

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 20px;
}

.js-section {
  padding: 80px 0;
  position: relative;
  z-index: 5;
}

.about-image {
  width: 200px; 
  height: 200px;
  border-radius: 50%; 
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 2rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  border: 3px solid transparent;
}

.about-image:hover {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 0 25px rgba(0, 230, 255, 0.6), 0 0 50px rgba(110, 69, 226, 0.4);
  border-color: #00e6ff;
}

.typing-effect {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 10px #00e6ff;
}

.profession {
  font-size: 1.5rem;
  margin-bottom: 30px;
  min-height: 2rem;
}

h2 {
  font-size: 2.5rem;
  color: #fff;
  text-shadow: 0 0 5px #00e6ff, 0 0 10px #00e6ff;
  margin-bottom: 40px;
  text-align: center;
}

h3 { margin-bottom: 20px; font-size: 1.5rem; color: white; text-align: center; }
h4 { margin-bottom: 10px; font-size: 1.2rem; color: white; text-align: center; }
p { margin-bottom: 20px; line-height: 1.8; font-size: 1.1rem; color: white; text-align: center; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
  position: relative;
}

.social-links a:hover {
  color: #00e6ff;
  transform: translateY(-5px);
}

.social-links a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.3s;
  pointer-events: none;
}

.social-links a[data-tooltip]:hover::after {
  opacity: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  border: 2px solid #a600ff;
  border-radius: 40px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
  background-color: rgba(26, 26, 46, 0.8);
  z-index: 10;
}

.action-button i { margin-right: 8px; }

.action-button:hover {
  background: rgba(255, 0, 255, 0.486);
  text-shadow: 0 0 5px #ff00f7;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(166, 0, 255, 0.4);
}

.skills-container { margin-top: 40px; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 25px;
  justify-items: center;
}
.skill-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 20px;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.5s ease, box-shadow 0.3s ease;
}
.skill-box:hover {
  transform: translateY(-15px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 230, 255, 0.3);
}
.skill-box img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 0 5px rgba(0, 230, 255, 0.5));
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 230, 255, 0.2);
}
.project-card img { width: 100%; height: 200px; object-fit: contain; background: rgba(0,0,0,0.2); }
.project-card h3 { padding: 15px 20px 0; }
.project-card p { padding: 10px 20px 15px; flex-grow: 1; }

.project-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: var(--transition);
}
.project-link:hover { background: var(--secondary-color); }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: #fff; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: white;
}
.submit-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.submit-button:hover { background: var(--secondary-color); }

.footer {
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 5;
}
.spotify-player {
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #282828;
}
.spotify-player iframe { width: 100%; border: none; }

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(110, 69, 226, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 10000;
  cursor: pointer;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-color); transform: translateY(-5px); }

.language-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001; 
}

.selected-language {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  transition: background 0.3s ease;
}
.selected-language:hover { background: rgba(0, 0, 0, 0.9); }
.selected-language img { width: 24px; border-radius: 3px; }

.language-options {
  list-style: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  min-width: 160px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.language-options.active {
  display: block !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.language-options li {
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.language-options li:hover { background: var(--primary-color); }
.language-options img { width: 20px; border-radius: 2px; }

@media (max-width: 768px) {
  .typing-effect { font-size: 2rem; }
  .actions { flex-direction: column; }
  .action-button { width: 100%; justify-content: center; }
}
