/* assets/css/style.css */

/* --------- Base Styles --------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --accent: #0070f3;
  --accent-soft: rgba(0, 112, 243, 0.12);
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --transition-fast: 0.2s ease-out;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, #e5f0ff 0, #f7f7fb 50%, #ffffff 100%);
  color: var(--text);
}

/* --------- Layout --------- */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------- Header / Nav --------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 247, 251, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.logo-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}

.navbar-links {
  margin-left: auto;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.navbar-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.1rem;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text);
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f9fafb;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-cta span.icon {
  font-size: 1rem;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------- Main Content --------- */

main {
  flex: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw + 1rem, 3.1rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(191, 219, 254, 0.9);
  color: #1d4ed8;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

/* Generic cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin-top: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1d4ed8;
}

/* Media embeds */

.embed {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  background: #000;
}

.embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 1.4rem;
  border-left: 2px solid rgba(209, 213, 219, 0.9);
}

.timeline-item {
  margin-bottom: 1.3rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.9);
}

.timeline-year {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.gallery-item::after {
  content: "View";
  position: absolute;
  bottom: 0.7rem;
  right: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
}

/* Lightbox */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  position: relative;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  border-radius: 999px;
  border: none;
  padding: 0.15rem 0.55rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Forms */

form {
  max-width: 540px;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  font: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
}

.form-field textarea {
  border-radius: 18px;
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
}

/* Footer */

footer {
  border-top: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(248, 250, 252, 0.96);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------- Responsive --------- */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.3rem;
  }

  .hero-card {
    order: -1;
  }

  .navbar-links {
    position: fixed;
    inset: 3rem 1rem auto 1rem;
    background: rgba(248, 250, 252, 0.97);
    border-radius: 18px;
    padding: 0.9rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.24);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .navbar-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
