* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #0f111a;
  color: #ffffff;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #0f111a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  height: 80px;
  width: auto;
  filter: invert(1) brightness(2) drop-shadow(0 0 10px #00d2d3);
  animation: pulseGlow 1.5s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    filter: invert(1) brightness(2) drop-shadow(0 0 5px rgba(0, 210, 211, 0.4));
  }
  100% {
    transform: scale(1.05);
    filter: invert(1) brightness(2) drop-shadow(0 0 20px rgba(0, 210, 211, 1));
  }
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #574b90;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(15, 17, 26, 0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 40px;
  width: auto;
  filter: invert(1) brightness(2); 
  transition: transform 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.1);
  filter: invert(1) brightness(2) drop-shadow(0 0 8px #00d2d3); 
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #6c5ce7;
}

.section {
  padding: 100px 50px;
  text-align: center;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-left: 50px;
  background-color: #0d0e15;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  color: #a0a0a0;
  margin-bottom: 25px;
}

.btn {
  padding: 12px 24px;
  background-color: #574b90;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #786fa6;
}

.subtitle {
  color: #888;
  margin-bottom: 30px;
}

.skills-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.skill-tree-3d-container {
  width: 340px;
  height: 340px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-wheel {
  width: 100%;
  height: 100%;
  position: absolute;
  border: 2px dashed rgba(0, 210, 211, 0.3);
  border-radius: 50%;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-wheel .skill-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: border 0.3s, box-shadow 0.3s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.75rem;
  user-select: none;
}

.skill-node i {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.skill-node.unlocked {
  background-color: #1e272e;
  border: 2px solid #8b79e7;
  color: #8b79e7;
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.4);
}

.skill-node.locked {
  background-color: #121212;
  border: 2px solid #333;
  color: #555;
  opacity: 0.6;
}

.skill-node:hover {
  box-shadow: 0 0 25px rgba(139, 121, 231, 1);
}

.skill-node.active-node {
  border-width: 3px;
  box-shadow: 0 0 30px rgba(139, 121, 231, 1);
}

.skill-desc-box {
  margin-top: 30px;
  padding: 15px 25px;
  background: #181b26;
  border: 1px solid #2f3640;
  border-radius: 8px;
  display: inline-block;
  max-width: 500px;
  color: #dcdde1;
}

.carousel {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  list-style: none;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  padding: 20px;
}

.carousel-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 30px auto 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2f3640;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 17, 26, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 15px;
  color: #8473d6;
  font-weight: 600;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 210, 211, 0.5);
}

#lightbox-caption {
  margin-top: 15px;
  color: #ccc;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px; 
  text-align: center;
}

.project-card p {
  margin-bottom: 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.achievement-list {
  list-style: none;
  line-height: 2;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-btn {
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.whatsapp { background-color: #25D366; }
.instagram { background-color: #E1306C; }
.gmail { background-color: #EA4335; }

.social-btn:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

.site-footer {
  text-align: center;
  padding: 30px 20px;
  background-color: #0f111a; 
  border-top: 1px solid rgba(255, 255, 255, 0.05); 
  color: #718093;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .navbar {
    padding: 10px 15px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.85rem;
  }
}
