@import "tailwindcss";

/* High Contrast Color System */
:root {
  /* Primary Colors */
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #1a1a1a;
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-accent-gold: #d4af37;
  --color-accent-gold-light: #c9a961;
  --color-border: #333333;

  /* Spacing */
  --section-padding-y: 6rem;
  --section-padding-x: 1.5rem;
  --content-max-width: 1400px;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text-primary);
}

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

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

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

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Section Styles */
section {
  min-height: 100vh;
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
}

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

/* Background Image Overlay */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.section-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.85),
    rgba(10, 10, 10, 0.95)
  );
  z-index: 1;
}

.section-bg img,
.section-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero video specific styles */
.hero-video {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  z-index: 0;
  transform-origin: center;
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 3s ease-in-out;
  opacity: 1;
}

.section-content {
  position: relative;
  z-index: 2;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 2px solid var(--color-accent-gold);
}

.btn-secondary:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-primary);
}

/* Card Styles */
.card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-icon {
  font-size: 3rem;
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Section Number Styles (replacing emoji icons) */
.section-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  opacity: 0.3;
}

/* Service Label Styles */
.service-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-accent-gold);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* Badge Styles - Enhanced */
.badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.5;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.badge > span:not(.badge-icon) {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.5s ease;
}

.badge:hover {
  border-color: var(--color-accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-5px) scale(1.02);
}

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

.badge:hover .badge-icon {
  transform: scale(1.3) rotate(10deg);
  text-shadow: 0 0 10px var(--color-accent-gold);
}

.badge-icon {
  color: var(--color-accent-gold);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s ease;
  display: inline-block;
}

.badge-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--color-accent-gold);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

/* Stats Styles */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--color-accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

/* Scroll Animation Base States */
[data-scroll-element] {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll-element].scroll-animate {
  opacity: 0;
}

[data-scroll-element].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 4rem;
    --section-padding-x: 1rem;
  }

  section {
    min-height: auto;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 4px;
}

/* High contrast for links */
a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Tier Card Styles */
.tier-card {
  transition: all 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tier-card.featured {
  transform: scale(1.02);
}

.tier-card.featured:hover {
  transform: scale(1.02) translateY(-5px);
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Service Tabs Styles */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.service-tab {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.service-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  transition: left 0.6s ease;
}

.service-tab:hover::before {
  left: 100%;
}

.service-tab.active::before {
  display: none;
}

.service-tab:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.service-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
  border-color: var(--color-accent-gold);
  color: var(--color-text-primary);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  position: relative;
}

.service-tab.active:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
}

.service-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-accent-gold);
  z-index: 1;
}

/* Service Panels */
.service-panels {
  position: relative;
  min-height: 400px;
}

.service-panel {
  display: none;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.service-panel.active {
  display: block;
}

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

.service-panel-title {
  font-size: 2.5rem;
  color: var(--color-accent-gold);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Service Table Styles */
.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-bg-secondary);
  border: 2px solid var(--color-accent-gold);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.service-table tbody tr:last-child {
  border-bottom: none;
}

.service-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
}

.service-table th {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  text-align: left;
  padding: 2rem;
  width: 25%;
  vertical-align: top;
  background: rgba(212, 175, 55, 0.05);
  border-right: 2px solid var(--color-border);
}

.service-table td {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding: 2rem;
  vertical-align: top;
}

.service-table ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-table li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-table li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-weight: 700;
}

.service-table li:last-child {
  margin-bottom: 0;
}

/* Responsive Service Tabs */
@media (max-width: 768px) {
  .service-tabs {
    gap: 0.5rem;
    padding: 1rem;
  }

  .service-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .service-tab.active::after {
    bottom: -1rem;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--color-accent-gold);
  }

  .service-panel-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .service-table {
    border-radius: 0.5rem;
  }

  .service-table th,
  .service-table td {
    display: block;
    width: 100%;
    padding: 1.5rem;
    border-right: none;
  }

  .service-table th {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid var(--color-accent-gold);
    text-align: center;
    font-size: 1rem;
  }

  .service-table td {
    border-bottom: 2px solid var(--color-border);
  }

  .service-table tbody tr:last-child td {
    border-bottom: none;
  }
}

/* Frameworks Compliance Section Styles */
.frameworks-container {
  max-width: 1200px;
  margin: 0 auto;
}

.frameworks-section {
  margin-bottom: 4rem;
}

.frameworks-section:last-child {
  margin-bottom: 0;
}

.frameworks-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.framework-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: rgba(212, 175, 55, 0.03);
  border: 1.5px solid var(--color-border);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.framework-card:hover::before {
  left: 100%;
}

.framework-card:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--color-accent-gold);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.2);
}

.framework-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.framework-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.framework-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.framework-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.framework-card:hover .framework-link {
  gap: 0.75rem;
}

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

  .framework-card {
    padding: 1.5rem;
  }

  .frameworks-section-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

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

/* Tools Grid Styles */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.tool-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.tool-card:hover::before {
  left: 100%;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-gold);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.tool-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  filter: brightness(1.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) translateY(-4px);
  filter: brightness(1.4) drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.tool-card h3 {
  position: relative;
  z-index: 1;
}

.tool-card p {
  position: relative;
  z-index: 1;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--color-accent-gold);
  border: 2px solid var(--color-accent-gold);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.tool-link:hover {
  background: var(--color-accent-gold);
  color: var(--color-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Responsive Tools Grid */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .tool-card {
    padding: 1.5rem;
  }

  .tool-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
  }
}

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

  .tool-card {
    padding: 1.5rem;
  }

  .tool-link {
    width: 100%;
    justify-content: center;
  }
}

/* Two-Panel Difference Layout */
.difference-container {
  display: flex;
  gap: 2rem;
  max-width: 100%;
  align-items: stretch;
  justify-content: flex-start;
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s; /* 0.5s delay when collapsing */
}

/* Left Panel: Titles */
.difference-titles {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.difference-title-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.difference-title-card .section-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  font-family: var(--font-heading);
  opacity: 0.3;
  margin: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.difference-title-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
  transition: all 0.3s ease;
}

.difference-title-card:hover,
.difference-title-card.active {
  border-color: var(--color-accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
  transform: translateX(5px);
}

.difference-title-card:hover .section-number,
.difference-title-card.active .section-number {
  opacity: 1;
  text-shadow: 0 0 10px var(--color-accent-gold);
}

.difference-title-card:hover h3,
.difference-title-card.active h3 {
  color: var(--color-accent-gold);
}

.difference-title-card.featured {
  border-color: rgba(212, 175, 55, 0.5);
}

/* Right Panel: Content */
.difference-content-panel {
  flex: 1 1 auto;
  position: relative;
  background-color: var(--color-bg-secondary);
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CyberPoint Logo */
.difference-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.difference-logo img {
  max-width: 300px;
  height: auto;
  filter: brightness(0.8);
}

/* Fade logo when any card is hovered (content is shown) */
.difference-container.expanded .difference-logo {
  opacity: 0.1;
}

/* Background Images */
.difference-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease 0.5s; /* 0.5s delay when collapsing */
  z-index: 1;
  pointer-events: none;
}

.difference-background.active {
  opacity: 1;
  transition: opacity 0.4s ease; /* Faster, no delay when appearing */
}

.difference-background.fade-out {
  opacity: 0.3;
}

/* Individual Background Images for Each Card */
#bg-diff1 {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                    url('/assets/images/diff-bg-01-ciso-leadership.png');
}

#bg-diff2 {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                    url('/assets/images/diff-bg-02-team-execution.png');
}

#bg-diff3 {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                    url('/assets/images/diff-bg-03-multi-disciplinary.png');
}

#bg-diff4 {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                    url('/assets/images/diff-bg-04-critical-infrastructure.png');
}

#bg-diff5 {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                    url('/assets/images/diff-bg-05-cost-advantage.png');
}

#bg-diff6 {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                    url('/assets/images/diff-bg-06-cost-comparison.png');
}

/* Content Items */
.difference-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  z-index: 2;
  display: none;
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  line-height: 1.8;
  text-align: left;
}

.difference-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.difference-content ul {
  list-style: none;
  padding: 0;
}

.difference-content li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.difference-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .difference-titles {
    flex: 0 0 350px;
  }

  .difference-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .difference-container {
    flex-direction: column;
  }

  .difference-titles {
    flex: 1 1 auto;
  }

  .difference-content-panel {
    min-height: 400px;
  }

  .difference-content {
    padding: 2rem 1.5rem;
    font-size: 1rem;
  }

  .difference-title-card {
    padding: 1rem 1.25rem;
  }

  .difference-title-card .section-number {
    font-size: 1.25rem;
  }

  .difference-title-card h3 {
    font-size: 1rem;
  }
}
