/*
 * IWH Corporate Website - Global Styles
 * Refined Corporate Aesthetic
 */

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Color Palette */
  --color-primary: #0a1628;
  --color-primary-light: #0f2140;
  --color-primary-dark: #060e1a;
  --color-secondary: #faf9f7;
  --color-secondary-muted: #f0eeeb;
  --color-accent: #c9a962;
  --color-accent-hover: #b8972f;
  --color-accent-muted: rgba(201, 169, 98, 0.15);

  /* Text Colors */
  --text-light: #faf9f7;
  --text-light-muted: rgba(250, 249, 247, 0.7);
  --text-dark: #1a1a1a;
  --text-dark-muted: #4a4a4a;

  /* Borders */
  --border-light: rgba(250, 249, 247, 0.1);
  --border-dark: rgba(10, 22, 40, 0.1);
  --border-accent: rgba(201, 169, 98, 0.3);

  /* Shadows */
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease-out;
  --transition-base: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-light);
  background-color: var(--color-primary);
}

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

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

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

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-accent-hover);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.text-muted {
  color: var(--text-light-muted);
}

.text-accent {
  color: var(--color-accent);
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--large {
  padding: var(--space-3xl) 0;
}

/* Background variants */
.bg-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
  color: var(--text-light);
}

.bg-secondary {
  background-color: var(--color-secondary);
  color: var(--text-dark);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: var(--shadow-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.header__logo:hover {
  opacity: 0.85;
}

.header__logo-img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text-light);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

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

/* Dropdown Menu */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav__dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.nav__item--dropdown:hover .nav__dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding: var(--space-sm) 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(10px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  list-style: none;
  z-index: 100;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
}

.nav__dropdown-link {
  display: block;
  padding: 0.6rem var(--space-md);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  color: var(--text-light);
  background-color: rgba(201, 169, 98, 0.1);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid var(--border-light);
}

.lang-toggle__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-toggle__link:hover {
  color: var(--text-light);
}

.lang-toggle__link--active {
  color: var(--color-accent);
}

/* Mobile Menu Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle__line:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle__line:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle--active .nav-toggle__line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

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

.nav-toggle--active .nav-toggle__line:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: var(--color-primary);
}

/* Hero Background Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 24s infinite;
}

.hero-slider__slide:nth-child(1) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.75) 100%),
    url('/assets/img/hero-slide-1.jpg');
  animation-delay: 0s;
}

.hero-slider__slide:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.75) 100%),
    url('/assets/img/hero-slide-2.jpg');
  animation-delay: 6s;
}

.hero-slider__slide:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.75) 100%),
    url('/assets/img/hero-slide-3.jpg');
  animation-delay: 12s;
}

.hero-slider__slide:nth-child(4) {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.75) 100%),
    url('/assets/img/hero-slide-4.jpg');
  animation-delay: 18s;
}

@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1); }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1); }
}

/* Gold accent overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 10% 30%, rgba(201, 169, 98, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(201, 169, 98, 0.12) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero__headline {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 1100px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero__subheadline {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text-light-muted);
  max-width: 700px;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero__cta {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Decorative line */
.hero__accent {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent) 20%,
    var(--color-accent) 80%,
    transparent
  );
  opacity: 0.3;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.btn--outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-light);
}

.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 0.9375rem;
}

/* ============================================
   Value Pillars
   ============================================ */
.pillars {
  position: relative;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.pillar {
  position: relative;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  overflow: hidden;
}

/* Background image layer with zoom */
.pillar__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transition: transform 0.8s ease, opacity 0.4s ease;
  z-index: 0;
}

.pillar:hover .pillar__bg {
  transform: scale(1.1);
  opacity: 0.35;
}

/* Pillar-specific backgrounds */
.pillar--infrastructure .pillar__bg {
  background-image: url('/assets/img/pillar-infrastructure.jpg');
}

.pillar--security .pillar__bg {
  background-image: url('/assets/img/pillar-security.jpg');
}

.pillar--compliance .pillar__bg {
  background-image: url('/assets/img/pillar-compliance.jpg');
}

.pillar--ai .pillar__bg {
  background-image: url('/assets/img/pillar-ai.jpg');
}

/* Dark overlay gradient */
.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(212, 168, 83, 0.08) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Subtle animated corner accent */
.pillar::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(212, 168, 83, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.pillar:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(212, 168, 83, 0.08);
}

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

.pillar:hover::after {
  opacity: 1;
  top: -30%;
  right: -30%;
}

.pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

.pillar__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.pillar__icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.pillar__title {
  font-family: var(--font-headline);
  font-size: 1.375rem;
  margin-bottom: var(--space-xs);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.pillar__subtitle {
  font-size: 0.9375rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.pillar__description {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.pillar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: auto;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.pillar__link:hover {
  color: var(--color-accent-hover);
  gap: 0.75rem;
}

.pillar__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.pillar__link:hover svg {
  transform: translateX(3px);
}

/* Pillar Topics - Gold framed tags */
.pillar__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.pillar__topic {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid var(--color-accent);
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.pillar:hover .pillar__topic {
  background: rgba(201, 169, 98, 0.15);
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.2);
}

/* ============================================
   Industries Section
   ============================================ */
.industries {
  position: relative;
}

.industries__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.industries__title {
  margin-bottom: var(--space-sm);
}

.industries__subtitle {
  font-size: 1.125rem;
  color: var(--text-dark-muted);
  max-width: 600px;
  margin: 0 auto;
}

.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.industry {
  padding: var(--space-lg);
  background-color: var(--color-secondary);
  border: 1px solid var(--border-dark);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.industry:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
}

.industry__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.industry__icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
}

.industry__title {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  color: var(--text-dark);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  margin-bottom: var(--space-xl);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

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

.section-divider {
  width: 60px;
  height: 1px;
  background-color: var(--color-accent);
  margin: var(--space-md) auto 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-primary-dark);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  line-height: 1.7;
}

.footer__contact {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.footer__contact-item {
  font-size: 0.75rem;
  color: rgba(250, 249, 247, 0.4);
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

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

.footer__contact-label {
  font-weight: 500;
  color: rgba(250, 249, 247, 0.5);
  margin-right: 0.25rem;
}

.footer__contact-item a {
  color: rgba(250, 249, 247, 0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--color-accent);
}

.footer__nav-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.footer__nav-list {
  list-style: none;
}

.footer__nav-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light-muted);
  text-decoration: none;
  padding: 0.375rem 0;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-light-muted);
}

.footer__gemi {
  display: inline-block;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.8;
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: 0.8125rem;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-accent);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}

/* ============================================
   Visual Patterns & Decorative Elements
   ============================================ */

/* Gradient Mesh Backgrounds */
.pattern-gradient-mesh {
  position: relative;
  overflow: hidden;
}

.pattern-gradient-mesh::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(201, 169, 98, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(201, 169, 98, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(15, 33, 64, 0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Flowing Curves Pattern */
.pattern-curves {
  position: relative;
  overflow: hidden;
}

.pattern-curves::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 400px;
  background-image: url('/assets/img/patterns/curve-wave.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

/* Line Flow Pattern */
.pattern-lines {
  position: relative;
  overflow: hidden;
}

.pattern-lines::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/assets/img/patterns/line-flow.svg');
  background-size: cover;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* Organic Blob Accent */
.pattern-blob-left::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background-image: url('/assets/img/patterns/organic-blob.svg');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.pattern-blob-right::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background-image: url('/assets/img/patterns/organic-blob.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Gradient Sphere Accent - uses ::after to avoid conflicts */
.pattern-sphere {
  position: relative;
  overflow: hidden;
}

.pattern-sphere::after {
  content: '';
  position: absolute;
  top: -50px;
  right: 0;
  width: 500px;
  height: 500px;
  background-image: url('/assets/img/patterns/gradient-sphere.svg');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Noise Texture Overlay */
.texture-noise {
  position: relative;
}

.texture-noise::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  pointer-events: none;
  z-index: 1;
}

/* Subtle Gold Line Divider */
.divider-gold {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: var(--space-lg) 0;
}

.divider-gold--center {
  margin-left: auto;
  margin-right: auto;
}

/* Elegant Card Hover Effect */
.card-hover-glow {
  position: relative;
  transition: all var(--transition-base);
}

.card-hover-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 0;
}

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

/* Section Accent Line */
.accent-line-left {
  position: relative;
  padding-left: var(--space-lg);
}

.accent-line-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent) 20%,
    var(--color-accent) 80%,
    transparent
  );
  opacity: 0.4;
}

/* Ensure content stays above patterns */
.pattern-gradient-mesh > *,
.pattern-curves > *,
.pattern-lines > *,
.pattern-blob-left > *,
.pattern-blob-right > *,
.pattern-sphere > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Tablet (768px and down) */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    background-color: var(--color-primary);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav__list--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.125rem;
  }

  /* Mobile Dropdown */
  .nav__item--dropdown {
    text-align: center;
  }

  .nav__dropdown-toggle::after {
    display: none;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    min-width: auto;
    padding: var(--space-xs) 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    margin-top: var(--space-xs);
  }

  .nav__dropdown-link {
    font-size: 0.9rem;
    padding: 0.4rem var(--space-sm);
  }

  .lang-toggle {
    position: fixed;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav__list--open + .lang-toggle,
  .lang-toggle--visible {
    opacity: 1;
    visibility: visible;
  }

  /* Pillars */
  .pillars__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pillar {
    padding: var(--space-lg);
  }

  /* Industries */
  .industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Hero accent */
  .hero__accent {
    display: none;
  }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
  :root {
    --space-lg: 2rem;
    --space-xl: 2.5rem;
    --space-2xl: 3rem;
  }

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

  /* Industries */
  .industries__grid {
    grid-template-columns: 1fr;
  }

  .industry {
    padding: var(--space-md);
  }

  /* Buttons */
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn--large {
    padding: 1rem 1.5rem;
  }
}

/* Large screens (1400px and up) */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }

  .hero__content {
    max-width: 1000px;
  }
}

/* ============================================
   DECORATIVE ELEMENTS - Visible Art Gallery Style
   ============================================ */

/* ===========================================
   Z-INDEX HIERARCHY - Decorations BEHIND Content
   =========================================== */

/* All decorative elements must be BEHIND content */
.hero-decoration,
.pillars-decoration,
.section-decoration,
.hero-curves,
.hero-blob,
.hero-blob-left,
.corner-accent,
.section-wave,
.floating-accents,
.floating-accent {
  z-index: 0 !important;
  pointer-events: none;
}

/* All content containers must be ABOVE decorations */
.container,
.hero__content,
.hero-content,
.section-content,
form,
.contact-form,
.card,
.pillar,
.pillar-card,
.service-card,
.industry,
article {
  position: relative;
  z-index: 2;
}

/* Any section with decorations must contain them */
section:has(.hero-decoration),
.hero,
.services-hero,
.contact-hero,
.about-hero,
.clients-hero,
.cases-hero,
.software-hero,
.legal-hero,
.subpage-hero,
.ai-hero,
.page-hero--editorial {
  position: relative;
  overflow: hidden;
}

/* Hero Decoration Container */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Flowing Curves in Hero */
.hero-curves {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 500px;
  opacity: 1;
}

/* Blob Accent - Top Right */
.hero-blob {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 550px;
  height: 550px;
  opacity: 1;
}

/* Blob Accent - Bottom Left */
.hero-blob-left {
  position: absolute;
  bottom: -180px;
  left: -180px;
  width: 450px;
  height: 450px;
  opacity: 0.7;
  transform: rotate(180deg);
}

/* Corner Accent */
.corner-accent {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 1;
}

.corner-accent--top-left {
  top: 0;
  left: 0;
}

.corner-accent--top-right {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}

.corner-accent--bottom-right {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}

.corner-accent--bottom-left {
  bottom: 0;
  left: 0;
  transform: rotate(270deg);
}

/* Ensure hero content is above decorations */
.hero > .container {
  position: relative;
  z-index: 2;
}

/* Section Wave Dividers */
.section-wave {
  width: 100%;
  height: 120px;
  margin: -60px 0;
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.section-wave img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Floating Accent Dots */
.floating-accents {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-accent {
  position: absolute;
  background: rgba(212, 168, 83, 0.4);
  border-radius: 50%;
}

.floating-accent--1 {
  top: 15%;
  right: 8%;
  width: 14px;
  height: 14px;
  animation: float-gentle 8s ease-in-out infinite;
}

.floating-accent--2 {
  top: 55%;
  right: 5%;
  width: 8px;
  height: 8px;
  opacity: 0.6;
  animation: float-gentle 10s ease-in-out infinite 1s;
}

.floating-accent--3 {
  top: 75%;
  right: 12%;
  width: 10px;
  height: 10px;
  opacity: 0.5;
  animation: float-gentle 12s ease-in-out infinite 2s;
}

.floating-accent--4 {
  top: 25%;
  left: 5%;
  width: 6px;
  height: 6px;
  opacity: 0.4;
  animation: float-gentle 9s ease-in-out infinite 0.5s;
}

.floating-accent--5 {
  top: 65%;
  left: 8%;
  width: 12px;
  height: 12px;
  opacity: 0.35;
  animation: float-gentle 11s ease-in-out infinite 1.5s;
}

@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-15px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
  }
  75% {
    transform: translateY(-20px) translateX(3px);
  }
}

/* AI Page - Enhanced Curves */
.ai-hero .hero-curves {
  min-height: 600px;
  bottom: -150px;
}

/* Section Decoration Wrapper */
.section-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Decorative line accents for sections */
.deco-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(212, 168, 83, 0.3) 20%,
    rgba(212, 168, 83, 0.3) 80%,
    transparent
  );
}

.deco-line--top {
  top: 0;
  left: 10%;
  right: 10%;
}

.deco-line--bottom {
  bottom: 0;
  left: 10%;
  right: 10%;
}

/* Services hero specific */
.services-hero .hero-decoration {
  z-index: 0;
}

.services-hero > .container {
  position: relative;
  z-index: 2;
}

/* Pillar section decorations */
.pillars-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.pillars-decoration .corner-accent {
  opacity: 0.8;
}

/* Pillars section must contain decorations */
.pillars {
  position: relative;
  overflow: hidden;
}

/* Responsive adjustments for decorations */
@media (max-width: 1024px) {
  .hero-blob {
    width: 400px;
    height: 400px;
    top: -80px;
    right: -80px;
  }

  .hero-blob-left {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -120px;
  }

  .hero-curves {
    min-height: 400px;
    bottom: -80px;
  }

  .floating-accent--1,
  .floating-accent--2,
  .floating-accent--3 {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-blob {
    width: 300px;
    height: 300px;
    top: -60px;
    right: -60px;
    opacity: 0.8;
  }

  .hero-blob-left {
    display: none;
  }

  .hero-curves {
    min-height: 300px;
    bottom: -50px;
    opacity: 0.8;
  }

  .section-wave {
    height: 80px;
    margin: -40px 0;
  }

  .corner-accent {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-blob {
    width: 200px;
    height: 200px;
    top: -40px;
    right: -40px;
    opacity: 0.6;
  }

  .hero-curves {
    min-height: 200px;
    bottom: -30px;
    opacity: 0.6;
  }

  .floating-accents {
    display: none;
  }

  .corner-accent {
    width: 150px;
    height: 150px;
  }
}

/* ============================================
   MICRO-ANIMATIONS & VISUAL ENHANCEMENTS
   ============================================ */

/* ===========================================
   PART A: HOVER GLOW ON CARDS
   =========================================== */

.card,
.pillar,
.pillar-card,
.service-card,
.client-card,
.case-card,
.software-card,
.industry {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover,
.pillar:hover,
.pillar-card:hover,
.service-card:hover,
.client-card:hover,
.case-card:hover,
.software-card:hover,
.industry:hover {
  box-shadow: 0 8px 40px rgba(212, 168, 83, 0.12);
  transform: translateY(-3px);
}

/* ===========================================
   PART B: UNDERLINE REVEAL ON LINKS
   =========================================== */

.nav__link,
.footer__link,
.text-link,
a.underline-hover {
  position: relative;
  text-decoration: none;
}

.nav__link::after,
.footer__link::after,
.text-link::after,
a.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__link:hover::after,
.footer__link:hover::after,
.text-link:hover::after,
a.underline-hover:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Exclude dropdown toggles and active states */
.nav__link--dropdown::after,
.nav__link.active::after {
  display: none;
}

/* ===========================================
   PART C: DECORATIVE GRADIENT LINES
   =========================================== */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 168, 83, 0.3) 20%,
    rgba(212, 168, 83, 0.3) 80%,
    transparent 100%
  );
  margin: 0 auto;
  max-width: 800px;
  border: none;
}

.section-divider--large {
  margin: var(--space-2xl) auto;
}

.section-divider--medium {
  margin: var(--space-xl) auto;
}

/* Short accent divider */
.divider-short {
  height: 1px;
  width: 60px;
  background: var(--color-accent);
  margin: 1.5rem 0;
  border: none;
}

.divider-short--center {
  margin: 1.5rem auto;
}

/* ===========================================
   PART D: STAGGERED FADE-IN ANIMATION
   =========================================== */

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

.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.6s; }
.animate-stagger > *:nth-child(7) { animation-delay: 0.7s; }
.animate-stagger > *:nth-child(8) { animation-delay: 0.8s; }

/* Only animate when in viewport - use with JS intersection observer */
.animate-stagger.animate-paused > * {
  animation-play-state: paused;
}

.animate-stagger.animate-play > * {
  animation-play-state: running;
}

/* ===========================================
   PART E: SECTION NUMBERS
   =========================================== */

.section-numbered {
  position: relative;
}

.section-number {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: rgba(212, 168, 83, 0.2);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  display: block;
}

/* Alternative: positioned to the side */
.section-number--side {
  position: absolute;
  left: -80px;
  top: 0;
}

/* For dark backgrounds */
.bg-primary .section-number {
  color: rgba(212, 168, 83, 0.25);
}

/* For light backgrounds */
.bg-secondary .section-number {
  color: rgba(212, 168, 83, 0.4);
}

/* ===========================================
   PART F: BUTTON ENHANCEMENTS
   =========================================== */

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary:hover {
  box-shadow: 0 4px 25px rgba(212, 168, 83, 0.35);
}

.btn--outline:hover {
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.2);
}

/* ===========================================
   ADDITIONAL SUBTLE ENHANCEMENTS
   =========================================== */

/* Smooth image hover zoom */
.image-hover-zoom {
  overflow: hidden;
}

.image-hover-zoom img {
  transition: transform 0.5s ease;
}

.image-hover-zoom:hover img {
  transform: scale(1.03);
}

/* Subtle pulse for important elements */
@keyframes subtlePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse-subtle {
  animation: subtlePulse 3s ease-in-out infinite;
}

/* Gold accent border on focus for forms */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .animate-stagger > *,
  .btn::before,
  .nav__link::after,
  .footer__link::after {
    animation: none;
    transition: none;
  }

  .card:hover,
  .pillar:hover,
  .pillar-card:hover {
    transform: none;
  }
}

/* ============================================
   Page Hero Backgrounds
   ============================================ */

/* AI Page */
.ai-hero {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.85) 100%),
    url('/assets/img/ai-hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Services Page */
.services-hero {
  background-image:
    linear-gradient(to bottom, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.95)),
    url('/assets/img/services-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Services Sub-pages */
.subpage-hero {
  background-image:
    linear-gradient(to bottom, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.95)),
    url('/assets/img/services-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Approach Page */
.page-hero--editorial {
  background-image:
    linear-gradient(to bottom, rgba(10, 22, 40, 0.85), rgba(10, 22, 40, 0.92)),
    url('/assets/img/approach-bg.jpg');
  background-size: cover;
  background-position: center top;
}

/* Contact Page */
.contact-hero {
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.92) 100%),
    url('/assets/img/contact-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Clients Page */
.clients-hero {
  background-image:
    linear-gradient(to bottom, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.95)),
    url('/assets/img/clients-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Case Studies Page */
.cases-hero {
  background-image:
    linear-gradient(to right, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0.85)),
    url('/assets/img/cases-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* Software Page */
.software-hero {
  background-image:
    linear-gradient(to bottom, rgba(10, 22, 40, 0.88), rgba(10, 22, 40, 0.94)),
    url('/assets/img/software-bg.jpg');
  background-size: cover;
  background-position: center;
}

/* About Page (backup - inline styles take precedence) */
.about-hero {
  background-image:
    linear-gradient(to bottom, rgba(10, 22, 40, 0.88), rgba(10, 22, 40, 0.95)),
    url('/assets/img/about-bg.jpg');
  background-size: cover;
  background-position: center;
}
