/* ============================================
   TOPRAH — Design System & Global Styles
   ============================================ */

/* --- Google Fonts --- */


/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --toprah-red: #FF1414;
  --toprah-red-dark: #CC0000;
  --toprah-red-light: rgba(255, 0, 0, 0.08);
  --black: #000000;
  --swiss-dark: #000000;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #f8f8f8;
  --border-gray: #cfcfcf;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-tech: 'Space Grotesk', sans-serif;

  /* Spacing */
  --section-padding: 70px 0;
  --container-width: 1200px;
  --container-padding: 0 40px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background-color: var(--light-gray);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Skip link (visible on keyboard focus) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 2000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--toprah-red);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
}

/* Visible focus outlines for keyboard users */
a:focus,
button:focus,
.navbar-toggle:focus {
  outline: 3px solid var(--toprah-red);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.section-label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--toprah-red);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--medium-gray);
  max-width: 650px;
  line-height: 1.8;
}

/* Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: var(--light-gray);
  box-shadow: var(--shadow-sm);
}

/* Inverse navbar for dark hero sections */
.navbar-inverse:not(.scrolled) .navbar-links a {
  color: var(--white);
}
.navbar-inverse:not(.scrolled) .navbar-links a::after {
  background: var(--white);
}
.navbar-inverse:not(.scrolled) .navbar-toggle span {
  background: var(--white);
}
.navbar-inverse:not(.scrolled) .navbar-logo img {
  filter: brightness(0) invert(1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

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

.navbar-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-links a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--toprah-red);
  transition: width var(--transition-base);
}

.navbar-links a:hover {
  color: var(--black);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar-links a.active {
  color: var(--black);
  font-weight: 600;
}

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all var(--transition-base);
  border-radius: 2px;
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: 180px 0 50px;
  background: transparent;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: none; /* removed decorative radial tint for plain white background */
}

.hero::after {
  content: none; /* removed decorative divider for plain white background */
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background-image: url('../images/HeroPage.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 58%;
}

.hero-right {
  display: none;
}

.hero-right img {
  width: 100%;
  height: auto;
}

.hero-content {
  max-width: 800px;
  background: transparent;
}

.swiss-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.swiss-line {
  width: 48px;
  height: 1px;
  background: var(--toprah-red);
}

.hero-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--toprah-red);
  opacity: 0.8;
}

.swiss-header-inverse .swiss-line {
  background: var(--white);
}

.swiss-header-inverse .hero-label {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.swiss-grid-deco-inverse span {
  background: rgba(255, 255, 255, 0.15);
}

.swiss-grid-deco-inverse span:first-child {
  background: var(--toprah-red);
}

.swiss-grid-deco {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 48px;
  margin: 24px 0;
}
.swiss-grid-deco span {
  height: 4px;
  background: rgba(255, 0, 0, 0.2);
}
.swiss-grid-deco span:first-child {
  background: var(--toprah-red);
}

.hero h1 {
  margin-bottom: 28px;
}

.highlight {
  color: var(--toprah-red);
}

.typing-cursor::after {
  content: '_';
  display: inline-block;
  color: var(--toprah-red);
  margin-left: 4px;
  animation: cursor-blink 1s step-end infinite;
  vertical-align: baseline;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--medium-gray);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-gray);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-tech);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-stat .number span {
  color: var(--toprah-red);
}

.hero-stat .label {
  font-size: 0.8125rem;
  color: var(--medium-gray);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-visual {
  position: relative;
  height: 100%;
  z-index: 1;
}

.about-badge {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: var(--toprah-red);
  color: var(--white);
  padding: 32px 24px;
  z-index: 10;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-badge .years {
  font-family: var(--font-tech);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.about-badge .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  opacity: 0.9;
}

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--toprah-red-light);
  transition: background-color var(--transition-fast);
}

.check-item svg {
  width: 20px;
  height: 20px;
  stroke: var(--toprah-red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition-fast);
}

.check-item:hover {
  color: var(--toprah-red);
}

.check-item:hover .check-icon {
  background: var(--toprah-red);
}
.check-item:hover svg {
  stroke: var(--white);
  transform: scale(1.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 16px 36px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--toprah-red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--toprah-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================
   SECTIONS — Generic
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--white);
}

.section-header {
  margin-bottom: 0px;
}

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

.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--toprah-red);
  margin: 20px 0 40px 0;
}

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

/* ============================================
   ADVANTAGE CARDS (Home - 3 Pillars)
   ============================================ */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantage-card {
  background: var(--black);
  padding: 0;
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
  isolation: isolate;
  min-height: 400px;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(1.15);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.4), rgba(15, 15, 15, 0.85));
  z-index: -1;
  transition: opacity var(--transition-base);
}

.advantage-card:hover .card-overlay {
  opacity: 0.5;
}

.advantage-card .card-icon {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  z-index: 5;
  transition: background-color var(--transition-base);
}

.advantage-card:hover .card-icon {
  background: rgba(255, 255, 255, 0.25);
}

.advantage-card .card-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--toprah-red);
}

.advantage-card h3 {
  margin-bottom: 8px;
  color: var(--white);
}

.advantage-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  z-index: 5;
}

/* ============================================
   MISSION & VISION
   ============================================ */
#mission {
  position: relative;
  overflow: hidden;
  background-color: var(--black);
  color: var(--white);
}

.video-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.video-bg-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

#mission .section-title {
  color: var(--white);
}

#mission .container {
  position: relative;
  z-index: 2;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mission-card {
  padding: 48px;
  position: relative;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.mission-card h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--toprah-red);
  margin-bottom: 20px;
}

.mission-card p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.mission-card:hover p {
  color: var(--white);
}

.mission-grid .mission-card:nth-child(2) {
  text-align: right;
}

/* ============================================
   PARTNERS
   ============================================ */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}

.partner-logo-grid img {
  max-width: 140px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%) invert(0%) sepia(0%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(100%);
  /* Revert: Transform/Opacity take 2s. Filter waits 2s then snaps instantly (0s duration) */
  transition: transform 2s cubic-bezier(0.25, 1, 0.5, 1), opacity 2s cubic-bezier(0.25, 1, 0.5, 1), filter 0s linear 2s;
  cursor: pointer;
}

.partner-logo-grid img:hover {
  opacity: 1;
  filter: grayscale(0%) invert(0%) sepia(0%) saturate(100%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transform: scale(1.1);
  transition: all var(--transition-base);
}

.partner-logo-grid img.active {
  /* Filter to turn black logos to Toprah Red (#FF1414) */
  opacity: 1;
  filter: grayscale(0%) invert(16%) sepia(76%) saturate(7484%) hue-rotate(357deg) brightness(98%) contrast(116%);
  transform: scale(1.3);
  z-index: 10;
  position: relative;
  /* Scale up animation: 1 second */
  transition: transform 1s ease-out, opacity 1s ease-out;
}

/* ============================================
   CREDENTIALS
   ============================================ */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.credential-card {
  background: linear-gradient(160deg, var(--toprah-red) 0%, #8a0000 100%);
  border: none;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  min-height: 450px;
  color: var(--white);
}

.credential-card::before,
.credential-card::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
  transition: all var(--transition-base);
}
.credential-card::before {
  top: 0;
  left: 0;
  border-top: 6px solid var(--black);
  border-left: 6px solid var(--black);
}
.credential-card::after {
  bottom: 0;
  right: 0;
  border-bottom: 6px solid var(--black);
  border-right: 6px solid var(--black);
}

.credential-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  filter: brightness(1.1);
}

.cert-acronym {
  font-family: var(--font-tech);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.4;
  line-height: 1;
}

.cert-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  padding: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .6);
}

.cert-name {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   SOLUTIONS PAGE — Pillars
   ============================================ */
.solution-pillar {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-gray);
}

.solution-pillar:last-child {
  border-bottom: none;
}

.pillar-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}

.pillar-number {
  font-family: var(--font-tech);
  font-size: 4rem;
  font-weight: 900;
  color: var(--toprah-red-light);
  line-height: 1;
  letter-spacing: -0.06em;
  min-width: 80px;
  color: rgba(255, 0, 0, 0.12);
}

.pillar-title-group h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.pillar-intent {
  font-size: 0.9rem;
  color: var(--toprah-red);
  font-weight: 500;
  font-style: italic;
}

.pillar-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-left: 112px;
}

.pillar-narrative {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--dark-gray);
}

.solutions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.solutions-list li {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.solutions-list li .material-symbols-outlined {
  color: var(--toprah-red);
  font-size: 1.25rem;
  line-height: 1.3; /* Align with text */
}

.lead-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark-gray);
}

.section-flush-bottom {
  padding-bottom: 0;
  padding-top: 0;
}

.section-flush-top {
  padding-top: 0;
}

/* ============================================
   PROJECTS PAGE
   ============================================ */
.timeline-section {
  padding-bottom: 120px;
}

.timeline-container {
  position: relative;
  padding-left: 20px; /* Space for mobile line */
}

/* The Vertical Line Track */
.timeline-track {
  position: absolute;
  left: 40px; /* Desktop position */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--border-gray) 10%, var(--border-gray) 90%, transparent 100%);
  z-index: 0;
}

/* The Animated Progress Fill */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%; /* Controlled by JS */
  background: linear-gradient(to bottom, var(--toprah-red) 0%, var(--toprah-red-dark) 100%);
  border-radius: 99px;
  box-shadow: 0 0 15px rgba(255, 20, 20, 0.4);
  transition: height 0.1s linear;
}

/* Timeline Item Layout */
.timeline-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

/* Left Column: Sticky Title */
.timeline-left {
  position: sticky;
  top: 120px; /* Stick below navbar */
  align-self: start;
  display: flex;
  align-items: center;
  gap: 20px;
}

.timeline-marker {
  width: 40px; /* Matches track left position */
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* Center marker on the line (line is at left: 40px of container) */
  /* We need to offset this relative to the grid column */
  position: absolute;
  left: -20px; /* Half of width to center on line */
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--border-gray);
  border-radius: 50%;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  background: var(--toprah-red);
  transform: scale(1.3);
}

.timeline-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--medium-gray);
  margin-left: 40px; /* Push past marker */
}

.timeline-item:hover .timeline-title {
  color: var(--black);
}

/* Right Column: Content */
.sector-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--medium-gray);
  margin-bottom: 24px;
  max-width: 650px;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sector-tag {
  font-size: 0.75rem;
  font-family: var(--font-tech);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--border-gray);
  color: var(--dark-gray);
  transition: all var(--transition-fast);
}

.sector-tag:hover {
  border-color: var(--toprah-red);
  color: var(--toprah-red);
}

.sector-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 32px;
  box-shadow: var(--shadow-md);
}

/* Project Collage Grid */
.project-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 24px;
  width: 100%;
}

.collage-tile {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Collage Tile Variants */
.tile-red { background-color: var(--toprah-red); color: var(--white); }
.tile-black { background-color: var(--black); color: var(--white); }
.tile-gray { background-color: var(--medium-gray); color: var(--white); }
.tile-light { background-color: var(--border-gray); color: var(--dark-gray); }

.tile-text {
  font-family: var(--font-tech);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tile-text h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: inherit;
}

.tile-text .big-stat {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
  padding: 180px 0 80px;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 0, 0, 0.05));
  pointer-events: none;
}

.contact-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact-hero h1 span {
  color: var(--toprah-red);
}

.contact-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: background-color var(--transition-base);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
}

.contact-item h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--toprah-red);
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.contact-item a {
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--toprah-red);
}

.contact-item:hover .contact-icon {
  background: var(--toprah-red);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Honeypot for Spam Protection */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-tech);
  font-size: 1rem;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-gray);
  border-left: 4px solid var(--border-gray); /* Technical accent */
  color: var(--black);
  transition: all 0.3s ease;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
  border-left-color: var(--toprah-red);
  background: var(--white);
  box-shadow: -4px 4px 0 rgba(255, 20, 20, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form .btn {
  align-self: flex-start;
}

/* Form Validation Feedback */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: var(--toprah-red);
  border-left-color: var(--toprah-red);
  background: rgba(255, 20, 20, 0.02);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #10b981; /* Green */
  border-left-color: #10b981;
}

.error-message {
  color: var(--toprah-red);
  font-size: 0.75rem;
  margin-top: 6px;
  font-weight: 500;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Thank You Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  padding: 48px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border-top: 6px solid var(--toprah-red);
  transform: translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  color: #10b981;
  margin-bottom: 24px;
}

.modal-icon span {
  font-size: 64px;
}

.modal-content h3 {
  margin-bottom: 16px;
  color: var(--black);
}

/* Map Container */
.map-container {
  width: 100%;
  height: 450px;
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%); /* Technical look */
  transition: filter 0.5s ease;
}

.map-container:hover iframe {
  filter: grayscale(0%);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.6);
}

.social-icon:hover {
  border-color: var(--toprah-red);
  background: var(--toprah-red);
  color: var(--white);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--swiss-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 30px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: var(--toprah-red);
}

/* ============================================
   PAGE HERO (Solutions, Projects)
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

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



.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .section-subtitle {
  max-width: 700px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

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

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

/* ============================================
   PREMIUM ANIMATIONS
   ============================================ */
@keyframes zoomDrift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -1%); }
}

.anim-zoom-drift {
  will-change: transform;
  animation: zoomDrift 7s ease-in-out infinite alternate;
}

.reveal .anim-zoom-drift {
  animation-play-state: paused;
}

.reveal.visible .anim-zoom-drift {
  animation-play-state: running;
}

/* ============================================
   REUSABLE UTILITIES
   ============================================ */
.corner-accent {
  position: relative;
}
.corner-accent::before,
.corner-accent::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
  transition: all var(--transition-base);
}
.corner-accent::before {
  top: 0;
  left: 0;
  border-top: 6px solid var(--toprah-red);
  border-left: 6px solid var(--toprah-red);
}
.corner-accent::after {
  bottom: 0;
  right: 0;
  border-bottom: 6px solid var(--toprah-red);
  border-right: 6px solid var(--toprah-red);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--swiss-dark);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 20, 20, 0.1);
  border-top-color: var(--toprah-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.loader-text {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--dark-gray);
  animation: pulse 2s infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.5; } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  :root {
    --container-padding: 0 32px;
    --section-padding: 80px 0;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    background-image: none;
  }

  .hero-right {
    order: -1;
    display: block;
  }

  .about-badge {
    right: 0;
    bottom: 0;
    padding: 20px;
  }
  .about-badge .years { font-size: 2rem; }

  .check-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .partner-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .advantage-grid .advantage-card:nth-child(3) {
    grid-column: 1 / -1;
  }

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

  .credentials-grid .credential-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .pillar-body {
    padding-left: 0;
  }

  .footer-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 0 24px;
    --section-padding: 64px 0;
  }

  /* Navbar Mobile */
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--light-gray);
    padding: 100px 40px 40px;
    gap: 0;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    border-left: 1px solid var(--border-gray);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    padding: 16px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--border-gray);
    width: 100%;
  }

  .navbar-links a::after {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 140px 0 80px;
  }

  .hero-stats {
    /* layout two-per-row on small screens */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .hero-stat {
    flex: 0 0 calc(50% - 12px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    gap: 6px;
  }

  .hero-stat .number {
    width: 100%;
    display: block;
  }

  /* Grids */
  .advantage-grid,
  .mission-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .partner-logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .partner-logo-grid img {
    max-width: 120px;
    max-height: 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pillar-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Timeline Mobile */
  .timeline-container {
    padding-left: 0;
  }
  .timeline-track {
    left: 20px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
    padding-left: 50px; /* Space for line */
  }
  .timeline-left {
    position: relative;
    top: 0;
    margin-bottom: 10px;
  }
  .timeline-marker {
    left: -50px; /* Pull back to line */
  }
  .timeline-title {
    font-size: 1.5rem;
    margin-left: 0;
  }
  
  .project-collage {
    grid-template-columns: repeat(3, 1fr); /* Keep 3 on tablet/mobile for density, or 2 if too small */
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 20px;
  }

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

  .btn {
    padding: 14px 28px;
    font-size: 0.8125rem;
  }

  .advantage-card,
  .mission-card {
    padding: 32px 24px;
  }

  .credentials-box {
    padding: 32px 24px;
  }

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

/* ============================================
   IMAGE PLACEHOLDERS
   ============================================ */
.img-placeholder {
  width: 100%;
  background: var(--white);
  border: 2px dashed var(--border-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-base);
}

.img-placeholder:hover {
  border-color: var(--toprah-red);
}

.img-placeholder svg {
  width: 40px;
  height: 40px;
  stroke: var(--border-gray);
  fill: none;
  stroke-width: 1.5;
}

.img-placeholder .placeholder-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--medium-gray);
  text-align: center;
  max-width: 80%;
  line-height: 1.5;
}

.img-placeholder .placeholder-desc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--medium-gray);
  text-align: center;
  max-width: 80%;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.7;
}

/* Hero Image — two-column layout */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.section-image {
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 500px;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-gray);
}

/* Stacked Composition Modifier */
.section-image.stacked-composition {
  overflow: visible;
  background: transparent;
  border: none;
}

.stacked-composition img {
  position: absolute;
}

.stacked-composition .img-back {
  width: 85%;
  height: 90%;
  top: 0;
  left: 0;
  z-index: 1;
}

.stacked-composition .img-front {
  width: 55%;
  height: 55%;
  bottom: -20px;
  right: 20px;
  z-index: 2;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-xl);
}

.hero-image .img-placeholder {
  height: 480px;
}

/* Solution Pillar Image */
.pillar-visual {
  margin-top: 32px;
  margin-left: 112px;
  overflow: hidden;
  position: relative;
}

.pillar-visual::before,
.pillar-visual::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 2;
  pointer-events: none;
  transition: all var(--transition-base);
}

.pillar-visual::before {
  top: 0;
  left: 0;
  border-top: 3px solid var(--toprah-red);
  border-left: 3px solid var(--toprah-red);
}

.pillar-visual::after {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid var(--toprah-red);
  border-right: 3px solid var(--toprah-red);
}

.pillar-visual img {
  transition: transform var(--transition-slow);
}

.pillar-visual:hover img {
  transform: scale(1.05);
}

.pillar-visual .img-placeholder {
  height: 280px;
}

/* Project Sector Image */
.sector-image .img-placeholder {
  height: 320px;
  margin-bottom: 32px;
}

/* Responsive adjustments for image placeholders */
@media (max-width: 991px) {
  .pillar-visual {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image .img-placeholder {
    height: 300px;
  }

  .section-image {
    height: 400px;
    min-height: auto;
  }

  .pillar-visual .img-placeholder {
    height: 220px;
  }

  .sector-image .img-placeholder {
    height: 240px;
  }
}

/* ============================================
   SOLUTIONS PAGE — Interactive Blueprint
   ============================================ */
.solutions-container {
  display: flex;
  position: relative;
  width: 100%;
  background: var(--white);
}

/* Left Side: Scrolling Content */
.scroll-content {
  width: 50%;
  padding: 0;
  position: relative;
  z-index: 5;
}

/* The Circuit Connecting Line */
.circuit-svg {
  position: absolute;
  top: 0;
  left: 40px;
  width: 20px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
.circuit-path {
  fill: none;
  stroke: var(--toprah-red);
  stroke-width: 2px;
}

/* Individual Pillar Styles */
.pillar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 100px 80px 100px 100px; /* Extra left padding for circuit */
  border-bottom: 1px solid var(--border-gray);
  background-color: var(--white);
  transition: background-color var(--transition-base);
}

.pillar:last-child {
  border-bottom: none;
}

/* Giant Kinetic Typography */
.giant-number {
  position: absolute;
  top: 10%;
  left: 20px;
  font-size: 18rem;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 2px var(--border-gray);
  color: transparent;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
  transition: transform 1s ease-in-out; /* Smoother parallax */
}

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

/* Pillar Titles & Highlights */
.pillar-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

/* Alternating Theme: Dark Pillars (Even) */
.pillar:nth-of-type(even) {
  background-color: var(--swiss-dark);
  border-bottom-color: #222;
}

.pillar:nth-of-type(even) .pillar-title {
  color: #888888; /* Dimmed text for contrast with highlight */
}

.pillar:nth-of-type(even) .pillar-narrative {
  color: #cccccc;
}

.pillar:nth-of-type(even) .giant-number {
  -webkit-text-stroke-color: #2c2c2c;
}

.pillar:nth-of-type(even) .solutions-list li {
  color: #cccccc;
  border-top-color: #333;
}

/* Highlight Logic: Red on White, White on Black */
.pillar .highlight-word {
  color: var(--toprah-red);
}
.pillar:nth-of-type(even) .highlight-word {
  color: var(--white);
}

/* Right Side: Sticky Visuals */
.sticky-visuals {
  width: 50%;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--black);
  overflow: hidden;
  border-left: 1px solid var(--border-gray);
}

.visual-container {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1) translateY(20px);
  transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.visual-container.active {
  opacity: 1;
  transform: scale(1.3) translateY(0);
}

.visual-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 1s ease, transform 1s ease;
  filter: grayscale(20%);
}

/* Mobile Responsive for Solutions Page */
@media (max-width: 991px) {
  .solutions-container {
    display: block;
    background: transparent;
  }
  .scroll-content {
    width: 100%;
  }
  .sticky-visuals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 1; /* Full visibility for background image */
    pointer-events: none;
    border-left: none;
  }
  .pillar {
    min-height: 60vh;
    padding: 80px 20px 80px 60px;
    /* Gradient overlay similar to home page pillars */
    background: rgba(255, 255, 255, .6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* Unify look for even/odd pillars on mobile */
  .pillar:nth-of-type(even) {
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.5), rgba(15, 15, 15, 0.9)) !important;
  }

  /* Odd Pillars (Light Background) - Text Styles */
  .pillar-title {
    color: var(--black);
  }
  .pillar-narrative {
    color: var(--dark-gray);
  }

  /* Even Pillars (Dark Background) - Text Styles */
  .pillar:nth-of-type(even) .pillar-title {
    color: #888888;
  }
  .pillar:nth-of-type(even) .pillar-narrative {
    color: #cccccc;
  }
  .pillar:nth-of-type(even) .solutions-list li {
    color: #cccccc;
    border-top-color: #333;
  }
  .pillar:nth-of-type(even) .highlight-word {
    color: var(--white);
  }

  .giant-number {
    font-size: 6rem;
    left: 10px;
    top: 20px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.15);
  }
  .circuit-svg {
    left: 20px;
  }
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}