/* ============================================
   GEOTECHLITE PREMIUM DESIGN SYSTEM
   Best-in-class UI/UX for Energy/Engineering Sector
   ============================================ */

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* ============================================
   PREMIUM COLOR SYSTEM - GEOTECHLITE
   Official Brand Colors from Brand Kit
   WCAG AAA Compliant
   ============================================ */
:root {
  /* Quietforge Forge Aesthetic Colors */
  --primary-navy: #1E293B;           /* Slate gray (charcoal) - Primary dark */
  --primary-navy-light: #334155;     /* Lighter slate variant */
  --primary-navy-dark: #0F172A;      /* Darker slate - near black */
  
  /* Secondary Brand Colors - Forge Fire */
  --secondary-gold: #F97316;         /* Bright orange - Forge fire accent */
  --secondary-gold-light: #FB923C;   /* Lighter orange */
  --secondary-gold-dark: #EA580C;    /* Darker orange */
  
  /* Accent Colors - Steel Blue-Gray */
  --accent-teal: #64748B;            /* Steel blue-gray for subtle elements */
  --accent-teal-light: #94A3B8;      /* Lighter steel */
  --accent-teal-dark: #475569;       /* Darker steel */
  
  /* Surface Colors */
  --surface-white: #F8FAFC;          /* Off-white background */
  --surface-light: #F1F5F9;          /* Light gray surface */
  --surface-medium: #E2E8F0;         /* Medium gray surface */
  
  /* Text Colors - WCAG AAA Compliant */
  --text-primary: #0F172A;           /* Near-black for readability */
  --text-secondary: #475569;         /* Steel gray for secondary text */
  --text-tertiary: #64748B;          /* Light steel for tertiary text */
  --text-on-dark: #FFFFFF;           /* White text on dark backgrounds */
  --text-on-gold: #0F172A;           /* Dark text on orange backgrounds */
  
  /* Neutral Grays - 8pt Grid System */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #059669;
  --warning: #D97706;
  --error: #DC2626;
  --info: #0284C7;
  
  /* Premium Gradients - Forge Aesthetic */
  --gradient-navy-primary: linear-gradient(135deg, #1E293B 0%, #334155 50%, #F97316 100%);
  --gradient-gold-accent: linear-gradient(90deg, #F97316 0%, #FB923C 100%);
  --gradient-teal-depth: linear-gradient(180deg, #64748B 0%, #475569 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(30,41,59,0.95) 0%, rgba(249,115,22,0.85) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-card-light: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(249,115,22,0.3) 50%, transparent 100%);
  
  /* Typography Scale - Fluid & Responsive */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes - Fluid Typography with clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
  --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 5rem);
  
  /* Line Heights - Perfect Ratios */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Spacing Scale - 8pt Grid System */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  --space-40: 10rem;    /* 160px */
  --space-48: 12rem;    /* 192px */
  --space-64: 16rem;    /* 256px */
  
  /* Elevation System - Material Design Inspired */
  --elevation-0: none;
  --elevation-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --elevation-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --elevation-5: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --elevation-gold: 0 0 40px rgba(249, 115, 22, 0.4);
  --elevation-teal: 0 0 40px rgba(100, 116, 139, 0.4);
  --elevation-navy: 0 0 60px rgba(30, 41, 59, 0.5);
  
  /* Border Radius - Modern Scale */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-base: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions - Carefully Crafted Easing */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Duration Scale */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
  
  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ============================================
   DARK MODE THEME - GEOTECHLITE
   Official Brand Colors
   ============================================ */
[data-theme="dark"] {
  --surface-white: #0B0F1A;
  --surface-light: #0F172A;
  --surface-medium: #1E293B;
  
  --text-primary: #E3F2FD;
  --text-secondary: #B0BEC5;
  --text-tertiary: #78909C;
  
  --gradient-card-light: linear-gradient(145deg, rgba(15,23,42,0.9) 0%, rgba(11,15,26,0.9) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  
  --elevation-gold: 0 0 50px rgba(249, 115, 22, 0.3);
  --elevation-teal: 0 0 50px rgba(100, 116, 139, 0.3);
  --elevation-navy: 0 0 70px rgba(30, 41, 59, 0.4);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-white);
  transition: color var(--duration-300) var(--ease-in-out),
              background-color var(--duration-300) var(--ease-in-out);
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */
*:focus-visible {
  outline: 3px solid var(--secondary-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -1000px;
  left: var(--space-4);
  background: var(--primary-navy);
  color: var(--text-on-dark);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  z-index: var(--z-toast);
  transition: top var(--duration-200) var(--ease-out);
  text-decoration: none;
  box-shadow: var(--elevation-4);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-fixed);
  background: var(--gradient-glass);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
  box-shadow: var(--elevation-3);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--elevation-4), var(--elevation-gold);
  border-color: var(--secondary-gold);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-primary);
  transition: all var(--duration-300) var(--ease-smooth);
}

/* ============================================
   LAYOUT CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-12);
  }
}

/* ============================================
   HEADER - PREMIUM NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
  transition: all var(--duration-300) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: var(--elevation-4);
  border-bottom-color: rgba(249, 115, 22, 0.3);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  position: relative;
}

/* Logo with Premium Styling + Breathe Animation */
.logo {
  z-index: var(--z-fixed);
}

.logo img {
  animation: logoBreathe 4s ease-in-out infinite;
  transition: all var(--duration-300) var(--ease-out);
}

.logo a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: var(--tracking-tight);
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.logo a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-gold-accent);
  transition: width var(--duration-300) var(--ease-out);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.5);
}

.logo a:hover::after {
  width: 100%;
}

.logo a:hover {
  transform: translateY(-2px);
  text-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
  color: var(--secondary-gold-light);
}

.logo:hover img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.7));
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-2);
  align-items: center;
}

.main-nav a {
  position: relative;
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--duration-200) var(--ease-out);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.main-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: all var(--duration-200) var(--ease-out);
}

.main-nav a:hover::before,
.main-nav a[aria-current="page"]::before {
  opacity: 1;
  border-color: rgba(249, 115, 22, 0.3);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--secondary-gold);
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(249, 115, 22, 0.5);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  transition: all var(--duration-300) var(--ease-out);
  z-index: var(--z-fixed);
  color: var(--text-on-dark);
}

.mobile-nav-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-gold);
}

/* ============================================
   HERO SECTION - PREMIUM LANDING
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-navy-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/pangea.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.12;
  mix-blend-mode: overlay;
  z-index: 0;
  filter: blur(1px);
}

/* Pangea background with brand color overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(30, 41, 59, 0.75) 0%,
    rgba(249, 115, 22, 0.25) 100%
  );
  z-index: 1;
  pointer-events: none;
}

@keyframes heroBackgroundFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-on-dark);
  max-width: 1000px;
  padding: var(--space-20);
  animation: fadeInUp var(--duration-1000) var(--ease-out);
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tighter);
  color: #FFFFFF;  /* Solid white - clear and readable */
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.15);  /* Enhanced multi-layer shadow for depth */
  animation: fadeInUp var(--duration-1000) var(--ease-out) 0.2s both;
}

.hero-content p {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  opacity: 0.95;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp var(--duration-1000) var(--ease-out) 0.4s both;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp var(--duration-1000) var(--ease-out) 0.6s both;
}

/* ============================================
   PREMIUM BUTTONS - PHASE 1 ENHANCED
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-300) cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* Ripple effect on click */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width var(--duration-500) var(--ease-out),
              height var(--duration-500) var(--ease-out);
  pointer-events: none;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Shine effect */
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotateZ(60deg) translate(-5em, 7.5em);
  opacity: 0;
  transition: transform var(--duration-700) var(--ease-out), opacity var(--duration-300);
}

.btn:hover::after {
  transform: rotateZ(60deg) translate(1em, -9em);
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-gold-accent);
  color: var(--text-on-gold);
  box-shadow: var(--elevation-3), var(--elevation-gold);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--elevation-5), 0 0 50px rgba(249, 115, 22, 0.5);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
  transition-duration: var(--duration-100);
}

.btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-gold);
  box-shadow: var(--elevation-4), 0 0 30px rgba(249, 115, 22, 0.3);
}

.btn-secondary:active {
  transform: translateY(-2px) scale(1.02);
  transition-duration: var(--duration-100);
}

/* Floating Decorative Elements */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-element {
  position: absolute;
  background: var(--gradient-glass);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-3xl);
  backdrop-filter: blur(20px);
  animation: floatAround 20s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.floating-element:nth-child(2) {
  width: 180px;
  height: 180px;
  top: 55%;
  right: 12%;
  animation-delay: 4s;
  animation-duration: 22s;
}

.floating-element:nth-child(3) {
  width: 90px;
  height: 90px;
  bottom: 25%;
  left: 18%;
  animation-delay: 8s;
  animation-duration: 20s;
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.2;
    border-color: rgba(249, 115, 22, 0.2);
  }
  25% {
    transform: translate(40px, -40px) rotate(90deg);
    opacity: 0.4;
    border-color: rgba(100, 116, 139, 0.3);
  }
  50% {
    transform: translate(-30px, 30px) rotate(180deg);
    opacity: 0.3;
    border-color: rgba(249, 115, 22, 0.25);
  }
  75% {
    transform: translate(-50px, -20px) rotate(270deg);
    opacity: 0.5;
    border-color: rgba(100, 116, 139, 0.2);
  }
}

/* ============================================
   CONTENT SECTIONS - PREMIUM DESIGN
   ============================================ */
.content-section {
  background: var(--gradient-card-light);
  margin: var(--space-20) 0;
  padding: var(--space-16);
  border-radius: var(--radius-3xl);
  box-shadow: var(--elevation-3);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-500) var(--ease-out);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-gold-accent);
  border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
}

.content-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/pangea.png');
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.03;
  mix-blend-mode: multiply;
  pointer-events: none;
  filter: blur(2px);
}

/* Add subtle Pangea watermark to About section specifically */
#about.content-section::after {
  opacity: 0.08;
  background-position: center;
  background-size: 120%;
}

/* Very subtle Pangea in Services section */
#services.content-section::after {
  opacity: 0.04;
  background-position: left center;
  background-size: 80%;
}

.content-section:hover {
  transform: translateY(-8px);
  box-shadow: var(--elevation-5);
  border-color: rgba(249, 115, 22, 0.2);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-gold-accent);
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  margin: var(--space-6) auto 0;
  line-height: var(--leading-relaxed);
}

/* ============================================
   PROJECT CARDS - PREMIUM DESIGN
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-8);
  margin: var(--space-12) 0;
}

.project-card {
  background: var(--gradient-card-light);
  border: 1px solid rgba(249, 115, 22, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  transition: all var(--duration-500) cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold-accent);
  transition: left var(--duration-700) var(--ease-out);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.project-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--duration-500) var(--ease-out);
  pointer-events: none;
}

.project-card:hover::before {
  left: 0;
}

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

/* 3D Tilt Effect on Hover */
.project-card:hover {
  transform: translateY(-16px) scale(1.03) rotateX(2deg);
  box-shadow: var(--elevation-5), 0 25px 50px rgba(249, 115, 22, 0.2);
  border-color: var(--secondary-gold);
}

.project-card.featured {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(51, 65, 85, 0.6) 50%, rgba(249, 115, 22, 0.6) 100%);
  color: var(--text-on-dark);
  box-shadow: var(--elevation-4), var(--elevation-navy);
  border-color: rgba(249, 115, 22, 0.3);
}

.project-card.featured:hover {
  box-shadow: var(--elevation-5), var(--elevation-gold);
}

.project-card.featured .project-title,
.project-card.featured .project-description {
  color: var(--text-on-dark);
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.project-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.project-tag {
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  border: 1px solid rgba(249, 115, 22, 0.2);
  transition: all var(--duration-200) var(--ease-out);
}

.project-tag:hover {
  background: var(--secondary-gold);
  color: var(--text-on-gold);
  transform: translateY(-2px);
}

.project-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-300) var(--ease-out);
  font-size: var(--text-sm);
}

.project-link:hover {
  color: var(--secondary-gold);
  transform: translateX(6px);
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.project-link svg {
  transition: transform var(--duration-300) var(--ease-out);
}

.project-link:hover svg {
  transform: translateX(4px);
}

/* ============================================
   FOOTER - PREMIUM DESIGN
   ============================================ */
.site-footer {
  background: var(--gradient-navy-primary);
  color: var(--text-on-dark);
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-32);
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--secondary-gold);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at top, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-text {
  font-size: var(--text-sm);
  opacity: 0.9;
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

/* ============================================
   PHASE 2 & 3: ADVANCED ANIMATIONS
   ============================================ */

/* Scroll Progress Indicator Styling */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--gradient-gold-accent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8), 0 0 20px rgba(249, 115, 22, 0.4);
  z-index: var(--z-toast);
  transition: width 0.1s linear;
}

/* Animated Counter Styling */
.counter {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  background: var(--gradient-gold-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Parallax Sections */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Particle Container */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--secondary-gold);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* Mesh Gradient Background */
.mesh-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(at 0% 0%, rgba(30, 41, 59, 0.4) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(249, 115, 22, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(100, 116, 139, 0.2) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(30, 41, 59, 0.3) 0px, transparent 50%);
  opacity: 0.6;
  animation: meshShift 20s ease-in-out infinite;
}

@keyframes meshShift {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

/* Perspective Card Container */
.perspective-container {
  perspective: 2000px;
  perspective-origin: center;
}

.perspective-card {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.perspective-card:hover {
  transform: rotateY(10deg) rotateX(-5deg) translateZ(50px);
}

/* Smooth Scroll Snap */
.scroll-snap-container {
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
}

.scroll-snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* Advanced Glow Effects */
.glow-text {
  animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(249, 115, 22, 0.3),
      0 0 20px rgba(249, 115, 22, 0.2),
      0 0 30px rgba(249, 115, 22, 0.1);
  }
  50% {
    text-shadow:
      0 0 20px rgba(249, 115, 22, 0.6),
      0 0 40px rgba(249, 115, 22, 0.4),
      0 0 60px rgba(249, 115, 22, 0.2);
  }
}

/* Rotating Border Animation */
.rotating-border {
  position: relative;
  overflow: hidden;
}

.rotating-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    var(--secondary-gold),
    var(--accent-teal),
    var(--secondary-gold-light),
    var(--accent-teal-light),
    var(--secondary-gold)
  );
  border-radius: inherit;
  animation: rotateBorder 4s linear infinite;
  z-index: -1;
}

.rotating-border::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--surface-white);
  border-radius: inherit;
  z-index: -1;
}

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

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 60px;
  height: 60px;
  background: var(--gradient-gold-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--elevation-4), var(--elevation-gold);
  cursor: pointer;
  z-index: var(--z-fixed);
  transition: all var(--duration-300) cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fabPulse 2s ease-in-out infinite;
}

.fab:hover {
  transform: scale(1.15) rotate(90deg);
  box-shadow: var(--elevation-5), 0 0 60px rgba(249, 115, 22, 0.6);
}

@keyframes fabPulse {
  0%, 100% {
    box-shadow: var(--elevation-4), 0 0 20px rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: var(--elevation-5), 0 0 40px rgba(249, 115, 22, 0.6);
  }
}

/* Text Reveal Animation */
.text-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-navy);
  transform: translateX(-100%);
  animation: textReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

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

/* Gradient Text Animation */
.gradient-text-animated {
  background: linear-gradient(
    90deg,
    var(--secondary-gold) 0%,
    var(--accent-teal) 25%,
    var(--secondary-gold-light) 50%,
    var(--accent-teal-light) 75%,
    var(--secondary-gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Morph Shape Animation */
.morph-shape {
  animation: morphing 8s ease-in-out infinite;
}

@keyframes morphing {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 40% 60% 30% / 30% 70% 50% 60%;
  }
  75% {
    border-radius: 40% 70% 30% 50% / 60% 40% 60% 50%;
  }
}

/* ============================================
   SCROLL ANIMATIONS - PHASE 1 ENHANCED
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Staggered Reveal Animation */
@keyframes staggerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: var(--elevation-3), 0 0 20px rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow: var(--elevation-4), 0 0 40px rgba(249, 115, 22, 0.6);
  }
}

/* Logo Breathe Animation */
@keyframes logoBreathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* Image Loading Skeleton */
img[loading="lazy"] {
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 50%, var(--gray-200) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

img[loading="lazy"].loaded {
  animation: none;
  background: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .theme-toggle {
    top: var(--space-4);
    right: var(--space-4);
    width: 3rem;
    height: 3rem;
  }
  
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 31, 63, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    padding: var(--space-6);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-300) var(--ease-out);
    box-shadow: var(--elevation-4);
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }
  
  .main-nav a {
    display: block;
    text-align: center;
    padding: var(--space-4);
    width: 100%;
  }
  
  .hero-content {
    padding: var(--space-12);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .content-section {
    margin: var(--space-12) 0;
    padding: var(--space-8);
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .floating-element {
    animation: none !important;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --elevation-1: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
    --elevation-2: 0 8px 12px -2px rgba(0, 0, 0, 0.4);
    --elevation-3: 0 20px 30px -6px rgba(0, 0, 0, 0.4);
    --elevation-4: 0 40px 50px -10px rgba(0, 0, 0, 0.4);
    --elevation-5: 0 50px 100px -24px rgba(0, 0, 0, 0.5);
  }
  
  .project-card,
  .content-section {
    border-width: 2px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .theme-toggle,
  .mobile-nav-toggle,
  .floating-elements,
  .site-header,
  .site-footer,
  .skip-link {
    display: none !important;
  }
  
  .hero {
    height: auto;
    min-height: auto;
    background: white !important;
    color: black !important;
    page-break-after: always;
  }
  
  .content-section {
    box-shadow: none;
    border: 2px solid var(--gray-300);
    page-break-inside: avoid;
  }
  
  .project-card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
    page-break-inside: avoid;
  }
  
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}