/* ============================
   CONSTRAIN 2026 - Website
   Key Visual Based Design
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --blue-primary: #1461BD;
  --blue-light: #63AAFF;
  --blue-dark: #002E65;
  --red-primary: #CC0000;
  --red-bright: #FF0000;
  --red-dark: #940000;
  --cream: #E7DBD0;
  --gold: #F2CB24;
  --white: #FFFFFF;
  --off-white: #F5F3F0;
  --text-dark: #1A1A2E;
  --text-muted: #5A6478;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background: linear-gradient(to bottom, var(--red-bright) 0%, var(--red-dark) 20%, #3D0000 45%, var(--blue-dark) 75%, #00122B 100%);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('assets/pattern-red.png');
  background-size: 300px;
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(148,0,0,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(148,0,0,0.98);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  z-index: 1001;
}

.navbar-logo span.accent {
  color: var(--red-primary);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 320px;
  height: 100vh;
  background: transparent;
  padding: 90px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}

.nav-menu.active {
  right: 0;
}

.nav-menu a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(20,97,189,0.08);
  color: var(--blue-primary);
}

.nav-register-btn {
  background: linear-gradient(135deg, #1461bd, #0a356a) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 12px 24px !important;
  text-align: center;
  box-shadow: 0 4px 12px rgba(20,97,189,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-register-btn:hover {
  background: linear-gradient(135deg, #1a75e3, #0c4285) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20,97,189,0.4);
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,46,101,0.3);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: transparent;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(242,203,36,0.15);
  border: 1px solid rgba(242,203,36,0.4);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.hero h1 .year {
  color: var(--gold);
}

.hero-theme {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-mascots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-mascots img {
  height: 140px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}

.hero-mascots img:hover {
  transform: scale(1.08) translateY(-4px);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(204,0,0,0.35);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(204,0,0,0.45);
}

.btn-guidebook {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-guidebook:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(242,203,36,0.08);
}

.btn-guidebook svg {
  width: 18px;
  height: 18px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollDot {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* --- Section Base --- */
.section {
  padding: 70px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto;
}

/* --- About Section --- */
.about {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-align: justify;
  margin-bottom: 36px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: transparent;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(20,97,189,0.06);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, var(--red-primary), #E84040);
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, var(--gold), #E5B800);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* --- Timeline Section --- */
.timeline-section {
  background: transparent;
  position: relative;
  z-index: 1;
  margin-top: -40px;
  padding-top: 20px;
}

.timeline-section .section-title {
  color: var(--white);
}

.timeline-section .section-subtitle {
  color: rgba(255,255,255,0.85);
}

.timeline-section .section-tag {
  background: rgba(255,255,255,0.15);
  color: var(--gold);
}

.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue-primary), var(--red-primary));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--blue-primary);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-dot {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.timeline-item.visible .timeline-dot {
  box-shadow: 0 0 0 6px rgba(20,97,189,0.12);
}

.timeline-item:nth-child(even).visible .timeline-dot {
  box-shadow: 0 0 0 6px rgba(204,0,0,0.12);
}

.timeline-card {
  background: var(--white);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.03);
  border-left: 4px solid var(--blue-primary);
  transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-card {
  border-left-color: var(--red-primary);
}

.timeline-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  transform: translateX(6px) translateY(-2px);
}

.timeline-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.timeline-item:nth-child(even) .timeline-date {
  color: var(--red-primary);
}

.timeline-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-mascot {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 56px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 3;
}

.timeline-card:hover .timeline-mascot {
  opacity: 1;
  transform: scale(1.15) rotate(-5deg);
}

.timeline-card {
  position: relative;
}

/* --- Documentation Section --- */
.documentation {
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.documentation .section-tag {
  background: rgba(99,170,255,0.15);
  color: var(--blue-light);
}

.documentation .section-title {
  color: var(--white);
}

.documentation .section-subtitle {
  color: rgba(255,255,255,0.6);
}

.doc-carousel-wrapper {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px;
}

.doc-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px;
  scrollbar-width: none;
}

.doc-carousel::-webkit-scrollbar {
  display: none;
}

.doc-card {
  min-width: 280px;
  max-width: 280px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,170,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.doc-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.doc-card-body {
  padding: 18px 20px;
}

.doc-card-year {
  display: inline-block;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--white);
  margin-bottom: 10px;
}

.doc-card-company {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.doc-card-theme {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.5;
}

.doc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.doc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.doc-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold);
}

/* --- Footer --- */
.footer {
  background: #050E1A;
  padding: 48px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--red-primary);
}

.footer-contact {
  margin-bottom: 20px;
}

.footer-contact p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.footer-contact a {
  color: var(--blue-light);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-cp {
  display: block;
  font-size: 0.85rem;
  color: var(--blue-light);
  margin-bottom: 6px;
  transition: var(--transition);
}

.footer-cp:hover {
  color: var(--gold);
  transform: translateX(4px);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social-btn:hover {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive: Tablet --- */
@media (min-width: 768px) {
  .navbar {
    padding: 0 40px;
  }

  .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  background: transparent;
  overflow: hidden;
}

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-theme {
    font-size: 1.15rem;
  }

  .hero-mascots img {
    height: 180px;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .section {
    padding: 90px 40px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .about-stats {
    gap: 20px;
  }

  .stat-card {
    padding: 28px 20px;
  }

  .doc-card {
    min-width: 320px;
    max-width: 320px;
  }
}

/* --- Responsive: Desktop --- */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: none;
    padding: 0;
    flex-direction: row;
    gap: 4px;
    box-shadow: none;
  }

  .nav-overlay {
    display: none;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-mascots img {
    height: 220px;
  }

  .section {
    padding: 100px 60px;
  }

  .timeline {
    max-width: 700px;
  }

  .doc-carousel {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .doc-card {
    min-width: 300px;
    max-width: 300px;
  }
}
