/* ========================================
   CYBERX — SUB-PAGES STYLES (About, Services, Contact)
   Premium Redesign with Animations
   ======================================== */

/* ---- Page Hero Banner ---- */
.page-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-h);
  position: relative;
  background: #050510;
  overflow: hidden;
}

/* Light Theme Pages Overrides */
html.light-theme .page-hero { background: #f8faff; }
html.light-theme .page-hero .hero-bg { filter: brightness(1.1) saturate(1.1) opacity(0.85); }
html.light-theme .page-hero .hero-overlay { background: linear-gradient(135deg, rgba(248, 250, 255, 0.5) 0%, rgba(240, 244, 255, 0.3) 100%) !important; }
html.light-theme .page-hero h1 { color: #000 !important; text-shadow: none !important; }
html.light-theme .page-hero .breadcrumb { color: var(--text-muted) !important; text-shadow: none !important; }
html.light-theme .page-hero .breadcrumb a { color: var(--primary-dark, #007080) !important; text-shadow: none !important; }
html.light-theme .page-hero::after { opacity: 0.2; }

html.light-theme .story-section, 
html.light-theme .mission-section, 
html.light-theme .timeline-section,
html.light-theme .values-section,
html.light-theme .certs-section,
html.light-theme .page-cta-section,
html.light-theme .services-grid-section,
html.light-theme .process-section,
html.light-theme .tech-stack-section,
html.light-theme .faq-section,
html.light-theme .contact-grid-section,
html.light-theme .map-section,
html.light-theme .service-detail-section,
html.light-theme .approach-section,
html.light-theme .offices-section,
html.light-theme .contact-info-section,
html.light-theme .contact-form-section {
  background: #ffffff;
}

html.light-theme .timeline-section, 
html.light-theme .values-section, 
html.light-theme .faq-section,
html.light-theme .contact-info-section {
  background: #f8faff;
}

html.light-theme .mission-card, 
html.light-theme .value-card, 
html.light-theme .cert-card, 
html.light-theme .service-card,
html.light-theme .process-step,
html.light-theme .faq-item,
html.light-theme .contact-info-card,
html.light-theme .contact-form-wrapper,
html.light-theme .approach-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
html.light-theme .contact-form {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}
html.light-theme .form-group input,
html.light-theme .form-group textarea,
html.light-theme .form-group select {
  background: #f0f2f5;
  border-color: rgba(0,0,0,0.1);
  color: #1a1a2e;
}
html.light-theme .form-group input::placeholder,
html.light-theme .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

html.light-theme .mission-card h3,
html.light-theme .value-card h4,
html.light-theme .cert-card h4,
html.light-theme .service-card h3,
html.light-theme .faq-question,
html.light-theme .contact-info-card h4,
html.light-theme .approach-card h4,
html.light-theme .service-detail-content h2 {
  color: var(--text-heading);
}

html.light-theme .value-number,
html.light-theme .approach-step { 
  color: rgba(0,0,0,0.1); 
}
html.light-theme .timeline-dot { border-color: var(--primary); background: #fff; }
html.light-theme .timeline::before { background: linear-gradient(180deg, var(--primary), var(--secondary)); }
html.light-theme .process-number { color: rgba(0,0,0,0.1); }
html.light-theme .faq-answer { color: var(--text-muted); }

html.light-theme .offices-map svg rect {
  fill: #f8faff;
  stroke: rgba(0,0,0,0.05);
}

html.light-theme .offices-map svg path {
  stroke: rgba(0, 240, 255, 0.2);
}

html.light-theme .offices-map svg text {
  fill: var(--text-heading) !important;
}

.page-hero .hero-bg {
  transition: transform 8s ease;
  filter: brightness(0.5) saturate(1.2);
}

.page-hero:hover .hero-bg {
  transform: scale(1.05);
}

.page-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(5, 5, 16, 0.7) 0%, rgba(13, 13, 43, 0.5) 50%, rgba(5, 5, 16, 0.75) 100%) !important;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: meshDrift 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes meshDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 80px 80px;
  }
}

.page-hero h1 {
  margin-bottom: 15px;
  animation: heroTitleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes heroTitleIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.page-hero .section-subtitle {
  animation: heroTitleIn 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
  animation: heroTitleIn 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.breadcrumb a {
  color: var(--primary);
  transition: var(--transition);
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.15);
}

/* ---- Glass Section Card ---- */
.pg-glass {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pg-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pg-glass:hover {
  border-color: rgba(0, 240, 255, 0.18);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 240, 255, 0.05);
}

.pg-glass:hover::before {
  opacity: 1;
}

/* ---- Service Detail Blocks ---- */
.service-detail-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.service-detail-section:nth-child(odd) {
  background: linear-gradient(180deg, #050510, #0a0a1a);
}

.service-detail-section:nth-child(even) {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail-block.reverse {
  direction: rtl;
}

.service-detail-block.reverse>* {
  direction: ltr;
}

.service-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(0, 240, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all 0.4s ease;
  position: relative;
}

.service-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  opacity: 0;
  transition: all 0.4s ease;
}

.service-detail-block:hover .service-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  transform: scale(1.1);
}

.service-detail-block:hover .service-icon-wrapper::after {
  opacity: 1;
}

.service-detail-content h2 {
  margin-bottom: 16px;
}

.service-detail-content>p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
}

.service-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.04);
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.service-features li:hover {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(0, 240, 255, 0.12);
  transform: translateX(8px);
}

.service-features li i {
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.service-detail-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-detail-visual svg {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

.service-detail-block:hover .service-detail-visual svg {
  transform: translateY(-5px);
}

/* Service Image (for sections using images instead of SVG) */
.service-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-img-wrap img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-img-wrap:hover img {
  transform: scale(1.05);
}

.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(123, 47, 247, 0.08));
  pointer-events: none;
}

/* ---- Approach Section (Services) ---- */
.approach-section {
  background: linear-gradient(180deg, #0d0d2b, #050510);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.approach-card {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.approach-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.approach-card:hover::before {
  transform: scaleX(1);
}

.approach-card:hover {
  border-color: rgba(0, 240, 255, 0.18);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.approach-step {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.approach-card:hover .approach-step {
  transform: scale(1.15);
}

.approach-card h4 {
  margin-bottom: 10px;
}

.approach-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Contact Info Cards ---- */
.contact-info-section {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.contact-info-card {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.contact-info-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-info-card:hover::after {
  transform: scaleX(1);
}

.contact-info-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(123, 47, 247, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.contact-info-card:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  transform: scale(1.1) rotate(5deg);
}

.contact-info-card h4 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- Contact Form ---- */
.contact-form-section {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-content p.section-subtitle {
  margin-bottom: 8px;
}

.contact-form-content h2 {
  margin-bottom: 16px;
}

.contact-form-content>p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.06);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.12);
  transform: translateX(8px);
}

.highlight-item i {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 47, 247, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.highlight-item h5 {
  font-size: 0.9rem;
  margin-bottom: 3px;
}

.highlight-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}


.contact-form {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 24px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.06);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.08), 0 0 20px rgba(0, 240, 255, 0.05);
  background: rgba(0, 0, 0, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 136, 160, 0.5);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888a0'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.form-group select option {
  background: var(--card-bg);
  color: var(--text);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-group label a {
  color: var(--primary);
}

.submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 16px;
  font-size: 0.9rem;
}

/* ---- Offices Map ---- */
.offices-section {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.offices-map {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.offices-map svg {
  display: block;
}

/* ---- Emergency Banner ---- */
.emergency-section {
  background: linear-gradient(135deg, rgba(255, 56, 96, 0.08), rgba(255, 56, 96, 0.02));
  border-top: 1px solid rgba(255, 56, 96, 0.15);
  border-bottom: 1px solid rgba(255, 56, 96, 0.15);
  padding: 50px 0;
}

.emergency-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
}

.emergency-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 56, 96, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent-red);
  flex-shrink: 0;
}

.emergency-icon .blink {
  animation: emergencyBlink 1s ease-in-out infinite;
}

@keyframes emergencyBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.emergency-content h3 {
  color: var(--accent-red);
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.emergency-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.emergency-btn {
  flex-shrink: 0;
}

/* ---- Page CTA ---- */
.page-cta-section {
  background:
    radial-gradient(ellipse at center, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0d0d2b, #050510);
  text-align: center;
  padding: 100px 0;
}

.page-cta-section h2 {
  margin-bottom: 16px;
}

.page-cta-section p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ---- About: Our Story ---- */
.story-section {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-image-stack {
  position: relative;
  height: 400px;
}

.story-image-stack svg {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.story-image-stack .primary-image {
  width: 75%;
  top: 0;
  left: 0;
  z-index: 1;
}

.story-image-stack .primary-image-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 420px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.15);
  z-index: 1;
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.story-image-stack .secondary-image {
  width: 250px;
  height: auto;
  bottom: -20px;
  right: -20px;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

html.light-theme .primary-image-map svg rect:first-child {
  fill: #f8faff;
}

html.light-theme .primary-image-map svg text {
  fill: var(--text-heading) !important;
}

html.light-theme .primary-image-map svg pattern path {
  stroke: rgba(0,0,0,0.05);
}

html.light-theme .primary-image-map {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: rgba(0,0,0,0.08);
}

.story-stats {
  position: absolute;
  bottom: 30px;
  left: -10px;
  display: flex;
  gap: 15px;
  z-index: 3;
}

.story-stat {
  background: rgba(13, 13, 43, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 16px;
  padding: 15px 20px;
  text-align: center;
}

.story-stat .counter-value {
  font-size: 1.5rem;
}

.story-stat p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.story-content p {
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ---- About: Mission / Vision / Values ---- */
.mission-section {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.mission-card {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mission-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.mission-card .icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(123, 47, 247, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.mission-card:hover .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  transform: scale(1.1);
}

.mission-card h3 {
  margin-bottom: 12px;
}

.mission-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- About Timeline ---- */
.timeline-section {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.timeline {
  max-width: 800px;
  margin: 50px auto 0;
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: -40px; /* Aligned with dots */
  top: 0;
  bottom: 0;
  width: 2px;
  background: #222; /* Darker grey as requested for dark mode */
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -49px; /* Centered dot (width 20px) on 2px line at -40px */
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid #333; /* Matches dark journey line */
  z-index: 2;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: dotPulseAnim 2s ease-in-out infinite;
}

@keyframes dotPulseAnim {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.timeline-item h4 {
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- About: Values ---- */
.values-section {
  background: linear-gradient(180deg, #0d0d2b, #0a0a1a);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.value-card {
  background: rgba(13, 13, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card:hover {
  border-color: rgba(0, 240, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.value-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.value-card h4 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---- About: Certifications ---- */
.certs-section {
  background: linear-gradient(180deg, #0a0a1a, #0d0d2b);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.cert-card {
  background: rgba(13, 13, 43, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.cert-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateY(-5px);
}

.cert-card .icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.cert-card h4 {
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.cert-card p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-image-stack {
    height: 350px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-block {
    grid-template-columns: 1fr;
  }

  .service-detail-block.reverse {
    direction: ltr;
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .emergency-banner {
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 320px;
  }

  .story-image-stack {
    height: 300px;
  }

  .values-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }
}