:root {
  --primary-light: #6BABE5;
  --primary-soft: #9AC7F0;
  --primary-deep: #2C5F8A;
  --bg-light: #F5F9FF;
  --text-dark: #1E2B3A;
  --glass-effect: rgba(255, 255, 255, 0.65);
  --neon-glow: 0 0 20px rgba(107, 171, 229, 0.35);
  --card-bg: rgba(255, 255, 255, 0.8);
}

* {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  cursor: none;
}

/* ========== CURSOR ========== */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
  transform: translate(-50%, -50%);
}
.cursor.hovered {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--primary-light);
  mix-blend-mode: normal;
}
.cursor-trail {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(107, 171, 229, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease, top 0.3s ease;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  z-index: 99997;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-terminal {
  background: var(--text-dark);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(44, 95, 138, 0.2);
  font-family: 'JetBrains Mono', monospace;
}
.preloader-line {
  color: #fff;
  font-size: 0.85rem;
  margin: 0.3rem 0;
  opacity: 0;
  transform: translateY(10px);
}
.preloader-line.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}
.preloader-line .cmd { color: var(--primary-light); }
.preloader-line .success { color: #4ade80; }
.preloader-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
}
.preloader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-soft));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--primary-light);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ========== PARTICLES ========== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ========== GLASS CARD ========== */
.glass-card {
  background: var(--glass-effect);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(107,171,229,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.glass-card:hover::before {
  opacity: 1;
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--neon-glow), 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: rgba(107, 171, 229, 0.5);
}

/* ========== NAVBAR ========== */
.navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 171, 229, 0.15);
  padding: 1rem 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.6rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.navbar-brand {
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.5px;
  font-size: 1.3rem;
}
.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  margin: 0 0.6rem;
  position: relative;
  padding: 0.5rem 0 !important;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-deep));
  transition: width 0.3s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}
.nav-link:hover {
  color: var(--primary-deep);
}

/* ========== HERO ========== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  filter: blur(60px);
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}
.shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -100px;
  opacity: 0.25;
  animation-delay: 0s;
}
.shape-2 {
  width: 250px;
  height: 250px;
  bottom: 80px;
  left: -80px;
  opacity: 0.18;
  animation-delay: 2s;
}
.shape-3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 15%;
  opacity: 0.12;
  animation-delay: 4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-deep);
  letter-spacing: -1.5px;
}
.hero-subtitle {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary-light);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.quote-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-deep);
  border-left: 3px solid var(--primary-light);
  padding-left: 1.2rem;
  background: rgba(107, 171, 229, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.2rem;
  position: relative;
  overflow: hidden;
}
.quote-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-soft));
}

/* ========== PROFILE FRAME ========== */
.profile-frame {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.8);
  box-shadow: var(--neon-glow), 0 20px 60px rgba(44, 95, 138, 0.15);
  animation: morphing 12s ease-in-out infinite;
  max-width: 380px;
  aspect-ratio: 1/1;
  position: relative;
  transition: transform 0.3s ease;
}
.profile-frame:hover {
  transform: scale(1.03);
}
@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.profile-frame:hover .profile-img {
  transform: scale(1.08);
}

/* ========== BUTTONS ========== */
.btn-futuristic {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  color: white;
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-futuristic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.btn-futuristic:hover::before {
  left: 100%;
}
.btn-futuristic:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(107, 171, 229, 0.4);
  color: white;
}
.btn-outline-futuristic {
  background: transparent;
  color: var(--primary-deep);
  border: 2px solid rgba(107, 171, 229, 0.4);
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-outline-futuristic:hover {
  background: rgba(107, 171, 229, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(107, 171, 229, 0.2);
  color: var(--primary-deep);
}

/* ========== BADGES ========== */
.game-badge {
  background: rgba(107, 171, 229, 0.08);
  border: 1px solid rgba(107, 171, 229, 0.25);
  color: var(--primary-deep);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  cursor: default;
}
.game-badge:hover {
  background: rgba(107, 171, 229, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(107, 171, 229, 0.15);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  margin: 0.35rem;
  background: white;
  border-radius: 50px;
  font-weight: 500;
  color: var(--primary-deep);
  border: 1.5px solid rgba(107, 171, 229, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  font-size: 0.9rem;
}
.skill-badge:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  color: white;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(107, 171, 229, 0.3);
  border-color: transparent;
}

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-deep));
  border-radius: 4px;
  margin: 0 auto;
  position: relative;
}
.section-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--primary-light);
  border-radius: 50%;
  border: 3px solid var(--bg-light);
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-soft), transparent);
  top: 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 55%;
  text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
  text-align: left;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid var(--primary-light);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(107, 171, 229, 0.15);
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.3);
  box-shadow: 0 0 0 10px rgba(107, 171, 229, 0.2), var(--neon-glow);
}
.timeline-content {
  width: 42%;
  padding: 0 1.5rem;
}
.timeline-card {
  background: var(--glass-effect);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.timeline-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.timeline-item:nth-child(even) .timeline-card::after {
  transform-origin: right;
}
.timeline-card:hover::after {
  transform: scaleX(1);
}
.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* ===== TIMELINE LIST STYLING ===== */
.timeline-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.timeline-card ul li {
  position: relative;
  padding: 0.25rem 0;
  line-height: 1.8;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Untuk item di kiri (odd) - bullet di kanan */
.timeline-item:nth-child(odd) .timeline-card ul li {
  padding-right: 1.8rem;
  padding-left: 0;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-card ul li::before {
  content: '•';
  position: absolute;
  right: 0;
  top: 0.25rem;
  color: var(--primary-light);
  font-weight: bold;
  font-size: 1rem;
}

/* Untuk item di kanan (even) - bullet di kiri */
.timeline-item:nth-child(even) .timeline-card ul li {
  padding-left: 1.8rem;
  padding-right: 0;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--primary-light);
  font-weight: bold;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    margin-right: 0;
    width: calc(100% - 50px);
    text-align: left;
  }
  
  /* Reset untuk mobile - semua bullet di kiri */
  .timeline-item:nth-child(odd) .timeline-card ul li {
    padding-right: 0;
    padding-left: 1.8rem;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-card ul li::before {
    right: auto;
    left: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-card ul li {
    padding-left: 1.8rem;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .timeline-card ul li::before {
    left: 0;
  }
}

/* ========== PROJECTS ========== */
.project-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(107, 171, 229, 0.15);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(107,171,229,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.project-card:hover::before {
  opacity: 1;
}
.project-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: rgba(107, 171, 229, 0.4);
  box-shadow: 0 25px 50px rgba(44, 95, 138, 0.12);
}
.project-icon {
  font-size: 2.8rem;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
  transition: transform 0.4s ease;
}
.project-card:hover .project-icon {
  transform: scale(1.15) rotate(-5deg);
}

/* ========== SCREENSHOT BOX ========== */
.screenshot-box {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px dashed rgba(255,255,255,0.4);
  margin-top: 1.2rem;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.screenshot-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(107, 171, 229, 0.4);
  border-color: white;
}
.screenshot-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.screenshot-box.has-image img {
  opacity: 0.85;
}
.screenshot-box .content {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.35);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.screenshot-box:hover .content {
  background: rgba(0,0,0,0.6);
  transform: scale(1.05);
}
.screenshot-box.has-image {
  border: 2px solid white;
  padding: 0;
}

/* ========== STATS ========== */
.stat-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(107, 171, 229, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(107, 171, 229, 0.1);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-deep));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-card:hover::before {
  transform: scaleX(1);
}
.stat-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(107, 171, 229, 0.2);
}
.stat-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.stat-label {
  color: var(--text-dark);
  font-weight: 500;
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

/* ========== TESTIMONIAL ========== */
.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  border: 1px solid rgba(107, 171, 229, 0.15);
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -5px;
  left: 25px;
  font-size: 6rem;
  color: var(--primary-light);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ========== CONTACT ========== */
.contact-link {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  background: white;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(107, 171, 229, 0.1);
  position: relative;
  overflow: hidden;
}
.contact-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-deep));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.contact-link:hover::before {
  transform: scaleY(1);
}
.contact-link:hover {
  border-color: rgba(107, 171, 229, 0.3);
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(107, 171, 229, 0.12);
  color: var(--text-dark);
}
.contact-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-soft));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.2rem;
  color: white;
  font-size: 1.4rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}
.contact-link:hover .contact-icon {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(107, 171, 229, 0.3);
}

/* ========== FOOTER ========== */
.footer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(107, 171, 229, 0.2);
  position: relative;
}
.footer-wave {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.footer-wave .shape-fill {
  fill: rgba(255, 255, 255, 0.9);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  border: 2px solid white;
  box-shadow: 0 5px 20px rgba(107, 171, 229, 0.3);
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(107, 171, 229, 0.4);
  color: white;
}

/* ========== IMAGE MODAL ========== */
.modal-image {
  display: none;
  position: fixed;
  z-index: 99996;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal-image.active {
  display: flex;
  opacity: 1;
}
.modal-image-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85%;
  border: 3px solid white;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(107, 171, 229, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-image.active .modal-image-content {
  transform: scale(1);
}
.modal-image-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 12px 30px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.modal-image-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: white;
  font-size: 36px;
  font-weight: 300;
  cursor: pointer;
  z-index: 99999;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}
.modal-image-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
  color: var(--primary-light);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary-deep));
  border-radius: 10px;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .profile-frame { max-width: 260px; }
  .stat-number { font-size: 2.4rem; }
  .section-header { margin-bottom: 2.5rem; }
}

/* ========== AI CHATBOT ========== */
.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9980;
  font-family: 'Inter', sans-serif;
}
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  border: 3px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(107, 171, 229, 0.4);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.5rem;
  position: relative;
}
.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(107, 171, 229, 0.5);
}
.chatbot-toggle.pulse::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.chatbot-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  max-height: 500px;
  background: var(--glass-effect);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(107, 171, 229, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}
.chatbot-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.chatbot-header {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  color: white;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep);
  font-size: 1.1rem;
}
.chatbot-status {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: auto;
  animation: status-blink 2s ease-in-out infinite;
}
@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chatbot-messages {
  padding: 1rem;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.chatbot-message {
  padding: 0.8rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 90%;
  animation: message-pop 0.3s ease;
  word-wrap: break-word;
}
@keyframes message-pop {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.chatbot-message.bot {
  background: rgba(107, 171, 229, 0.12);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot-message.user {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chatbot-input-area {
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(107, 171, 229, 0.15);
  display: flex;
  gap: 0.5rem;
}
.chatbot-input {
  flex: 1;
  border: 1.5px solid rgba(107, 171, 229, 0.25);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  outline: none;
  background: rgba(255,255,255,0.5);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
}
.chatbot-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(107, 171, 229, 0.15);
}
.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-deep));
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.chatbot-send:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(107, 171, 229, 0.4);
}
.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.8rem;
}
.chatbot-quick-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(107, 171, 229, 0.3);
  background: rgba(107, 171, 229, 0.08);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.chatbot-quick-btn:hover {
  background: rgba(107, 171, 229, 0.2);
  transform: translateY(-1px);
  border-color: var(--primary-light);
}
@media (max-width: 768px) {
  .chatbot-window { width: calc(100vw - 40px); right: -10px; }
  .chatbot-container { right: 20px; bottom: 90px; }
}