/**
 * DDS Shared Components
 * Reusable UI components for Celestial Deco aesthetic
 */

/* ==========================================
   CSS VARIABLES (EXTENDS PARALLAX-HERO.CSS)
   ========================================== */

:root {
  /* Already defined in parallax-hero.css, extended here */
  --celestial-teal-dark: #1a5a52;
  --celestial-teal: #006b5e;
  --celestial-teal-light: #00d4aa;
  --celestial-gold: #d4a574;
  --celestial-gold-light: #f4a460;
  --celestial-gold-dark: #b8941f;
  --celestial-cream: #f4e4c1;

  /* Link colors */
  --link-color: var(--celestial-gold);
  --link-hover: var(--celestial-gold-light);
  --link-visited: var(--celestial-gold-dark);

  /* UI Components */
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(212, 165, 116, 0.15);
  --glass-bg: rgba(26, 90, 82, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1400px;
  --container-padding: clamp(1.5rem, 4vw, 3rem);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 4px 20px rgba(212, 165, 116, 0.3);
}

/* ==========================================
   TERMINAL STYLES IMPORT
   ========================================== */
@import url('terminal.css');

/* ==========================================
   GLOBAL RESETS & OVERFLOW PREVENTION
   ========================================== */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
}

/* ==========================================
   GLOBAL TYPOGRAPHY & LINK STYLES
   ========================================== */

/* Reset default link colors - NO blue links anywhere */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Content area links should use gold */
.content-main a:not([class*="btn"]):not([class*="card"]),
.hero-content a:not([class*="btn"]),
p a:not([class*="btn"]),
li a:not([class*="btn"]):not([class*="nav"]):not([class*="footer"]):not([class*="toc"]) {
  color: var(--celestial-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 165, 116, 0.4);
  text-underline-offset: 0.2em;
  transition: all 0.3s ease;
}

.content-main a:not([class*="btn"]):hover,
.hero-content a:not([class*="btn"]):hover,
p a:not([class*="btn"]):hover,
li a:not([class*="btn"]):not([class*="nav"]):not([class*="footer"]):not([class*="toc"]):hover {
  color: var(--celestial-gold-light);
  text-decoration-color: var(--celestial-gold-light);
}

/* Visited links */
a:visited:not([class*="nav"]):not([class*="btn"]):not([class*="card"]):not([class*="footer"]):not([class*="toc"]) {
  color: var(--celestial-gold-dark);
}

/* Typography consistency */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--celestial-cream);
  margin: 0;
}

p, li, td, th, span, div {
  font-family: var(--font-body);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

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

.dds-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 8, 7, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dds-nav.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(10, 8, 7, 0.98);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--celestial-cream);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--celestial-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--celestial-gold), var(--celestial-gold-light));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: #ffffff;
}

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

.nav-cta {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--celestial-gold), var(--celestial-gold-light));
  color: #0a0807;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-gold);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 165, 116, 0.4);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(400px, 80vw);
    height: 100vh;
    background: rgba(10, 8, 7, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 40px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

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

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

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

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

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

.dds-footer {
  background: linear-gradient(180deg, #0a0807 0%, #000000 100%);
  border-top: 1px solid var(--card-border);
  padding: var(--section-padding) 0 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Responsive: 2 columns on tablets, 1 on mobile handled below */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--celestial-cream);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column li {
  margin: 0;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: var(--celestial-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--celestial-gold);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0;
  align-items: center;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--celestial-gold);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: var(--celestial-gold);
  border-color: var(--celestial-gold);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--celestial-gold);
  box-shadow: var(--shadow-gold);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--celestial-gold), var(--celestial-gold-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

/* ==========================================
   IMAGE CARD PATTERNS - UX/UI ENHANCEMENTS
   ========================================== */

/* Pattern A: Gradient Overlay Card */
.card-image-gradient {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(212, 165, 116, 0.2);
  background: rgba(26, 24, 22, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}

.card-image-gradient:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

.card-image-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 7, 0.92) 0%,
    rgba(10, 8, 7, 0.6) 35%,
    rgba(10, 8, 7, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
  border-radius: 12px;
}

.card-image-gradient > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.card-image-gradient:hover > img {
  transform: scale(1.05);
}

.card-image-gradient .card-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
}

.card-image-gradient h3 {
  color: var(--celestial-gold);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-image-gradient p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Pattern B: Split Card - Image Top, Content Bottom */
.card-split {
  display: flex;
  flex-direction: column;
  background: rgba(26, 24, 22, 0.6);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}

.card-split:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

.card-split-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.card-split-content {
  padding: 1.5rem;
  background: rgba(26, 24, 22, 0.95);
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  flex: 1;
  border-radius: 0 0 12px 12px;
}

.card-split-content h3 {
  color: var(--celestial-gold);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card-split-content p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Horizontal split card variant */
.card-split-horizontal {
  display: flex;
  flex-direction: row;
  background: rgba(26, 24, 22, 0.6);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  isolation: isolate;
}

.card-split-horizontal:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

.card-split-horizontal > img {
  width: 45%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 0 0 12px;
  flex-shrink: 0;
}

.card-split-horizontal > .card-split-content {
  flex: 1;
  border-radius: 0 12px 12px 0;
  border-top: none;
  border-left: 1px solid rgba(212, 165, 116, 0.15);
}

/* Pattern C: Frosted Glass Image Card */
.card-image-glass {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(212, 165, 116, 0.2);
  background: rgba(26, 24, 22, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-glass:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

.card-image-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-image-glass .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.6);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.card-image-glass .card-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}

.card-image-glass h3 {
  color: var(--celestial-gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-image-glass p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive Adjustments for Image Cards */
@media (max-width: 768px) {
  .card-image-gradient {
    border-radius: 10px;
  }
  
  .card-image-gradient::before {
    border-radius: 10px;
  }
  
  .card-image-gradient > img {
    border-radius: 10px;
  }
  
  .card-image-gradient .card-content {
    padding: 1.25rem;
    min-height: 180px;
  }
  
  .card-image-gradient h3 {
    font-size: 1.125rem;
  }
  
  .card-image-gradient p {
    font-size: 0.9rem;
  }
  
  .card-split {
    border-radius: 10px;
  }
  
  .card-split-image {
    height: 160px;
    border-radius: 10px 10px 0 0;
  }
  
  .card-split-content {
    padding: 1.25rem;
    border-radius: 0 0 10px 10px;
  }
  
  .card-split-horizontal {
    flex-direction: column;
    border-radius: 10px;
  }
  
  .card-split-horizontal > img {
    width: 100%;
    height: 140px;
    border-radius: 10px 10px 0 0;
  }
  
  .card-split-horizontal > .card-split-content {
    border-radius: 0 0 10px 10px;
    border-left: none;
    border-top: 1px solid rgba(212, 165, 116, 0.15);
  }
}

/* Global overflow protection */
@media (max-width: 480px) {
  .card-image-gradient .card-content {
    min-height: 160px;
    padding: 1rem;
  }
  
  .card-split-image {
    height: 140px;
  }
  
  .card-split-horizontal > img {
    height: 120px;
  }
}

/* ==========================================
   PREMIUM CARD ENHANCEMENTS
   ========================================== */

/* Mega Menu Items - Industry Cards */
.mega-menu-item {
  position: relative;
  background: rgba(26, 24, 22, 0.5);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mega-menu-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(212, 165, 116, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mega-menu-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--celestial-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mega-menu-item:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 107, 94, 0.3),
              0 4px 20px rgba(212, 165, 116, 0.2);
}

.mega-menu-item:hover::before {
  opacity: 1;
}

.mega-menu-item:hover::after {
  opacity: 1;
}

/* Icon Container - CSS-Based Indicators */
.mega-menu-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

/* Manufacturing - Geometric Gear Pattern */
.mega-menu-item:nth-child(1) .mega-menu-icon {
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.2), rgba(0, 212, 170, 0.1));
  border: 2px solid rgba(0, 212, 170, 0.4);
  border-radius: 12px;
}

.mega-menu-item:nth-child(1) .mega-menu-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, transparent 20%, rgba(0, 212, 170, 0.1) 40%, transparent 70%);
  border-radius: 12px;
}

.mega-menu-item:nth-child(1) .mega-menu-icon::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  border: 3px solid rgba(0, 212, 170, 0.6);
  border-radius: 50%;
}

/* Healthcare - Medical Cross Pattern */
.mega-menu-item:nth-child(2) .mega-menu-icon {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(244, 164, 96, 0.1));
  border: 2px solid rgba(244, 164, 96, 0.4);
  border-radius: 12px;
}

.mega-menu-item:nth-child(2) .mega-menu-icon::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 16%;
  background: rgba(244, 164, 96, 0.6);
  border-radius: 2px;
}

.mega-menu-item:nth-child(2) .mega-menu-icon::after {
  content: '';
  position: absolute;
  width: 16%;
  height: 50%;
  background: rgba(244, 164, 96, 0.6);
  border-radius: 2px;
}

/* Finance - Grid Pattern */
.mega-menu-item:nth-child(3) .mega-menu-icon {
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.15), rgba(212, 165, 116, 0.1));
  border: 2px solid rgba(212, 165, 116, 0.4);
  border-radius: 8px;
}

.mega-menu-item:nth-child(3) .mega-menu-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 30% 30%;
  background-position: center;
  background-repeat: repeat;
  border-radius: 8px;
}

/* Logistics - Directional Arrows */
.mega-menu-item:nth-child(4) .mega-menu-icon {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(212, 165, 116, 0.1));
  border: 2px solid rgba(0, 212, 170, 0.4);
  border-radius: 12px;
}

.mega-menu-item:nth-child(4) .mega-menu-icon::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid rgba(0, 212, 170, 0.6);
  opacity: 0.8;
}

.mega-menu-item:nth-child(4) .mega-menu-icon::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 20px;
  background: rgba(0, 212, 170, 0.6);
  top: 35%;
}

.mega-menu-item:hover .mega-menu-icon {
  transform: scale(1.1);
}

/* Mobile Industry Icons */
.mobile-industry-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-right: 0.75rem;
  position: relative;
}

/* Manufacturing - Mobile Icon */
.mobile-industry-link:nth-child(1) .mobile-industry-icon {
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.2), rgba(0, 212, 170, 0.1));
  border: 2px solid rgba(0, 212, 170, 0.4);
  border-radius: 8px;
}

.mobile-industry-link:nth-child(1) .mobile-industry-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, transparent 20%, rgba(0, 212, 170, 0.1) 40%, transparent 70%);
  border-radius: 8px;
}

/* Healthcare - Mobile Icon */
.mobile-industry-link:nth-child(2) .mobile-industry-icon {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), rgba(244, 164, 96, 0.1));
  border: 2px solid rgba(244, 164, 96, 0.4);
  border-radius: 8px;
}

.mobile-industry-link:nth-child(2) .mobile-industry-icon::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 14%;
  background: rgba(244, 164, 96, 0.6);
  border-radius: 1px;
  left: 25%;
  top: 43%;
}

.mobile-industry-link:nth-child(2) .mobile-industry-icon::after {
  content: '';
  position: absolute;
  width: 14%;
  height: 50%;
  background: rgba(244, 164, 96, 0.6);
  border-radius: 1px;
  left: 43%;
  top: 25%;
}

/* Finance - Mobile Icon */
.mobile-industry-link:nth-child(3) .mobile-industry-icon {
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.15), rgba(212, 165, 116, 0.1));
  border: 2px solid rgba(212, 165, 116, 0.4);
  border-radius: 6px;
}

.mobile-industry-link:nth-child(3) .mobile-industry-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% - 1px), rgba(212, 165, 116, 0.3) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 40% 40%;
  background-position: center;
  background-repeat: repeat;
  border-radius: 6px;
}

/* Logistics - Mobile Icon */
.mobile-industry-link:nth-child(4) .mobile-industry-icon {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(212, 165, 116, 0.1));
  border: 2px solid rgba(0, 212, 170, 0.4);
  border-radius: 8px;
}

.mobile-industry-link:nth-child(4) .mobile-industry-icon::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid rgba(0, 212, 170, 0.6);
  opacity: 0.8;
  top: 8px;
}

.mobile-industry-link:nth-child(4) .mobile-industry-icon::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 14px;
  background: rgba(0, 212, 170, 0.6);
  top: 22px;
}

.mega-menu-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--celestial-cream);
  margin: 0 0 0.75rem 0;
  transition: color 0.3s ease;
}

.mega-menu-item:hover .mega-menu-title {
  color: var(--celestial-gold);
}

.mega-menu-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Tool Cards (platform.html) */
.tool-card {
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--celestial-gold), var(--celestial-gold-light), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Case Study Cards */
.case-study-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 90, 82, 0.1), rgba(26, 24, 22, 0.8));
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.case-study-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-study-card:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

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

/* Article Cards (media.html) */
.article-card {
  position: relative;
  background: rgba(26, 24, 22, 0.6);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.article-card:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

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

.article-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--celestial-cream);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.article-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--celestial-gold);
  flex-wrap: wrap;
}

.article-card-category {
  background: rgba(212, 165, 116, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.article-card-excerpt {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Service Cards (services.html) */
.service-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.08), rgba(26, 24, 22, 0.8));
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;
}

.service-card:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

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

.service-card-header {
  margin-bottom: 1.5rem;
}

.service-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(212, 165, 116, 0.15));
  border: 2px solid rgba(212, 165, 116, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
  border-color: var(--celestial-gold);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(0, 212, 170, 0.15));
}

.service-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--celestial-cream);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.service-card-price {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--celestial-gold);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.service-card-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* Industry Page Cards */
.industry-card {
  position: relative;
  background: rgba(26, 24, 22, 0.7);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.industry-card:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

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

/* Feature Icons in Cards */
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Pricing Cards (services.html) */
.pricing-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 90, 82, 0.1), rgba(26, 24, 22, 0.8));
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--celestial-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pricing-card:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

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

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

.pricing-card.featured {
  border-color: rgba(212, 165, 116, 0.3);
  box-shadow: 0 8px 32px rgba(212, 165, 116, 0.15);
  transform: scale(1.02);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--celestial-cream);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--celestial-gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pricing-period {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-features li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--celestial-gold);
  font-weight: 700;
}

.pricing-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--celestial-gold), var(--celestial-gold-light));
  color: #0a0807;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-size: 1rem;
}

.pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.4);
}

/* Timeline Items (services.html) */
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.timeline-marker {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(212, 165, 116, 0.15));
  border: 3px solid var(--celestial-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--celestial-gold);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.timeline-content {
  position: relative;
  background: rgba(26, 24, 22, 0.6);
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.timeline-item:hover .timeline-content {
  border-color: var(--celestial-gold);
  background: rgba(26, 24, 22, 0.8);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--celestial-cream);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}

/* Case Study Card Variant (case-studies.html) */
.case-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.08), rgba(26, 24, 22, 0.7));
  border: 1px solid rgba(212, 165, 116, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s ease;
}

.case-card:hover {
  border-color: var(--celestial-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.2);
}

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

.case-industry {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--celestial-gold);
  background: rgba(212, 165, 116, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--celestial-cream);
  margin: 0 0 1rem 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.case-card:hover h3 {
  color: var(--celestial-gold);
}

.case-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(212, 165, 116, 0.15);
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.case-stat {
  text-align: center;
}

.case-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--celestial-gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.case-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-link {
  display: inline-flex;
  align-items: center;
  color: var(--celestial-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.case-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--celestial-gold), var(--celestial-gold-light));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-link {
  color: var(--celestial-gold-light);
}

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

/* Responsive Card Adjustments */
@media (max-width: 768px) {
  .mega-menu-item {
    padding: 1.5rem;
  }

  .mega-menu-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .mobile-industry-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }

  .article-card-content {
    padding: 1.5rem;
  }

  .case-study-card {
    padding: 1.5rem;
  }

  .case-card {
    padding: 1.5rem;
  }

  .case-card h3 {
    font-size: 1.125rem;
  }

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

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .pricing-amount {
    font-size: 2rem;
  }

  .pricing-tier {
    font-size: 1.125rem;
  }

  .pricing-cta {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .timeline-item:nth-child(even) {
    direction: ltr;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.125rem;
  }

  .industry-card {
    padding: 1.5rem;
  }
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--celestial-cream);
  margin-bottom: 1rem;
}

.card-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.card-stat {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--celestial-gold);
}

/* Glass-morphism variant */
.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* ==========================================
   PREMIUM BUTTONS
   Premium button styles now in premium-buttons.css
   Import that file for $300K level button design
   ========================================== */

/* Legacy button base - kept for compatibility */
.btn-primary,
.btn-secondary,
.btn-ghost {
  /* Styles defined in premium-buttons.css */
  /* Import premium-buttons.css in HTML <head> */
}

/* Read More / Article Links */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--celestial-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--celestial-gold), var(--celestial-gold-light));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.read-more:hover {
  color: var(--celestial-gold-light);
  transform: translateX(4px);
}

.read-more:hover::after {
  width: 100%;
}

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

/* CTA Button Group */
.cta-group {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Service Description Text */
.service-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

/* Content description (lighter variant) */
.content-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

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

.section-dark {
  position: relative;
  background: #0a0807;
  overflow: hidden;
}

/* Mountain line + color overlay for rich effect */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url('../images/mountain line.webp'),
    url('../images/mountain color.webp');
  background-size: cover, cover;
  background-position: center bottom, center bottom;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.12; /* Subtle - 12% opacity */
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen; /* Blends nicely with dark background */
}

.section-dark > * {
  position: relative;
  z-index: 1; /* Content above background */
}

.section-darker {
  position: relative;
  background: #000000;
  overflow: hidden;
}

/* Alternate pattern - just mountain color for variety */
.section-darker::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/mountain color.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.1; /* Even more subtle - 10% */
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.section-darker > * {
  position: relative;
  z-index: 1;
}

.section-teal {
  position: relative;
  background: linear-gradient(180deg, var(--celestial-teal-dark), #0a0807);
  overflow: hidden;
}

/* Mountain line overlay for teal section */
.section-teal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/mountain line.webp');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.15; /* Slightly more visible on teal */
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay; /* Different blend mode for teal */
}

.section-teal > * {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--celestial-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--celestial-cream);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================
   GRIDS
   ========================================== */

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}

/* ==========================================
   STATS BAR
   ========================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--celestial-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   BREADCRUMBS
   ========================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--celestial-gold);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
  color: var(--celestial-cream);
}

/* ==========================================
   TABLE OF CONTENTS
   ========================================== */

.toc {
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 90, 82, 0.08), rgba(10, 8, 7, 0.6));
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.toc:hover {
  border-color: rgba(212, 165, 116, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Support both class-based and element-based selectors */
.toc h3,
.toc-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--celestial-gold);
  margin: 0 0 1.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

.toc ul,
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc li,
.toc-item {
  margin: 0;
}

.toc a,
.toc-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  position: relative;
  border-left: 3px solid transparent;
  padding-left: 1.25rem;
  background: transparent;
}

.toc a::before,
.toc-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--celestial-gold), var(--celestial-gold-light));
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

.toc a:hover,
.toc-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(212, 165, 116, 0.08);
  padding-left: 1.5rem;
}

.toc a:hover::before,
.toc-link:hover::before {
  height: 100%;
}

.toc a.active,
.toc-link.active {
  color: var(--celestial-gold);
  background: rgba(212, 165, 116, 0.12);
  font-weight: 600;
  padding-left: 1.5rem;
  box-shadow: inset 0 1px 3px rgba(212, 165, 116, 0.1);
}

.toc a.active::before,
.toc-link.active::before {
  height: 100%;
  background: linear-gradient(180deg, var(--celestial-gold), var(--celestial-gold-dark));
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--celestial-cream);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--celestial-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

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

.form-error {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-success {
  color: #51cf66;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ==========================================
   FILTER & TAG BUTTONS
   ========================================== */

/* Filter button base styles (used in case-studies.html) */
.filter-btn,
.filter-tag {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  outline: none;
  position: relative;
  overflow: hidden;
}

.filter-btn::before,
.filter-tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(26, 90, 82, 0.2),
    rgba(10, 8, 7, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn:hover,
.filter-tag:hover {
  background: linear-gradient(135deg,
    rgba(26, 90, 82, 0.3),
    rgba(10, 8, 7, 0.15));
  border-color: var(--celestial-gold-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.filter-btn.active,
.filter-tag.active {
  background: linear-gradient(135deg,
    var(--celestial-teal),
    var(--celestial-teal-dark));
  border-color: var(--celestial-gold);
  color: var(--celestial-cream);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 107, 94, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.filter-btn.active::before,
.filter-tag.active::before {
  opacity: 1;
}

/* Filter bar container */
.filter-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}

/* Search & filter bar (used in media.html) */
.search-filter-bar {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 50px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--celestial-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-box::before {
  content: '🔍';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
}

.filter-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-btn,
  .filter-tag {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .filter-bar {
    gap: 0.5rem;
  }

  .search-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: unset;
  }

  .filter-tags {
    justify-content: center;
  }
}

/* ==========================================
   PAGINATION
   ========================================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination-btn:hover:not(.active) {
  border-color: var(--celestial-gold);
  color: var(--celestial-gold);
}

.pagination-btn.active {
  background: var(--celestial-gold);
  border-color: var(--celestial-gold);
  color: #0a0807;
}

/* ==========================================
   RESPONSIVE FOOTER STYLES
   ========================================== */

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-social {
    justify-content: center;
  }
}

/* ==========================================
   UTILITIES
   ========================================== */

.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}
