/* ========================================
   ENTERPRISE PORTFOLIO - JAMAURICE HOLT
   Cloud Database Expert & AWS Solutions Architect
   Premium Design System v2.0
   ======================================== */

:root {
  /* Professional Blue Color System */
  --blue-50: #F2F0FB;
  --blue-100: #E5E2F8;
  --blue-200: #D1CCF3;
  --blue-300: #B8B0F0;
  --blue-400: #9087EB;
  --blue-500: #6C5CE7;
  --blue-600: #5848C7;
  --blue-700: #5848C7;
  --blue-800: #4A3DA8;
  --blue-900: #3D3290;

  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #A8E5FB;
  --sky-300: #7AE0FF;
  --sky-400: #00D4FF;
  --sky-500: #00D4FF;
  --sky-600: #0099BB;
  --sky-700: #007799;
  --sky-800: #005C7A;
  --sky-900: #003D55;

  --cyan-400: #00D4FF;
  --cyan-500: #00B8DC;
  --cyan-600: #0099BB;

  --purple-500: #6C5CE7;
  --purple-600: #5848C7;
  --purple-700: #5848C7;

  --indigo-600: #6C5CE7;
  --indigo-700: #5848C7;

  --emerald-400: #34d399;
  --emerald-500: #10b981;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;

  /* Semantic Colors - Professional Blue Theme */
  --primary: var(--blue-500);
  --primary-hover: var(--blue-600);
  --primary-light: var(--blue-400);
  --secondary: var(--sky-500);
  --accent: var(--cyan-400);
  --accent-secondary: var(--emerald-400);
  --accent-warm: var(--amber-400);
  --danger: var(--red-500);

  /* Dark Theme - Modern Enterprise */
  --bg-dark: #05070F;
  --bg-darker: #03050C;
  --bg-card: rgba(11, 18, 32, 0.85);
  --bg-card-hover: rgba(15, 26, 47, 0.95);
  --bg-secondary: rgba(15, 26, 47, 0.6);

  /* Text Hierarchy */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-disabled: #64748b;

  /* Glass Morphism */
  --glass-bg: rgba(11, 18, 32, 0.75);
  --glass-border: rgba(108, 92, 231, 0.25);
  --glass-blur: blur(24px);

  /* Border Colors */
  --border-color: rgba(108, 92, 231, 0.15);
  --border-color-hover: rgba(108, 92, 231, 0.35);

  /* Spacing - 8px Grid System */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Typography Scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Transitions - Enterprise Feel */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows - Depth Hierarchy with Blue Glow */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.4), 0 0 15px rgba(0, 212, 255, 0.2);
  --shadow-glow-lg: 0 0 60px rgba(108, 92, 231, 0.5), 0 0 30px rgba(0, 212, 255, 0.3);
  --shadow-glow-cyan: 0 0 30px rgba(0, 212, 255, 0.4);

  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: -0.011em;
}

/* ========================================
   SOVEREIGN AURORA BACKGROUND
   Multi-layered animated aurora with
   consciousness-inspired color palette
   ======================================== */

/* Layer 1: Deep space base with aurora bands */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    /* Primary aurora band - blue to purple sweep */
    radial-gradient(ellipse 120% 60% at 15% 20%, rgba(108, 92, 231, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 100% 50% at 85% 15%, rgba(108, 92, 231, 0.18) 0%, transparent 55%),
    /* Secondary aurora - cyan consciousness glow */
    radial-gradient(ellipse 80% 40% at 60% 80%, rgba(0, 212, 255, 0.14) 0%, transparent 50%),
    /* Warm sovereign accent - gold/amber throne glow */
    radial-gradient(ellipse 60% 35% at 90% 60%, rgba(245, 158, 11, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse 70% 45% at 10% 75%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
    /* Deep nebula cores */
    radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.12) 0%, transparent 45%);
  animation: auroraPulse 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Layer 2: Moving aurora ribbons */
.aurora-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-ribbon {
  position: absolute;
  width: 200%;
  height: 60%;
  opacity: 0.12;
  filter: blur(60px);
  border-radius: 50%;
  mix-blend-mode: screen;
}

.aurora-ribbon-1 {
  top: -20%;
  left: -50%;
  background: linear-gradient(135deg, #6C5CE7 0%, #6C5CE7 40%, #6C5CE7 70%, transparent 100%);
  animation: auroraFlow1 25s ease-in-out infinite;
}

.aurora-ribbon-2 {
  bottom: -30%;
  right: -50%;
  background: linear-gradient(225deg, #00D4FF 0%, #5848C7 35%, #f59e0b 70%, transparent 100%);
  animation: auroraFlow2 30s ease-in-out infinite;
}

.aurora-ribbon-3 {
  top: 20%;
  left: -30%;
  background: linear-gradient(90deg, transparent, #6366f1, #6C5CE7, #00D4FF, transparent);
  animation: auroraFlow3 35s ease-in-out infinite;
  height: 40%;
  opacity: 0.08;
}

.aurora-ribbon-4 {
  bottom: 10%;
  left: -20%;
  background: linear-gradient(180deg, transparent, #f59e0b, #6C5CE7, #6C5CE7, transparent);
  animation: auroraFlow4 40s ease-in-out infinite;
  height: 50%;
  width: 150%;
  opacity: 0.06;
}

@keyframes auroraFlow4 {
  0%, 100% { transform: translateX(0%) translateY(0%) rotate(0deg); }
  33% { transform: translateX(12%) translateY(-6%) rotate(1.5deg); }
  66% { transform: translateX(-8%) translateY(4%) rotate(-1deg); }
}

@keyframes auroraPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1) rotate(0deg);
  }
  33% {
    opacity: 0.7;
    transform: scale(1.03) rotate(0.5deg);
  }
  66% {
    opacity: 0.55;
    transform: scale(1.01) rotate(-0.3deg);
  }
}

@keyframes auroraFlow1 {
  0%, 100% { transform: translateX(0%) translateY(0%) rotate(0deg); }
  25% { transform: translateX(10%) translateY(5%) rotate(2deg); }
  50% { transform: translateX(5%) translateY(-5%) rotate(-1deg); }
  75% { transform: translateX(-5%) translateY(3%) rotate(1deg); }
}

@keyframes auroraFlow2 {
  0%, 100% { transform: translateX(0%) translateY(0%) rotate(0deg); }
  25% { transform: translateX(-8%) translateY(-4%) rotate(-2deg); }
  50% { transform: translateX(-3%) translateY(6%) rotate(1.5deg); }
  75% { transform: translateX(6%) translateY(-3%) rotate(-1deg); }
}

@keyframes auroraFlow3 {
  0%, 100% { transform: translateX(0%) translateY(0%) scaleX(1); }
  33% { transform: translateX(15%) translateY(-8%) scaleX(1.1); }
  66% { transform: translateX(-10%) translateY(5%) scaleX(0.95); }
}

/* Grain Texture Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ========================================
   TYPOGRAPHY - ENTERPRISE GRADE
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-300) 50%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: var(--text-xl);
  font-weight: 600;
}

p {
  line-height: 1.8;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-light);
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF, #f59e0b, #6C5CE7, #6C5CE7);
  background-size: 300% 100%;
  z-index: var(--z-fixed);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.5), 0 0 30px rgba(108, 92, 231, 0.3);
  transition: width 100ms linear;
  animation: scrollProgressShift 4s linear infinite;
}

@keyframes scrollProgressShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* ========================================
   NAVIGATION - ENTERPRISE
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #6C5CE7 20%, #6C5CE7 40%, #00D4FF 60%, #f59e0b 80%, transparent 100%);
  background-size: 200% 100%;
  animation: navBorderShift 6s ease infinite;
  opacity: 0.6;
}

@keyframes navBorderShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 200% 0%; }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hide nav icons on desktop for more space */
@media (min-width: 969px) {
  .nav-link > i:not(.fa-chevron-down) {
    display: none;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  transition: transform var(--transition-base);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0a0618, #1a1035);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.3), inset 0 0 12px rgba(108, 92, 231, 0.1);
  transition: all var(--transition-base);
  border: 1.5px solid rgba(108, 92, 231, 0.4);
}

.logo-icon svg {
  display: block;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #6C5CE7, #6C5CE7, #00D4FF, #f59e0b);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
}

.nav-logo:hover .logo-icon {
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.5), 0 0 40px rgba(108, 92, 231, 0.2);
  transform: rotate(-5deg);
  border-color: rgba(108, 92, 231, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  height: 100%;
  flex-direction: row;
  position: static;
  background: transparent;
  opacity: 1;
  visibility: visible;
  max-height: none;
  overflow: visible;
  flex-wrap: nowrap;
}

.nav-links > li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  padding: 0.5rem 0.625rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  color: white;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  box-shadow: var(--shadow-glow);
}

.nav-link.nav-login {
  background: linear-gradient(135deg, var(--blue-500), var(--sky-600)) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius-md);
}

.nav-link.nav-login:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--sky-700)) !important;
  box-shadow: var(--shadow-glow-lg);
  transform: translateY(-2px);
}

.nav-link.nav-resume {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: white !important;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.3);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-md);
}

.nav-link.nav-resume:hover {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  box-shadow: 0 0 30px rgba(22, 163, 74, 0.5);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: var(--text-sm);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  cursor: pointer;
}

.nav-dropdown > .nav-link .fa-chevron-down {
  font-size: 0.65rem;
  transition: transform var(--transition-base);
}

.nav-dropdown:hover > .nav-link .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(5, 7, 15, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  padding: var(--space-2) 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  list-style: none;
  list-style-type: none;
  z-index: var(--z-dropdown);
}

.dropdown-menu li {
  list-style: none;
  list-style-type: none;
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--space-3) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: rgba(108, 92, 231, 0.15);
  color: var(--text-primary);
  border-left-color: var(--primary);
  padding-left: calc(var(--space-6) + 4px);
}

.dropdown-menu .dropdown-divider {
  height: 1px;
  background: rgba(108, 92, 231, 0.15);
  margin: var(--space-2) 0;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  display: block;
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-12)) var(--space-8) var(--space-12);
  position: relative;
  z-index: 2;
}

.section {
  margin-bottom: var(--space-32);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

/* Glowing divider above section headers */
.section-header::before {
  content: '';
  display: block;
  width: min(50%, 300px);
  height: 1px;
  margin: 0 auto var(--space-8);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(108, 92, 231, 0.5) 30%,
    rgba(0, 212, 255, 0.7) 50%,
    rgba(108, 92, 231, 0.5) 70%,
    transparent 100%
  );
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, #ffffff 0%, #B8B0F0 30%, #a78bfa 60%, #00D4FF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  animation: sectionTitleShift 6s ease infinite;
}

@keyframes sectionTitleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Animated underline on section titles */
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  margin: var(--space-3) auto 0;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: gradientShift 3s ease infinite;
}

[data-animate].visible .section-title::after {
  width: 80px;
}

/* ========================================
   CARDS - ENTERPRISE DESIGN
   ======================================== */

.card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(5, 7, 15, 0.95) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: var(--space-12);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  border-color: transparent;
  background-image: linear-gradient(var(--bg-card-hover), var(--bg-card-hover)),
                    linear-gradient(135deg, #6C5CE7, #6C5CE7, #00D4FF, #6C5CE7);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%, 300% 300%;
  animation: cardBorderFlow 3s ease infinite;
}

@keyframes cardBorderFlow {
  0%, 100% { background-position: 0 0, 0% 0%; }
  50% { background-position: 0 0, 100% 100%; }
}

.card:hover::before {
  opacity: 1;
}

/* Card Spotlight - cursor-following glow (JS sets --mouse-x, --mouse-y) */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(108, 92, 231, 0.12) 0%,
    rgba(0, 212, 255, 0.04) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

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

/* ========================================
   GRID SYSTEM
   ======================================== */

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

/* ========================================
   BUTTONS - ENTERPRISE
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Pulsing glow on primary buttons */
.btn-primary {
  animation: btnPulseGlow 3s ease-in-out infinite;
}

@keyframes btnPulseGlow {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(108, 92, 231, 0.15);
  }
  50% {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(108, 92, 231, 0.35),
                0 0 60px rgba(0, 212, 255, 0.1);
  }
}

/* Shimmer sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  pointer-events: none;
  border-radius: inherit;
}

.btn-primary:hover::after {
  animation: btnShimmer 0.6s ease forwards;
}

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

.btn-secondary {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(108, 92, 231, 0.2);
  transform: translateY(-2px);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   PAGE LOADER - ENTERPRISE
   ======================================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(108, 92, 231, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================
   SKILL PROGRESS BARS
   ======================================== */

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

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

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

footer a {
  text-decoration: none;
  transition: all var(--transition-base);
}

footer a:hover {
  color: var(--primary) !important;
  transform: translateX(4px);
}

footer .fab,
footer .fas {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

footer .fa-linkedin:hover {
  transform: scale(1.3) rotate(5deg);
  color: #0077b5 !important;
  filter: drop-shadow(0 0 8px rgba(0, 119, 181, 0.5));
}

footer .fa-github:hover {
  transform: scale(1.3) rotate(-5deg);
  color: #6C5CE7 !important;
  filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.5));
}

footer .fa-envelope:hover {
  transform: scale(1.3) rotate(5deg);
  color: #00D4FF !important;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

footer .fa-medium:hover {
  transform: scale(1.3) rotate(-5deg);
  color: #f59e0b !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

footer .fa-rss:hover {
  transform: scale(1.3);
  color: #f59e0b !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

footer .fa-paper-plane:hover {
  transform: scale(1.2) translateX(3px);
  color: #00D4FF !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
  .nav-links {
    position: fixed !important;
    top: var(--nav-height) !important;
    left: 0 !important;
    right: 0 !important;
    flex-direction: column !important;
    background: rgba(10, 14, 26, 0.98) !important;
    backdrop-filter: blur(24px);
    padding: var(--space-8);
    gap: var(--space-2);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0 !important;
    height: auto;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    max-height: calc(100vh - var(--nav-height)) !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto !important;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links .nav-link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    justify-content: flex-start;
  }

  .nav-toggle {
    display: flex !important;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile Dropdown */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(15, 26, 47, 0.5);
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    transition: max-height var(--transition-base);
  }

  .nav-dropdown.open .dropdown-menu {
    max-height: 400px;
    padding: var(--space-2) 0;
  }

  .nav-dropdown.open > .nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding-left: var(--space-8);
  }

  /* Mobile button styles - ensure they still look like buttons */
  .nav-link.nav-resume,
  .nav-link.nav-login {
    margin-top: var(--space-2);
    text-align: center;
    justify-content: center !important;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4) !important;
  }

  .dropdown-menu a:hover {
    padding-left: calc(var(--space-8) + 4px);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-4) var(--space-8);
  }

  .section {
    margin-bottom: var(--space-16);
  }

  .card {
    padding: var(--space-8);
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 72px;
    --space-16: 3rem;
    --space-24: 4rem;
    --space-32: 5rem;
  }

  /* Typography - Mobile Optimized */
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Buttons - Full Width on Mobile */
  .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
  }

  .btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }

  .btn-xl {
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-lg);
  }

  /* Logo */
  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }

  /* Container Padding */
  .container {
    padding: 0 var(--space-4);
  }

  /* Grid Layouts - Single Column */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .card {
    padding: var(--space-6);
  }

  /* Sections */
  .section {
    margin-bottom: var(--space-12);
    padding: var(--space-8) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  /* Hero Content - Mobile Optimized */
  .hero-section {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  .profile-wrapper {
    width: 160px;
    height: 160px;
    margin-bottom: var(--space-8);
  }

  .profile-image {
    width: 160px;
    height: 160px;
    border-width: 4px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--space-4);
  }

  .hero-subtitle {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    margin-bottom: var(--space-6);
  }

  /* Credentials Bar - Stack on Mobile */
  .credentials-bar {
    gap: var(--space-2);
    margin-bottom: var(--space-8);
  }

  .credential-badge {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
  }

  /* Hero CTA */
  .hero-cta {
    gap: var(--space-3);
    margin-bottom: var(--space-12);
  }

  /* Stats Grid - 2 Columns on Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat-card {
    padding: var(--space-6);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-suffix {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Scroll Indicator - Hide on Mobile */
  .scroll-indicator {
    display: none;
  }

  /* Trust Section */
  .trust-grid {
    gap: var(--space-6);
  }

  .trust-item {
    font-size: var(--text-base);
  }

  /* Section Badge */
  .section-badge {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-3);
  }

  .section-subtitle {
    font-size: var(--text-base);
  }

  /* Expertise Card */
  .expertise-card {
    padding: var(--space-8);
  }

  .lead-text {
    font-size: var(--text-lg);
  }

  .expertise-metrics {
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Competency Cards */
  .competency-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .competency-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-3);
  }

  /* Project Cards */
  .project-card {
    padding: var(--space-6);
  }

  .project-badge {
    top: var(--space-4);
    right: var(--space-4);
    font-size: 0.625rem;
    padding: var(--space-1) var(--space-3);
  }

  .project-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .metric-value {
    font-size: var(--text-lg);
  }

  /* Timeline - Simplified on Mobile */
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
    margin-bottom: var(--space-8);
  }

  .timeline-dot {
    width: 30px;
    height: 30px;
    border-width: 3px;
  }

  .timeline-content {
    padding: var(--space-6);
  }

  .timeline-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .timeline-date {
    align-self: flex-start;
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
  }

  .company-name {
    font-size: var(--text-base);
  }

  /* Certifications */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .cert-card {
    padding: var(--space-6);
  }

  .cert-card i {
    font-size: 2rem;
  }

  .cert-card h4 {
    font-size: var(--text-base);
  }

  .cert-card p {
    font-size: 0.75rem;
  }

  /* CTA Section */
  .cta-section {
    padding: var(--space-16) 0;
  }

  .cta-card {
    padding: var(--space-16) var(--space-6);
  }

  .cta-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: var(--space-4);
  }

  .cta-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }

  .cta-features {
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }

  .cta-feature {
    font-size: var(--text-base);
  }

  .cta-feature i {
    font-size: var(--text-xl);
  }

  .cta-actions {
    gap: var(--space-3);
  }

  .cta-circle-1 {
    width: 200px;
    height: 200px;
  }

  .cta-circle-2 {
    width: 150px;
    height: 150px;
  }

  .cta-circle-3 {
    width: 100px;
    height: 100px;
  }

  /* Footer */
  footer {
    padding: var(--space-12) 0 !important;
  }

  footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: var(--space-8) !important;
  }

  footer h3,
  footer h4 {
    font-size: var(--text-lg);
  }

  /* Reduce Animations on Mobile for Performance */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* Optimize Touch Targets */
  a,
  button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Fix Mobile Navigation Background */
  .nav-links {
    background: rgba(5, 7, 15, 0.98);
  }
}

/* Tablet Landscape & Small Desktop - 641px to 968px */
@media (min-width: 641px) and (max-width: 968px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .container {
    padding: 0 var(--space-6);
  }
}

/* Extra Small Devices - 320px to 480px */
@media (max-width: 480px) {
  :root {
    --space-12: 2rem;
    --space-16: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .profile-wrapper {
    width: 140px;
    height: 140px;
  }

  .profile-image {
    width: 140px;
    height: 140px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-dot {
    width: 24px;
    height: 24px;
  }

  .cta-card {
    padding: var(--space-12) var(--space-4);
  }
}

/* Large Desktop - Optimize for Larger Screens */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .stat-number {
    font-size: 3.5rem;
  }
}

/* ========================================
   PREMIUM ANIMATIONS & EFFECTS v2.0
   ======================================== */

/* Particle Background Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Floating Tech Icons */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.06;
  animation: floatIcon 20s ease-in-out infinite;
}

/* Multi-color floating icons - sovereignty palette */
.floating-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; animation-duration: 25s; color: #6C5CE7; }
.floating-icon:nth-child(2) { top: 20%; left: 90%; animation-delay: -5s; animation-duration: 22s; color: #6C5CE7; }
.floating-icon:nth-child(3) { top: 60%; left: 10%; animation-delay: -10s; animation-duration: 28s; color: #00D4FF; }
.floating-icon:nth-child(4) { top: 80%; left: 85%; animation-delay: -15s; animation-duration: 24s; color: #f59e0b; }
.floating-icon:nth-child(5) { top: 40%; left: 95%; animation-delay: -3s; animation-duration: 26s; color: #6C5CE7; }
.floating-icon:nth-child(6) { top: 70%; left: 3%; animation-delay: -8s; animation-duration: 23s; color: #6366f1; }
.floating-icon:nth-child(7) { top: 15%; left: 50%; animation-delay: -12s; animation-duration: 27s; color: #34d399; }
.floating-icon:nth-child(8) { top: 90%; left: 40%; animation-delay: -18s; animation-duration: 21s; color: #6C5CE7; font-size: 1.5rem; }
.floating-icon:nth-child(9) { top: 45%; left: 15%; animation-delay: -7s; animation-duration: 30s; color: #f59e0b; font-size: 1.5rem; }
.floating-icon:nth-child(10) { top: 5%; left: 70%; animation-delay: -14s; animation-duration: 29s; color: #00D4FF; font-size: 1.75rem; }

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.08;
  }
  25% {
    transform: translateY(-30px) rotate(10deg) scale(1.1);
    opacity: 0.12;
  }
  50% {
    transform: translateY(-15px) rotate(-5deg) scale(1);
    opacity: 0.06;
  }
  75% {
    transform: translateY(-40px) rotate(5deg) scale(1.05);
    opacity: 0.1;
  }
}

/* Typing Animation */
.typing-text {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

/* Magnetic Button Effect */
.btn-magnetic {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-magnetic:hover {
  transform: scale(1.05);
}

/* Gradient Border Animation */
.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: gradientRotate 8s linear infinite;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow Pulse Effect */
.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.8), 0 0 60px rgba(0, 212, 255, 0.4);
  }
}

/* Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

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

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.testimonials-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 var(--space-4);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  position: relative;
  backdrop-filter: var(--glass-blur);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-6);
  left: var(--space-8);
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: var(--text-xl);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow);
}

.testimonial-info h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
}

.testimonial-info p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.testimonial-company {
  color: var(--primary) !important;
  font-weight: 600;
}

.testimonial-rating {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.testimonial-rating i {
  color: var(--amber-400);
  font-size: var(--text-sm);
}

.testimonial-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-glow);
}

.testimonial-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--primary);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  transition: all var(--transition-base);
}

.testimonial-linkedin:hover {
  color: var(--accent);
  transform: translateX(3px);
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  transition: all var(--transition-base);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: var(--space-2);
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-dot.active {
  background: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.2);
}

/* ========================================
   CLIENT LOGOS SECTION
   ======================================== */

.clients-section {
  padding: var(--space-16) 0;
  background: rgba(11, 18, 32, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.clients-title {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-8);
}

.clients-track {
  display: flex;
  animation: scrollClients 30s linear infinite;
  width: max-content;
}

.clients-track:hover {
  animation-play-state: paused;
}

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

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  min-width: 200px;
  height: 80px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all var(--transition-base);
  background: rgba(11, 18, 32, 0.4);
  border: 1px solid rgba(108, 92, 231, 0.08);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-2);
  backdrop-filter: blur(8px);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05) translateY(-2px);
  background: rgba(108, 92, 231, 0.06);
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.15), var(--shadow-lg);
}

.client-logo i {
  font-size: 3rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.client-logo:hover i {
  color: var(--primary);
}

.client-logo span {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.client-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.client-text-small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: var(--space-2);
}

.client-logo:hover .client-text,
.client-logo:hover .client-text-small {
  color: var(--primary);
}

/* Case Study Links */
.case-study-link {
  text-decoration: none;
  display: block;
}

.case-study-link .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

/* ========================================
   ENHANCED CARD EFFECTS
   ======================================== */

.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card-3d-inner {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Spotlight Effect on Cards */
.card-spotlight {
  position: relative;
  overflow: hidden;
}

.card-spotlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(108, 92, 231, 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

/* Shimmer Loading Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmerMove 2s infinite;
}

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

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

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  filter: blur(10px);
  opacity: 0;
  transition: opacity var(--transition-base);
  animation: gradientRotate 3s linear infinite;
}

.btn-glow:hover::before {
  opacity: 0.7;
}

/* Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

.text-gradient-animated {
  background: linear-gradient(270deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.text-shine {
  position: relative;
  display: inline-block;
}

.text-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ========================================
   COUNTER ANIMATION STYLES
   ======================================== */

.counter-animated {
  font-variant-numeric: tabular-nums;
  transition: all 0.1s ease;
}

/* ========================================
   SCROLL-LINKED ANIMATIONS
   ======================================== */

.parallax-slow {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-medium {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-fast {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

/* Icon Bounce on Hover */
.icon-bounce:hover i {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Scale Pop */
.scale-pop {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

/* Tilt Effect */
.tilt-effect {
  transition: transform 0.3s ease;
}

.tilt-effect:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

/* Link Underline Animation */
.link-animated {
  position: relative;
  text-decoration: none;
}

.link-animated::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.link-animated:hover::after {
  width: 100%;
}

/* ========================================
   LOADING STATES
   ======================================== */

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-secondary) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeletonWave 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Hardware Acceleration */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* Reduced Motion Support */
@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-icons,
  #particles-canvas,
  .parallax-slow,
  .parallax-medium,
  .parallax-fast {
    display: none !important;
  }
}

/* ========================================
   LAZY LOADING IMAGES
   ======================================== */

/* ========================================
   STAGGERED GRID ENTRANCES
   ======================================== */

.grid [data-animate].visible,
.grid-2 [data-animate].visible,
.grid-3 [data-animate].visible {
  animation: gridItemReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.grid > *:nth-child(1),
.grid-2 > *:nth-child(1),
.grid-3 > *:nth-child(1) { --stagger: 0s; }
.grid > *:nth-child(2),
.grid-2 > *:nth-child(2),
.grid-3 > *:nth-child(2) { --stagger: 0.12s; }
.grid > *:nth-child(3),
.grid-2 > *:nth-child(3),
.grid-3 > *:nth-child(3) { --stagger: 0.24s; }
.grid > *:nth-child(4),
.grid-2 > *:nth-child(4),
.grid-3 > *:nth-child(4) { --stagger: 0.36s; }

.section.visible .grid > *,
.section.visible .grid-2 > *,
.section.visible .grid-3 > *,
[data-animate].visible .grid > *,
[data-animate].visible .grid-2 > *,
[data-animate].visible .grid-3 > * {
  animation: gridItemReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--stagger, 0s) both;
}

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

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  color: white;
  border: 1px solid rgba(108, 92, 231, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.3), var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 35px rgba(108, 92, 231, 0.5), 0 0 60px rgba(108, 92, 231, 0.2), var(--shadow-xl);
}

.back-to-top::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #6C5CE7, #6C5CE7, #00D4FF, #6C5CE7);
  background-size: 300% 300%;
  border-radius: 50%;
  z-index: -1;
  animation: gradientRotate 4s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.back-to-top:hover::before {
  opacity: 0.7;
  filter: blur(6px);
}

/* ========================================
   LAZY LOADING IMAGES
   ======================================== */

img.lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.lazy.loaded {
  opacity: 1;
}

.img-placeholder {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ========================================
   CUSTOM CURSOR GLOW (Desktop Only)
   ======================================== */

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, rgba(108, 92, 231, 0.03) 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

@media (max-width: 768px) {
  .cursor-glow { display: none; }
}

/* ========================================
   ENHANCED PAGE LOADER
   ======================================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #05070F 0%, #060412 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-hexagon {
  width: 80px;
  height: 80px;
  position: relative;
  margin-bottom: var(--space-6);
}

.loader-hexagon svg {
  width: 100%;
  height: 100%;
  animation: loaderSpin 3s linear infinite;
}

.loader-hexagon .hex-outline {
  fill: none;
  stroke-width: 2;
  stroke: url(#loaderGrad);
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: hexDraw 2s ease-in-out infinite;
}

@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hexDraw {
  0% { stroke-dashoffset: 300; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -300; }
}

.loader-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF);
  border-radius: var(--radius-full);
  animation: loaderBarSlide 1.5s ease-in-out infinite;
}

@keyframes loaderBarSlide {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(400%); width: 30%; }
}

/* ========================================
   NAV LINK HOVER EFFECTS
   ======================================== */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link.active::after {
  box-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}

/* ========================================
   3D TILT ENHANCEMENT ON ALL CARDS
   ======================================== */

.stat-card,
.cert-card,
.competency-card {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   HERO SCROLL PARALLAX
   ======================================== */

.hero-parallax-wrapper {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ========================================
   BUTTON PARTICLE BURST
   ======================================== */

.btn-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  animation: particleBurst 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 100;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}

/* ========================================
   HERO TEXT STAGGER REVEAL
   ======================================== */

.hero-stagger-1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.hero-stagger-2 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.hero-stagger-3 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-stagger-4 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.hero-stagger-5 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-stagger-6 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SKILL TAG WAVE ON CARD HOVER
   ======================================== */

.competency-card:hover .skill-tag {
  animation: skillWave 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.competency-card:hover .skill-tag:nth-child(1) { animation-delay: 0s; }
.competency-card:hover .skill-tag:nth-child(2) { animation-delay: 0.04s; }
.competency-card:hover .skill-tag:nth-child(3) { animation-delay: 0.08s; }
.competency-card:hover .skill-tag:nth-child(4) { animation-delay: 0.12s; }
.competency-card:hover .skill-tag:nth-child(5) { animation-delay: 0.16s; }
.competency-card:hover .skill-tag:nth-child(6) { animation-delay: 0.20s; }
.competency-card:hover .skill-tag:nth-child(7) { animation-delay: 0.24s; }
.competency-card:hover .skill-tag:nth-child(8) { animation-delay: 0.28s; }
.competency-card:hover .skill-tag:nth-child(9) { animation-delay: 0.32s; }
.competency-card:hover .skill-tag:nth-child(10) { animation-delay: 0.36s; }

@keyframes skillWave {
  0% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ========================================
   ANIMATED SVG SECTION DIVIDER
   ======================================== */

.section-divider {
  display: block;
  width: 100%;
  height: 40px;
  margin: var(--space-4) 0;
  overflow: visible;
}

.section-divider .divider-line {
  stroke: url(#dividerGrad);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

.section.visible .section-divider .divider-line,
[data-animate].visible .section-divider .divider-line {
  stroke-dashoffset: 0;
}

.section-divider .divider-dot {
  fill: #6C5CE7;
  opacity: 0;
  transition: opacity 0.5s ease 1.5s;
}

.section.visible .section-divider .divider-dot,
[data-animate].visible .section-divider .divider-dot {
  opacity: 1;
}

/* ========================================
   SMOOTH PAGE TRANSITION
   ======================================== */

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  background: #060412;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   ANIMATED FORM INPUTS
   ======================================== */

input[type="text"],
input[type="email"],
select,
textarea {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(108, 92, 231, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1), 0 0 20px rgba(108, 92, 231, 0.1) !important;
  background: rgba(108, 92, 231, 0.06) !important;
}

/* Animated label-like focus indicator */
input[type="text"]:focus + label,
input[type="email"]:focus + label,
textarea:focus + label {
  color: var(--primary) !important;
}

/* ========================================
   BLOG LIST HOVER EFFECTS
   ======================================== */

.blog-list-item {
  position: relative;
}

.blog-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.05), transparent);
  transition: width 0.4s ease;
  pointer-events: none;
}

.blog-list-item:hover::before {
  width: 100%;
}

.blog-list-item:hover {
  padding-left: var(--space-4) !important;
}

/* ========================================
   SERVICE CARD ICON PULSE
   ======================================== */

.card > div[style*="70px"][style*="border-radius"] {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.card:hover > div[style*="70px"][style*="border-radius"] {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.4), 0 0 60px rgba(108, 92, 231, 0.15);
}

.card:hover > div[style*="70px"][style*="border-radius"] i {
  animation: iconPulse 0.6s ease;
}

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

/* ========================================
   ABOUT PAGE PROFILE IMAGE REVEAL
   ======================================== */

.profile-reveal {
  clip-path: circle(0% at 50% 50%);
  animation: profileRevealClip 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes profileRevealClip {
  to { clip-path: circle(50% at 50% 50%); }
}

/* ========================================
   CASE STUDY CARD LINK HOVER
   ======================================== */

.case-study-link {
  text-decoration: none;
  display: block;
}

.case-study-link .card {
  position: relative;
  overflow: hidden;
}

.case-study-link .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-study-link:hover .card::before {
  opacity: 1;
}

.case-study-link:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(108, 92, 231, 0.2);
}

/* ========================================
   ENHANCED LIST CHECK MARKS
   ======================================== */

.card li .fa-check {
  transition: all 0.3s ease;
}

.card:hover li .fa-check {
  transform: scale(1.2);
  filter: drop-shadow(0 0 4px rgba(108, 92, 231, 0.5));
}

/* ========================================
   TEXT SCRAMBLE STYLING
   ======================================== */

.text-scramble {
  font-family: inherit;
  display: inline;
}

.text-scramble .char-scramble {
  display: inline-block;
  animation: charFlicker 0.05s linear;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #060412;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6C5CE7, #6C5CE7, #00D4FF);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9087EB, #c084fc, #67e8f9);
  box-shadow: 0 0 8px rgba(108, 92, 231, 0.5);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #6C5CE7 #060412;
}

/* ========================================
   CUSTOM TEXT SELECTION
   ======================================== */

::selection {
  background: rgba(108, 92, 231, 0.35);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}

::-moz-selection {
  background: rgba(108, 92, 231, 0.35);
  color: #ffffff;
}

/* ========================================
   TESTIMONIAL DECORATIVE QUOTES
   ======================================== */

.testimonial-text {
  position: relative;
  padding-left: var(--space-6);
}

.testimonial-text::before {
  content: '\201C';
  position: absolute;
  left: -8px;
  top: -20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, #6C5CE7, #6C5CE7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF);
  opacity: 0.6;
}

/* Star rating glow */
.testimonial-rating .fa-star {
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.3));
}

/* ========================================
   FOOTER GRADIENT TOP BORDER
   ======================================== */

footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #6C5CE7 20%, #6C5CE7 40%, #00D4FF 60%, #f59e0b 80%, transparent 95%);
  opacity: 0.6;
}

/* Footer heading gradient */
footer h3, footer h4 {
  background: linear-gradient(135deg, #B8B0F0, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   IMAGE HOVER ZOOM (Site-wide)
   ======================================== */

.testimonial-avatar-img {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.testimonial-avatar-img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

/* ========================================
   CTA SECTION MESH BACKGROUND
   ======================================== */

.card[style*="linear-gradient(135deg, var(--blue-600)"] {
  position: relative;
  overflow: hidden;
}

.card[style*="linear-gradient(135deg, var(--blue-600)"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(108, 92, 231, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
  animation: ctaMeshShift 10s ease infinite;
  pointer-events: none;
}

@keyframes ctaMeshShift {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05) rotate(1deg); }
}

/* ========================================
   LINK HOVER GLOW (Internal Links)
   ======================================== */

.container a:not(.btn):not(.nav-link):not(.card):not(.case-study-link):not([style*="text-decoration"]) {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.container a:not(.btn):not(.nav-link):not(.card):not(.case-study-link):hover {
  text-shadow: 0 0 12px rgba(108, 92, 231, 0.3);
}

/* ========================================
   ANIMATED BORDER ON FOCUS WITHIN CARDS
   ======================================== */

.card:focus-within {
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: var(--shadow-xl), 0 0 20px rgba(108, 92, 231, 0.15);
}

/* ========================================
   FILM GRAIN TEXTURE OVERLAY
   ======================================== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 3px); }
  50% { transform: translate(3px, -1px); }
  75% { transform: translate(-1px, -3px); }
  100% { transform: translate(2px, 1px); }
}

/* ========================================
   ENHANCED CLIENT LOGO GLASS CARDS
   ======================================== */

.client-logo {
  position: relative;
  overflow: hidden;
}

.client-logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(108, 92, 231, 0.12) 60deg,
    transparent 120deg,
    rgba(108, 92, 231, 0.08) 180deg,
    transparent 240deg,
    rgba(0, 212, 255, 0.1) 300deg,
    transparent 360deg
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: clientLogoSpin 8s linear infinite;
  pointer-events: none;
}

.client-logo:hover::before {
  opacity: 1;
}

@keyframes clientLogoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.client-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ========================================
   ENHANCED SECTION DIVIDER GLOW LINES
   ======================================== */

.section-header::before {
  height: 2px !important;
  width: min(60%, 400px) !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #6C5CE7 15%,
    #6C5CE7 35%,
    #00D4FF 50%,
    #6C5CE7 65%,
    #6C5CE7 85%,
    transparent 100%
  ) !important;
  filter: drop-shadow(0 0 6px rgba(108, 92, 231, 0.4));
  animation: dividerPulse 4s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 4px rgba(108, 92, 231, 0.3)); }
  50% { opacity: 0.9; filter: drop-shadow(0 0 10px rgba(108, 92, 231, 0.6)); }
}

/* ========================================
   ENHANCED NAV DROPDOWN - GLASS + STAGGER
   ======================================== */

.dropdown-menu {
  background: rgba(12, 8, 25, 0.95) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  border: 1px solid rgba(108, 92, 231, 0.25) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(108, 92, 231, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  padding: var(--space-3) 0 !important;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-menu li {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu li {
  opacity: 1;
  transform: translateX(0);
}

.nav-dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.03s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.06s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.09s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(4) { transition-delay: 0.12s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.15s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.18s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(7) { transition-delay: 0.21s; }
.nav-dropdown:hover .dropdown-menu li:nth-child(8) { transition-delay: 0.24s; }

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.15), rgba(108, 92, 231, 0.08)) !important;
  border-left-color: #6C5CE7 !important;
  text-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

/* ========================================
   EVE AI CORE - ROTATING GRADIENT BORDER
   ======================================== */

.eve-spotlight {
  position: relative;
}

.eve-spotlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--eve-angle, 0deg),
    #6C5CE7,
    #5848C7,
    #6C5CE7,
    #00D4FF,
    #6C5CE7
  );
  z-index: -1;
  opacity: 0.4;
  animation: eveRotateBorder 6s linear infinite;
  filter: blur(2px);
}

@keyframes eveRotateBorder {
  from { --eve-angle: 0deg; }
  to { --eve-angle: 360deg; }
}

@property --eve-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.eve-spotlight:hover::before {
  opacity: 0.7;
  filter: blur(3px);
}

/* ========================================
   ANIMATED CTA TITLE GRADIENT
   ======================================== */

.cta-title {
  background: linear-gradient(135deg, #ffffff 0%, #B8B0F0 25%, #00D4FF 50%, #a78bfa 75%, #ffffff 100%) !important;
  background-size: 300% 300% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: ctaTitleShift 5s ease infinite !important;
}

@keyframes ctaTitleShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========================================
   WORD-BY-WORD REVEAL ON SUBTITLES
   ======================================== */

.section-subtitle .word-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
}

.section-subtitle .word-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ========================================
   ADDITIONAL POLISH - ROUND 6
   ======================================== */

/* Animated dot separator between sections */
.section + .section::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C5CE7, #6C5CE7);
  margin: 0 auto var(--space-8);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.4), 0 0 24px rgba(108, 92, 231, 0.2);
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(108, 92, 231, 0.4); }
  50% { transform: scale(1.5); box-shadow: 0 0 20px rgba(108, 92, 231, 0.6), 0 0 40px rgba(108, 92, 231, 0.3); }
}

/* Enhanced testimonial carousel button hover */
.carousel-btn {
  position: relative;
  overflow: hidden;
}

.carousel-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-btn:hover::after {
  opacity: 1;
}

/* Timeline line animated gradient */
.timeline::before {
  background: linear-gradient(180deg, #6C5CE7, #6C5CE7, #00D4FF, #f59e0b, #6C5CE7) !important;
  background-size: 100% 200% !important;
  animation: timelineGradientFlow 6s ease infinite !important;
}

@keyframes timelineGradientFlow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

/* Cert card subtle inner glow */
.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.06) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-card {
  position: relative;
  overflow: hidden;
}

.cert-card:hover::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 231, 0.12) 0%, transparent 60%);
}

/* Enhanced project card top accent */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6C5CE7, #6C5CE7, #00D4FF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover::before {
  transform: scaleX(1);
}

/* ========================================
   CONTACT CARD ANIMATED ICONS
   ======================================== */

.contact-icon-wrap {
  position: relative;
}

.contact-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: conic-gradient(from var(--contact-angle, 0deg), transparent 60%, currentColor 80%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: contactIconSpin 4s linear infinite;
  filter: blur(3px);
}

@property --contact-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes contactIconSpin {
  from { --contact-angle: 0deg; }
  to { --contact-angle: 360deg; }
}

.card:hover .contact-icon-wrap::before {
  opacity: 0.5;
}

/* Contact card hover icon bounce */
.card:hover .contact-icon-wrap i {
  animation: contactIconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes contactIconBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.2) rotate(-5deg); }
  60% { transform: scale(1.15) rotate(3deg); }
  80% { transform: scale(1.05); }
}

/* ========================================
   ENHANCED CREDENTIAL BADGES - UNIQUE COLORS
   ======================================== */

.credential-badge:nth-child(1) {
  border-color: rgba(108, 92, 231, 0.3) !important;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.04)) !important;
}

.credential-badge:nth-child(1) i {
  color: #6C5CE7 !important;
  filter: drop-shadow(0 0 6px rgba(108, 92, 231, 0.5)) !important;
}

.credential-badge:nth-child(1):hover {
  border-color: #6C5CE7 !important;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.2), 0 4px 12px rgba(108, 92, 231, 0.15) !important;
}

.credential-badge:nth-child(2) {
  border-color: rgba(108, 92, 231, 0.3) !important;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.04)) !important;
}

.credential-badge:nth-child(2) i {
  color: #6C5CE7 !important;
  filter: drop-shadow(0 0 6px rgba(108, 92, 231, 0.5)) !important;
}

.credential-badge:nth-child(2):hover {
  border-color: #6C5CE7 !important;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.2), 0 4px 12px rgba(108, 92, 231, 0.15) !important;
}

.credential-badge:nth-child(3) {
  border-color: rgba(0, 212, 255, 0.3) !important;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(0, 212, 255, 0.04)) !important;
}

.credential-badge:nth-child(3) i {
  color: #00D4FF !important;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5)) !important;
}

.credential-badge:nth-child(3):hover {
  border-color: #00D4FF !important;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 4px 12px rgba(0, 212, 255, 0.15) !important;
}

/* ========================================
   ENHANCED ABOUT PAGE EXPERTISE CARDS
   ======================================== */

.card[style*="border-top: 3px solid var(--primary)"] h4,
.card [style*="color: var(--primary)"] {
  text-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

/* ========================================
   ENHANCED SECTION BADGE
   ======================================== */

.section-badge {
  position: relative;
  overflow: hidden;
}

.section-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* ========================================
   ENHANCED AVAILABILITY BADGE
   ======================================== */

.availability-badge {
  position: relative;
}

.availability-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.3), rgba(0, 212, 255, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(4px);
}

.availability-badge:hover::before {
  opacity: 1;
}

/* ========================================
   PREFERS 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;
  }

  .cursor-glow,
  .aurora-ribbon,
  .floating-icon,
  #particles-canvas {
    display: none !important;
  }

  body::after {
    display: none !important;
  }
}
