@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
  --bg: #000;
  --surface: #121218;
  --text: #f3f4f6;
  --muted: #a7adba;
  --primary: #d84e7a;
  --accent: #ff6b6b;
  --ring: rgba(216, 78, 122, 0.28);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  position: relative;
  background-image: url('/images/site/bg-red-black.avif');
  background-repeat: repeat-x;
  background-size: 100% auto;
  font-size: 0.85rem;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('/images/site/bg-red-black.avif') center/cover no-repeat fixed;
  filter: blur(2px);
  opacity: 0.92;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.1);
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.section {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 64px 0;
}
.section h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.section p.section-desc {
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  line-height: 1.2;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
}
.brand-desc {
  color: var(--muted);
  font-size: 0.8rem;
}
.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-menu {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  font-size: 0.85rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.6;
}
.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Timeline container */
.timeline {
  position: relative;
}
/* Disable old central line; we attach the line to carousel lane */
.timeline:before {
  display: none;
}

.event {
  position: relative;
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.event .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.event .meta .tag {
  border-top-left-radius: 30px;
  /* border: 2px solid #73AD21; */
  padding: 7px;
  /* border-left: 5px solid rgba(255, 255, 255, 0.35); */
  border-top: 1px solid #d84e7a;
}
.event .meta .title {
  padding: 7px;
  /* border-left: 5px solid rgba(255, 255, 255, 0.35); */
  border-top: 1px solid #d84e7a;
}
.event .title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.event .accent {
  height: 6px;
  border-radius: 6px;
  background: var(--primary);
  margin: 8px 0;
}

/* Two-lane event body */
.event .body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.event .lane {
  position: relative;
}
.event .lane.poster .poster {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}
.event .lane.poster .poster img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Lego-edge vertical line is the left edge of the carousel lane */
.event .lane.carousel {
  padding-left: 24px;
}
.event .lane.carousel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, var(--primary), #285475);
  border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

/* Alternate lanes on desktop */
.event.left .lane.carousel {
  order: 1;
}
.event.left .lane.poster {
  order: 2;
}
.event.right .lane.poster {
  order: 1;
}
.event.right .lane.carousel {
  order: 2;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}
.carousel .slides {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.carousel .slides img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.carousel .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
}
.carousel .dot.active {
  background: #fff;
}

/* Testimonials grid */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.testimonial {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
}
.testimonial .name {
  font-weight: 700;
  color: var(--primary);
}
.testimonial .role {
  color: var(--muted);
  font-size: 0.8rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  z-index: 100;
}

.card-container {
  display: grid;
  place-items: center;
}

#aside-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  gap: 20px;
  /* place-items: center; */
  margin: 0px auto;
}

.card {
  /* position: relative; */
  background: #3e3e3e;
  padding: 1.5rem;
  width: 100%;
  /* max-width: 420px; */
  border-radius: 8px;
}

#section-aboutus {
  /* box-shadow: var(--shadow); */
  background: var(--surface);
  /* border-width: 1px; */
  /* border-style: solid; */
  /* border-color: rgb(229, 231, 235); */
  /* border-image: initial; */
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.9em;
  font-weight: 100;
}

.text-highlight {
  color: var(--primary);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

.rating-group {
  display: grid;
  gap: 0.25rem;
}

.rating-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
}

.rating-stars .star {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ccc;
}

.rating-stars .star.active {
  color: #f5a623;
}

/* Forms */
.form {
  display: grid;
  gap: 0.75rem;
}

.input,
.textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.msg-prompt {
  font-size: 0.8em;
  font-weight: 100;
  color: var(--muted);
}

.input:focus,
.textarea:focus {
  outline: 2px solid var(--ring);
  border-color: var(--primary);
}
option {
  background-color: #3e3e3e;
  color: white;
  border: 1px solid #555;
  /* Note: Most styling for options inside the dropdown is ignored by many browsers */
}

.form-btn {
  padding: 0.6rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 70%;
}
footer .container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
footer .links a {
  color: var(--text);
  opacity: 0.85;
  text-decoration: none;
  padding: 0.3em;
}
.tags-list {
  display: flex; /* Enables flexbox layout for the container */
  list-style: none; /* Removes default bullets */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
  flex-wrap: wrap; /* Prevents items from wrapping to the next line */
}
.tags-list-items {
  background-color: rgba(50, 50, 50, 0.6);
  margin: 0.2em;
  border: azure;
  border-width: thin;
  padding: 0.1em 1em;
  border-radius: 15px;
}

/* Quick actions */
.quick-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}
.quick-actions .qa-btn {
  background: var(--surface);
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 30px;
  color: var(--text);
  cursor: pointer;
}

/* No horizontal scroll on phones + nav width safety */
html,
body {
  overflow-x: hidden;
}
* {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    right: 12px;
    top: 56px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    flex-direction: column;
    max-width: calc(100vw - 24px);
  }
  .nav-menu.show {
    display: flex;
  }
}
@media (max-width: 860px) {
  .section {
    padding: 48px 0;
  }
  .event .body {
    grid-template-columns: 1fr;
  }
  .event .lane.poster {
    order: 1;
  }
  .event .lane.carousel {
    order: 2;
    padding-left: 18px;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 36px 0;
  }
  .event .meta {
    font-size: 0.8rem;
  }
  .event .title {
    font-size: 0.9rem;
  }
  #aside-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 780px) {
  #section-aboutus {
    font-size: 1em;
  }
}

/* HERO LAYOUT */
.hero {
  position: relative;
  /* width: 100%; */
  overflow: hidden;
  color: #fff;
  background: #000;
}

/* Height tuning for all devices */
.hero {
  height: clamp(60vh, 55vw, 45vh);
}

/* MEDIA STRIP */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: hero-scroll 60s linear infinite;
}

.hero-track:hover {
  animation-play-state: paused;
}

.hero-slide {
  flex: 0 0 auto;
  height: 100%;
}

.hero-slide img {
  height: 100%;
  width: auto;
  object-fit: cover;
}

/* Gradient overlay for readability */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.75)
  );
  pointer-events: none;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hero h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.2;
}

.hero p {
  /* font-size: clamp(1rem, 2vw, 1.25rem); */
  margin-top: 1rem;
}

/* CTA */
.hero-cta {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: #ff3366;
  color: #fff;
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* ANIMATION */
@keyframes hero-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
[class*='fa-'] {
  color: var(--primary);
  font-size: 1.3em;
}
