/* ============================================
   YK Smart - Editorial B2B Website
   Bold, Asymmetric, Professional Design
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Primary Colors - Bold Contrast */
  --color-charcoal: #0a0a0a;
  --color-graphite: #1a1a1a;
  --color-dark-grey: #2a2a2a;
  --color-medium-grey: #6b6b6b;
  --color-light-grey: #9a9a9a;
  --color-silver: #c4c4c4;
  --color-off-white: #fafafa;
  --color-white: #ffffff;
  
  /* Accent - Strategic Use */
  --color-accent: #4a6b7c;
  --color-accent-rgb: 74, 107, 124;
  --color-accent-light: #5d7d8e;
  --color-accent-dark: #3a5a6a;
  
  /* Typography - Bold & Editorial */
  --font-primary: 'Space Grotesk', 'Helvetica Neue', 'Arial', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Fluid Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 12rem;
  --space-5xl: 16rem;
  
  /* Layout - Fluid & Dramatic */
  --max-width: 1600px;
  --max-width-text: 800px;
  --grid-gap: 3rem;
  --border-radius: 0;
  
  /* Transitions - Smooth & Elegant */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   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;
  /* Hide scrollbar but keep functionality */
  /* Use clip instead of hidden to preserve sticky positioning */
  overflow-x: clip;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  /* Use clip instead of hidden to preserve sticky positioning */
  overflow-x: clip;
  /* Force font to load */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Force Space Grotesk on all elements */
* {
  font-family: var(--font-primary) !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   Typography - Bold & Editorial
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: var(--font-weight-semibold);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: var(--font-weight-medium);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-medium);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-medium-grey);
}

.lead {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--color-dark-grey);
  font-weight: var(--font-weight-regular);
}

.overline {
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-medium-grey);
}

/* ============================================
   Layout Components - Fluid & Asymmetric
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: var(--max-width-text);
}

.container--wide {
  max-width: 100%;
  padding: 0;
}

.container--fluid {
  max-width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section {
  padding: clamp(4rem, 10vw, 12rem) 0;
  /* Ensure backdrop-filter works on fixed elements above */
  position: relative;
  z-index: auto;
  background-color: var(--color-white);
}

.section--tight {
  padding: clamp(2rem, 6vw, 6rem) 0;
}

.section--hero {
  padding: clamp(6rem, 15vw, 20rem) 0 clamp(4rem, 10vw, 12rem);
}

.section--dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-silver);
}

.section--grey {
  background-color: var(--color-off-white);
}

.section--black {
  background-color: #000000;
  color: var(--color-white);
}

.section--black p {
  color: var(--color-light-grey);
}

.grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--asymmetric {
  grid-template-columns: 1.2fr 0.8fr;
}

.grid--asymmetric-reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Header & Navigation - Minimal & Refined
   ============================================ */

/* ============================================
   FLOATING GLASS HEADER - Premium Design
   ============================================ */
.glass-header {
  position: fixed;
  top: 20px;
  /* Center without transform for better backdrop-filter compatibility */
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  /* Glass: keep blur, reduce white fill so it doesn't read as a white bar */
  background: linear-gradient(
    rgba(82, 82, 82, 0.2) 0%,
    rgba(83, 82, 82, 0.2) 0%
  );
  backdrop-filter: blur(44px) saturate(140%);
  -webkit-backdrop-filter: blur(44px) saturate(140%);
  border-radius: 50px;
  /* No hard border; edge comes from subtle inset highlight */
  border: none;
  /* DO NOT use isolation or will-change here - breaks backdrop-filter */
  opacity: 0;
  animation: glassHeaderIn 800ms cubic-bezier(0.16, 1, 0.3, 1) 300ms forwards;
  /* Custom properties for proximity border */
  --cursor-x: 50%;
  --cursor-y: 50%;
  --edge-top: 0;
  --edge-right: 0;
  --edge-bottom: 0;
  --edge-left: 0;
  --edge-rgb: 0, 0, 0;
  --glass-item-hover-bg: rgba(82, 82, 82, 0.20);
}

/* Proximity-based partial border reveal (nearest edge only; no full outline) */
/* Border is pure black, thin, elegant */
.glass-header::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(140px 1px at var(--cursor-x) 50%, rgba(var(--edge-rgb), var(--edge-top)) 0%, transparent 72%) top / 100% 1px no-repeat,
    radial-gradient(140px 1px at var(--cursor-x) 50%, rgba(var(--edge-rgb), var(--edge-bottom)) 0%, transparent 72%) bottom / 100% 1px no-repeat,
    radial-gradient(1px 140px at 50% var(--cursor-y), rgba(var(--edge-rgb), var(--edge-left)) 0%, transparent 72%) left / 1px 100% no-repeat,
    radial-gradient(1px 140px at 50% var(--cursor-y), rgba(var(--edge-rgb), var(--edge-right)) 0%, transparent 72%) right / 1px 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}

@keyframes glassHeaderIn {
  from {
    opacity: 0;
    margin-top: -20px;
  }
  to {
    opacity: 1;
    margin-top: 0;
  }
}

.glass-header__logo {
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.glass-header__logo:hover {
  color: #000000;
}

.glass-header__nav {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  max-width: 520px;
  overflow: hidden;
  opacity: 1;
  --nav-opacity-delay: 0ms;
  transition:
    max-width 2000ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 620ms ease var(--nav-opacity-delay);
}

/* Collapse on scroll: keep only logo + menu button */
.glass-header.glass-header--collapsed .glass-header__nav {
  --nav-opacity-delay: 220ms;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}

.glass-header__link {
  padding: 14px 22px;
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Magnetic proximity hover - no grey blocks; only gentle emphasis */
.glass-header__link.is-near {
  background: transparent;
  color: rgba(0, 0, 0, 0.85);
}

/* Hover/focus state - full background reveal */
.glass-header__link:hover,
.glass-header__link.is-near:hover,
.glass-header__link:focus-visible {
  background: var(--glass-item-hover-bg);
  color: #000000;
}

.glass-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.03) !important;
  /* Keep the 3-dot color consistent with header text */
  color: rgba(0, 0, 0, 0.65);
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.glass-header__menu-btn:hover {
  background: var(--glass-item-hover-bg);
}

.glass-header__menu-btn span {
  display: block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin: 0 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover shows a + icon (dots fade out) */
.glass-header__menu-btn::before,
.glass-header__menu-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.glass-header__menu-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.glass-header__menu-btn:hover::before,
.glass-header__menu-btn:hover::after {
  opacity: 1;
}

.glass-header__menu-btn:hover span {
  opacity: 0;
}

/* 3-dot layout */
.glass-header__menu-btn {
  flex-direction: row;
  gap: 3px;
}

/* Menu open state */
.glass-header__menu-btn.is-open span:nth-child(1) {
  transform: translateX(6px) rotate(45deg) scale(1.5);
}

.glass-header__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.glass-header__menu-btn.is-open span:nth-child(3) {
  transform: translateX(-6px) rotate(-45deg) scale(1.5);
}

/* When the fixed header overlaps dark sections, flip text to white */
.glass-header.is-on-dark {
  --edge-rgb: 255, 255, 255;
  --glass-item-hover-bg: rgba(255, 255, 255, 0.12);
}

.glass-header.is-on-dark .glass-header__logo {
  color: rgba(255, 255, 255, 0.95);
}

.glass-header.is-on-dark .glass-header__logo:hover {
  color: #ffffff;
}

.glass-header.is-on-dark .glass-header__link {
  color: rgba(255, 255, 255, 0.72);
}

.glass-header.is-on-dark .glass-header__link.is-near {
  color: rgba(255, 255, 255, 0.92);
}

.glass-header.is-on-dark .glass-header__link:hover,
.glass-header.is-on-dark .glass-header__link.is-near:hover,
.glass-header.is-on-dark .glass-header__link:focus-visible {
  background: var(--glass-item-hover-bg);
  color: #ffffff;
}

.glass-header.is-on-dark .glass-header__menu-btn {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-header.is-on-dark .glass-header__menu-btn:hover {
  background: var(--glass-item-hover-bg);
}

/* ============================================
   FULLSCREEN MENU OVERLAY
   ============================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-charcoal);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s linear 0.5s;
}

.fullscreen-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s;
}

/* Center close (X) button inside menu */
.fullscreen-menu__close {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fullscreen-menu__close::before,
.fullscreen-menu__close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.fullscreen-menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fullscreen-menu__close:hover {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
}

.fullscreen-menu__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.fullscreen-menu__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  padding: 140px 80px 60px;
}

.fullscreen-menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}

.fullscreen-menu__nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.fullscreen-menu__link {
  /* Scale with viewport height so it always fits */
  font-size: clamp(2.4rem, 6.2vh, 4.6rem);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  text-decoration: none;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-style: normal;
  font-family: var(--font-primary);
  opacity: 0;
  transform: translateY(40px);
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.fullscreen-menu.is-open .fullscreen-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(4) { transition-delay: 0.25s; }
.fullscreen-menu.is-open .fullscreen-menu__link:nth-child(5) { transition-delay: 0.3s; }

.fullscreen-menu__link:hover {
  color: var(--color-light-grey);
}

.fullscreen-menu__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 60px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 20px;
}

.fullscreen-menu__contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  text-decoration: none;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateX(20px);
}

.fullscreen-menu.is-open .fullscreen-menu__contact-link {
  opacity: 1;
  transform: translateX(0);
}

.fullscreen-menu.is-open .fullscreen-menu__contact-link:nth-child(1) { transition-delay: 0.2s; }
.fullscreen-menu.is-open .fullscreen-menu__contact-link:nth-child(2) { transition-delay: 0.25s; }
.fullscreen-menu.is-open .fullscreen-menu__contact-link:nth-child(3) { transition-delay: 0.3s; }

.fullscreen-menu__contact-link:hover {
  color: var(--color-light-grey);
}

.fullscreen-menu__dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.fullscreen-menu__social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fullscreen-menu__social-title {
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.fullscreen-menu__social-link {
  color: var(--color-medium-grey);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.fullscreen-menu__social-link:hover {
  color: var(--color-white);
}

.fullscreen-menu__time {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  font-variant-numeric: tabular-nums;
}

/* Body lock when menu open */
body.menu-open {
  overflow: hidden;
}

/* Remove header when fullscreen menu is open */
body.menu-open .glass-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Responsive Glass Header */
@media (max-width: 968px) {
  .glass-header {
    top: 16px;
    padding: 0;
  }
  
  .glass-header__nav {
    display: none;
  }
  
  .glass-header__logo {
    padding: 12px 20px;
    font-size: 0.85rem;
    border-right: none;
  }
  
  .glass-header__menu-btn {
    width: 44px;
    height: 44px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .fullscreen-menu__inner {
    grid-template-columns: 1fr;
    padding: 120px 30px 40px;
    gap: 60px;
  }
  
  .fullscreen-menu__nav {
    justify-content: flex-start;
  }
  
  .fullscreen-menu__link {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
  
  .fullscreen-menu__info {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .fullscreen-menu__contact {
    padding-top: 0;
  }
}

/* ============================================
   Buttons - Layered Stack Effect
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1.125rem 2.5rem;
  margin: 0 0 0 5px;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.03em;
  border-radius: var(--border-radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 2;
}

/* Pseudo-elements are defined per-variant (prevents conflicts) */
.btn::before,
.btn::after {
  content: none;
}

.btn--primary {
  background-color: transparent;
  color: var(--color-white);
  position: relative;
}

/* Top (black) face */
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-charcoal);
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Back (white + black border) layer */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-white);
  border: 2px solid #000;
  z-index: -2;
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary:hover {
  transform: translate(-6px, -6px);
}

.btn--primary:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(6px, 6px);
}

.btn--primary:active,
.btn--primary.clicked {
  transform: translate(0, 0);
}

.btn--primary:active::after,
.btn--primary.clicked::after {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
}

.btn--secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-charcoal);
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-white);
  border: 2px solid #000;
  z-index: -2;
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--secondary:hover {
  transform: translate(-6px, -6px);
}

.btn--secondary:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(6px, 6px);
}

.btn--secondary:active,
.btn--secondary.clicked {
  transform: translate(0, 0);
}

.btn--secondary:active::after,
.btn--secondary.clicked::after {
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0);
}

/* Inverted buttons for dark backgrounds */
.section--dark .btn--primary,
.section--dark .btn--secondary,
.section--dark .btn--white,
.hero--home .btn--primary,
.hero--page .btn--primary {
  color: var(--color-charcoal);
}

.section--dark .btn--primary::before,
.section--dark .btn--secondary::before,
.section--dark .btn--white::before,
.hero--home .btn--primary::before,
.hero--page .btn--primary::before {
  background: var(--color-white);
}

.section--dark .btn--primary::after,
.section--dark .btn--secondary::after,
.section--dark .btn--white::after,
.hero--home .btn--primary::after,
.hero--page .btn--primary::after {
  background: var(--color-charcoal);
  border: 2px solid var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-charcoal);
  padding: 0;
  border: none;
}

.btn--ghost::before,
.btn--ghost::after {
  display: none;
}

.btn--ghost:hover {
  transform: translateX(4px);
}

.btn--white {
  background-color: transparent;
  color: var(--color-white);
}

.btn--white::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-charcoal);
  z-index: -1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--white::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-white);
  border: 2px solid #000;
  z-index: -2;
  opacity: 0;
  visibility: hidden;
  transform: translate(0, 0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--white:hover {
  transform: translate(-6px, -6px);
}

.btn--white:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(6px, 6px);
}

.btn--small {
  padding: 0.875rem 2rem;
  font-size: 0.8125rem;
}

/* ============================================
   Hero Section - Dramatic & Immersive
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background-color: var(--color-white);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.hero--home {
  background: var(--color-charcoal);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero__overline {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  display: inline-block;
}

.hero__title {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-charcoal);
  font-size: clamp(2.5rem, 6vw, 5rem);
}

/* ============================================
   ESTRELA-STYLE PARALLAX HERO
   Two lines moving in opposite directions
   ============================================ */
.hero__content--responsive {
  width: 100%;
  max-width: 100vw;
  text-align: center;
  padding: 0;
}

/* Parallax container */
.hero__parallax {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: visible;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Each line is full width, text shifts inside */
.hero__line {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.hero__line-text {
  display: inline-block;
  font-size: clamp(2.5rem, 7vw, 6rem);
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Line 1 starts from left, moves right */
.hero__line--1 {
  text-align: left;
}

.hero__line--1 .hero__line-text {
  transform: translateX(var(--line1-x, 0px));
}

/* Line 2 moves same direction as line 1 */
.hero__line--2 {
  text-align: left;
}

.hero__line--2 .hero__line-text {
  transform: translateX(var(--line2-x, 0px));
}

/* Description & actions centered */
.hero__content--responsive .hero__description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.hero__content--responsive .hero__actions {
  justify-content: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* Mobile: disable parallax, center everything */
@media (max-width: 768px) {
  .hero__line-text {
    font-size: clamp(2rem, 10vw, 3.5rem);
    white-space: normal;
    transform: none !important;
  }
  
  .hero__line--1,
  .hero__line--2 {
    text-align: center;
  }
  
  .hero__parallax {
    overflow: visible;
  }
}

.hero__description {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--color-medium-grey);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 700px;
}

.hero__actions {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  margin-top: -1rem;
}

.hero__visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-graphite) 100%);
  transform: translateX(calc(45% + var(--visual-x, 0px))) skewX(-3deg);
  transform-origin: top right;
  opacity: 0.98;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

@media (max-width: 1024px) {
  .hero__visual {
    transform: translateX(calc(55% + var(--visual-x, 0px))) skewX(-3deg);
  }
}

@media (max-width: 768px) {
  .hero__visual {
    display: none;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .hero__content {
    max-width: 100%;
  }
}

/* Page Hero (Interior Pages) - Full Screen Impact */
.hero--page {
  min-height: 80vh;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.hero--page .hero__title {
  color: var(--color-white);
}

.hero--page .hero__description {
  color: var(--color-light-grey);
  max-width: 600px;
}

.hero--page .hero__overline {
  color: var(--color-light-grey);
}

/* ============================================
   Cards - Editorial & Refined
   ============================================ */
.card {
  background-color: var(--color-white);
  padding: clamp(2rem, 4vw, 3rem);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: var(--color-charcoal);
  background-color: var(--color-off-white);
  transition: all var(--transition-base);
}

.card:hover .card__icon {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.card__icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--color-charcoal);
  font-weight: var(--font-weight-semibold);
}

.card__description {
  font-size: 1rem;
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  transition: gap var(--transition-base);
}

.card__link:hover {
  gap: var(--space-sm);
  color: var(--color-accent);
}

/* Feature Card */
.card--feature {
  padding: clamp(2.5rem, 5vw, 4rem);
  background-color: var(--color-off-white);
  border: none;
}

.card--feature:hover {
  background-color: var(--color-white);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Dark Card */
.card--dark {
  background-color: var(--color-graphite);
  border-color: rgba(255, 255, 255, 0.05);
}

.card--dark:hover {
  background-color: var(--color-dark-grey);
  border-color: rgba(255, 255, 255, 0.1);
}

.card--dark .card__title {
  color: var(--color-white);
}

.card--dark .card__description {
  color: var(--color-silver);
}

.card--dark .card__icon {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

.card--dark:hover .card__icon {
  background-color: var(--color-accent);
}

/* ============================================
   Stats - Bold & Impactful
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  text-align: center;
}

.stat__value {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  line-height: 1;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: var(--color-medium-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-medium);
}

.section--dark .stat__value,
.section--black .stat__value {
  color: var(--color-white);
}

.section--dark .stat__label,
.section--black .stat__label {
  color: var(--color-silver);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 6vw, 3rem);
  }
}

/* ============================================
   Certifications
   ============================================ */
.certifications {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 6vw, 5rem);
  flex-wrap: wrap;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.certification {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  opacity: 0.6;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: clamp(0.5rem, 1vw, 0.75rem);
  position: relative;
}

.certification::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.certification:hover {
  opacity: 1;
  cursor: none;
}

.certification:hover::before {
  opacity: 1;
  transform: scale(1);
}

.certification.magnetic-active::before {
  opacity: 1;
  transform: scale(1.02);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.certification__logo {
  height: clamp(48px, 6vw, 56px);
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.certification:hover .certification__logo {
  filter: grayscale(0%);
}

.certification__name {
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  color: var(--color-medium-grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: var(--font-weight-semibold);
}

/* ============================================
   Process / Timeline
   ============================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: clamp(28px, 6vw, 36px);
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-silver) 10%, var(--color-silver) 90%, transparent);
}

.process__step {
  text-align: center;
  position: relative;
  transition: transform var(--transition-smooth);
}

.process__step:hover {
  transform: translateY(-8px);
}

.process__number {
  width: clamp(56px, 8vw, 72px);
  height: clamp(56px, 8vw, 72px);
  border-radius: 50%;
  background-color: var(--color-charcoal);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-bold);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  position: relative;
  z-index: 1;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.process__step:hover .process__number {
  background-color: var(--color-accent);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.process__title {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: var(--font-weight-semibold);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.process__description {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--color-medium-grey);
  line-height: 1.6;
}

@media (max-width: 968px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

@media (max-width: 576px) {
  .process {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
  
  .process::before {
    display: none;
  }
}

/* ============================================
   Services List
   ============================================ */
.service-item {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  /* position:relative needed for child animations but doesn't break backdrop-filter */
  position: relative;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:nth-child(even) {
  grid-template-columns: 0.8fr 1.2fr;
  direction: rtl;
}

.service-item:nth-child(even) > * {
  direction: ltr;
}

.service-item__content {
  max-width: 560px;
}

.service-item__number {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  text-transform: uppercase;
}

.service-item__title {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.service-item__description {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-medium-grey);
}

.service-item__features {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.service-item__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  color: var(--color-dark-grey);
  font-weight: var(--font-weight-medium);
}

.service-item__feature::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.service-item__visual {
  aspect-ratio: 5/4;
  background-color: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
  transition: transform var(--transition-smooth);
}

.service-item__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 5;
}

.service-item:hover .service-item__visual {
  transform: scale(1.02);
}

.service-item__visual-placeholder {
  width: 85%;
  height: 70%;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-graphite) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-silver);
  font-size: clamp(0.875rem, 1vw, 1rem);
  transform: skewX(-2deg);
}

.service-item__visual-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}

@media (max-width: 968px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    padding: clamp(3rem, 6vw, 4rem) 0;
  }
  
  .service-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* ============================================
   Solutions Grid
   ============================================ */
.solution-card {
  position: relative;
  aspect-ratio: 4/5;
  background-color: var(--color-charcoal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 4vw, 3rem);
  transition: all var(--transition-smooth);
  border-radius: 2px;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
  transition: opacity var(--transition-smooth);
}

.solution-card:hover::before {
  opacity: 0.95;
}

.solution-card__content {
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: transform var(--transition-smooth);
}

.solution-card:hover .solution-card__content {
  transform: translateY(-8px);
}

.solution-card__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--color-white);
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  line-height: 1.2;
  font-weight: var(--font-weight-bold);
}

.solution-card__description {
  font-size: clamp(0.9375rem, 1.1vw, 1rem);
  color: var(--color-silver);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
}

.solution-card:hover .solution-card__description {
  opacity: 1;
  transform: translateY(0);
}

.solution-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(3rem, 6vw, 4rem);
}

.testimonial__quote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: var(--font-weight-light);
  line-height: 1.5;
  color: var(--color-charcoal);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.testimonial__quote::before {
  content: '"';
  display: block;
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.testimonial__author {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
}

.testimonial__role {
  font-size: clamp(0.875rem, 1vw, 1rem);
  color: var(--color-medium-grey);
  margin-top: clamp(0.5rem, 1vw, 0.75rem);
  font-weight: var(--font-weight-regular);
}

/* ============================================
   Contact Form
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.75rem);
}

.form__label {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  letter-spacing: 0.01em;
}

.form__input,
.form__textarea,
.form__select {
  padding: clamp(1rem, 2vw, 1.25rem);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  font-family: inherit;
  border: 2px solid var(--color-silver);
  background-color: var(--color-white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-charcoal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form__textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (max-width: 768px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Commitment Section (Curved Black)
   ============================================ */
.commitment {
  position: relative;
  background: #000;
  color: #fff;
  padding: 120px 80px;
  overflow: hidden;
  margin-top: -200px;
}

/* Curved top using pseudo-element */
.commitment::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 140px;
  background: var(--color-off-white);
  border-bottom-left-radius: 100% 100%;
  border-bottom-right-radius: 100% 100%;
  z-index: 1;
}

.commitment .content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.commitment .divider {
  width: 1px;
  height: 120px;
  background: #fff;
  opacity: 0.2;
}

.commitment .item h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.commitment .item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .commitment {
    padding: 80px 30px;
  }
  
  .commitment::before {
    top: -100px;
    height: 160px;
  }
  
  .commitment .content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .commitment .divider {
    display: none;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: #1a1a1a;
  color: var(--color-white);
  padding: clamp(3rem, 5vw, 4rem) 0 0;
  position: relative;
  overflow: hidden;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer__left {
  display: flex;
  gap: clamp(4rem, 8vw, 10rem);
}

.footer__column {
  display: flex;
  flex-direction: column;
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 2.5vw, 2rem);
  width: clamp(320px, 34vw, 560px);
  min-width: 280px;
}

.footer__title {
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.625rem, 1vw, 0.75rem);
}

.footer__link {
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  display: inline-block;
  width: fit-content;
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(2px);
}

/* Contact Us Button */
.footer__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(1.05rem, 2.2vw, 1.6rem) clamp(2.2rem, 4.5vw, 3.2rem);
  font-size: clamp(0.95rem, 1.15vw, 1.075rem);
  width: 100%;
  justify-content: center;
}

/* Make layered button visible on dark footer */
.footer .btn--primary.footer__contact-btn,
.footer .btn--secondary.footer__contact-btn,
.footer .btn--white.footer__contact-btn {
  color: var(--color-charcoal);
}

.footer .btn--primary.footer__contact-btn::before,
.footer .btn--secondary.footer__contact-btn::before,
.footer .btn--white.footer__contact-btn::before {
  background: #ffffff;
}

.footer .btn--primary.footer__contact-btn::after,
.footer .btn--secondary.footer__contact-btn::after,
.footer .btn--white.footer__contact-btn::after {
  background: var(--color-charcoal);
  border: 2px solid #ffffff;
}

.footer__contact-btn-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.footer__contact-info {
  width: 100%;
}

.footer__contact-text-wrap {
  display: flex;
  flex-direction: column;
}

.footer__contact-text {
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.footer__contact-links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 0.8vw, 0.625rem);
  align-self: flex-start;
}

.footer__contact-link {
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  color: rgba(255, 255, 255, 0.95);
  transition: all var(--transition-fast);
  display: inline-block;
  width: fit-content;
  position: relative;
  padding-left: 1.2em;
}

.footer__contact-link::before {
  content: '•';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
}

.footer__contact-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer__brand {
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer__brand-text {
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
  transform: translateY(5%);
}

@media (max-width: 968px) {
  .footer__top {
    flex-direction: column;
  }
  
  .footer__right {
    align-items: flex-start;
    min-width: auto;
  }
  
  .footer__contact-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .footer__left {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer__brand-text {
    font-size: clamp(3rem, 20vw, 6rem);
  }
}

.footer__copyright {
  font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
  display: flex;
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.footer__legal a {
  font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 968px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
  
  .footer__column--contact {
    grid-column: 1 / -1;
    margin-top: clamp(2rem, 4vw, 3rem);
  }
}

@media (max-width: 576px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
  
  .footer__column--contact {
    margin-top: 0;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .footer__legal {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .footer__brand-text {
    font-size: clamp(2rem, 15vw, 4rem);
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

/* ============================================
   Additional Components
   ============================================ */

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow: visible;
  padding: 1px;
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(0.75rem, 1.5vw, 1rem);
  transition: all var(--transition-base);
  border-radius: 2px;
  position: relative;
  --cursor-x: 50%;
  --cursor-y: 50%;
}

.feature-list__item::after {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-radius: inherit;
  background:
    radial-gradient(
      circle 120px at var(--cursor-x, 50%) var(--cursor-y, 50%),
      #000000 0%,
      #000000 30%,
      transparent 100%
    );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-list__item:hover::after {
  opacity: 1;
}

.section--dark .feature-list__item::after {
  background:
    radial-gradient(
      circle 120px at var(--cursor-x, 50%) var(--cursor-y, 50%),
      #ffffff 0%,
      #ffffff 30%,
      transparent 100%
    );
}

.feature-list__item:hover {
  transform: translateX(8px);
  background-color: #ffffff;
}

.section--dark .feature-list__item:hover {
  background-color: #000000;
}

.feature-list__icon {
  flex-shrink: 0;
  width: clamp(24px, 3vw, 28px);
  height: clamp(24px, 3vw, 28px);
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.feature-list__item:hover .feature-list__icon {
  transform: scale(1.15);
}

.feature-list__text {
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  color: var(--color-dark-grey);
  line-height: 1.6;
  font-weight: var(--font-weight-regular);
}

/* Divider */
.divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: clamp(3rem, 6vw, 4rem) 0;
}

.section--dark .divider {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: clamp(0.375rem, 0.75vw, 0.5rem) clamp(1rem, 2vw, 1.25rem);
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--color-off-white);
  color: var(--color-dark-grey);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.badge--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: clamp(1rem, 2vw, 1.5rem);
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.table th {
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-medium-grey);
  background-color: var(--color-off-white);
}

.table td {
  font-size: clamp(0.9375rem, 1.05vw, 1rem);
  color: var(--color-dark-grey);
  transition: background-color var(--transition-base);
}

.table tr:hover td {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Accordion */
.accordion {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.accordion__item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: color var(--transition-base);
}

.accordion__header:hover {
  color: var(--color-accent);
}

.accordion__icon {
  width: clamp(24px, 3vw, 28px);
  height: clamp(24px, 3vw, 28px);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.accordion__item--active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.accordion__item--active .accordion__content {
  max-height: 800px;
}

.accordion__body {
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-medium-grey);
  font-size: clamp(1rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
}

/* Image Placeholder */
.img-placeholder {
  background-color: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-light-grey);
  font-size: clamp(0.875rem, 1vw, 1rem);
  min-height: 240px;
}

/* Two Column Layout - Asymmetric */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.two-col--asymmetric-left {
  grid-template-columns: 1.3fr 0.7fr;
}

.two-col--asymmetric-right {
  grid-template-columns: 0.7fr 1.3fr;
}

@media (max-width: 968px) {
  .two-col,
  .two-col--asymmetric-left,
  .two-col--asymmetric-right {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
}

/* Section Header - Editorial */
.section-header {
  max-width: 800px;
  margin-bottom: clamp(3rem, 6vw, 6rem);
  /* Ensure backdrop-filter from header above works */
  position: relative;
  z-index: auto;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header__overline {
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  display: inline-block;
}

.section-header__title {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-header__description {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-medium-grey);
}

/* ============================================
   Editorial Enhancements
   ============================================ */

/* Large Text - Statement Typography */
.text-large {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.3;
  font-weight: var(--font-weight-light);
  letter-spacing: -0.02em;
}

/* Highlighted Text */
.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.3em;
  background-color: var(--color-accent);
  opacity: 0.2;
  z-index: -1;
}

/* Overlapping Content */
.overlap-container {
  position: relative;
}

.overlap-content {
  position: absolute;
  bottom: -20%;
  left: 5%;
  right: 5%;
  background: var(--color-white);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Sticky Section Number */
.section-number {
  position: sticky;
  top: 120px;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-off-white);
  line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0.5;
  pointer-events: none;
}

/* Image with Caption */
.image-with-caption {
  position: relative;
}

.image-caption {
  margin-top: clamp(0.75rem, 1.5vw, 1rem);
  font-size: clamp(0.8125rem, 0.95vw, 0.875rem);
  color: var(--color-medium-grey);
  font-style: italic;
}

/* Pull Quote */
.pull-quote {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.4;
  font-weight: var(--font-weight-light);
  color: var(--color-charcoal);
  border-left: 4px solid var(--color-accent);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  margin: clamp(3rem, 6vw, 4rem) 0;
  letter-spacing: -0.01em;
}

/* Asymmetric Grid - Editorial Layouts */
.grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.grid-editorial > *:nth-child(1) {
  grid-column: span 7;
}

.grid-editorial > *:nth-child(2) {
  grid-column: span 5;
}

@media (max-width: 968px) {
  .grid-editorial {
    grid-template-columns: 1fr;
  }
  
  .grid-editorial > * {
    grid-column: span 1 !important;
  }
}

/* Floating Elements */
.float-element {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Skewed Section Background */
.section--skewed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  transform: skewY(-2deg);
  transform-origin: top left;
  z-index: -1;
}

/* Full Bleed */
.full-bleed {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Helpers */
@media (max-width: 576px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 577px) and (max-width: 968px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 969px) {
  .hide-desktop { display: none !important; }
}

/* ============================================
   ADVANCED AGENCY EFFECTS
   Professional Custom Cursor + Animations
   ============================================ */

/* Custom Cursor */
.cursor-outer {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0;
}

.cursor-inner {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  opacity: 0;
}

.custom-cursor-enabled .cursor-outer,
.custom-cursor-enabled .cursor-inner {
  opacity: 1;
}

.custom-cursor-enabled * {
  cursor: none !important;
}

.cursor-hover.cursor-outer {
  width: 60px;
  height: 60px;
  border-color: var(--color-charcoal);
  background: rgba(74, 107, 124, 0.1);
}

.cursor-hover.cursor-inner {
  width: 4px;
  height: 4px;
  background: var(--color-charcoal);
}

/* Light cursor for dark backgrounds */
.cursor-outer.cursor-light {
  border-color: #ffffff;
}

.cursor-inner.cursor-light {
  background: #ffffff;
}

.cursor-hover.cursor-outer.cursor-light {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cursor-hover.cursor-inner.cursor-light {
  background: #ffffff;
}

/* Hide cursor circle on products sidebar, only show dot */
.cursor[data-hovering-sidebar="true"] {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

/* Base scroll animate state */
.scroll-animate {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
  opacity: 1;
  transform: none !important;
}

/* Fade Up */
.fade-up {
  transform: translateY(60px);
}

/* Fade Down */
.fade-down {
  transform: translateY(-60px);
}

/* Fade Left */
.fade-left {
  transform: translateX(60px);
}

/* Fade Right */
.fade-right {
  transform: translateX(-60px);
}

/* Zoom In */
.zoom-in {
  transform: scale(0.9);
}

/* Zoom Out */
.zoom-out {
  transform: scale(1.1);
}

/* Rotate In */
.rotate-in {
  transform: rotate(-10deg) scale(0.9);
}

/* Flip Up */
.flip-up {
  transform: perspective(1000px) rotateX(30deg);
  transform-origin: bottom;
}

/* ============================================
   BUTTON EFFECTS (Ripple only - Layer effect in main .btn section)
   ============================================ */

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================
   CARD EFFECTS
   ============================================ */

.card,
.solution-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform;
}

.card:hover,
.solution-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Card Glow Effect */
.card::after,
.solution-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(74, 107, 124, 0.15), transparent 50%);
  pointer-events: none;
}

.card:hover::after,
.solution-card:hover::after {
  opacity: 1;
}

/* ============================================
   IMAGE REVEAL
   ============================================ */

.hero__visual,
.service-item__visual {
  position: relative;
  overflow: hidden;
}

.hero__visual::before,
.service-item__visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-charcoal);
  z-index: 2;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero__visual.image-revealed::before,
.service-item__visual.image-revealed::before {
  transform: scaleX(0);
}

/* Always show service visuals (avoid black reveal cover hiding images) */
.service-item__visual::before {
  transform: scaleX(0) !important;
  opacity: 0 !important;
}

/* ============================================
   HEADER EFFECTS
   ============================================ */

.header {
  transition: transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TEXT EFFECTS
   ============================================ */

/* Glitch Effect */
.hero__title {
  position: relative;
}

.hero__title::before,
.hero__title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.hero__title:hover::before {
  animation: glitch-1 0.3s infinite;
  color: var(--color-accent);
  opacity: 0.8;
}

.hero__title:hover::after {
  animation: glitch-2 0.3s infinite;
  color: var(--color-charcoal);
  opacity: 0.8;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
  20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, -2px); }
  40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px, 2px); }
  60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
  80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(65% 0 18% 0); transform: translate(2px, -2px); }
  20% { clip-path: inset(10% 0 85% 0); transform: translate(-2px, 2px); }
  40% { clip-path: inset(34% 0 45% 0); transform: translate(2px, -2px); }
  60% { clip-path: inset(75% 0 12% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(15% 0 60% 0); transform: translate(2px, -2px); }
}

/* ============================================
   STAT COUNTER EFFECT
   ============================================ */

.stat__number {
  transition: transform 0.3s ease, color 0.3s ease;
}

.stat:hover .stat__number {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* ============================================
   SERVICE ITEM EFFECTS
   ============================================ */

.service-item {
  position: relative;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.4s ease;
}

.service-item:hover::before {
  height: 100%;
}

/* ============================================
   FORM INPUT EFFECTS
   ============================================ */

.form__input,
.form__textarea,
.form__select {
  transition: all 0.3s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

/* ============================================
   FOOTER LINK EFFECTS
   ============================================ */

.footer__link {
  position: relative;
  display: inline-block;
}

.footer__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-white);
  transition: width 0.3s ease;
}

.footer__link:hover::before {
  width: 100%;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

body {
  opacity: 1;
}

/* ============================================
   MOBILE DISABLE HEAVY EFFECTS
   ============================================ */

@media (max-width: 1024px) {
  .cursor-outer,
  .cursor-inner {
    display: none !important;
  }
  
  * {
    cursor: auto !important;
  }
  
  .card:hover,
  .solution-card:hover {
    transform: none;
  }
}

.custom-cursor--hover {
  width: 60px;
  height: 60px;
  background-color: rgba(74, 107, 124, 0.1);
  border-color: var(--color-white);
}

.custom-cursor-dot {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
}

.custom-cursor-dot--hover {
  width: 12px;
  height: 12px;
  background-color: var(--color-white);
}

/* Custom cursor disabled - causing performance issues */
@media (min-width: 769px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Word Reveal Animation */
@keyframes wordReveal {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.word-reveal {
  animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateY(100%);
}

/* Image Reveal Effect */
.image-reveal {
  position: relative;
  overflow: hidden;
}

.image-reveal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-charcoal);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

.image-reveal-active::before {
  transform: scaleX(0);
  transform-origin: right;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  z-index: 9999;
  transition: width 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 107, 124, 0.4);
}

/* 3D Transform Enhancements */
.card,
.solution-card,
.service-item {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Magnetic Hover Effect Enhancement */
.btn {
  will-change: transform;
  backface-visibility: hidden;
}

/* Parallax Elements */
.hero__visual,
.service-item__visual {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Smooth Header Transition */
.header {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Page Load Animation */
body {
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero Animation - Fixed to show immediately */
.hero {
  opacity: 1;
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Animation Classes */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Fade In Elements */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-active {
  opacity: 1;
  transform: translateY(0);
}

/* Blur Effect on Scroll */
@supports (backdrop-filter: blur(10px)) {
  .header--scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
  }
}

/* Enhanced Card Hover */
.card:hover,
.solution-card:hover {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Text Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

::-moz-selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Smooth Scrolling for Whole Page */
html {
  scroll-behavior: smooth;
}

/* Remove scroll-behavior for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced Button Glow Effect */
.btn--primary:hover {
  box-shadow: 
    0 0 20px rgba(74, 107, 124, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Service Item Enhanced Interaction */
.service-item:hover {
  box-shadow: 
    -8px 0 0 0 var(--color-accent),
    0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Counter Highlight */
.stat__number {
  transition: all 0.3s ease;
  will-change: contents;
}

.stat:hover .stat__number {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* Process Step Enhanced Hover */
.process__step {
  will-change: transform;
}

.process__step:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Certification Enhanced Animation */
.certification {
  will-change: transform, opacity;
}

.certification:hover {
  transform: translateY(-8px) rotate(2deg);
}

/* Testimonial Quote Animation */
.testimonial__quote {
  position: relative;
  will-change: transform;
}

.testimonial:hover .testimonial__quote {
  transform: scale(1.02);
}

/* Form Input Focus Animation */
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(74, 107, 124, 0.1);
}

/* Footer Link Hover */
.footer__link {
  position: relative;
}

.footer__link::after {
  content: '→';
  position: absolute;
  right: -20px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer__link:hover::after {
  opacity: 1;
  right: -15px;
}

/* Navigation Mobile Open State */
body.nav-open {
  overflow: hidden;
}

.nav__list--open {
  animation: slideInFromTop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Grid Item Hover */
.grid > * {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid > *:hover {
  transform: translateY(-4px);
  z-index: 10;
}

/* Accent Underline Animation */
.text-highlight::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-highlight:hover::after {
  transform: scaleX(1);
}

/* Pull Quote Enhanced */
.pull-quote {
  position: relative;
  animation: fadeInUp 1s ease forwards;
  animation-play-state: paused;
}

.pull-quote.in-view {
  animation-play-state: running;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Liquid Loading Effect */
@keyframes liquidLoad {
  0% {
    clip-path: polygon(
      0% 100%,
      10% 100%,
      10% 100%,
      20% 100%,
      30% 100%,
      40% 100%,
      50% 100%,
      60% 100%,
      70% 100%,
      80% 100%,
      90% 100%,
      100% 100%,
      100% 100%,
      0% 100%
    );
  }
  100% {
    clip-path: polygon(
      0% 0%,
      10% 0%,
      20% 0%,
      30% 0%,
      40% 0%,
      50% 0%,
      60% 0%,
      70% 0%,
      80% 0%,
      90% 0%,
      100% 0%,
      100% 100%,
      0% 100%
    );
  }
}

/* Apply liquid effect to hero visual */
.hero__visual {
  animation: liquidLoad 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Noise Texture Overlay */
@keyframes noise {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
}

.noise-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><filter id="noise"><feTurbulence baseFrequency="0.9" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
  opacity: 0.02;
  pointer-events: none;
  animation: noise 8s steps(10) infinite;
  z-index: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Disable heavy animations on mobile */
  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }
  
  * {
    cursor: auto !important;
  }
  
  .parallax-disabled {
    transform: none !important;
  }
  
  /* Simplify 3D effects */
  .card,
  .solution-card {
    transform: none !important;
    perspective: none !important;
  }
}

/* Performance Optimizations */
.will-animate {
  will-change: transform, opacity;
}

.gpu-accelerate {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
/* ============================================
   Layered Scroll Experience
   Premium slide-over sections
   ============================================ */

.layered-scroll-container {
  position: relative;
  width: 100%;
  background: var(--color-off-white);
  /* Ensure nothing here breaks sticky stacking */
  overflow: visible;
  transform: none;
  contain: none;
}

.layered-scroll-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--color-charcoal);
  position: relative;
  z-index: 1;
}

.layered-scroll-header .section-header__overline,
.layered-scroll-header .section-header__title {
  color: var(--color-white);
}

.layered-scroll-wrapper {
  position: relative;
  /* Height will be calculated by JavaScript based on number of sections */
  min-height: 400vh;
}

.layered-section {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* Avoid transforms on sticky elements (can break sticky in some setups) */
  will-change: auto;
  transform: none;
  background: #0a0a0a;
  isolation: isolate;
  /* Create spacing between sections for scroll progression */
  margin-bottom: 0;
}

/* Each section gets progressively higher z-index for proper stacking */
.layered-section[data-layer="1"] { z-index: 10; }
.layered-section[data-layer="2"] { z-index: 20; }
.layered-section[data-layer="3"] { z-index: 30; }
.layered-section[data-layer="4"] { z-index: 40; }

/* Last section should have no margin */
.layered-section:last-child {
  margin-bottom: 0;
}

.layered-section__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
}

.layered-section__content {
  max-width: 900px;
  color: var(--color-white);
  padding: var(--space-2xl);
}

.layered-section__number {
  display: inline-block;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: var(--space-md);
  opacity: 0.6;
}

.layered-section__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.layered-section__subtitle {
  font-size: 1.25rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-silver);
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

.layered-section__description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-off-white);
  margin-bottom: var(--space-xl);
  max-width: 700px;
  opacity: 0.9;
}

.layered-section__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.layered-section__feature {
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-off-white);
  opacity: 0.85;
  padding-left: var(--space-lg);
  position: relative;
}

.layered-section__feature::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-silver);
  font-weight: var(--font-weight-medium);
  opacity: 0.6;
}

/* Layered Scroll - Section layering handled by sticky positioning */

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .layered-section__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .layered-section__content {
    padding: var(--space-xl) var(--space-lg);
  }
  
  .layered-section__features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

@media (max-width: 768px) {
  .layered-scroll-header {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  
  .layered-section {
    height: 100vh;
    min-height: 600px;
  }
  
  .layered-section__content {
    padding: var(--space-lg);
  }
  
  .layered-section__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    margin-bottom: var(--space-md);
  }
  
  .layered-section__description {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }
  
  .layered-section__features {
    gap: var(--space-xs);
  }
  
  .layered-section__feature {
    font-size: 0.9rem;
  }
}

/* Smooth scroll snap for better control */
@media (hover: hover) {
  .layered-scroll-wrapper {
    scroll-snap-type: y proximity;
  }
  
  .layered-section {
    scroll-snap-align: start;
  }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  .layered-scroll-header {
    background: var(--color-charcoal);
  }
}
/* ============================================
   IMAGE SECTIONS - Homepage Visuals
   ============================================ */

/* Full-width Image Showcase */
.image-showcase {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-showcase__wrapper {
  position: relative;
  height: 100vh;
  width: 100%;
}

.image-showcase__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  will-change: transform;
}

.image-showcase:hover .image-showcase__image {
  transform: scale(1.02);
}

/* Split Section - Image + Text */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  position: relative;
}

/* Scroll-based image transition wrapper */
.split-section__image-wrapper {
  position: relative;
  overflow: hidden;
}

.split-section__image-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.split-section__image-layer--1 {
  z-index: 1;
}

.split-section__image-layer--2 {
  z-index: 2;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.1s linear;
}

.split-section__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

.split-section__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  z-index: 3;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 20px,
      rgba(255,255,255,0.03) 20px,
      rgba(255,255,255,0.03) 40px
    );
}

.split-section__content {
  padding: clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-white);
}

.split-section__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0 1.5rem;
  color: var(--color-charcoal);
}

.split-section__content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-medium-grey);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Image Grid Gallery */
.image-grid-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--color-off-white);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: clamp(3rem, 6vw, 4rem);
}

.image-grid__item {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  overflow: hidden;
  min-height: 280px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-grid__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.image-grid__item--large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 580px;
}

.image-grid__item--wide {
  grid-column: span 2;
}

.image-grid__label {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  color: var(--color-white);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-semibold);
  z-index: 2;
  letter-spacing: -0.01em;
}

.image-grid__item:hover {
  transform: translateY(-8px);
}

.image-grid__item:hover::before {
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  
  .split-section__image-wrapper {
    min-height: 400px;
  }
  
  /* Simpler mobile fallback - just show first image */
  .split-section__image-layer--2 {
    display: none;
  }
  
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .image-grid__item--large {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 320px;
  }
  
  .image-grid__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .image-showcase__wrapper {
    height: 50vh;
    min-height: 400px;
  }
  
  .split-section__content {
    padding: clamp(2rem, 6vw, 3rem);
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid__item,
  .image-grid__item--large,
  .image-grid__item--wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 240px;
  }
}

/* ============================================
   PRODUCTS SIDEBAR - Glass Effect Navigation
   ============================================ */
.products-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  /* Glass effect matching header */
  background: linear-gradient(
    rgba(82, 82, 82, 0.2) 0%,
    rgba(83, 82, 82, 0.2) 0%
  );
  backdrop-filter: blur(44px) saturate(140%);
  -webkit-backdrop-filter: blur(44px) saturate(140%);
  border-radius: 12px;
  border: none;
  padding: 0px 5px;
  opacity: 0;
  animation: productsSidebarIn 800ms cubic-bezier(0.16, 1, 0.3, 1) 500ms forwards;
  /* Custom properties for proximity border */
  --cursor-x: 50%;
  --cursor-y: 50%;
  --edge-top: 0;
  --edge-right: 0;
  --edge-bottom: 0;
  --edge-left: 0;
  --edge-rgb: 0, 0, 0;
}

/* Remove proximity border effect */
.products-sidebar::before {
  display: none;
}

@keyframes productsSidebarIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Vertical Products Button */
.products-sidebar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.2em;
  color: var(--color-charcoal);
  padding: 24px 10px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.products-sidebar__btn:hover {
  color: #000000;
}

/* When products sidebar overlaps dark sections, flip text to white */
.products-sidebar.is-on-dark {
  --edge-rgb: 255, 255, 255;
}

.products-sidebar.is-on-dark .products-sidebar__btn {
  color: rgba(255, 255, 255, 0.95);
}

.products-sidebar.is-on-dark .products-sidebar__btn:hover {
  color: #ffffff;
}

/* Vertical Text - Each letter on new line */
.products-sidebar__text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.25em;
  line-height: 1;
}

/* ============================================
   PRODUCTS POPUP - Contents Menu
   ============================================ */
.products-popup {
  position: fixed;
  right: 60px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  z-index: 999;
  min-width: 320px;
  max-width: 380px;
  /* Glass effect */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(44px) saturate(140%);
  -webkit-backdrop-filter: blur(44px) saturate(140%);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s;
}

.products-sidebar:hover ~ .products-popup,
.products-popup:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* Popup Header */
.products-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.products-popup__title {
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

.products-popup__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.products-popup__close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.products-popup__close svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-medium-grey);
  stroke-width: 2;
}

/* Popup Content */
.products-popup__content {
  padding: 12px 16px 20px;
}

/* Product Item */
.products-popup__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.products-popup__item:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}

.products-popup__item-image {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-off-white);
}

.products-popup__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.products-popup__item:hover .products-popup__item-image img {
  transform: scale(1.08);
}

.products-popup__item-info {
  flex: 1;
  min-width: 0;
}

.products-popup__item-title {
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.products-popup__item-desc {
  font-size: 0.8rem;
  color: var(--color-medium-grey);
  line-height: 1.4;
}

/* View All Link */
.products-popup__view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 16px 16px;
}

.products-popup__view-all-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.products-popup__view-all-btn:hover svg {
  transform: translateX(4px);
}

/* Responsive: Hide on mobile */
@media (max-width: 768px) {
  .products-sidebar,
  .products-popup {
    display: none;
  }
}

/* ============================================
   PRODUCTS PAGE - Showcase & Grid Styles
   ============================================ */

/* Hero Compact Variant */
.hero--compact {
  min-height: 60vh;
  padding-top: 120px;
}

/* Product Showcase Layout */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.product-showcase--reverse {
  direction: rtl;
}

.product-showcase--reverse > * {
  direction: ltr;
}

.product-showcase__content {
  max-width: 540px;
}

.product-showcase__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: inherit;
  margin-bottom: 1.5rem;
}

.section--dark .product-showcase__title {
  color: var(--color-white);
}

.product-showcase__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-medium-grey);
  margin-bottom: 2rem;
}

.section--dark .product-showcase__desc {
  color: var(--color-silver);
}

/* Product Features List */
.product-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.product-features__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  color: var(--color-charcoal);
}

.section--dark .product-features__item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--color-off-white);
}

.product-features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.section--dark .product-features__icon {
  background: var(--color-white);
  color: var(--color-charcoal);
}

/* Product Showcase Image */
.product-showcase__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-off-white);
}

.product-showcase__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-showcase:hover .product-showcase__image img {
  transform: scale(1.05);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Product Card */
.product-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, background 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

.product-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-dark-grey);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__content {
  padding: 20px 24px;
}

.product-card__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--color-light-grey);
}

/* CTA Product Card */
.product-card--cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.product-card--cta:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.product-card--cta .product-card__content {
  text-align: center;
}

.product-card--cta .product-card__title {
  font-size: 1.25rem;
}

.product-card__arrow {
  display: inline-block;
  font-size: 1.5rem;
  margin-top: 12px;
  transition: transform 0.3s ease;
}

.product-card--cta:hover .product-card__arrow {
  transform: translateX(8px);
}

/* ============================================
   PRODUCTS PAGE - DARK EDITORIAL STYLE
   ============================================ */

/* Category Cards - Dark, Bold Style */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30vw, 350px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.category-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover::before {
  height: 100%;
}

.category-card:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.category-card__icon {
  font-size: clamp(2rem, 4vw, 3rem);
  width: clamp(60px, 8vw, 80px);
  height: clamp(60px, 8vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.category-card:hover .category-card__icon {
  background: rgba(74, 107, 124, 0.2);
  transform: scale(1.05);
}

.category-card__content {
  flex: 1;
}

.category-card__title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  line-height: 1.2;
}

.category-card__desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--color-light-grey);
  line-height: 1.5;
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.category-card__count {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Product Filter Bar - Dark Style */
.product-filter {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.product-filter__btn {
  padding: clamp(0.75rem, 1vw, 1rem) clamp(1.25rem, 2vw, 1.75rem);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-light-grey);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-filter__btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  transform: translateY(-2px);
}

.product-filter__btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Product Grid - Responsive */
.product-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.product-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(clamp(280px, 30vw, 350px), 1fr));
}

.product-grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 25vw, 300px), 1fr));
}

/* Product Card - Bold Editorial Style */
.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::before {
  width: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__badges {
  position: absolute;
  top: clamp(0.75rem, 1.5vw, 1rem);
  left: clamp(0.75rem, 1.5vw, 1rem);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.product-badge {
  padding: clamp(0.35rem, 0.5vw, 0.5rem) clamp(0.75rem, 1vw, 1rem);
  border-radius: 0;
  font-size: clamp(0.65rem, 0.8vw, 0.75rem);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.product-badge--new {
  background: rgba(74, 107, 124, 0.95);
  color: white;
}

.product-badge--featured {
  background: rgba(26, 26, 26, 0.95);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card__content {
  padding: clamp(1.5rem, 3vw, 2rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: clamp(0.7rem, 0.8vw, 0.8rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.product-card__title {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  line-height: 1.2;
}

.product-card__desc {
  font-size: clamp(0.9rem, 1vw, 1rem);
  color: var(--color-light-grey);
  line-height: 1.6;
  flex: 1;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease;
}

.product-card:hover .product-card__footer {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.product-card__model {
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  color: var(--color-medium-grey);
  font-weight: var(--font-weight-medium);
}

.product-card__link {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card:hover .product-card__link {
  color: var(--color-white);
  gap: 0.75rem;
}

/* Compact Product Card */
.product-card--compact {
  flex-direction: row;
  align-items: center;
}

.product-card--compact .product-card__image {
  width: clamp(100px, 15vw, 140px);
  flex-shrink: 0;
  aspect-ratio: 1;
}

.product-card--compact .product-card__content {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.product-card--compact .product-card__title {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

/* ============================================
   DYNAMIC PRODUCT SYSTEM STYLES
   ============================================ */

/* Product Grid Variants */
.product-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Enhanced Product Card */
.product-card {
  background: var(--color-off-white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.section--dark .product-card {
  background: rgba(255, 255, 255, 0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.section--dark .product-card:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-silver);
  position: relative;
}

.section--dark .product-card__image {
  background: var(--color-dark-grey);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.product-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge--new {
  background: var(--color-accent);
  color: white;
}

.product-badge--featured {
  background: var(--color-charcoal);
  color: white;
}

.product-badge--large {
  padding: 8px 16px;
  font-size: 0.8rem;
  position: absolute;
  top: 16px;
  left: 16px;
}

.product-card__content {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.product-card__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: 8px;
  line-height: 1.3;
}

.section--dark .product-card__title {
  color: var(--color-white);
}

.product-card__desc {
  font-size: 0.9rem;
  color: var(--color-medium-grey);
  line-height: 1.5;
  flex: 1;
}

.section--dark .product-card__desc {
  color: var(--color-light-grey);
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section--dark .product-card__footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.product-card__model {
  font-size: 0.8rem;
  color: var(--color-light-grey);
}

.product-card__link {
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.product-card:hover .product-card__link {
  color: var(--color-charcoal);
}

/* Compact Product Card */
.product-card--compact {
  flex-direction: row;
  align-items: center;
}

.product-card--compact .product-card__image {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 1;
}

.product-card--compact .product-card__content {
  padding: 16px;
}

.product-card--compact .product-card__title {
  font-size: 1rem;
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.category-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--color-off-white);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  background: var(--color-white);
}

.category-card__icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 12px;
  flex-shrink: 0;
}

.category-card__content {
  flex: 1;
}

.category-card__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  margin-bottom: 6px;
}

.category-card__desc {
  font-size: 0.9rem;
  color: var(--color-medium-grey);
  line-height: 1.5;
  margin-bottom: 12px;
}

.category-card__count {
  font-size: 0.8rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent);
}

/* Product Filter Bar */
.product-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.product-filter__btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-medium-grey);
  background: var(--color-off-white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-filter__btn:hover,
.product-filter__btn.active {
  background: var(--color-charcoal);
  color: var(--color-white);
}

/* Product Detail Page */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-medium-grey);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.product-detail__breadcrumb a {
  color: var(--color-medium-grey);
  transition: color 0.3s ease;
}

.product-detail__breadcrumb a:hover {
  color: var(--color-charcoal);
}

.product-detail__breadcrumb span:not(:last-child) {
  color: var(--color-light-grey);
}

.product-detail__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.product-detail__gallery {
  position: sticky;
  top: 120px;
  align-self: start;
}

.product-detail__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-off-white);
}

.product-detail__image img {
  width: 100%;
  display: block;
}

.product-detail__info {
  padding-top: 20px;
}

.product-detail__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.product-detail__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-semibold);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin-bottom: 8px;
}

.product-detail__model {
  font-size: 1rem;
  color: var(--color-medium-grey);
  margin-bottom: 24px;
}

.product-detail__description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-medium-grey);
  margin-bottom: 32px;
}

.product-detail__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.product-detail__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Product Tabs */
.product-detail__tabs {
  margin-bottom: 60px;
}

.product-detail__tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0;
}

.product-detail__tab-btn {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-medium-grey);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.product-detail__tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-charcoal);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product-detail__tab-btn:hover {
  color: var(--color-charcoal);
}

.product-detail__tab-btn.active {
  color: var(--color-charcoal);
}

.product-detail__tab-btn.active::after {
  transform: scaleX(1);
}

.product-detail__tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.product-detail__tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features List */
.product-detail__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-detail__feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-off-white);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--color-charcoal);
}

.product-detail__feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-charcoal);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Specs Table */
.product-detail__specs {
  width: 100%;
  border-collapse: collapse;
}

.product-detail__spec-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.product-detail__spec-row:last-child {
  border-bottom: none;
}

.product-detail__spec-key,
.product-detail__spec-value {
  padding: 16px 0;
  font-size: 0.95rem;
}

.product-detail__spec-key {
  color: var(--color-medium-grey);
  width: 40%;
}

.product-detail__spec-value {
  color: var(--color-charcoal);
  font-weight: var(--font-weight-medium);
}

/* Related Products */
.product-detail__related {
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-detail__related h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* Product Not Found */
.product-not-found {
  text-align: center;
  padding: 80px 20px;
}

.product-not-found h2 {
  margin-bottom: 16px;
}

.product-not-found p {
  margin-bottom: 32px;
}

/* Products Empty State */
.products-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-medium-grey);
}

/* Responsive Product System */
@media (max-width: 1024px) {
  .product-showcase {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .product-showcase--reverse {
    direction: ltr;
  }
  
  .product-showcase__content {
    max-width: 100%;
  }
  
  .product-grid,
  .product-grid--3,
  .product-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-detail__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .product-detail__gallery {
    position: static;
  }
  
  .product-detail__features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero--compact {
    min-height: 50vh;
  }
  
  .product-grid,
  .product-grid--3,
  .product-grid--4 {
    grid-template-columns: 1fr;
  }
  
  .product-showcase__image {
    aspect-ratio: 16/9;
  }
  
  .product-card--compact {
    flex-direction: column;
  }
  
  .product-card--compact .product-card__image {
    width: 100%;
    aspect-ratio: 16/9;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .product-detail__actions {
    flex-direction: column;
  }
  
  .product-detail__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Cross Hover Section
   ======================================== */

.cross-hover-section {
  margin-top: var(--space-2xl);
}

.cross-hover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  position: relative;
}

.cross-hover-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cross-hover-card__content {
  position: relative;
  z-index: 2;
}

.cross-hover-card__image {
  position: absolute;
  top: 0;
  width: 60%;
  height: 100%;
  opacity: 0;
  transform: scale(0.85) translateX(0);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cross-hover-card[data-side="left"] .cross-hover-card__image {
  left: -65%;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.cross-hover-card[data-side="right"] .cross-hover-card__image {
  right: -65%;
  clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.cross-hover-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.15) saturate(1.1);
}

/* Hover states */
.cross-hover-card:hover .cross-hover-card__image {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.cross-hover-card[data-side="left"]:hover .cross-hover-card__image {
  left: -25%;
  animation: slideInFromLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cross-hover-card[data-side="right"]:hover .cross-hover-card__image {
  right: -25%;
  animation: slideInFromRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Remove hover effect from feature list in this section */
.feature-list--no-hover .feature-list__item::before {
  display: none;
}

.feature-list--no-hover .feature-list__item {
  cursor: default;
}

/* Animations */
@keyframes slideInFromLeft {
  0% {
    left: -100%;
    opacity: 0;
    transform: scale(0.8) rotate(-3deg);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    left: -25%;
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes slideInFromRight {
  0% {
    right: -100%;
    opacity: 0;
    transform: scale(0.8) rotate(3deg);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    right: -25%;
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .cross-hover-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .cross-hover-card__image {
    display: none;
  }
}

/* ============================================
   PRODUCTS PAGE - RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
  .product-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .product-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .product-filter::-webkit-scrollbar {
    display: none;
  }
  
  .product-filter__btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .product-grid--3 {
    grid-template-columns: 1fr;
  }
  
  .product-card__content {
    padding: clamp(1.25rem, 2vw, 1.5rem);
  }
  
  .category-card {
    padding: clamp(1.5rem, 3vw, 2rem);
  }
  
  /* Reduce animations on mobile */
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .category-card:hover {
    transform: translateX(4px);
  }
}
