@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-base: #030306;
  --bg-panel: rgba(10, 11, 20, 0.45);
  --bg-panel-solid: #090a10;
  --navy-deep: #05060f;
  
  --accent-purple: #8b5cf6;
  --accent-purple-rgb: 139, 92, 246;
  --accent-blue: #3b82f6;
  --accent-blue-rgb: 59, 130, 246;
  --accent-cyan: #06b6d4;
  --accent-cyan-rgb: 6, 182, 212;
  
  /* Text colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Glassmorphism */
  --glass-bg: rgba(12, 13, 23, 0.55);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-hover: rgba(139, 92, 246, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-blur: blur(20px);
  
  /* Fonts */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Timing */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   2. GLOBAL RESETS & SCROLLBAR
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Customized Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  border: 2px solid var(--bg-base);
  transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.45);
}

/* Remove outline on focus */
a, button, input, textarea {
  outline: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================
   3. CINEMATIC BACKGROUNDS & VIGNETTE
   ========================================== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.cinematic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
  animation: bgShift 25s ease-in-out infinite alternate;
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 40%, rgba(2, 2, 4, 0.75) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   4. INTRO SYSTEM (PRELOADER)
   ========================================== */
.cinematic-intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #020204;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s;
}

.intro-content {
  text-align: center;
  max-width: 600px;
  padding: 20px;
}

.intro-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  opacity: 0;
  transform: scale(0.9);
  animation: introLogoReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.intro-bar {
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), var(--accent-blue), transparent);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.intro-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmerIntro 1.8s infinite linear;
}

.intro-subtitle {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards 0.8s;
}

.cinematic-intro.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================
   5. FLOATING GLASS NAVBAR
   ========================================== */
.navbar-wrapper {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  z-index: 1000;
  transition: var(--transition-slow);
  will-change: transform, opacity;
}

.navbar-wrapper.nav-hidden {
  transform: translate(-50%, -100px);
  opacity: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 10px 30px var(--glass-shadow);
  transition: var(--transition-smooth);
}

.navbar:hover {
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.05);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--accent-purple) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-btn-lines, 
.menu-btn-lines::before, 
.menu-btn-lines::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  left: 11px;
  transition: var(--transition-smooth);
}

.menu-btn-lines::before { top: -6px; left: 0; }
.menu-btn-lines::after { top: 6px; left: 0; }

.menu-btn.open .menu-btn-lines {
  background: transparent;
}
.menu-btn.open .menu-btn-lines::before {
  transform: rotate(45deg);
  top: 0;
}
.menu-btn.open .menu-btn-lines::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile Overlay Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 5, 10, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 999;
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav .nav-link.active {
  color: var(--text-primary);
  background: none;
}

/* ==========================================
   6. CONTAINER & LAYOUT GRID
   ========================================== */
section {
  position: relative;
  z-index: 3;
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

/* ==========================================
   7. HERO SECTION (FULLSCREEN)
   ========================================== */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.hero-glow-layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero-headline {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff 0%, #e2e8f0 70%, rgba(139, 92, 246, 0.6) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  opacity: 1;
}
.hero-title {
  background: linear-gradient(
    to right,
    #ffffff -30%,
    #c4b5fd 40%,
    #8b5cf6 75%,
    #60a5fa 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}

.hero-title .cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--accent-purple);
  margin-left: 5px;
  animation: blink 0.8s infinite;
  -webkit-text-fill-color: var(--accent-purple);
}

.hero-subtitle-container {
  height: 2.2rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
}

.hero-desc {
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

/* Premium Buttons */
.btn {
  padding: 0.9rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border: none;
  color: #fff;
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover::after {
  left: 125%;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease forwards 2.5s;
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

/* ==========================================
   8. ABOUT SECTION (CINEMATIC CARD)
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

.highlight-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.about-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.visual-sphere {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  border: 1px solid rgba(139, 92, 246, 0.1);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 8s ease-in-out infinite alternate;
}

.visual-ring-1 {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(6, 182, 212, 0.15);
  animation: spin 30s linear infinite;
}

.visual-ring-2 {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.08);
  animation: spin 15s linear infinite reverse;
}

.visual-core {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}

/* ==========================================
   9. SKILLS SECTION (POLISHED GRID)
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 15px 30px var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform, box-shadow;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.08);
}

.skill-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--accent-purple);
  transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-wrapper {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.skill-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.skill-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.skill-progress-container {
  margin-top: auto;
}

.skill-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.skill-progress-bar {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-progress-fill {
  height: 100%;
  width: 0; /* Animated dynamically with IntersectionObserver */
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   10. PROJECTS SECTION (PREMIUM CARDS)
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  will-change: transform, box-shadow;
}

/* Gradient Borders on Hover */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.1);
  border-color: transparent;
}

.project-card:hover::after {
  opacity: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.project-card:hover .project-tag {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--text-primary);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
  transition: var(--transition-smooth);
  margin-top: auto;
}

.project-action svg {
  transition: var(--transition-smooth);
}

.project-card:hover .project-action {
  color: var(--accent-cyan);
}

.project-card:hover .project-action svg {
  transform: translateX(5px);
}

/* ==========================================
   11. EXPERIENCE SECTION (JOURNEY TIMELINE)
   ========================================== */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

/* Timeline Vertical Track */
.timeline-track {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0; /* Dynamic height on scroll */
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-cyan));
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  z-index: 2;
  transition: height 0.1s ease-out;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 5rem;
  width: 50%;
  padding-right: 3rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 3rem;
  padding-right: 0;
  margin-left: 50%;
}

/* Timeline Circle Dot */
.timeline-dot {
  position: absolute;
  top: 8px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
  right: auto;
}

/* Active timeline bullet marker */
.timeline-item.active .timeline-dot {
  border-color: var(--accent-cyan);
  background: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple);
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--glass-shadow);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  border-color: var(--glass-border-hover);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.05);
  transform: translateY(-3px);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   12. CONTACT SECTION (CINEMATIC FORM)
   ========================================== */
.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}

.contact-title span {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.2rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.channel-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.15);
  transform: translateX(5px);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-purple);
  transition: var(--transition-smooth);
}

.channel-card:hover .channel-icon {
  color: var(--accent-cyan);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.channel-meta {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.channel-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Glassmorphism Contact Form */
.contact-form-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 40px var(--glass-shadow);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.1);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Float label top effect */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.65rem;
  left: 0.8rem;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: var(--bg-panel-solid);
  padding: 0 0.4rem;
  border-radius: 4px;
}

textarea.form-input {
  resize: none;
  min-height: 120px;
}

.form-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================
   13. FOOTER SIGNATURE
   ========================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(3, 3, 6, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 4;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* ==========================================
   14. KEYFRAME ANIMATIONS
   ========================================== */
@keyframes bgShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes introLogoReveal {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

@keyframes shimmerIntro {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

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

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* Scroll Reveal Classes managed by IntersectionObserver */
.reveal-el {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.reveal-el.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==========================================
   15. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  section {
    padding: 6rem 1.5rem;
  }
  
  .menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-visual {
    order: -1;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 3rem;
    padding-right: 0;
    margin-left: 0 !important;
  }
  
  .timeline-item:nth-child(even) {
    padding-left: 3rem;
  }
  
  .timeline-track, 
  .timeline-progress {
    left: 8px;
    transform: none;
  }
  
  .timeline-dot {
    left: 0px !important;
    right: auto !important;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
}
