/* 
   ==========================================================================
   Ansen Portfolio - Multi-Theme Interactive Showcase
   ========================================================================== 
*/

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Bebas+Neue&family=Cinzel:wght@400;600&family=Cormorant+Garamond:ital,wght@0,300;0,600;1,400&family=Fira+Code:wght@400;500&family=LXGW+Wen+Kai+TC:wght@300;400;700&family=Noto+Sans+TC:wght@400;700;900&family=Space+Grotesk:wght@400;500;700&family=Special+Elite&display=swap');

:root {
  /* Colors - Sleek Retro-Modern Noir */
  --bg-primary: #0a0c0f;      /* Deep Midnight Blue/Charcoal */
  --bg-secondary: #101318;    /* Slightly lighter panel slate */
  --card-bg: #15181e;         /* Jigen Suit Dark Gray */
  --card-border: #2c323c;     /* Dark Charcoal line */
  --card-border-hover: #f2c84b; /* Zenigata Mustard/Gold Yellow */
  
  --text-primary: #f0f2f5;    /* Warm High-Contrast Cream */
  --text-secondary: #acb4c2;  /* Slate Silver-Gray */
  --text-muted: #5e6675;      /* Muted Steel Gray */
  
  /* Iconic Lupin Accents */
  --accent: #0c82e4;          /* Lupin Blue (Part IV) */
  --accent-hover: #f2c84b;    /* Zenigata Gold Yellow */
  --accent-light: rgba(12, 130, 228, 0.08);
  --cherry-pink: #e21a71;     /* Fujiko Pop Pink/Magenta */
  --cherry-pink-dark: #b81d24; /* Lupin Crimson Red (Classic) */
  --cherry-pink-light: rgba(226, 26, 113, 0.15);
  --magic-glow: 0 0 15px rgba(242, 200, 75, 0.45);
  --cherry-glow: 0 0 15px rgba(226, 26, 113, 0.6);
  
  /* Typography - Bold blocky & Typewriter */
  --font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-serif: 'Bebas Neue', 'Noto Sans TC', sans-serif;
  --font-script: 'Special Elite', 'Courier New', monospace;
  --font-mono: 'Fira Code', 'SF Mono', Consolas, monospace;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  
  /* Miscellaneous */
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --radius-pill: 99px;
  --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.45);
  --shadow-magical: 0 10px 30px rgba(242, 200, 75, 0.25);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   Multi-Theme Scoped Variables
   ========================================================================== */

.theme-clow {
  /* Colors - Pastel Magical Watercolor Clow Card Style */
  --bg-primary: #fcfaf2;        /* Parchment cream watercolor paper */
  --bg-secondary: #fdf3f5;      /* Very light warm pink tint */
  --card-bg: #ffffff;           /* Clean white canvas cards */
  --card-border: #e88d9c;       /* Muted Cherry Pink gold boundary */
  --card-border-hover: #dfb86c; /* Golden Magic */
  
  --text-primary: #4a3e3d;      /* Deep graphite charcoal instead of solid black */
  --text-secondary: #706261;    /* Slate-brown secondary */
  --text-muted: #9e8e8d;        /* Muted sand-brown */
  
  --accent: #dfb86c;            /* Clow Card Gold */
  --accent-hover: #e88d9c;      /* Clow Card Cherry Pink */
  --accent-light: rgba(223, 184, 108, 0.08);
  --cherry-pink: #fdf3f5;
  --cherry-pink-dark: #e88d9c;
  --cherry-pink-light: rgba(232, 141, 156, 0.12);
  --magic-glow: 0 0 15px rgba(223, 184, 108, 0.55);
  --cherry-glow: 0 0 15px rgba(232, 141, 156, 0.5);
  
  /* Typography - Delicate & Hand-Written */
  --font-family: 'LXGW Wen Kai TC', 'Noto Serif TC', serif;
  --font-serif: 'Cormorant Garamond', 'LXGW Wen Kai TC', serif;
  --font-script: 'Alex Brush', cursive;
  --font-mono: 'Cinzel', serif;
}

.theme-heist {
  /* Colors - Sleek Retro-Modern Noir */
  --bg-primary: #0a0c0f;      /* Deep Midnight Blue/Charcoal */
  --bg-secondary: #101318;    /* Slightly lighter panel slate */
  --card-bg: #15181e;         /* Jigen Suit Dark Gray */
  --card-border: #2c323c;     /* Dark Charcoal line */
  --card-border-hover: #f2c84b; /* Zenigata Mustard/Gold Yellow */
  
  --text-primary: #f0f2f5;    /* Warm High-Contrast Cream */
  --text-secondary: #acb4c2;  /* Slate Silver-Gray */
  --text-muted: #5e6675;      /* Muted Steel Gray */
  
  /* Iconic Lupin Accents */
  --accent: #0c82e4;          /* Lupin Blue */
  --accent-hover: #f2c84b;    /* Zenigata Gold Yellow */
  --accent-light: rgba(12, 130, 228, 0.08);
  --cherry-pink: #e21a71;     /* Fujiko Pop Pink/Magenta */
  --cherry-pink-dark: #b81d24; /* Lupin Crimson Red */
  --cherry-pink-light: rgba(226, 26, 113, 0.15);
  --magic-glow: 0 0 15px rgba(242, 200, 75, 0.45);
  --cherry-glow: 0 0 15px rgba(226, 26, 113, 0.6);
  
  /* Typography */
  --font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-serif: 'Bebas Neue', 'Noto Sans TC', sans-serif;
  --font-script: 'Special Elite', 'Courier New', monospace;
  --font-mono: 'Fira Code', 'SF Mono', Consolas, monospace;
}

.theme-modern {
  /* Colors - Clean Modern High-tech Blue & White Blueprint Theme */
  --bg-primary: #f4f8fc;        /* Ice white / light-blue base */
  --bg-secondary: #ffffff;      /* Pure white glass panels */
  --card-bg: #ffffff;           /* Pure white card backgrounds */
  --card-border: rgba(0, 102, 204, 0.15); /* Light tech blue border */
  --card-border-hover: #0066cc; /* Electric cobalt blue */
  
  --text-primary: #0f172a;      /* High contrast slate navy text */
  --text-secondary: #334155;    /* Medium slate gray text */
  --text-muted: #64748b;        /* Soft blue-gray muted text */
  
  --accent: #0066cc;            /* Electric tech blue */
  --accent-hover: #0052a3;      /* Darker cobalt blue */
  --accent-light: rgba(0, 102, 204, 0.08); /* Translucent ice wash */
  --cherry-pink: #00bfff;       /* Cyan / Deep sky blue */
  --cherry-pink-dark: #0080ff;  /* Standard sky blue */
  --cherry-pink-light: rgba(0, 191, 255, 0.1);
  --magic-glow: 0 4px 15px rgba(0, 102, 204, 0.18);
  --cherry-glow: 0 4px 15px rgba(0, 191, 255, 0.2);
  
  /* Typography - Clean Space Geeks */
  --font-family: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-serif: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-script: 'Fira Code', 'SF Mono', monospace;
  --font-mono: 'Fira Code', 'SF Mono', monospace;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Elegant Hand-Drawn Sketch & Halftone Grains */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(12, 130, 228, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(226, 26, 113, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(242, 200, 75, 0.05) 0%, transparent 50%),
    url('../images/bg_portfolio.png') no-repeat center center / cover;
  z-index: -2;
  pointer-events: none;
  opacity: 0.92;
}

/* Scoped Theme Backgrounds */
.theme-clow body::before {
  background: 
    radial-gradient(circle at 15% 15%, rgba(232, 141, 156, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(223, 184, 108, 0.1) 0%, transparent 45%),
    url('../images/clow/bg_portfolio.png') no-repeat center center / cover;
  opacity: 0.95;
  filter: none;
}

.theme-heist body::before {
  background: 
    radial-gradient(circle at 10% 20%, rgba(12, 130, 228, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(226, 26, 113, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(242, 200, 75, 0.05) 0%, transparent 50%),
    url('../images/heist/bg_portfolio.png') no-repeat center center / cover;
  opacity: 0.92;
  filter: none;
}

.theme-modern body::before {
  background: 
    linear-gradient(rgba(0, 102, 204, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(0, 102, 204, 0.04) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 15% 15%, rgba(0, 191, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0, 102, 204, 0.06) 0%, transparent 45%),
    #f4f8fc;
  opacity: 0.95;
  filter: none;
}

/* Interactive Floating Heist Playing Cards Animation Background */
.sakura-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1; /* Floats behind all content to avoid blocking text */
  overflow: hidden;
}

/* Redesigned to act as retro heist playing card particles */
.sakura-petal {
  position: absolute;
  background-color: #ffffff;
  border: 1.5px solid #13161a;
  border-radius: 4px;
  width: 20px;
  height: 28px;
  opacity: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  font-weight: bold;
  color: var(--cherry-pink-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transform-style: preserve-3d;
  animation: cardSpinFall 12s linear infinite;
}

/* Add custom back/card suit graphics inside particles in JS if needed, but styling here does wonders */
.sakura-petal::before {
  content: '♠'; /* Retro spade icon */
  font-size: 11px;
}

.sakura-petal:nth-child(even)::before {
  content: '♥'; /* Retro heart icon */
  color: var(--cherry-pink);
}

.sakura-petal:nth-child(3n)::before {
  content: '♦'; /* Retro diamond */
  color: var(--accent-hover);
}

/* Scoped Floating Particles by Theme */

/* --- Style 1: Clow Magic - Pastel Pink Sakura Petals --- */
.theme-clow .sakura-petal {
  background: linear-gradient(135deg, #fff5f6 0%, #ffd1d7 100%);
  border: none;
  border-radius: 150% 0 150% 150%; /* pure organic organic sakura petal */
  width: 14px;
  height: 20px;
  opacity: 0.75;
  box-shadow: 0 2px 8px rgba(232, 141, 156, 0.35);
  animation: clowPetalFall 14s linear infinite;
}

.theme-clow .sakura-petal::before {
  content: '' !important; /* Hide playing card suits */
}

@keyframes clowPetalFall {
  0% {
    top: -50px;
    transform: translateX(0) rotateY(0deg) rotateZ(0deg) scale(0.85);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    top: 105%;
    transform: translateX(180px) rotateY(360deg) rotateZ(180deg) scale(0.6);
    opacity: 0;
  }
}

/* --- Style 2: Heist Theme - Default Playing Cards --- */
.theme-heist .sakura-petal {
  background-color: #ffffff;
  border: 1.5px solid #13161a;
  border-radius: 4px;
  width: 20px;
  height: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: cardSpinFall 12s linear infinite;
}

/* --- Style 3: Modern Theme - Cyber Neon Nodes / Dots --- */
.theme-modern .sakura-petal {
  background: #3b82f6;
  border: none;
  border-radius: 50%; /* circular glowing dot nodes */
  width: 8px;
  height: 8px;
  opacity: 0.9;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
  animation: cyberNodeFall 10s linear infinite;
}

.theme-modern .sakura-petal::before {
  content: '' !important; /* Hide playing card suits */
}

@keyframes cyberNodeFall {
  0% {
    top: -50px;
    transform: translateY(0) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  90% {
    opacity: 0.95;
  }
  100% {
    top: 105%;
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
}

/* Elevate main content layers above background floating animations */
.section-header,
.grid,
.contact-card,
.footer {
  position: relative;
  z-index: 5;
}

@keyframes cardSpinFall {
  0% {
    top: -50px;
    transform: translateX(0) rotateY(0deg) rotateZ(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    top: 105%;
    transform: translateX(250px) rotateY(720deg) rotateZ(360deg) scale(0.7);
    opacity: 0;
  }
}


/* Skip to main content link for accessibility */
.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  background: var(--cherry-pink-dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-serif);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  z-index: 100;
  padding: 10px 16px;
  background: rgba(16, 19, 24, 0.85); /* Sleek translucent dark carbon */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(242, 200, 75, 0.4);
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 769px) {
  .theme-clow .navbar,
  .theme-heist .navbar,
  .theme-modern .navbar,
  .navbar {
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(92%, 1160px) !important;
    border-radius: var(--radius-pill) !important;
    padding: 12px 32px !important;
    border: 1.5px solid rgba(242, 200, 75, 0.4) !important;
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(242, 200, 75, 0.1) !important;
  }
  
  .theme-clow .navbar.scrolled,
  .theme-heist .navbar.scrolled,
  .theme-modern .navbar.scrolled,
  .navbar.scrolled {
    top: 12px !important;
    transform: translateX(-50%) scale(0.98) !important;
    background: rgba(16, 19, 24, 0.94) !important;
    border-color: var(--cherry-pink) !important;
    box-shadow: 
      0 12px 35px rgba(0, 0, 0, 0.65),
      0 0 25px rgba(226, 26, 113, 0.2) !important;
  }
  
  .theme-clow .navbar {
    border-color: rgba(223, 184, 108, 0.6) !important;
  }
  .theme-clow .navbar.scrolled {
    border-color: #e88d9c !important;
  }
  
  .theme-modern .navbar {
    border-color: rgba(0, 102, 204, 0.25) !important;
  }
  .theme-modern .navbar.scrolled {
    border-color: #0066cc !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    top: 15px;
  }
  .logo {
    font-size: 20px;
    letter-spacing: 1.5px;
    text-shadow: 1.5px 1.5px 0 rgba(184, 29, 36, 0.8);
  }
  .logo-dot {
    width: 7px;
    height: 7px;
  }
  .logo-dot::after {
    top: -8.5px;
    left: -4.5px;
    font-size: 13px;
  }
  .nav-menu {
    gap: 16px;
  }
  .nav-link {
    font-size: 15px;
  }
  .btn-nav-contact {
    padding: 8px 18px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .theme-clow .navbar,
  .theme-heist .navbar,
  .theme-modern .navbar,
  .navbar {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  }
  .logo {
    font-size: 16px;
    letter-spacing: 0.5px;
  }
  .logo-dot {
    display: none;
  }
  .nav-menu li:not(:last-child) {
    display: none !important;
  }
  .nav-menu {
    gap: 0;
  }
  .btn-nav-contact {
    padding: 6px 12px !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
  }
  h1.hero-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.25 !important;
    margin-bottom: var(--space-3) !important;
  }
  h1.hero-title span {
    display: inline !important;
    text-shadow: none !important;
  }
  h1.hero-title span::after {
    display: none !important;
  }
  .magic-circle-wrapper {
    width: 320px !important;
    height: 320px !important;
  }
  .hero-magical-panel {
    min-height: 320px !important;
  }
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-serif); /* Bebas Neue */
  font-size: 28px; /* Slightly larger for impact */
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-hover); /* Gold logo */
  text-shadow: 2px 2px 0 rgba(184, 29, 36, 0.8); /* Red comic offset shading */
  white-space: nowrap;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--cherry-pink);
  border-radius: 50%;
  display: inline-block;
  box-shadow: var(--cherry-glow);
  margin-left: 2px;
  position: relative;
}

.logo-dot::after {
  content: '⊕'; /* Sleek reticle target overlay */
  position: absolute;
  top: -9.5px;
  left: -4.5px;
  color: var(--cherry-pink);
  font-size: 16px;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 48px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
  letter-spacing: 1.5px;
  transition: var(--transition);
}

.nav-link::after {
  content: '♠'; /* Retro spade hover indicator */
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 12px;
  color: var(--cherry-pink);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent); /* Lupin Blue on hover */
}

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

.btn-nav-contact {
  padding: 10px 24px;
  background: var(--cherry-pink-light);
  border: 1.5px solid var(--cherry-pink);
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(226, 26, 113, 0.3);
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav-contact:hover {
  background: var(--cherry-pink);
  color: #fff;
  border-color: var(--cherry-pink);
  box-shadow: var(--cherry-glow);
  transform: translateY(-2px);
}


/* ==========================================================================
   Hero Section & Rotating Magical Seals
   ========================================================================== */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: transparent;
  pointer-events: none;
}

.hero-grid {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .hero-content {
    align-items: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-secondary);
  border: 1.5px solid var(--accent); /* Blue neon wire border */
  color: var(--accent-hover); /* Gold text */
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-script); /* Special Elite typewriter font */
  font-size: 13px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(12, 130, 228, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--cherry-pink);
  border-radius: 50%;
  animation: pulse-magic 1.5s infinite;
}

@keyframes pulse-magic {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: var(--cherry-glow); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

h1.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: 1px;
}

h1.hero-title span {
  color: var(--cherry-pink);
  position: relative;
  display: inline-block;
  text-shadow: 2.5px 2.5px 0 rgba(0, 0, 0, 0.8);
}

h1.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 10px;
  background: var(--cherry-pink-light);
  z-index: -1;
  border-radius: var(--radius-pill);
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 16px);
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: var(--space-6);
  font-weight: 400;
  line-height: 1.8;
  background: rgba(21, 24, 30, 0.82); /* Semi-transparent dark carbon slate */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(242, 200, 75, 0.25); /* Subtle glowing gold line */
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.hero-subtitle strong {
  color: var(--accent-hover); /* Highlights in mustard gold */
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.btn-primary {
  background: var(--cherry-pink-dark);
  color: #fff;
  border: 1.5px solid var(--cherry-pink-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--cherry-glow);
  background: #9a151b;
  border-color: #9a151b;
}

.btn-secondary {
  background: #1c2128;
  border: 1.5px solid var(--card-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #252b34;
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-magical);
}

/* ==========================================================================
   Hero Right Side: Mechanical Safe Lock & Tactical Radar
   ========================================================================== */

.hero-magical-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  width: 100%;
}

.magic-circle-wrapper {
  position: absolute;
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.magic-circle {
  width: 100%;
  height: 100%;
  animation: magicRotate 45s linear infinite;
  filter: drop-shadow(0 0 15px rgba(242, 200, 75, 0.3)); /* Glowing safe radar gold */
}

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

/* Redesigned to act as a sleek 2.5D Rimowa Steel Spy Briefcase Mockup */
.grimoire-book-container {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 290px;
  perspective: 1000px;
}

.grimoire-book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  cursor: pointer;
}

.grimoire-book:hover {
  transform: rotateY(-25deg) rotateX(15deg) translateY(-10px);
  box-shadow: 0 35px 70px rgba(12, 130, 228, 0.4);
}

/* Briefcase Steel Face */
.grimoire-book-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #cdd5df 0%, #7e8b9b 100%); /* Premium aluminum gradient */
  border: 4px solid #13161a;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 12px;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Vertical grooves for vintage spy metal suitcase */
.grimoire-book-cover::before {
  content: '';
  position: absolute;
  inset: 0 20px;
  border-left: 2px solid rgba(0,0,0,0.15);
  border-right: 2px solid rgba(0,0,0,0.15);
  box-shadow: 
    20px 0 0 rgba(0,0,0,0.15), -20px 0 0 rgba(0,0,0,0.15),
    inset 2px 0 0 rgba(255,255,255,0.4), inset -2px 0 0 rgba(255,255,255,0.4);
  pointer-events: none;
}

/* Mechanical combination lock dial in center */
.grimoire-book-seal {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #13161a;
  background: linear-gradient(135deg, #e5b13c 0%, #a67c1e 100%); /* Gold mechanical dial */
  display: grid;
  place-items: center;
  position: relative;
  z-index: 5;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.grimoire-book-seal::after {
  content: '⊕'; /* Lock Target reticle */
  color: #13161a;
  font-size: 32px;
  font-weight: bold;
  animation: pulse-star 2s infinite ease-in-out;
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(90deg); filter: drop-shadow(0 0 6px rgba(0,0,0,0.4)); }
}

.grimoire-book-title {
  font-family: var(--font-script); /* Typewriter typography */
  color: #13161a;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
  z-index: 5;
}

/* Steel Briefcase Metal Clasps/Locks that flip open on hover! */
.grimoire-book-wing-l, .grimoire-book-wing-r {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 35px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: var(--transition);
  opacity: 0.95;
  z-index: 10;
}

.grimoire-book-wing-l {
  left: -35px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><rect x="10" y="10" width="80" height="40" rx="10" fill="%23e5b13c" stroke="%2313161a" stroke-width="6"/><line x1="50" y1="10" x2="50" y2="50" stroke="%2313161a" stroke-width="8"/></svg>');
  transform: translateY(-50%) rotate(0deg);
  transform-origin: right center;
}

.grimoire-book-wing-r {
  right: -35px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><rect x="10" y="10" width="80" height="40" rx="10" fill="%23e5b13c" stroke="%2313161a" stroke-width="6"/><line x1="50" y1="10" x2="50" y2="50" stroke="%2313161a" stroke-width="8"/></svg>');
  transform: translateY(-50%) rotate(0deg);
  transform-origin: left center;
}

/* Snap open rotation effect when hovering the spy case! */
.grimoire-book:hover .grimoire-book-wing-l {
  transform: translateY(-50%) rotate(-45deg) scale(1.1);
  filter: drop-shadow(-5px 5px 5px rgba(0,0,0,0.5));
}

/* --- Heist Hero: Laser Vault Scanner Console --- */
.theme-heist .grimoire-book-container {
  width: min(360px, 78vw);
  height: 230px;
  perspective: none;
}

.theme-heist .grimoire-book {
  overflow: hidden;
  transform-style: flat;
  border-radius: 20px;
  cursor: pointer;
  animation: heistConsoleFloat 5s ease-in-out infinite;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(242, 200, 75, 0.16);
}

.theme-heist .grimoire-book:hover {
  animation: none;
  transform: translateY(-8px) scale(1.025);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.72), 0 0 28px rgba(242, 200, 75, 0.22);
}

.theme-heist .grimoire-book-cover {
  overflow: hidden;
  justify-content: space-between;
  padding: 24px 28px;
  border: 4px solid #13161a;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 200, 75, 0.18) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 50%, transparent 0 31%, rgba(242, 200, 75, 0.28) 32% 33%, transparent 34%),
    linear-gradient(90deg, rgba(242, 200, 75, 0.09) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #202733 0%, #121821 100%);
  box-shadow: inset 0 0 0 2px rgba(242, 200, 75, 0.16), inset 0 -28px 44px rgba(0, 0, 0, 0.36);
}

.theme-heist .grimoire-book-cover::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(242, 200, 75, 0.35);
  border-radius: 14px;
  box-shadow: none;
  pointer-events: none;
}

.theme-heist .grimoire-book-cover::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -38%;
  width: 32%;
  height: 140%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(242, 200, 75, 0.08) 20%, rgba(242, 200, 75, 0.38) 50%, rgba(242, 200, 75, 0.08) 80%, transparent 100%);
  transform: skewX(-16deg);
  animation: heistConsoleSweep 3.6s ease-in-out infinite;
}

.theme-heist .grimoire-book-title {
  position: relative;
  z-index: 6;
  align-self: flex-start;
  padding: 5px 14px;
  background: #e91e63;
  color: #ffffff;
  border: 2px solid #13161a;
  border-radius: 5px;
  font-family: var(--font-script);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #13161a;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.theme-heist #book-title-2 {
  align-self: flex-end;
}

.theme-heist .grimoire-book-seal {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 118px;
  border: 3px solid var(--accent-hover);
  background:
    conic-gradient(from 0deg, rgba(242, 200, 75, 0.1), rgba(242, 200, 75, 0.9), rgba(242, 200, 75, 0.1), rgba(242, 200, 75, 0.32)),
    radial-gradient(circle, #11151b 0 23%, #d9a927 24% 30%, #11151b 31% 44%, rgba(242, 200, 75, 0.28) 45% 47%, #11151b 48%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 24px rgba(242, 200, 75, 0.26), inset 0 0 18px rgba(0, 0, 0, 0.6);
  animation: heistVaultDial 8s linear infinite;
}

.theme-heist .grimoire-book-seal::after {
  content: '';
  width: 38px;
  height: 38px;
  border: 4px solid var(--accent-hover);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, #13161a 45% 55%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #13161a 45% 55%, transparent 56%);
  animation: none;
  box-shadow: inset 0 0 0 5px #d9a927;
}

.theme-heist .grimoire-book-wing-l,
.theme-heist .grimoire-book-wing-r {
  top: 50%;
  width: 58px;
  height: 86px;
  opacity: 1;
  background-image: none;
  border: 3px solid var(--accent-hover);
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 0 42%, #13161a 43% 57%, transparent 58%),
    linear-gradient(180deg, #f2c84b 0%, #d5a92e 100%);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.theme-heist .grimoire-book-wing-l {
  left: -18px;
  transform: translateY(-50%);
}

.theme-heist .grimoire-book-wing-r {
  right: -18px;
  transform: translateY(-50%);
}

.theme-heist .grimoire-book:hover .grimoire-book-wing-l {
  transform: translateY(-50%) translateX(-18px);
  filter: drop-shadow(-6px 0 12px rgba(242, 200, 75, 0.24));
}

.theme-heist .grimoire-book:hover .grimoire-book-wing-r {
  transform: translateY(-50%) translateX(18px);
  filter: drop-shadow(6px 0 12px rgba(242, 200, 75, 0.24));
}

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

@keyframes heistConsoleSweep {
  0%, 24% { left: -38%; opacity: 0; }
  34% { opacity: 1; }
  72% { left: 106%; opacity: 0.9; }
  100% { left: 106%; opacity: 0; }
}

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

@media (max-width: 768px) {
  .theme-heist .grimoire-book-container {
    width: min(330px, 76vw);
    height: 214px;
  }
}

.modern-hero-panel {
  display: none;
}

.theme-modern .magic-circle-wrapper,
.theme-modern .grimoire-book-container {
  display: none;
}

.theme-modern .modern-hero-panel {
  display: block;
  width: min(100%, 430px);
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.modern-hero-panel .panel-eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.modern-hero-panel h2 {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.modern-hero-panel p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.panel-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 14px;
  background: rgba(0, 102, 204, 0.06);
  border: 1px solid rgba(0, 102, 204, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.panel-flow i {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: 0 0 auto;
}

.panel-stack {
  display: grid;
  gap: 12px;
}

.panel-stack div {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 102, 204, 0.12);
}

.panel-stack dt {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 4px;
}

.panel-stack dd {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .theme-modern .modern-hero-panel {
    width: min(100%, 520px);
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .theme-modern .modern-hero-panel {
    padding: 22px;
  }

  .panel-flow {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-flow i {
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   Book/Briefcase Scoped Theme Overrides
   ========================================================================== */

/* --- Clow Magic Grimoire Book --- */
.theme-clow .grimoire-book {
  box-shadow: 0 15px 45px rgba(232, 141, 156, 0.4);
  border-radius: 12px;
}

.theme-clow .grimoire-book:hover {
  transform: rotateY(-22deg) rotateX(12deg) translateY(-10px);
  box-shadow: 0 25px 55px rgba(223, 184, 108, 0.55);
}

.theme-clow .grimoire-book-cover {
  background: linear-gradient(135deg, #e88d9c 0%, #b81d24 100%);
  border: 3.5px solid var(--accent); /* Magic gold */
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

/* Gold elegant inner margin borders instead of metal groves */
.theme-clow .grimoire-book-cover::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid #dfb86c;
  border-radius: 8px;
  box-shadow: none;
}

.theme-clow .grimoire-book-seal {
  background: linear-gradient(135deg, #dfb86c 0%, #c49942 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 18px rgba(223, 184, 108, 0.6);
  width: 90px;
  height: 90px;
}

.theme-clow .grimoire-book-seal::after {
  content: '★'; /* Star seal emblem */
  color: #ffffff;
  font-size: 34px;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.theme-clow .grimoire-book-title {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 3px;
}

/* Beautiful White Angel Wings as wing clasps */
.theme-clow .grimoire-book-wing-l {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 80"><path d="M90 40 C60 10, 10 30, 20 60 C35 70, 70 65, 90 40" fill="%23ffffff" stroke="%23dfb86c" stroke-width="2"/><path d="M80 40 C60 20, 25 35, 30 55" fill="none" stroke="%23dfb86c" stroke-width="1.5"/></svg>');
  width: 72px;
  height: 58px;
  left: -48px;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: right center;
  filter: drop-shadow(-2px 4px 6px rgba(0,0,0,0.15));
}

.theme-clow .grimoire-book-wing-r {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 80"><path d="M10 40 C40 10, 90 30, 80 60 C65 70, 30 65, 10 40" fill="%23ffffff" stroke="%23dfb86c" stroke-width="2"/><path d="M20 40 C40 20, 75 35, 70 55" fill="none" stroke="%23dfb86c" stroke-width="1.5"/></svg>');
  width: 72px;
  height: 58px;
  right: -48px;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: left center;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.15));
}

.theme-clow .grimoire-book:hover .grimoire-book-wing-l {
  transform: translateY(-50%) rotate(-35deg) scale(1.15);
  filter: drop-shadow(-5px 8px 10px rgba(232, 141, 156, 0.35));
}

.theme-clow .grimoire-book:hover .grimoire-book-wing-r {
  transform: translateY(-50%) rotate(35deg) scale(1.15);
  filter: drop-shadow(5px 8px 10px rgba(232, 141, 156, 0.35));
}


/* --- Modern Cyber Holographic Datapad --- */
.theme-modern .grimoire-book {
  box-shadow: 0 15px 40px rgba(0, 102, 204, 0.12);
  border-radius: 12px;
}

.theme-modern .grimoire-book:hover {
  transform: rotateY(-20deg) rotateX(10deg) translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 102, 204, 0.25);
}

.theme-modern .grimoire-book-cover {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid #0066cc;
  box-shadow: inset 0 0 20px rgba(0, 102, 204, 0.15);
  border-radius: 12px;
}

/* Dashed cyber coordinates border */
.theme-modern .grimoire-book-cover::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(0, 102, 204, 0.3);
  border-radius: 8px;
  box-shadow: none;
}

/* Rotating glowing target dial */
.theme-modern .grimoire-book-seal {
  background: transparent;
  border: 3px dashed #0066cc;
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.2);
  width: 90px;
  height: 90px;
  animation: cyberDialSpin 10s linear infinite;
}

.theme-modern .grimoire-book-seal::after {
  content: '01';
  color: #0066cc;
  font-size: 24px;
  font-family: var(--font-mono);
  font-weight: bold;
  animation: pulse-star 1.5s infinite ease-in-out;
}

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

.theme-modern .grimoire-book-title {
  color: #0066cc;
  text-shadow: none;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 4px;
}

/* Sleek Cyber Floating Scanner brackets */
.theme-modern .grimoire-book-wing-l {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><path d="M90 10 L40 10 L20 30 L40 50 L90 50" fill="none" stroke="%230066cc" stroke-width="4"/><line x1="60" y1="20" x2="60" y2="40" stroke="%230066cc" stroke-width="4"/></svg>');
  width: 52px;
  height: 32px;
  left: -28px;
  transform: translateY(-50%) rotate(0deg) scale(1);
  transform-origin: right center;
}

.theme-modern .grimoire-book-wing-r {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 60"><path d="M10 10 L60 10 L80 30 L60 50 L10 50" fill="none" stroke="%230066cc" stroke-width="4"/><line x1="40" y1="20" x2="40" y2="40" stroke="%230066cc" stroke-width="4"/></svg>');
  width: 52px;
  height: 32px;
  right: -28px;
  transform: translateY(-50%) rotate(0deg) scale(1);
  transform-origin: left center;
}

.theme-modern .grimoire-book:hover .grimoire-book-wing-l {
  transform: translateY(-50%) translateX(-12px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.4));
}

.theme-modern .grimoire-book:hover .grimoire-book-wing-r {
  transform: translateY(-50%) translateX(12px) scale(1.08);
  filter: drop-shadow(0 0 8px rgba(0, 102, 204, 0.4));
}

/* ==========================================================================
   Project Grid Section & Mystic Card Designs
   ========================================================================== */

.projects-section {
  padding: var(--space-8) 0;
  background: transparent;
  border-top: 2px dashed rgba(242, 200, 75, 0.2); /* Dashed tactical radar border */
  border-bottom: 2px dashed rgba(242, 200, 75, 0.2);
  position: relative;
  scroll-margin-top: 110px;
}

.section-container {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
}

/* ==========================================================================
   Professional Proof Sections
   ========================================================================== */

.trust-section,
.services-section {
  padding: 72px 0;
  position: relative;
  scroll-margin-top: 110px;
}

.trust-section {
  border-top: 1px solid rgba(0, 102, 204, 0.12);
  border-bottom: 1px solid rgba(0, 102, 204, 0.12);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.trust-copy {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-premium);
}

.trust-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.trust-copy p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.trust-metrics div,
.service-card,
.case-study-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
}

.trust-metrics div {
  padding: 24px;
}

.trust-metrics dt {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.trust-metrics dd {
  color: var(--text-secondary);
  font-size: 14px;
}

.section-header-compact {
  margin-bottom: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  padding: 24px;
}

.service-card > i {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h3,
.case-study-card h3 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.service-card p,
.case-study-card p,
.case-study-card li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}

.service-card span {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 40px;
}

.case-study-card {
  padding: 28px;
}

.case-study-meta {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-study-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px 18px;
}

.case-study-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 800;
}

.case-study-card a:hover {
  color: var(--accent-hover);
}

.case-study-card a i {
  width: 16px;
  height: 16px;
}

@media (max-width: 992px) {
  .trust-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .trust-section,
  .services-section {
    padding: 48px 0;
  }

  .trust-copy,
  .trust-metrics div,
  .service-card,
  .case-study-card {
    padding: 20px;
  }

  .trust-metrics,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-7);
  background: rgba(16, 19, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.section-kicker {
  font-family: var(--font-script); /* Special Elite */
  font-size: 16px;
  font-weight: 700;
  color: var(--cherry-pink); /* Pop Magenta */
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-2);
}

.section-title {
  font-family: var(--font-serif); /* Bebas Neue */
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* Filtering Magic Controls - Sleek Agent Console */
.portfolio-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: 0 auto var(--space-6) auto;
  padding: 8px;
  background: #111418;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  max-width: max-content;
  z-index: 10;
  position: relative;
}

@media (max-width: 768px) {
  .portfolio-filters {
    border-radius: var(--radius-lg);
    max-width: 100%;
    width: 100%;
    padding: var(--space-2);
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 20px;
  font-family: var(--font-serif); /* Bebas Neue */
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 1px;
}

.filter-btn:hover {
  color: var(--accent-hover);
  background: #1a1e24;
}

.filter-btn.active {
  color: #000;
  background: var(--accent-hover); /* Gold highlighted active button */
  border-color: var(--accent-hover);
  box-shadow: 0 4px 15px rgba(242, 200, 75, 0.4);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 40px;
}

@media (max-width: 400px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Sleek Comic Block Dossier 3D Flip Layout */
.card {
  height: 480px;
  perspective: 1000px;
  background: transparent;
  border: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.95); /* Retro 2.5D solid block shadow */
  border: 3.5px solid #13161a; /* Strong manga pen-ink border! */
  transition: var(--transition);
}

/* --- Clow Magic Card Overrides --- */
.theme-clow .card-front,
.theme-clow .card-back {
  box-shadow: 0 8px 22px rgba(223, 184, 108, 0.28);
  border: 2px solid var(--card-border);
}

.theme-clow .card:hover .card-front,
.theme-clow .card:hover .card-back {
  box-shadow: 0 14px 32px rgba(232, 141, 156, 0.45);
  border-color: var(--card-border-hover);
}

/* --- Modern Cyber Card Overrides --- */
.theme-modern .card-front,
.theme-modern .card-back {
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.08);
  border: 1.5px solid var(--card-border);
}

.theme-modern .card:hover .card-front,
.theme-modern .card:hover .card-back {
  box-shadow: 0 0 25px rgba(0, 102, 204, 0.2);
  border-color: var(--card-border-hover);
}

/* --- Heist Dossier Drawer Interaction --- */
.theme-heist .card {
  height: 520px;
  perspective: none;
}

.theme-heist .card-inner {
  overflow: hidden;
  transform-style: flat;
  background:
    linear-gradient(90deg, rgba(242, 200, 75, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #191d24 0%, #11151b 100%);
  border: 3.5px solid #13161a;
  border-radius: 12px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.95);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
}

.theme-heist .card:hover .card-inner,
.theme-heist .card:focus-within .card-inner {
  transform: translateY(-5px);
  border-color: var(--accent-hover);
  box-shadow: 10px 13px 0 rgba(0, 0, 0, 0.95), 0 0 24px rgba(242, 200, 75, 0.18);
}

.theme-heist .card-inner::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: -18%;
  left: 0;
  width: 100%;
  height: 36%;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(242, 200, 75, 0.18) 46%, rgba(242, 200, 75, 0.52) 50%, rgba(242, 200, 75, 0.16) 54%, transparent 100%);
  mix-blend-mode: screen;
}

.theme-heist .card:hover .card-inner::before,
.theme-heist .card:focus-within .card-inner::before {
  animation: heistDossierScan 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.theme-heist .card-front,
.theme-heist .card-back {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  backface-visibility: visible;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.theme-heist .card-front {
  z-index: 1;
}

.theme-heist .card-front::after {
  content: '';
  position: absolute;
  z-index: 4;
  left: 0;
  top: 18%;
  width: 100%;
  height: 42px;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(242, 200, 75, 0.18) 46%, rgba(242, 200, 75, 0.52) 50%, rgba(242, 200, 75, 0.14) 54%, transparent 100%);
  mix-blend-mode: screen;
  animation: heistIdleScan 4.8s ease-in-out infinite;
}

.theme-heist .card-back {
  z-index: 3;
  top: auto;
  min-height: 68%;
  transform: translateY(calc(100% - 118px));
  background:
    linear-gradient(180deg, #b81d24 0%, #7e1217 100%);
  border-top: 3px solid var(--accent-hover);
  box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-heist .card:hover .card-back,
.theme-heist .card:focus-within .card-back {
  transform: translateY(0);
}

.theme-heist .card-back::before {
  inset: 14px;
  border-color: rgba(242, 200, 75, 0.34);
}

.theme-heist .card-back-header {
  margin-bottom: var(--space-2);
}

.theme-heist .card-back-header::after {
  content: 'SCAN LOCK';
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 10px;
  border: 1px solid var(--accent-hover);
  background: #9d161c;
  color: var(--accent-hover);
  font-family: var(--font-script);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.theme-heist .card-back-title {
  font-size: 22px;
}

.theme-heist .card-desc {
  font-size: 13.5px;
  line-height: 1.58;
  margin-bottom: var(--space-3);
}

.theme-heist .card-meta {
  margin-bottom: var(--space-4);
}

@keyframes heistDossierScan {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(360%);
  }
}

@keyframes heistIdleScan {
  0%, 34%, 100% {
    opacity: 0;
    transform: translateY(0);
  }

  42% {
    opacity: 0.9;
  }

  68% {
    opacity: 0;
    transform: translateY(265px);
  }
}

@media (hover: none), (max-width: 768px) {
  .theme-heist .grid {
    gap: 24px;
  }

  .theme-heist .card {
    height: auto;
  }

  .theme-heist .card-inner {
    display: block;
    min-height: 0;
  }

  .theme-heist .card-front,
  .theme-heist .card-back {
    position: relative;
    inset: auto;
  }

  .theme-heist .card-front {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 170px;
    padding: 14px;
  }

  .theme-heist .card-tag {
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 4px 9px;
    font-size: 10px;
  }

  .theme-heist .card-img-wrapper {
    width: 116px;
    aspect-ratio: 1 / 1;
    margin: 28px 0 0;
  }

  .theme-heist .card-front-body {
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 26px 0 0;
    text-align: left;
  }

  .theme-heist .card-title {
    font-size: 22px;
    line-height: 1.08;
    margin-bottom: 6px;
  }

  .theme-heist .card-subtitle {
    font-size: 11px;
    line-height: 1.4;
  }

  .theme-heist .card-back {
    min-height: 0;
    transform: none;
    box-shadow: none;
    padding: 16px;
  }

  .theme-heist .card:hover .card-inner,
  .theme-heist .card:focus-within .card-inner {
    transform: none;
  }

  .theme-heist .card-front-footer {
    display: none;
  }

  .theme-heist .card-back-header {
    margin-bottom: 8px;
    text-align: left;
  }

  .theme-heist .card-back-header::after {
    display: none;
  }

  .theme-heist .card-back-title {
    font-size: 18px;
    line-height: 1.1;
  }

  .theme-heist .card-back-divider {
    margin: 6px 0;
  }

  .theme-heist .card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .theme-heist .card-meta {
    gap: 5px;
    margin-bottom: 12px;
  }

  .theme-heist .tech-tag {
    padding: 3px 8px;
    font-size: 10px;
  }

  .theme-heist .tech-tag:nth-child(n+4) {
    display: none;
  }

  .theme-heist .card-back-footer {
    align-items: center;
    gap: 10px;
    padding-top: 10px;
  }

  .theme-heist .card-btn {
    font-size: 13px;
    line-height: 1.2;
  }

  .theme-heist .card-btn-more {
    display: none;
  }
}

/* FRONT Side of Heist Card */
.card-front {
  background: #191d24; /* Sleek charcoal card body */
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.theme-clow .card-front {
  background: linear-gradient(135deg, #fcfaf2 0%, #ffd1d7 100%);
}

.theme-modern .card-front {
  background: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card:hover .card-front {
  box-shadow: 8px 8px 0 var(--accent); /* Shifts to blue offset on hover! */
}

.theme-clow .card:hover .card-front {
  box-shadow: 0 14px 32px rgba(232, 141, 156, 0.45);
}

.theme-modern .card:hover .card-front {
  box-shadow: 0 0 25px rgba(0, 102, 204, 0.2);
}

.card-img-wrapper {
  aspect-ratio: 1 / 1;
  width: calc(100% - 20px);
  margin: 10px auto 0 auto;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background-color: #0d0f12;
  border: 2px solid #13161a; /* Thick manga line */
  transition: var(--transition);
}

.theme-clow .card-img-wrapper {
  border: 1.5px solid var(--card-border);
  background-color: #fcfaf2;
}

.theme-modern .card-img-wrapper {
  border: 1px solid rgba(0, 102, 204, 0.15) !important;
  background-color: #ffffff !important;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 4px 12px;
  background: var(--cherry-pink); /* Bold hot pink spy badge */
  border: 1.5px solid #13161a;
  border-radius: var(--radius-sm); /* Blocky card tags */
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-front-body {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-serif); /* Bebas Neue */
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.card-subtitle {
  font-family: var(--font-script); /* Typewriter subtag */
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-hover);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.card-front-footer {
  width: 100%;
  text-align: center;
  border-top: 2px dashed #2c323c;
  padding-top: var(--space-2);
  margin-top: var(--space-2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.card-prompt-hint {
  font-family: var(--font-script);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* BACK Side of Heist Card (Confidential Dossier) */
.card-back {
  background: linear-gradient(135deg, #b81d24 0%, #7e1217 100%); /* Crimson classified envelope */
  transform: rotateY(180deg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  transition: var(--transition);
}

.theme-clow .card-back {
  background: linear-gradient(135deg, #e88d9c 0%, #a24b5a 100%);
  color: #fffaf0;
}

.theme-modern .card-back {
  background: linear-gradient(135deg, #0b0f17 0%, #05070a 100%);
  color: #f8fafc;
}

.card-back::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  pointer-events: none;
  transition: var(--transition);
}

.theme-clow .card-back::before {
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
}

.theme-modern .card-back::before {
  border: 1px dashed rgba(255, 255, 255, 0.4);
}

.card-back-header {
  text-align: center;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 2;
}

.card-back-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-hover); /* Gold title on red back */
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.9);
  letter-spacing: 1.5px;
  transition: var(--transition);
}

.theme-clow .card-back-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(232, 141, 156, 0.6);
}

.theme-modern .card-back-title {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.card-back-divider {
  content: '';
  height: 2px;
  width: 80px;
  background: var(--accent-hover);
  margin: 6px auto;
  position: relative;
  transition: var(--transition);
}

.theme-clow .card-back-divider {
  background: #dfb86c;
}

.theme-modern .card-back-divider {
  background: rgba(255, 255, 255, 0.6);
}

.card-back-divider::after {
  content: 'CONFIDENTIAL';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-hover);
  font-family: var(--font-script);
  font-size: 8px;
  font-weight: bold;
  background: #9d161c;
  padding: 0 6px;
  border: 1px solid var(--accent-hover);
  transition: var(--transition);
}

.theme-clow .card-back-divider::after {
  content: '★ MYSTIC CARD ★';
  color: #ffffff;
  background: #b54f60;
  border-color: #dfb86c;
  font-family: var(--font-mono);
}

.theme-modern .card-back-divider::after {
  content: 'DECRYPTED';
  color: #ffffff;
  background: #0066cc;
  border-color: #ffffff;
  font-family: var(--font-mono);
}


.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #fcebeb; /* White-cream text */
  margin-bottom: var(--space-4);
  flex-grow: 1;
  text-align: justify;
  position: relative;
  z-index: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 2;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-sm); /* Blocky tags */
  border: 1.5px solid var(--accent-hover); /* Gold-outlined tags */
}

.card-back-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 2px dashed rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 2;
}

.card-btn {
  font-family: var(--font-serif); /* Bebas Neue */
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}

.card-btn-demo {
  color: var(--accent-hover); /* Gold */
}

.card-btn-demo:hover {
  color: #fff;
  text-shadow: var(--magic-glow);
}

.card-btn-more {
  color: #f7e6e6;
}


/* Card Filtering Animation Classes */
.card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.4s ease;
}

.card.fade-out {
  opacity: 0;
  transform: scale(0.9) translateY(15px);
  pointer-events: none;
}

.card.hidden {
  display: none !important;
}

.card.fade-in {
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   About Section & Constellation Star-Path Timeline
   ========================================================================== */

.about-section {
  padding: 100px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 10;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(16, 19, 24, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(242, 200, 75, 0.15); /* Sleek gold border */
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.about-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
}

.about-text strong {
  color: var(--accent-hover); /* Gold highlighted bold text */
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 480px) {
  .about-highlights-grid {
    grid-template-columns: 1fr;
  }
}

.about-highlight-box {
  background: #15181e; /* Sleek charcoal highlights box */
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--card-border);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.85); /* Comic 2.5D shadow */
  transition: var(--transition);
}

.about-highlight-box:hover {
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--accent); /* Shifts to blue offset on hover! */
}

.about-highlight-box h4 {
  color: var(--accent-hover); /* Gold headers */
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.about-highlight-box p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

/* Timeline: Heist Constellation Path (奇盜特務時程軌跡) */
.timeline-container {
  margin-top: 0px;
  background: rgba(16, 19, 24, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(12, 130, 228, 0.15); /* Sleek blue border */
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
  .about-content, .timeline-container {
    padding: 20px !important;
  }
}

.timeline-title-main {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px dashed rgba(242, 200, 75, 0.35); /* Gold dashed divider */
  padding-bottom: 8px;
  letter-spacing: 1px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--cherry-pink) 50%, transparent 50%); /* Neon hot pink laser beam dashed line */
  background-size: 2px 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -29.5px;
  top: 5px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: var(--transition);
}

.timeline-dot::after {
  content: '⊕'; /* Target reticle instead of star star */
  color: var(--cherry-pink);
  font-size: 18px;
  font-weight: bold;
  text-shadow: var(--cherry-glow);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot::after {
  color: var(--accent-hover); /* Shifts to gold target */
  transform: scale(1.3) rotate(90deg);
  text-shadow: var(--magic-glow);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.timeline-time {
  font-family: var(--font-script); /* Typewriter code timestamp */
  font-size: 11px;
  font-weight: 500;
  color: var(--cherry-pink);
  background: var(--cherry-pink-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cherry-pink);
}

.timeline-org {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

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


/* ==========================================================================
   Credentials: Magic Seals (魔法符印)
   ========================================================================== */

.badge-glow-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 900;
  margin-top: 36px;
  margin-bottom: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px dashed rgba(242, 200, 75, 0.35);
  padding-bottom: 8px;
  letter-spacing: 1px;
}

.badge-glow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.badge-glow-card {
  background: #15181e; /* Sleek charcoal badge panels */
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.8);
}

.badge-glow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cherry-pink-light) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.badge-glow-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent); /* Glow blue border on hover */
  box-shadow: 6px 6px 0 var(--accent);
}

.badge-glow-card:hover::before {
  opacity: 1;
}

.badge-icon-wrapper {
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d0f12;
  border: 1.5px solid var(--card-border);
  display: grid;
  place-items: center;
  color: var(--accent-hover);
  transition: var(--transition);
}

.badge-glow-card:hover .badge-icon-wrapper {
  color: #ffffff;
  background: var(--cherry-pink);
  border-color: var(--cherry-pink);
  box-shadow: var(--cherry-glow);
}

.badge-icon-wrapper svg, .badge-icon-wrapper i {
  width: 18px;
  height: 18px;
}

.badge-info {
  flex-grow: 1;
}

.badge-info h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.badge-info .badge-type {
  font-family: var(--font-script);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-hover);
  margin-bottom: 4px;
  display: block;
}

.badge-info p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Contact Section: Encrypted Message Card (特務機密發報表單)
   ========================================================================== */

.contact-section {
  padding: var(--space-8) 0;
  position: relative;
  background: transparent;
  scroll-margin-top: 110px;
}

.contact-card {
  background: #15181e; /* Deep tactical charcoal slate */
  border: 3px solid #13161a;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 
    8px 8px 0 rgba(0, 0, 0, 0.95), 
    inset 0 0 40px rgba(242, 200, 75, 0.05);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

/* Double border frame representing spy document folder */
.contact-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px dashed rgba(242, 200, 75, 0.25);
  border-radius: 10px;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--space-5);
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.field-full {
  grid-column: 1 / -1;
}

.contact-card label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  min-height: 46px;
  background: #0d0f12; /* Terminal dark inputs */
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm); /* Blocky inputs */
  color: var(--text-primary);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14.5px;
  transition: var(--transition);
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--accent); /* Focus to Lupin Blue neon wire! */
  box-shadow: 0 0 12px rgba(12, 130, 228, 0.45);
  background: #0d0f12;
}

.contact-card textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-footer {
  margin-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.form-note {
  font-family: var(--font-script);
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.5;
}

/* Send Wax Seal Button */
.contact-card .btn-primary {
  position: relative;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font-serif);
}

.form-status {
  grid-column: 1 / -1;
  font-family: var(--font-script);
  font-size: 13.5px;
  font-weight: 700;
  min-height: 20px;
  text-align: center;
  margin-top: var(--space-2);
}

/* ==========================================================================
   Footer & Tactical Seals
   ========================================================================== */

.footer {
  padding: var(--space-6) 0;
  border-top: 2px dashed rgba(242, 200, 75, 0.25);
  background: #0a0c0f; /* Deep dark carbon footer */
  color: var(--text-muted);
  font-size: 13px;
}

.footer-inner {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Style Switcher Panel (Sticky Floating Glassmorphic Menu)
   ========================================================================== */
.style-switcher-panel {
  position: fixed;
  top: 55%;
  right: 20px;
  left: auto;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.switcher-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--card-border-hover);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-premium), 0 0 10px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.theme-clow .switcher-toggle-btn {
  border-color: #dfb86c;
  background: #fffaf4;
  color: #e88d9c;
  box-shadow: 0 4px 15px rgba(223, 184, 108, 0.35);
}

.theme-modern .switcher-toggle-btn {
  border-color: #0066cc;
  background: rgba(255, 255, 255, 0.85);
  color: #0066cc;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.15);
}

.switcher-toggle-btn:hover {
  transform: scale(1.1) rotate(45deg);
  border-color: var(--cherry-pink-dark);
  box-shadow: var(--shadow-premium), var(--cherry-glow);
}

.theme-clow .switcher-toggle-btn:hover {
  border-color: #e88d9c;
  box-shadow: 0 6px 20px rgba(232, 141, 156, 0.45);
}

.theme-modern .switcher-toggle-btn:hover {
  border-color: #0052a3;
  color: #0052a3;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.switcher-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--card-border);
  padding: 10px;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-clow .switcher-options {
  background: #fffaf4;
  border-color: #e88d9c;
}

.theme-modern .switcher-options {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 102, 204, 0.2);
}

.style-switcher-panel.active .switcher-options {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 600px) {
  .style-switcher-panel {
    right: 12px;
    bottom: 80px;
    top: auto;
    left: auto;
    transform: none;
  }
  .switcher-options {
    transform: translateX(15px);
  }
  .style-switcher-panel.active .switcher-options {
    transform: translateX(0);
  }
}

.switcher-opt {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.switcher-opt:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-color: rgba(242, 200, 75, 0.25);
  transform: translateX(-4px);
}

.theme-clow .switcher-opt:hover {
  background: rgba(232, 141, 156, 0.08);
  color: #e88d9c;
  border-color: rgba(232, 141, 156, 0.3);
}

.theme-modern .switcher-opt:hover {
  background: rgba(0, 102, 204, 0.08);
  color: #0066cc;
  border-color: rgba(0, 102, 204, 0.2);
}

.switcher-opt.active {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-color: var(--card-border-hover);
  box-shadow: 0 0 10px rgba(242, 200, 75, 0.2);
}

.theme-clow .switcher-opt.active {
  background: rgba(232, 141, 156, 0.1);
  color: #e88d9c;
  border-color: #dfb86c;
}

.theme-modern .switcher-opt.active {
  background: rgba(0, 102, 204, 0.12);
  color: #0066cc;
  border-color: #0066cc;
}


/* ==========================================================================
   Scoped Theme Contact Form Overrides
   ========================================================================== */

/* --- Style 1: Clow Magic Parchment Inputs --- */
.theme-clow .contact-card input,
.theme-clow .contact-card textarea {
  background: #fffaf4;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.theme-clow .contact-card input:focus,
.theme-clow .contact-card textarea:focus {
  background: #ffffff;
  border-color: #dfb86c;
  box-shadow: 0 0 12px rgba(223, 184, 108, 0.45);
}

.theme-clow .contact-card .btn-primary {
  background: linear-gradient(135deg, #dfb86c 0%, #c49942 100%);
  border-color: #dfb86c;
  box-shadow: 0 4px 15px rgba(223, 184, 108, 0.35);
  color: #ffffff;
}

.theme-clow .contact-card .btn-primary:hover {
  background: linear-gradient(135deg, #c49942 0%, #a67c1e 100%);
  box-shadow: 0 6px 20px rgba(223, 184, 108, 0.5);
}

/* --- Style 3: Modern Cyber Transparent Inputs --- */
.theme-modern .contact-card input,
.theme-modern .contact-card textarea {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

.theme-modern .contact-card input:focus,
.theme-modern .contact-card textarea:focus {
  background: #ffffff !important;
  border-color: #0066cc !important;
  box-shadow: 0 0 10px rgba(0, 102, 204, 0.15) !important;
}

.theme-modern .contact-card .btn-primary {
  background: #0066cc !important;
  border: 1.5px solid #0066cc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2) !important;
}

.theme-modern .contact-card .btn-primary:hover {
  background: #0052a3 !important;
  border-color: #0052a3 !important;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.3) !important;
}


/* ==========================================================================
   Scoped Theme Text Readability Overlays (Anti-Homogenization to Black)
   ========================================================================== */

/* --- Style 1: Clow Magic - Soft Warm Pastel Pink/Ivory Watercolor Glass --- */
.theme-clow .navbar {
  background: rgba(252, 250, 242, 0.88) !important; /* Translucent Ivory Parchment */
  border-color: rgba(223, 184, 108, 0.6) !important; /* Magic Gold wire border */
  box-shadow: 
    0 10px 25px rgba(223, 184, 108, 0.15),
    0 0 15px rgba(223, 184, 108, 0.08) !important;
}

.theme-clow .navbar.scrolled {
  background: rgba(252, 250, 242, 0.88) !important; /* Keep ivory parchment stable on scroll */
  border-color: #e88d9c !important;
  box-shadow: 
    0 12px 30px rgba(232, 141, 156, 0.2),
    0 0 20px rgba(232, 141, 156, 0.1) !important;
}

.theme-clow .hero-subtitle {
  background: rgba(253, 243, 245, 0.85); /* Warm light pink glass subtitle cover */
  border-color: rgba(223, 184, 108, 0.4);
  box-shadow: 0 10px 25px rgba(223, 184, 108, 0.12);
  color: #4a3e3d; /* Soft charcoal text */
}

.theme-clow .section-header {
  background: rgba(253, 243, 245, 0.85); /* Soft pink section title panel */
  border-color: rgba(223, 184, 108, 0.4);
  box-shadow: 0 8px 20px rgba(223, 184, 108, 0.1);
  color: #4a3e3d;
}

.theme-clow .about-content {
  background: rgba(253, 243, 245, 0.82); /* Soft ivory pink about text back */
  border-color: rgba(223, 184, 108, 0.4);
  box-shadow: 0 10px 30px rgba(223, 184, 108, 0.08);
  color: #4a3e3d;
}

.theme-clow .timeline-container {
  background: rgba(253, 243, 245, 0.82); /* Soft ivory pink experience panel */
  border-color: rgba(223, 184, 108, 0.4);
  box-shadow: 0 10px 30px rgba(223, 184, 108, 0.08);
  color: #4a3e3d;
}

/* Timeline specific line coloring in clow card theme */
.theme-clow .timeline-container::before {
  background-image: linear-gradient(to bottom, #dfb86c 50%, transparent 50%); /* Magic Gold dashed line */
}

.theme-clow .timeline-dot::after {
  content: '★'; /* Clow magic star instead of target */
  color: #dfb86c;
  text-shadow: 0 0 8px rgba(223, 184, 108, 0.6);
  font-size: 16px;
}

.theme-clow .timeline-item:hover .timeline-dot::after {
  color: #e88d9c; /* Star shifts to warm pink */
  text-shadow: 0 0 10px rgba(232, 141, 156, 0.65);
}


/* --- Style 3: Sleek Modern - Cyber Blueprint Light Blue & White --- */
.theme-modern .navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.08) !important;
}

.theme-modern .navbar.scrolled {
  background: rgba(240, 245, 250, 0.94) !important;
  border-color: #0066cc !important;
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15) !important;
}

.theme-modern .hero-subtitle {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.05) !important;
  color: var(--text-primary) !important;
}

.theme-modern .section-header {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.05) !important;
  color: var(--text-primary) !important;
}

.theme-modern .about-content {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.06) !important;
  color: var(--text-primary) !important;
}

.theme-modern .timeline-container {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.05) !important;
  color: var(--text-primary) !important;
}

/* Timeline specific line coloring in modern theme */
.theme-modern .timeline-container::before {
  background-image: linear-gradient(to bottom, #0066cc 50%, transparent 50%) !important;
}

.theme-modern .timeline-dot::after {
  content: '⊕' !important;
  color: #0066cc !important;
  text-shadow: 0 0 8px rgba(0, 102, 204, 0.3) !important;
}

.theme-modern .timeline-item:hover .timeline-dot::after {
  color: #00bfff !important;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.5) !important;
}


/* ==========================================================================
   Anti-Ghosting Typography Overrides (Disable block offset shadows)
   ========================================================================== */

.theme-clow .logo,
.theme-clow .hero-title,
.theme-clow .section-title,
.theme-clow .card-back-title,
.theme-clow h1,
.theme-clow h2,
.theme-clow h3 {
  text-shadow: none !important;
}

.theme-clow .hero-title span {
  color: #e88d9c !important;
}

.theme-modern .logo,
.theme-modern .hero-title,
.theme-modern .section-title,
.theme-modern .card-back-title,
.theme-modern h1,
.theme-modern h2,
.theme-modern h3 {
  text-shadow: none !important;
}


/* ==========================================================================
   Credentials Cards (badge-glow-card) Scoped Overrides
   ========================================================================== */

/* --- Style 1: Clow Magic - Bright Warm Pink/Gold Cards --- */
.theme-clow .badge-glow-card {
  background: #fffaf4; /* Soft ivory pink base */
  border: 1.5px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(223, 184, 108, 0.18);
  color: var(--text-primary);
}

.theme-clow .badge-glow-card::before {
  background: linear-gradient(135deg, rgba(232, 141, 156, 0.12) 0%, transparent 100%);
}

.theme-clow .badge-glow-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 20px rgba(232, 141, 156, 0.4);
  background: #ffffff;
}

.theme-clow .badge-icon-wrapper {
  background: #ffffff;
  border-color: var(--card-border);
  color: var(--accent); /* Magic Gold */
}

.theme-clow .badge-glow-card:hover .badge-icon-wrapper {
  background: var(--accent-hover); /* Cherry pink */
  border-color: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(232, 141, 156, 0.4);
}

/* --- Style 3: Sleek Modern - Cyber Cyan Glass panels --- */
.theme-modern .badge-glow-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.05) !important;
  color: var(--text-primary) !important;
}

.theme-modern .badge-glow-card::before {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.04) 0%, transparent 100%) !important;
}

.theme-modern .badge-glow-card:hover {
  transform: translateY(-3px) !important;
  border-color: var(--card-border-hover) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.12) !important;
  background: #ffffff !important;
}

.theme-modern .badge-icon-wrapper {
  background: #ffffff !important;
  border-color: var(--card-border) !important;
  color: var(--accent) !important; /* Tech Blue */
}

.theme-modern .badge-glow-card:hover .badge-icon-wrapper {
  background: var(--accent) !important; /* Tech Blue */
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.25) !important;
}


/* ==========================================================================
   About Highlight Boxes (about-highlight-box) Scoped Overrides
   ========================================================================== */

/* --- Style 1: Clow Magic - Bright Warm Pink/Gold highlights --- */
.theme-clow .about-highlight-box {
  background: #fffaf4; /* Soft warm pink-white base */
  border: 1.5px solid var(--card-border);
  box-shadow: 0 4px 12px rgba(223, 184, 108, 0.18);
  color: var(--text-primary);
}

.theme-clow .about-highlight-box:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 8px 20px rgba(232, 141, 156, 0.4);
  background: #ffffff;
  transform: translateY(-3px);
}

.theme-clow .about-highlight-box h4 {
  color: var(--accent-hover); /* Cherry pink */
}

.theme-clow .about-highlight-box p {
  color: var(--text-secondary);
}

/* --- Style 3: Sleek Modern - Cyber Cyan Glass highlights --- */
.theme-modern .about-highlight-box {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.05) !important;
  color: var(--text-primary) !important;
}

.theme-modern .about-highlight-box:hover {
  border-color: var(--card-border-hover) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.12) !important;
  background: #ffffff !important;
  transform: translateY(-3px) !important;
}


/* ==========================================================================
   Contact Cards (contact-card) Scoped Overrides
   ========================================================================== */

/* --- Style 1: Clow Magic - Soft Parchment Card --- */
.theme-clow .contact-card {
  background: #fffaf4; /* Soft warm pink-white */
  border: 2px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(223, 184, 108, 0.25);
  color: var(--text-primary);
}

.theme-clow .contact-card::after {
  border: 1.5px dashed rgba(232, 141, 156, 0.4);
}

.theme-modern .contact-card {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08) !important;
  color: var(--text-primary) !important;
}

.theme-modern .contact-card::after {
  border: 1px dashed rgba(0, 102, 204, 0.2) !important;
}


/* ==========================================================================
   Multi-Theme Contrast, RWD & Visual Polish Overrides
   ========================================================================== */

/* --- Clow Magic Style Refinements (🌸 Style 1) --- */
.theme-clow .btn-nav-contact {
  background: #e88d9c !important;
  border: 1.5px solid #e88d9c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(232, 141, 156, 0.35) !important;
  text-shadow: none !important;
}

.theme-clow .btn-nav-contact:hover {
  background: #d87c8b !important;
  border-color: #d87c8b !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(232, 141, 156, 0.55) !important;
  transform: translateY(-2px) !important;
}

.theme-clow .btn-secondary {
  background: #fffaf4 !important;
  border: 1.5px solid rgba(223, 184, 108, 0.6) !important;
  color: #dfb86c !important;
  box-shadow: 0 4px 12px rgba(223, 184, 108, 0.15) !important;
  text-shadow: none !important;
}

.theme-clow .btn-secondary:hover {
  background: #ffffff !important;
  border-color: #dfb86c !important;
  color: #dfb86c !important;
  box-shadow: 0 6px 16px rgba(223, 184, 108, 0.3) !important;
  transform: translateY(-2px) !important;
}

.theme-clow .card-title {
  color: #4a3e3d !important;
  text-shadow: none !important;
}

.theme-clow .card-subtitle {
  color: #e88d9c !important;
  text-shadow: none !important;
}

.theme-clow .card-tag {
  background: #ffd1d7 !important;
  border-color: #e88d9c !important;
  color: #4a3e3d !important;
  box-shadow: 0 4px 8px rgba(232, 141, 156, 0.2) !important;
  text-shadow: none !important;
  border-radius: var(--radius-pill) !important;
}

.theme-clow .card-prompt-hint {
  color: #8c7876 !important;
}

.theme-clow .card-prompt-hint i {
  color: #e88d9c !important;
}

.theme-clow .card-front-footer {
  border-top: 1.5px dashed rgba(232, 141, 156, 0.4) !important;
}

.theme-clow .portfolio-filters {
  background: rgba(253, 243, 245, 0.85) !important;
  border: 1.5px solid rgba(223, 184, 108, 0.5) !important;
  box-shadow: 0 8px 25px rgba(232, 141, 156, 0.12) !important;
}

.theme-clow .filter-btn {
  color: #8c7876 !important;
}

.theme-clow .filter-btn:hover {
  color: #e88d9c !important;
  background: rgba(232, 141, 156, 0.08) !important;
}

.theme-clow .filter-btn.active {
  color: #ffffff !important;
  background: #e88d9c !important;
  border-color: #e88d9c !important;
  box-shadow: 0 4px 15px rgba(232, 141, 156, 0.3) !important;
}


/* --- Sleek Modern Cyber Theme Refinements (💻 Style 3) --- */

.theme-modern .navbar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 102, 204, 0.25) !important;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.08) !important;
}

.theme-modern .navbar.scrolled {
  background: rgba(240, 245, 250, 0.94) !important;
  border-color: #0066cc !important;
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15) !important;
}

.theme-modern .btn-nav-contact {
  background: transparent !important;
  border: 1.5px solid #0066cc !important;
  color: #0066cc !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15) !important;
  text-shadow: none !important;
}

.theme-modern .btn-nav-contact:hover {
  background: #0066cc !important;
  color: #ffffff !important;
  border-color: #0066cc !important;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3) !important;
  transform: translateY(-2px) !important;
}

.theme-modern .logo {
  color: #0066cc !important;
}

.theme-modern .nav-link {
  color: #334155 !important;
}

.theme-modern .nav-link:hover {
  color: #0066cc !important;
}

.theme-modern .badge {
  background: #ffffff !important;
  border-color: rgba(0, 102, 204, 0.3) !important;
  color: #0066cc !important;
}

.theme-modern .btn-primary {
  background: #0066cc !important;
  border-color: #0066cc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2) !important;
}

.theme-modern .btn-primary:hover {
  background: #0052a3 !important;
  border-color: #0052a3 !important;
  box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35) !important;
}

.theme-modern .btn-secondary {
  background: #ffffff !important;
  border-color: rgba(0, 102, 204, 0.4) !important;
  color: #0066cc !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.08) !important;
}

.theme-modern .btn-secondary:hover {
  background: #e6f0fa !important;
  border-color: #0066cc !important;
  color: #0066cc !important;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15) !important;
}

.theme-modern .card-front {
  background: #ffffff !important;
  border-color: rgba(0, 102, 204, 0.15) !important;
}

.theme-modern .card-back {
  background: linear-gradient(135deg, #0066cc 0%, #00478f 100%) !important;
  border-color: rgba(0, 102, 204, 0.2) !important;
  color: #ffffff !important;
}

.theme-modern .card-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

.theme-modern .card-subtitle {
  color: #0066cc !important;
  text-shadow: none !important;
}

.theme-modern .card-tag {
  background: #e6f0fa !important;
  border-color: rgba(0, 102, 204, 0.3) !important;
  color: #0066cc !important;
  box-shadow: 0 4px 8px rgba(0, 102, 204, 0.05) !important;
  text-shadow: none !important;
  border-radius: var(--radius-pill) !important;
}

.theme-modern .card-prompt-hint {
  color: #64748b !important;
}

.theme-modern .card-prompt-hint i {
  color: #0066cc !important;
}

.theme-modern .card-front-footer {
  border-top: 1.5px dashed rgba(0, 102, 204, 0.2) !important;
}

.theme-modern .card-btn-demo {
  background: #ffffff !important;
  color: #0066cc !important;
  border: 1.5px solid #0066cc !important;
}

.theme-modern .card-btn-demo:hover {
  background: #0066cc !important;
  color: #ffffff !important;
}

.theme-modern .card-btn-more {
  color: #64748b !important;
}

.theme-modern .card-img-wrapper img {
  filter: sepia(100%) hue-rotate(190deg) saturate(300%) contrast(110%) !important;
  mix-blend-mode: multiply !important;
  opacity: 0.9 !important;
}

.theme-modern .portfolio-filters {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 102, 204, 0.2) !important;
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.06) !important;
}

.theme-modern .filter-btn {
  color: #334155 !important;
}

.theme-modern .filter-btn:hover {
  color: #0066cc !important;
  background: rgba(0, 102, 204, 0.06) !important;
}

.theme-modern .filter-btn.active {
  color: #ffffff !important;
  background: #0066cc !important;
  border-color: #0066cc !important;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2) !important;
}

/* Modern default: reduce decorative noise and emphasize proof. */
.theme-modern .sakura-container {
  display: none;
}

.theme-modern .trust-section,
.theme-modern .services-section {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(0, 102, 204, 0.12);
}

.theme-modern .trust-copy,
.theme-modern .trust-metrics div,
.theme-modern .service-card,
.theme-modern .case-study-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 102, 204, 0.16);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.theme-modern .case-study-card {
  border-top: 3px solid #0066cc;
}

.theme-modern .service-card span {
  border-color: rgba(0, 102, 204, 0.12);
  color: #0066cc;
}

.theme-modern .section-kicker {
  color: #0066cc;
  letter-spacing: 0.12em;
}

.theme-modern .section-title,
.theme-modern .trust-heading {
  text-shadow: none !important;
  letter-spacing: 0;
}

.theme-modern .projects-section {
  border-top: 1px solid rgba(0, 102, 204, 0.12);
  border-bottom: 1px solid rgba(0, 102, 204, 0.12);
}

.theme-modern .portfolio-filters,
.theme-modern .grid {
  display: none;
}

.theme-heist .case-study-grid,
.theme-clow .case-study-grid {
  display: none;
}

.theme-heist .trust-section,
.theme-heist .services-section,
.theme-clow .trust-section,
.theme-clow .services-section {
  display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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