/* ================= EVENTS PAGE STYLES ================= */
body {
  padding: 0;
  margin: 0;
}

.footer-col ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  font-family: "DM Sans", sans-serif;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  cursor: pointer;
}

.scroll-indicator::before {
  content: "SCROLL";
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: top center;
  animation: scrollLine 2s ease-in-out infinite;
}

.scroll-dot {
  display: none;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  70% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ===== HERO SECTION ===== */
.events-hero {
  min-height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  padding: 140px 80px 100px;
}

.events-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(224, 90, 30, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.events-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 50%,
      rgba(224, 90, 30, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(224, 90, 30, 0.03) 0%,
      transparent 50%
    );
  animation: heroBgShift 10s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.events-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
}

.events-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e05a1e;
  font-weight: 500;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out;
}

.events-title {
  font-family: "Syne", sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(160deg, #fff 40%, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.events-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* ===== FEATURED EVENTS ===== */
.featured-events {
  background: #050505;
  padding: 120px 80px;
  position: relative;
}

.featured-events::before {
  content: "";
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.featured-header {
  text-align: center;
  margin-bottom: 72px;
}

.featured-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e05a1e;
  font-weight: 500;
  margin-bottom: 16px;
}

.featured-title {
  font-family: "Syne", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
}

.featured-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  max-width: 300px;
  margin: 0 auto;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== CLICKABLE CARDS ===== */
.featured-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  transition:
    border-color 0.4s,
    background 0.4s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s;
  position: relative;
  will-change: transform;
}

.featured-card:hover {
  border-color: rgba(224, 90, 30, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-8px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(224, 90, 30, 0.08);
}

.kenya-card {
  height: auto !important;
  max-height: none !important;
}

.kenya-card .featured-img-wrap {
  height: 480px !important;
  flex: none !important;
  min-height: unset !important;
}

.kenya-card .featured-placeholder {
  height: 100% !important;
  min-height: unset !important;
}

.kenya-card .featured-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}

.featured-large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.featured-img-wrap {
  position: relative;
  overflow: hidden;
}

.featured-large .featured-img-wrap {
  height: 320px;
}

.featured-card:not(.featured-large) .featured-img-wrap {
  height: 160px;
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s;
}

.featured-placeholder.small {
  background: linear-gradient(
    135deg,
    rgba(224, 90, 30, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  height: 250px;
  overflow: hidden;
}

.featured-placeholder.small .placeholder-content {
  width: 100%;
  height: 100%;
}

.featured-card:hover .featured-placeholder {
  background: linear-gradient(
    135deg,
    rgba(224, 90, 30, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.featured-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(
    ellipse,
    rgba(224, 90, 30, 0.15),
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.6; /* blur removed for perf */
  opacity: 0;
  transition: opacity 0.4s;
}

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

.featured-content {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.featured-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #e05a1e;
  padding: 4px 10px;
  border-radius: 4px;
}

.featured-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
}

.featured-name {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.featured-large .featured-name {
  font-size: 28px;
}

.featured-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  flex: 1;
}

.featured-details {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-item {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

.detail-separator {
  font-size: 11px;
  color: rgba(224, 90, 30, 0.4);
}

/* ===== CLICK HINT ===== */
.click-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 0;
  font-size: 11px;
  color: rgba(224, 90, 30, 0.6);
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.click-hint.small {
  margin-top: 12px;
  padding: 8px 0;
  font-size: 10px;
}

.click-hint svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .click-hint {
  color: #e05a1e;
}

.featured-card:hover .click-hint svg {
  transform: translateY(2px);
}

.featured-card.expanded .click-hint {
  display: none;
}

/* ===== CARD GALLERY (EXPANDED STATE) ===== */
.card-gallery {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
  padding: 0 28px;
}

.featured-card.expanded .card-gallery {
  max-height: 600px;
  opacity: 1;
  padding: 0 28px 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

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

.gallery-item {
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.gallery-item:hover {
  border-color: rgba(224, 90, 30, 0.4);
  background: rgba(224, 90, 30, 0.08);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item:active {
  transform: translateY(-2px) scale(0.98);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* ===== TIMELINE SECTION ===== */
.events-timeline {
  background: #030303;
  padding: 120px 80px;
  position: relative;
}

.events-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.timeline-header {
  text-align: center;
  margin-bottom: 80px;
}

.timeline-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e05a1e;
  font-weight: 500;
  margin-bottom: 16px;
}

.timeline-title {
  font-family: "Syne", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
}

.timeline-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  max-width: 420px;
  margin: 0 auto;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.timeline-year {
  display: flex;
  gap: 40px;
  position: relative;
}

.year-marker {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.year-num {
  font-family: "Syne", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: -1px;
  transition: color 0.4s;
}

.timeline-year:hover .year-num {
  color: #e05a1e;
}

.year-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(
    to bottom,
    rgba(224, 90, 30, 0.3),
    rgba(255, 255, 255, 0.05)
  );
  margin-top: 12px;
  min-height: 100px;
}

.year-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== TIMELINE CARDS (CLICKABLE) ===== */
.timeline-card {
  display: flex;
  gap: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition:
    border-color 0.35s,
    background 0.35s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  flex-wrap: wrap;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(224, 90, 30, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.timeline-card:hover {
  border-color: rgba(224, 90, 30, 0.25);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

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

.timeline-card.expanded {
  flex-direction: column;
  cursor: default;
}

.timeline-card.expanded:hover {
  transform: translateX(0);
}

.timeline-card.major {
  background: rgba(224, 90, 30, 0.04);
  border-color: rgba(224, 90, 30, 0.15);
}

.timeline-card.international {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.timeline-card.international::before {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

.timeline-img {
  flex: 0 0 100px;
}

.timeline-card.expanded .timeline-img {
  flex: 0 0 auto;
  width: 100%;
  height: 200px;
}

.timeline-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 8px;
  transition: all 0.35s;
}

.timeline-card.expanded .timeline-placeholder {
  width: 100%;
  height: 100%;
}

.timeline-card:hover .timeline-placeholder {
  background: rgba(224, 90, 30, 0.08);
  border-color: rgba(224, 90, 30, 0.2);
  color: rgba(255, 255, 255, 0.4);
}

.timeline-content {
  flex: 1;
  min-width: 200px;
}

.timeline-date {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e05a1e;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.timeline-event-name {
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.timeline-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.7;
}

/* ===== TIMELINE GALLERY ===== */
.timeline-gallery {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}

.timeline-card.expanded .timeline-gallery {
  max-height: 400px;
  opacity: 1;
  padding-top: 20px;
}

.timeline-card.expanded .click-hint {
  display: none;
}

.gallery-grid.compact {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);

  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -60px;
  right: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(224, 90, 30, 0.2);
  border-color: rgba(224, 90, 30, 0.5);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(224, 90, 30, 0.2);
  border-color: rgba(224, 90, 30, 0.4);
  transform: scale(1.1);
}

.lightbox-prev {
  left: -80px;
}
.lightbox-next {
  right: -80px;
}

.lightbox-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-image-container img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  letter-spacing: 2px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

.lightbox-counter span {
  color: #e05a1e;
  font-weight: 600;
}

/* ===== STATS SECTION ===== */
.events-stats {
  background: #000;
  padding: 80px;
  position: relative;
}

.events-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition:
    border-color 0.35s,
    background 0.35s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-block:hover {
  border-color: rgba(224, 90, 30, 0.3);
  background: rgba(224, 90, 30, 0.04);
  transform: translateY(-5px);
}

.stat-number {
  font-family: "Syne", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: flex;
  align-items: flex-start;
}

.stat-suffix {
  font-size: 16px;
  color: #e05a1e;
  margin-left: 2px;
  margin-top: 4px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* ===== IMAGE ALIGNMENT ===== */
.gallery-placeholder img,
.gallery-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-large {
    grid-row: span 1;
  }

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

  .lightbox-prev {
    left: 20px;
  }
  .lightbox-next {
    right: 20px;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 768px) {
  .events-hero,
  .featured-events,
  .events-timeline,
  .events-stats {
    padding: 80px 24px;
  }

  .events-title {
    font-size: 36px;
  }

  .featured-title,
  .timeline-title {
    font-size: 28px;
  }

  .timeline-year {
    flex-direction: column;
    gap: 20px;
  }

  .year-line {
    display: none;
  }

  .timeline-card {
    flex-direction: column;
    gap: 16px;
  }

  .timeline-img {
    flex: 0 0 auto;
  }

  .timeline-placeholder {
    width: 100%;
    height: 120px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 32px;
  }

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

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  .lightbox-prev {
    left: 10px;
  }
  .lightbox-next {
    right: 10px;
  }

  .scroll-indicator {
    bottom: 24px;
  }
}

/* ── Performance: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
   MOBILE BRIGHTNESS + PREMIUM POLISH  (auto-generated)
   Hard hex values — correct at ANY screen brightness level
================================================================ */
@media (max-width: 768px) {
  /* CARD BACKGROUNDS */
  .why-card,
  .infra-stat-box,
  .infra-floor,
  .quality-pillar,
  .story-img-cell,
  .explore-card,
  .pl-card,
  .bake-card,
  .ind-card,
  .machine-card,
  .blog-card,
  .timeline-card,
  .featured-card,
  .stat-block,
  .r-card,
  .t-card,
  .pkg-card,
  .pkg-info-card,
  .pkg-manpower-card,
  .contact-info-card,
  .post-sidebar-box,
  .flow-step-box,
  .iot-card,
  .infra-img-main,
  .tl-img-frame,
  .why-features .why-card,
  .cert-grid .cert-card,
  .export-panel,
  .r-card,
  .rating-callout {
    background: #1e1e1e;
    border-color: #3a3a3a;
  }

  /* BODY / DESCRIPTION TEXT */
  .why-card p,
  .infra-floor-body,
  .infra-floor-detail,
  .infra-intro,
  .quality-intro,
  .quality-pillar-body-inner li,
  .quality-pillar-sub,
  .story-body-text p,
  .explore-card-desc,
  .explore-header-sub,
  .about-hero-desc,
  .section-body,
  .why-header-right p,
  .pl-card-desc,
  .pl-hero-sub,
  .pl-card-flow span,
  .machine-card-desc,
  .bake-card-desc,
  .blog-card-excerpt,
  .blog-card-subtitle,
  .featured-desc,
  .timeline-desc,
  .tl-body,
  .r-quote,
  .t-card-quote,
  .pkg-desc,
  .pkg-info-sub,
  .line-meta-text,
  .post-content p,
  .detail-desc,
  .hero-desc,
  .page-sub,
  .csa-sub,
  .ind-sub,
  .bake-sub,
  .about-body,
  .process-sub,
  .cta-sub,
  .card-models,
  .card-count,
  .terms-clause-body p,
  .pp-section p,
  .pp-list li,
  .contact-subtitle,
  .footer-tagline,
  .blog-hero-desc,
  .step-label,
  .cta-sub {
    color: #cccccc;
  }

  /* SECONDARY / LABEL TEXT */
  .about-hero-stat-label,
  .infra-stat-box-label,
  .pl-stat-label,
  .csa-stat-l,
  .stat-label,
  .t-stat-label,
  .pkg-info-label,
  .pkg-manpower-label,
  .card-cat,
  .section-eyebrow,
  .line-hero-eyebrow,
  .flow-step-num,
  .blog-card-date,
  .post-hero-date,
  .r-loc,
  .t-card-loc,
  .cert-milestone-label,
  .line-nav-prev-hint,
  .line-nav-next-hint,
  .contact-info-label,
  .breadcrumb,
  .breadcrumb a,
  .back-btn,
  .pkg-machine-note {
    color: #aaaaaa;
  }

  /* CARD TITLES */
  .why-card h3,
  .infra-floor-name,
  .quality-pillar-title,
  .explore-card-title,
  .pl-card-name,
  .machine-card-name,
  .bake-card-name,
  .blog-card-title,
  .featured-name,
  .timeline-event-name,
  .tl-headline,
  .t-card-name,
  .pkg-card-name,
  .card-name,
  .cta-title,
  .models-cta-text h4,
  .iot-card-title,
  .contact-info-value {
    color: #ffffff;
    font-size: 15px;
  }

  /* STAT NUMBERS */
  .about-hero-stat-num,
  .infra-stat-box-num,
  .pl-stat-num,
  .csa-stat-n,
  .stat-num,
  .t-stat-num,
  .pkg-info-value,
  .pkg-manpower-value,
  .history-meta-num,
  .rating-big {
    color: #ffffff;
    font-size: 24px;
  }

  /* PILL / TAG CHIPS */
  .pl-card-capacity,
  .pl-card-machine-tag,
  .infra-badge,
  .line-meta-badge,
  .tl-tag,
  .model-tag,
  .card-tag,
  .pkg-tag,
  .pkg-material,
  .detail-tag,
  .filter-pill,
  .filter-btn {
    background: #252525;
    border-color: #3d3d3d;
    color: #cccccc;
  }

  /* SECTION TITLES */
  .section-title,
  .pl-lines-title,
  .pl-overview-title,
  .bake-title,
  .ind-title,
  .about-title,
  .featured-title,
  .timeline-title,
  .t-hero-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  /* FLOW */
  .flow-step-name {
    color: #ffffff;
  }
  .flow-step-box {
    background: #1e1e1e;
    border-color: #3a3a3a;
  }

  /* FOOTER */
  .footer-col ul li a {
    color: #aaaaaa;
  }
  .footer-col h4.footer-col-title {
    color: #888888;
  }
  .footer-address {
    color: #aaaaaa;
  }
  .footer-bottom span,
  .footer-bottom-links a {
    color: #666666;
  }

  /* TESTIMONIALS */
  .t-card-quote,
  .r-quote {
    color: #cccccc;
  }
  .cert-milestone-year {
    color: #888888;
  }

  /* PACKAGES */
  .pkg-machine-name {
    color: #eeeeee;
  }
  .pkg-capacity-row span {
    color: #cccccc;
  }
  .pkg-capacity-row span:first-child {
    color: #eeeeee;
  }
  .pkg-note,
  .pkg-desc {
    color: #cccccc;
  }

  /* BLOG */
  .post-related-title {
    color: #cccccc;
  }

  /* MACHINE / MODEL */
  .detail-desc,
  .iot-card-desc,
  .right-sub,
  .models-cta-text p {
    color: #cccccc;
  }
  .specs-table td:first-child {
    color: #aaaaaa;
  }
  .specs-table td:last-child {
    color: #eeeeee;
  }

  /* PRIVACY / TERMS */
  .terms-notice,
  .pp-note {
    color: #cccccc;
  }
}

@media (max-width: 480px) {
  .pl-card-name,
  .machine-card-name,
  .bake-card-name,
  .why-card h3,
  .explore-card-title {
    font-size: 14px;
  }
  .section-title,
  .pl-lines-title {
    font-size: clamp(26px, 8vw, 34px);
  }
}

/* ================================================================
   PREMIUM MICRO-ANIMATIONS (auto-generated)
   Smooth, tasteful — respects prefers-reduced-motion
================================================================ */

/* Scroll reveal base */
.reveal,
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.stagger-1 {
  transition-delay: 0.08s;
}
.stagger-2 {
  transition-delay: 0.16s;
}
.stagger-3 {
  transition-delay: 0.24s;
}
.stagger-4 {
  transition-delay: 0.32s;
}
.stagger-5 {
  transition-delay: 0.4s;
}
.stagger-6 {
  transition-delay: 0.48s;
}

/* Card hover lift — premium feel */
.why-card,
.infra-stat-box,
.infra-floor,
.explore-card,
.pl-card,
.bake-card,
.ind-card,
.machine-card,
.blog-card,
.featured-card,
.stat-block,
.r-card,
.t-card,
.pkg-card,
.pkg-info-card,
.timeline-card,
.contact-info-card {
  transition:
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Shimmer on card hover */
.why-card::after,
.explore-card::after,
.pl-card::after,
.machine-card::after,
.blog-card::after,
.pkg-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224, 90, 30, 0.6),
    transparent
  );
  opacity: 0;
  transform: scaleX(0);
  transition:
    opacity 0.4s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.why-card:hover::after,
.explore-card:hover::after,
.pl-card:hover::after,
.machine-card:hover::after,
.blog-card:hover::after,
.pkg-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Stat number count-up glow on hover */
.about-hero-stat:hover .about-hero-stat-num,
.infra-stat-box:hover .infra-stat-box-num,
.stat-block:hover .stat-number {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Link underline slide */
.footer-col ul li a,
.drawer-link,
.toc-pill,
.filter-pill {
  transition:
    color 0.25s,
    padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s,
    border-color 0.25s,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button press feedback */
.nav-cta:active,
.fcta-btn-primary:active,
.line-cta-btn-primary:active,
.pkg-cta-primary:active,
.enquire-submit:active {
  transform: scale(0.97) translateY(0);
}

/* Image scale on card hover */
.bake-card:hover .bake-card-img,
.ind-line-pill:hover .ind-line-pill-icon img,
.blog-card:hover img {
  transform: scale(1.06);
}

/* Smooth border-radius pulse on active nav item */
.island-item.active .island-icon svg {
  filter: drop-shadow(0 0 4px rgba(224, 90, 30, 0.6));
}

/* Orange accent line slide-in on section hover */
.pl-card-cta-text,
.view-btn,
.blog-card-cta,
.explore-card-cta,
.featured-details {
  transition:
    letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tablet-specific enhancements */
@media (min-width: 769px) and (max-width: 1024px) {
  .why-card:hover,
  .explore-card:hover,
  .pl-card:hover,
  .machine-card:hover,
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(224, 90, 30, 0.06);
  }
}

/* Desktop-specific enhancements */
@media (min-width: 1025px) {
  .why-card:hover,
  .explore-card:hover,
  .pl-card:hover,
  .machine-card:hover,
  .blog-card:hover {
    transform: translateY(-8px);
    box-shadow:
      0 28px 72px rgba(0, 0, 0, 0.65),
      0 0 0 1px rgba(224, 90, 30, 0.07);
  }
  /* Subtle parallax depth on hero sections */
  .pl-hero-bg,
  .about-hero-orb,
  .blog-hero-orb {
    will-change: transform;
  }
}

/* Mobile — no hover transforms (tap only) */
@media (max-width: 768px) {
  .why-card:hover,
  .explore-card:hover,
  .pl-card:hover,
  .machine-card:hover,
  .blog-card:hover,
  .infra-floor:hover,
  .quality-pillar:hover {
    transform: none;
  }
  .why-card:active {
    transform: scale(0.98);
  }
  .pl-card:active,
  .blog-card:active,
  .machine-card:active {
    transform: scale(0.98);
  }
  .island-item:active {
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

/* ================= PASSPORT / BOARDING-PASS REDESIGN ================= */

.pp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
}

.pp-card {
  display: grid;
  grid-template-columns: 240px 1px 1fr;
  align-items: stretch;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.4s,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s;
}
.pp-card:hover {
  border-color: rgba(224, 90, 30, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.pp-card-image {
  position: relative;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.pp-card-image img,
.pp-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pp-card-stamp {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(232, 226, 212, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  color: rgba(232, 226, 212, 0.9);
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

/* Perforated ticket divider - dashed line with punched circles */
.pp-card-perf {
  position: relative;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.15) 60%,
    transparent 0%
  );
  background-position: left;
  background-size: 1px 10px;
  background-repeat: repeat-y;
}
.pp-card-perf::before,
.pp-card-perf::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #050505;
  border-radius: 50%;
}
.pp-card-perf::before {
  top: -10px;
}
.pp-card-perf::after {
  bottom: -10px;
}

.pp-card-info {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pp-field-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(224, 90, 30, 0.7);
  font-weight: 600;
}
.pp-field-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.pp-title {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 2px 0 14px;
  line-height: 1.2;
}
.pp-field-row {
  display: flex;
  gap: 28px;
  margin-bottom: 10px;
}
.pp-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}
.pp-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  margin-top: 6px;
}
.pp-hint {
  color: rgba(224, 90, 30, 0.7);
}

/* ── Timeline route ── */
.pp-route {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 50px;
}
.pp-route-line {
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(224, 90, 30, 0.4),
    rgba(255, 255, 255, 0.05)
  );
}
.pp-year-block {
  position: relative;
  margin-bottom: 56px;
}
.pp-year-stamp {
  position: absolute;
  left: -50px;
  top: -6px;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(224, 90, 30, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
  background: #030303;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: rgba(224, 90, 30, 0.9);
  z-index: 2;
}
.pp-year-events {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pp-ticket {
  display: grid;
  grid-template-columns: 100px 1px 1fr;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.3s,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pp-ticket:hover {
  border-color: rgba(224, 90, 30, 0.3);
  transform: translateX(6px);
}
.pp-ticket.major {
  border-color: rgba(224, 90, 30, 0.2);
}
.pp-ticket.international {
  border-color: rgba(255, 255, 255, 0.15);
}

.pp-ticket-stub {
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  overflow: hidden;
}
.pp-ticket-stub img,
.pp-ticket-stub video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pp-ticket-noimg {
  font-size: 20px;
  opacity: 0.3;
}

.pp-ticket-perf {
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.12) 60%,
    transparent 0%
  );
  background-size: 1px 8px;
  background-repeat: repeat-y;
}

.pp-ticket-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pp-title-sm {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 2px 0 3px;
}
.pp-loc-sm {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .pp-card {
    grid-template-columns: 1fr;
  }
  .pp-card-perf {
    display: none;
  }
  .pp-ticket {
    grid-template-columns: 70px 1px 1fr;
  }
  .pp-route {
    padding-left: 40px;
  }
  .pp-year-stamp {
    left: -40px;
    width: 42px;
    height: 42px;
    font-size: 10px;
  }
}

.pp-card .card-gallery {
  grid-column: 1 / -1;
  padding: 0 30px 28px;
}

.pp-ticket .timeline-gallery {
  grid-column: 1 / -1;
  padding: 0 20px 18px;
}
.pp-ticket .gallery-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
}
.pp-ticket .gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
}
.pp-ticket .gallery-item img,
.pp-ticket .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pp-card .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.pp-card .gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
}
.pp-card .gallery-item img,
.pp-card .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= HERO ROUTE-MAP BACKGROUND ================= */
.pp-route-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.pp-route-path {
  fill: none;
  stroke: rgba(224, 90, 30, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 8 12;
  animation: ppRouteDash 22s linear infinite;
  filter: drop-shadow(0 0 6px rgba(224, 90, 30, 0.25));
}
.pp-route-path-2 {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  animation-duration: 32s;
  animation-direction: reverse;
  filter: none;
}
.pp-route-path-3 {
  stroke: rgba(224, 90, 30, 0.3);
  stroke-width: 1;
  stroke-dasharray: 4 8;
  animation-duration: 26s;
}

@keyframes ppRouteDash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -400;
  }
}

.pp-route-dot {
  fill: rgba(224, 90, 30, 0.9);
  filter: drop-shadow(0 0 8px rgba(224, 90, 30, 0.7));
  animation: ppRoutePulse 3s ease-in-out infinite;
}
.pp-route-dot:nth-child(5) {
  animation-delay: 0.4s;
}
.pp-route-dot:nth-child(6) {
  animation-delay: 0.9s;
}
.pp-route-dot:nth-child(7) {
  animation-delay: 1.4s;
}
.pp-route-dot:nth-child(8) {
  animation-delay: 1.9s;
}
.pp-route-dot:nth-child(9) {
  animation-delay: 2.3s;
}
.pp-route-dot:nth-child(10) {
  animation-delay: 0.7s;
}

@keyframes ppRoutePulse {
  0%,
  100% {
    opacity: 0.5;
    r: 3.5;
  }
  50% {
    opacity: 1;
    r: 6;
  }
}

/* Traveling marker along the main route, like a plane/shipment in transit */
.pp-route-traveler {
  fill: #fff;
  filter: drop-shadow(0 0 10px rgba(224, 90, 30, 0.9));
  offset-path: path(
    "M 40 520 Q 320 400 420 300 T 700 200 T 1000 130 T 1180 60"
  );
  animation: ppTravel 8s ease-in-out infinite;
}
@keyframes ppTravel {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

/* Soft glow anchoring the title, sits behind the SVG */
.events-hero-content::before {
  content: "";
  position: absolute;
  inset: -60px -120px;
  background: radial-gradient(
    ellipse at center,
    rgba(224, 90, 30, 0.14) 0%,
    transparent 65%
  );
  z-index: -1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pp-route-path,
  .pp-route-dot,
  .pp-route-traveler {
    animation: none;
  }
}


/* ================= WHITE MIRROR CURVE ACCENT ================= */
.pp-mirror-curve {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55%;
  height: 90%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 80% at 70% 30%,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    transparent 70%
  );
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 60%;
  filter: blur(2px);
}
.pp-mirror-curve::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  border-bottom: none;
  mask: linear-gradient(135deg, #000 0%, transparent 55%);
}

@media (max-width: 768px) {
  .pp-mirror-curve {
    width: 90%;
    right: -25%;
    top: -10%;
  }
}