/* =============================================================================
   CELESTIAL ZODIAC PERSONAL WEBSITE - CSS STYLES
   Theme: Cosmic Blue & Celestial Elements
   Constellation: Aries - The Leader of the Zodiac
   ============================================================================= */

/* Custom Properties (CSS Variables) */
:root {
  /* Celestial Blue Palette */
  --cosmic-blue: #0A1628;
  --deep-space: #040B1A;
  --constellation-blue: #1E3A5F;
  --star-blue: #4A90E2;
  --aurora-blue: #00D4FF;
  --nebula-purple: #6B46C1;
  --stellar-white: #FFFFFF;
  --stardust: #F0F4F8;
  --moonlight: #E5ECF4;
  --galaxy-gray: #8B95A7;
  --space-gray: #4A5568;
  
  /* Accent Colors */
  --aries-gold: #FFD700;
  --constellation-silver: #C0C5CE;
  --mars-orange: #FF6B35;
  
  /* Cosmic Gradients */
  --nebula-gradient: linear-gradient(135deg, #1E3A5F 0%, #4A90E2 50%, #6B46C1 100%);
  --aurora-gradient: linear-gradient(180deg, #0A1628 0%, #1E3A5F 50%, #4A90E2 100%);
  --starfield-gradient: radial-gradient(ellipse at center, #1E3A5F 0%, #0A1628 100%);
  --cosmos-gradient: linear-gradient(135deg, #040B1A 0%, #1E3A5F 30%, #4A90E2 70%, #00D4FF 100%);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;
  --font-cosmic: 'Lexend', sans-serif;
  
  /* Spacing */
  --section-padding: 120px 0;
  --container-padding: 24px;
  
  /* Animations */
  --transition-cosmic: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-nebula: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-stellar: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  
  /* Cosmic Shadows */
  --shadow-aurora: 0 4px 20px rgba(0, 212, 255, 0.3);
  --shadow-nebula: 0 8px 32px rgba(107, 70, 193, 0.2);
  --shadow-starlight: 0 12px 48px rgba(74, 144, 226, 0.15);
  --shadow-cosmic: 0 20px 60px rgba(10, 22, 40, 0.5);
  --glow-star: 0 0 20px rgba(74, 144, 226, 0.6);
  
  /* Glassmorphism */
  --glass-cosmic: rgba(30, 58, 95, 0.2);
  --glass-border: rgba(74, 144, 226, 0.3);
  --backdrop-blur: blur(12px);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  /* Background Colors - Darker for dark mode */
  --cosmic-blue: #000511;
  --deep-space: #000000;
  --constellation-blue: #0A1628;
  
  /* Keep blue tones */
  --star-blue: #4A90E2;
  --aurora-blue: #00D4FF;
  --nebula-purple: #6B46C1;
  
  /* Text Colors - Lighter for dark mode */
  --stellar-white: #FFFFFF;
  --stardust: #1A1F2E;
  --moonlight: #E5ECF4;
  --galaxy-gray: #B8C5D6;
  --space-gray: #94A3B8;
  
  /* Glass effects for dark mode */
  --glass-cosmic: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Adjusted shadows for dark mode */
  --shadow-aurora: 0 4px 20px rgba(0, 212, 255, 0.4);
  --shadow-nebula: 0 8px 32px rgba(107, 70, 193, 0.3);
  --shadow-starlight: 0 12px 48px rgba(74, 144, 226, 0.2);
  --shadow-cosmic: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* =============================================================================
   COSMIC BACKGROUND & ANIMATIONS
   ============================================================================= */

/* Import Space Font - moved to HTML for better loading */

/* Starfield Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--deep-space);
  background-image: 
    radial-gradient(2px 2px at 20% 30%, var(--star-blue), transparent),
    radial-gradient(2px 2px at 60% 70%, var(--stellar-white), transparent),
    radial-gradient(1px 1px at 50% 50%, var(--constellation-silver), transparent),
    radial-gradient(1px 1px at 80% 10%, var(--star-blue), transparent),
    radial-gradient(2px 2px at 90% 60%, var(--stellar-white), transparent);
  background-size: 200px 200px;
  animation: drift 60s linear infinite;
  z-index: -3;
}

/* Aurora Borealis Effect */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 212, 255, 0.1),
    transparent,
    rgba(107, 70, 193, 0.1),
    transparent
  );
  animation: aurora 15s linear infinite;
  z-index: -2;
  opacity: 0.3;
}

/* Constellation Overlay */
.constellation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
}

.constellation-aries {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation: twinkle 4s ease-in-out infinite;
}

/* Aries Constellation SVG Pattern */
.constellation-aries::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%234A90E2' stroke-width='1' opacity='0.6'%3E%3Ccircle cx='50' cy='100' r='3' fill='%234A90E2'/%3E%3Ccircle cx='120' cy='80' r='4' fill='%234A90E2'/%3E%3Ccircle cx='200' cy='120' r='3' fill='%234A90E2'/%3E%3Ccircle cx='250' cy='150' r='2' fill='%234A90E2'/%3E%3Cpath d='M50,100 L120,80 L200,120 L250,150' stroke-dasharray='5,5'/%3E%3C/g%3E%3C/svg%3E");
  animation: pulse-constellation 3s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-100px, -100px); }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

@keyframes pulse-constellation {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* =============================================================================
   GLOBAL STYLES
   ============================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Responsive font sizing */
  font-size: clamp(14px, 2vw, 16px);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--galaxy-gray);
  background-color: var(--cosmic-blue);
  overflow-x: hidden;
  transition: var(--transition-cosmic);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* Ensure full height on mobile */
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Shooting Stars */
.shooting-star {
  position: fixed;
  width: 2px;
  height: 2px;
  background: var(--stellar-white);
  box-shadow: var(--glow-star);
  animation: shoot 3s linear infinite;
  top: var(--star-top, 0);
  left: var(--star-left, 0);
  opacity: 0;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--stellar-white), transparent);
  transform: translateX(-100%);
}

@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translateX(300px) translateY(300px) rotate(45deg);
    opacity: 0;
  }
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cosmic);
  font-weight: 700;
  line-height: 1.2;
  color: var(--stellar-white);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  color: var(--stellar-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title::before {
  content: '✦';
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--star-blue);
  animation: twinkle 2s ease-in-out infinite;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--nebula-gradient);
  border-radius: 2px;
  box-shadow: var(--glow-star);
}

/* =============================================================================
   NAVIGATION
   ============================================================================= */

.celestial-nav {
  background: var(--glass-cosmic);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: var(--transition-nebula);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.celestial-nav.scrolled {
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: saturate(200%) blur(20px);
  box-shadow: var(--shadow-cosmic);
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

/* Navigation container with proper flex layout */
.celestial-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Navigation controls group */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.navbar-brand {
  font-family: var(--font-cosmic);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--stellar-white) !important;
  letter-spacing: 0.1em;
  position: relative;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(74, 144, 226, 0.5);
  display: flex;
  align-items: center;
  transition: var(--transition-cosmic);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
  transition: var(--transition-cosmic);
}

.navbar-brand:hover img {
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
  transform: rotate(360deg);
}

.navbar-nav .nav-link {
  color: var(--moonlight) !important;
  font-weight: 500;
  margin: 0 1rem;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  transition: var(--transition-cosmic);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--nebula-gradient);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--stellar-white) !important;
  text-shadow: 0 0 10px rgba(74, 144, 226, 0.8);
}

.navbar-nav .nav-link:hover::before {
  opacity: 1;
}

.navbar-nav .nav-link.active {
  color: var(--aurora-blue) !important;
  background: rgba(74, 144, 226, 0.1);
  box-shadow: inset 0 0 20px rgba(74, 144, 226, 0.2);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

/* Zodiac Wheel Background */
.zodiac-wheel {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.05;
  animation: rotate 120s linear infinite;
}

.zodiac-wheel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='200' cy='200' r='180' fill='none' stroke='%234A90E2' stroke-width='2'/%3E%3Ccircle cx='200' cy='200' r='160' fill='none' stroke='%234A90E2' stroke-width='1'/%3E%3Cg transform='translate(200,200)'%3E%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(0)'>♈</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(30)'>♉</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(60)'>♊</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(90)'>♋</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(120)'>♌</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(150)'>♍</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(180)'>♎</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(210)'>♏</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(240)'>♐</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(270)'>♑</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(300)'>♒</text>%3Ctext x='0' y='-140' text-anchor='middle' fill='%234A90E2' font-size='20' transform='rotate(330)'>♓</text>%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .greeting {
  display: block;
  font-family: var(--font-cosmic);
  font-size: 1rem;
  font-weight: 400;
  color: var(--aurora-blue);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero-title .name {
  display: block;
  font-family: var(--font-cosmic);
  font-size: 4rem;
  font-weight: 900;
  color: var(--stellar-white);
  text-shadow: 
    0 0 20px rgba(74, 144, 226, 0.5),
    0 0 40px rgba(74, 144, 226, 0.3),
    0 0 60px rgba(74, 144, 226, 0.1);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--stellar-white), var(--aurora-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--star-blue);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--moonlight);
  margin-bottom: 3rem;
  font-family: var(--font-secondary);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.hero-tagline i {
  color: var(--aries-gold);
  margin: 0 0.75rem;
  font-size: 0.875rem;
  animation: twinkle 2s ease-in-out infinite;
}

/* Cosmic Hero Image */
.hero-image {
  text-align: center;
  position: relative;
}

.cosmic-frame {
  position: relative;
  display: inline-block;
  padding: 20px;
}

.cosmic-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--star-blue),
    var(--aurora-blue),
    var(--nebula-purple),
    transparent
  );
  animation: rotate 10s linear infinite;
  opacity: 0.3;
}

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(74, 144, 226, 0.3);
  box-shadow: 
    0 0 30px rgba(74, 144, 226, 0.4),
    0 0 60px rgba(0, 212, 255, 0.2),
    inset 0 0 30px rgba(107, 70, 193, 0.1);
  transition: var(--transition-stellar);
  position: relative;
  z-index: 1;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 40px rgba(74, 144, 226, 0.6),
    0 0 80px rgba(0, 212, 255, 0.3),
    inset 0 0 40px rgba(107, 70, 193, 0.2);
}

/* Orbiting Elements */
.orbit-container {
  position: absolute;
  inset: -50px;
  animation: rotate 30s linear infinite reverse;
}

.orbit-element {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--star-blue);
  box-shadow: 0 0 10px var(--star-blue);
}

.orbit-element:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-element:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.orbit-element:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-element:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-cosmic {
  background: var(--nebula-gradient);
  border: none;
  color: var(--stellar-white);
  font-family: var(--font-cosmic);
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 30px;
  transition: var(--transition-nebula);
  box-shadow: 
    0 4px 20px rgba(74, 144, 226, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-cosmic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.btn-cosmic:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 30px rgba(74, 144, 226, 0.4),
    0 2px 10px rgba(0, 212, 255, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
  color: var(--stellar-white);
}

.btn-cosmic:hover::before {
  transform: scale(1);
}

.btn-outline-cosmic {
  border: 2px solid var(--star-blue);
  color: var(--stellar-white);
  background: transparent;
  font-family: var(--font-cosmic);
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 30px;
  transition: var(--transition-cosmic);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-outline-cosmic::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: var(--nebula-gradient);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-outline-cosmic:hover {
  color: var(--stellar-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.btn-outline-cosmic:hover::before {
  opacity: 1;
}

/* =============================================================================
   SECTIONS
   ============================================================================= */

.section-padding {
  padding: var(--section-padding);
  position: relative;
}

.section-padding::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--star-blue), transparent);
  opacity: 0.3;
}

/* =============================================================================
   ABOUT SECTION
   ============================================================================= */

.about-section {
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--nebula-purple) 0%, transparent 70%);
  opacity: 0.1;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.1; }
  50% { transform: scale(1.2); opacity: 0.2; }
}

.about-content {
  padding-right: 3rem;
  position: relative;
  z-index: 1;
}

.about-subtitle {
  color: var(--aurora-blue);
  font-family: var(--font-cosmic);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--moonlight);
  margin-bottom: 2.5rem;
  font-family: var(--font-secondary);
}

/* Cosmic Stats */
.cosmic-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-cosmic);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--star-blue) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-starlight);
  border-color: var(--star-blue);
}

.stat-card:hover::before {
  opacity: 0.1;
}

.stat-number {
  font-family: var(--font-cosmic);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--aurora-blue);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--moonlight);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =============================================================================
   TIMELINE WITH CONSTELLATION PATTERN
   ============================================================================= */

.cosmic-timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-constellation {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--star-blue) 20%,
    var(--star-blue) 80%,
    transparent
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--constellation-blue);
  border: 3px solid var(--star-blue);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  z-index: 1;
}

.timeline-node::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-blue) 0%, transparent 70%);
  opacity: 0;
  animation: pulse-star 2s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.timeline-content {
  flex: 1;
  padding: 1.5rem 2rem;
  margin: 0 2rem;
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  transition: var(--transition-cosmic);
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-nebula);
  border-color: var(--star-blue);
}

.timeline-content h4 {
  color: var(--aurora-blue);
  font-family: var(--font-cosmic);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.timeline-content h5 {
  color: var(--star-blue);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--moonlight);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =============================================================================
   SKILLS CONSTELLATION
   ============================================================================= */

.skills-universe {
  position: relative;
  padding: 3rem 0;
}

.skill-constellation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-planet {
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition-nebula);
  position: relative;
  overflow: hidden;
}

.skill-planet::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--star-blue),
    transparent,
    var(--nebula-purple),
    transparent
  );
  animation: rotate 20s linear infinite;
  opacity: 0.05;
}

.skill-planet:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-starlight);
  border-color: var(--star-blue);
}

.skill-planet h3 {
  color: var(--aurora-blue);
  font-family: var(--font-cosmic);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-planet i {
  font-size: 1.5rem;
  color: var(--star-blue);
}

.skill-orbit {
  margin-bottom: 1.5rem;
}

.skill-name {
  color: var(--moonlight);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-level {
  color: var(--star-blue);
  font-family: var(--font-cosmic);
  font-size: 0.8rem;
}

.skill-trajectory {
  height: 8px;
  background: rgba(30, 58, 95, 0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: var(--nebula-gradient);
  border-radius: 4px;
  position: relative;
  animation: expand 2s ease-out forwards;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

@keyframes expand {
  from { width: 0; }
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =============================================================================
   PROJECTS NEBULA
   ============================================================================= */

.projects-section {
  background: rgba(4, 11, 26, 0.7);
  position: relative;
  overflow: hidden;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-nebula {
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-stellar);
  position: relative;
  cursor: pointer;
}

.project-nebula::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(74, 144, 226, 0.2),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-nebula:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-nebula);
  border-color: var(--star-blue);
}

.project-nebula:hover::before {
  opacity: 1;
}

.project-cosmos {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--starfield-gradient);
}

.project-cosmos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-cosmic);
}

.project-nebula:hover .project-cosmos img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.project-cosmos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, var(--cosmic-blue) 100%);
}

.project-details {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.project-title {
  color: var(--stellar-white);
  font-family: var(--font-cosmic);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

.project-description {
  color: var(--moonlight);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-star {
  background: rgba(74, 144, 226, 0.1);
  color: var(--star-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(74, 144, 226, 0.3);
  transition: var(--transition-cosmic);
}

.tech-star:hover {
  background: rgba(74, 144, 226, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.4);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--moonlight);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-cosmic);
  font-size: 0.9rem;
}

.project-link:hover {
  color: var(--aurora-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.project-link i {
  font-size: 1.2rem;
}

/* =============================================================================
   EXPERIENCE CONSTELLATION
   ============================================================================= */

.experience-galaxy {
  position: relative;
  padding: 3rem 0;
}

.experience-orbit {
  position: relative;
  padding-left: 50px;
}

.experience-orbit::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--star-blue) 10%,
    var(--star-blue) 90%,
    transparent
  );
}

.experience-star {
  position: relative;
  padding: 2rem 0;
}

.experience-core {
  position: absolute;
  left: 11px;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--cosmic-blue);
  border: 3px solid var(--star-blue);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  z-index: 1;
}

.experience-star.current .experience-core {
  background: var(--star-blue);
  animation: pulse-star 2s ease-in-out infinite;
}

.experience-content {
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
  margin-left: 2rem;
  transition: var(--transition-cosmic);
}

.experience-content:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-nebula);
  border-color: var(--star-blue);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.experience-header h3 {
  color: var(--aurora-blue);
  font-family: var(--font-cosmic);
  font-size: 1.25rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.experience-company {
  color: var(--star-blue);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.experience-period {
  color: var(--galaxy-gray);
  font-size: 0.875rem;
  font-family: var(--font-cosmic);
  opacity: 0.8;
}

.experience-achievements {
  list-style: none;
  margin-top: 1rem;
}

.experience-achievements li {
  color: var(--moonlight);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.experience-achievements li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--star-blue);
}

/* =============================================================================
   CONTACT COSMOS
   ============================================================================= */

.contact-section {
  background: linear-gradient(135deg, var(--cosmic-blue) 0%, var(--deep-space) 100%);
  position: relative;
  overflow: hidden;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--moonlight);
  font-size: 1.125rem;
  line-height: 1.8;
}

.contact-constellation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-star {
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-stellar);
  position: relative;
  overflow: hidden;
}

.contact-star::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, var(--star-blue) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotate 10s linear infinite;
}

.contact-star:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-starlight);
  border-color: var(--star-blue);
}

.contact-star:hover::before {
  opacity: 0.1;
}

.contact-star i {
  font-size: 2.5rem;
  color: var(--star-blue);
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.contact-star h4 {
  color: var(--stellar-white);
  font-family: var(--font-cosmic);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-star a {
  color: var(--moonlight);
  text-decoration: none;
  transition: var(--transition-cosmic);
  font-size: 0.95rem;
}

.contact-star a:hover {
  color: var(--aurora-blue);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* =============================================================================
   FOOTER COSMOS
   ============================================================================= */

.cosmic-footer {
  background: var(--deep-space);
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.cosmic-footer::before {
  content: '✦ ✦ ✦';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--star-blue);
  font-size: 1.5rem;
  letter-spacing: 1rem;
  opacity: 0.3;
}

.footer-content {
  color: var(--galaxy-gray);
  font-size: 0.9rem;
}

.footer-content i {
  color: var(--mars-orange);
  margin: 0 0.5rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* =============================================================================
   RESPONSIVE DESIGN - COMPREHENSIVE BREAKPOINTS
   ============================================================================= */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title .name {
    font-size: 4.5rem;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
}

/* Large devices (desktops, 992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title .name {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title .name {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  /* Navigation adjustments for tablets */
  .navbar-nav .nav-link {
    font-size: 0.8rem;
    margin: 0 0.5rem;
    padding: 0.4rem 0.8rem !important;
  }
  
  .nav-controls {
    gap: 0.5rem;
  }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .hero-title .name {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title .name {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Theme Toggle Button - Improved Responsive Styling */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--moonlight);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.theme-toggle-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: var(--star-blue);
  transform: scale(1.05);
}

.theme-toggle-btn i {
  font-size: 1.1rem;
}

/* Language Switcher - Fixed Positioning */
.language-switcher {
  position: relative;
  z-index: 10;
}

.language-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--moonlight);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.language-btn:hover {
  background: rgba(74, 144, 226, 0.1);
  border-color: var(--star-blue);
  transform: scale(1.05);
}

/* Mobile Navigation Specific */
@media (max-width: 991px) {
  /* Navbar mobile layout */
  .celestial-nav {
    padding: 0.75rem 0;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-brand img {
    height: 35px !important;
    width: 35px !important;
  }
  
  /* Ensure nav controls stay visible on mobile */
  .nav-controls {
    display: flex !important;
    gap: 0.5rem;
    order: 2;
  }
  
  .navbar-toggler {
    order: 3;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }
  
  .navbar-collapse {
    order: 4;
    width: 100%;
    margin-top: 1rem;
  }
  
  .navbar-nav {
    text-align: center;
    background: rgba(10, 22, 40, 0.95);
    border-radius: 10px;
    padding: 1rem 0;
    margin-top: 0.5rem;
  }
  
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    padding: 0.75rem 1.5rem !important;
  }
  
  /* Mobile theme toggle */
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }
  
  .theme-toggle-btn i {
    font-size: 1rem;
  }
  
  /* Mobile language switcher */
  .language-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .language-dropdown {
    right: 0;
    left: auto;
    min-width: 100px;
  }
}

/* Ultra small mobile devices */
@media (max-width: 375px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .navbar-brand img {
    height: 30px !important;
    width: 30px !important;
    margin-right: 5px;
  }
  
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }
  
  .theme-toggle-btn i {
    font-size: 0.9rem;
  }
  
  .language-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .nav-controls {
    gap: 0.25rem;
  }
}

/* iPad specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .hero-section {
    min-height: 100vh;
    padding-top: 100px;
  }
  
  .hero-title .name {
    font-size: 3.5rem;
  }
  
  .profile-img {
    width: 350px;
    height: 350px;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-title .name {
    font-size: 4rem;
  }
}

/* Fix for Safari mobile viewport */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

/* Improved mobile menu */
@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure proper stacking context */
.celestial-nav .container {
  position: relative;
  z-index: 1;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .theme-toggle-btn,
  .language-btn {
    border-width: 2px;
  }
  
  .navbar-nav .nav-link {
    font-weight: 600;
  }
}

/* Print styles */
@media print {
  .celestial-nav,
  .shooting-star,
  .constellation-overlay,
  .zodiac-wheel,
  .scroll-to-top {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* =============================================================================
   ANIMATIONS & EFFECTS
   ============================================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-cosmic);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-cosmic);
  z-index: 999;
  color: var(--star-blue);
  font-size: 1.2rem;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-aurora);
  background: rgba(74, 144, 226, 0.2);
}

/* Mobile adjustment for scroll to top */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* =============================================================================
   LANGUAGE SWITCHER & CONTROLS
   ============================================================================= */

/* Hidden class for language switching */
.lang-vi,
.lang-en {
  transition: opacity 0.3s ease;
}

html[lang="en"] .lang-vi,
html[lang="vi"] .lang-en {
  display: none;
}

/* Language dropdown styling */
.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--glass-cosmic);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-cosmic);
  box-shadow: var(--shadow-cosmic);
  z-index: 1000;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-cosmic);
  color: var(--moonlight);
  font-size: 0.875rem;
}

.language-option:hover {
  background: rgba(74, 144, 226, 0.1);
  color: var(--stellar-white);
}

.language-option.active {
  background: rgba(74, 144, 226, 0.2);
  color: var(--aurora-blue);
}

.language-option img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/* =============================================================================
   DARK MODE SPECIFIC FIXES
   ============================================================================= */

/* Fix text colors in dark mode */
[data-theme="dark"] .hero-title .name {
  background: linear-gradient(135deg, var(--stellar-white), var(--aurora-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .hero-tagline {
  color: var(--galaxy-gray);
}

[data-theme="dark"] .about-description,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .experience-achievements li,
[data-theme="dark"] .project-description {
  color: var(--space-gray);
}

[data-theme="dark"] .stat-card {
  background: var(--stardust);
  border-color: var(--glass-border);
}

[data-theme="dark"] .timeline-content,
[data-theme="dark"] .skill-planet,
[data-theme="dark"] .project-nebula,
[data-theme="dark"] .experience-content,
[data-theme="dark"] .contact-star {
  background: var(--stardust);
  border-color: var(--glass-border);
}

[data-theme="dark"] .navbar-nav .nav-link {
  color: var(--galaxy-gray) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
  color: var(--stellar-white) !important;
}

[data-theme="dark"] body::before {
  background-color: var(--deep-space);
  opacity: 0.8;
}

[data-theme="dark"] body::after {
  opacity: 0.2;
}

/* =============================================================================
   LOADER ANIMATION
   ============================================================================= */

.cosmic-loader {
  position: fixed;
  inset: 0;
  background: var(--deep-space);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-constellation {
  width: 100px;
  height: 100px;
  position: relative;
}

.loader-star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--star-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--star-blue);
  animation: orbit-loader 2s linear infinite;
}

.loader-star:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.loader-star:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 0.5s;
}

.loader-star:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

.loader-star:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}

@keyframes orbit-loader {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}

/* =============================================================================
   CURSOR TRAIL EFFECT
   ============================================================================= */

.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-blue), transparent);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

/* =============================================================================
   PARALLAX STARS
   ============================================================================= */

.parallax-stars {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.star-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
  animation: drift-parallax var(--duration) linear infinite;
}

.star-layer-1 {
  --duration: 50s;
  background-image: radial-gradient(1px 1px at 10% 20%, white, transparent),
                    radial-gradient(1px 1px at 30% 60%, white, transparent),
                    radial-gradient(1px 1px at 70% 40%, white, transparent);
  background-size: 300px 300px;
}

.star-layer-2 {
  --duration: 80s;
  background-image: radial-gradient(2px 2px at 20% 80%, var(--star-blue), transparent),
                    radial-gradient(2px 2px at 60% 20%, var(--star-blue), transparent),
                    radial-gradient(2px 2px at 90% 90%, var(--star-blue), transparent);
  background-size: 400px 400px;
  opacity: 0.8;
}

.star-layer-3 {
  --duration: 120s;
  background-image: radial-gradient(1px 1px at 50% 50%, var(--constellation-silver), transparent);
  background-size: 500px 500px;
  opacity: 0.6;
}

@keyframes drift-parallax {
  from { transform: translate(0, 0); }
  to { transform: translate(-100px, -100px); }
} 