@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;700&display=swap');

:root {
  /* Palette (ACE365 – dark storm with neon accents) */
  --color-bg: #08101A;
  --color-bg-alt: #0F1620;
  --color-bg-card: #111827;
  --color-primary: #FFD600;      /* neon lightning yellow */
  --color-accent: #1E88E5;        /* storm blue accent */
  --color-text: #E8E8E8;          /* ensured bright on dark bg */
  --color-text-muted: #A0A0A0;
  --color-text-on-primary: #111111; /* light primary => dark text on primary */
  --color-border: #2A3650;
  --color-shadow: rgba(0,0,0,0.5);

  --radius: 12px;

  /* Typographic scale (Exo 2) */
  --font-family: 'Exo 2', ui-sans-serif, system-ui;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base:  1rem;
  --font-size-md:   1.125rem;
  --font-size-lg:   1.25rem;
  --font-size-xl:   1.5rem;
  --font-size-2xl:  2rem;
  --font-size-3xl:  2.75rem;
  --font-size-hero: 3.5rem;

  --line-height-tight: 1.2;
  --line-height-base:  1.6;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold:   700;

  /* Spacing helpers */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
html, body { margin: 0; padding: 0; }

html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; display: block; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s ease, text-decoration 0.2s ease; }
a:hover { color: #79C1FF; text-decoration: underline; }

/* Layout containers */
.container {
  width: 100%;
  margin: 0 auto; /* important per spec */
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container { max-width: 960px; padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 2rem; }
}

/* Site header (sticky/fixed top bar) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8,16,26,0.98);
  min-height: 64px;
  overflow: visible;
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  /* alignment of logo, nav, and hamburger is controlled by breakpoints */
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  max-height: 52px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.main-nav { display: block; }

/* Hamburger nav (mobile) */
.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  z-index: 200;
  border-radius: 6px;
  background: rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff; /* always white as required */
  border-radius: 2px;
  transition: 0.2s ease;
}
.site-nav {
  display: none; /* mobile hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 500;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 4px 16px var(--color-shadow);
}
.nav-toggle-input:checked ~ .site-nav { display: block; }

/* Nav list and items (base mobile – vertical) */
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
}
.nav-item { width: 100%; }
.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: #fff; text-decoration: underline; }

/* Dropdown nav (base) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; white-space: nowrap; padding: 0.75rem 1rem; display: block; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.5rem 1.25rem;
  width: 100%;
  border-bottom: none;
}
.nav-dropdown-menu .nav-link:hover { background: var(--color-bg-alt); }

/* Dropdown mobile adjustments (indent under toggle) */
@media (max-width: 767px) {
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
  .nav-dropdown:focus-within > .nav-dropdown-menu { display: block; }
}

/* Hero section (full-width, neon accented) */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, rgba(2,6,23,0.0) 0%, rgba(8,16,26,0.95) 60%), var(--color-bg);
  color: var(--color-text);
  position: relative;
}
.hero-ticker { overflow: hidden; background: var(--color-primary); padding: 0.5rem 0; }
.hero-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  color: var(--color-text-on-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  animation: ticker-scroll 28s linear infinite;
  padding-left: 100%;
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-content { text-align: center; padding-top: 2.5rem; }
.hero-media { max-width: 680px; margin: 1.5rem auto; }
.hero-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}
.hero-cta { justify-content: center; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Card layout */
.card {
  display: flex;
  flex-direction: column; /* mandatory */
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-card);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.card-content { padding: 1rem; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Section and headings */
.section {
  padding: 2rem 1rem;
}
@media (min-width: 768px) {
  .section { padding: 4rem 1rem; }
}
.section-title {
  font-size: var(--font-size-2xl);
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
h1 { font-size: var(--font-size-3xl); font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); color: var(--color-text); }
h2 { font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); color: var(--color-text); }
h3 { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); color: var(--color-text); }
h4 { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--color-text); }

/* Base form styles (inputs, textarea, select, label) */
label { display: block; font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: 0.25rem; }
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #0b1620;
  color: var(--color-text);
  font-family: inherit;
}
textarea { min-height: 120px; resize: vertical; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  border: 1px solid rgba(0,0,0,0.15);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
button[type="submit"] { cursor: pointer; }

/* Footer */
.site-footer {
  background: #0a1220;
  color: var(--color-text);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 767px) {
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Tables */
table { width: 100%; border-collapse: collapse; border: 1px solid var(--color-border); }
th, td { padding: 0.5rem; border-bottom: 1px solid var(--color-border); text-align: left; }
th { font-weight: var(--font-weight-bold); }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.hidden { display: none; }

/* HERO SPECIFIC EXTRA RULES (responsive text sizing) */
@media (min-width: 768px) {
  .hero h1 { font-size: var(--font-size-3xl); }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: var(--font-size-hero); }
  .hero { min-height: 70vh; }
  .section { padding: 4rem 0; }
  .card-grid { gap: var(--space-3); }
  .footer-inner { padding: 0 0; }
}

/* Typography usage tweaks per requirement */
.hero h1 { color: #fff; font-weight: var(--font-weight-bold); margin: 0 0 var(--space-2); }
.hero p { color: #F0F6FF; opacity: 0.95; }
.hero a { color: #fff; }

/* Ensure hero text bright on dark backgrounds as per contrast mandate */
.hero, .hero * { color: #FFFFFF; }

/* Ensure logo behavior across breakpoints remains consistent */
@media (min-width: 768px) {
  /* Tablet/desktop nav alignment rules (nav layout) */
  .site-header .container { justify-content: flex-start; }
  .site-nav { display: flex; align-items: center; }
  .nav-toggle-label { display: none; } /* hide hamburger on tablet+ */
  .nav-list { display: flex !important; flex-direction: row !important; flex-wrap: nowrap; align-items: center; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
}
@media (min-width: 768px) {
  /* NAV LAYOUT: tablet+ center the nav within the header as per spec */
  .site-header .container { justify-content: flex-start; }
  .site-nav { flex: 1; justify-content: center; display: flex; }
  .nav-list { justify-content: center; }
}