*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/images/dinos.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* ── Nav bar ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 1.0s ease, border-color 1.0s ease;
}

nav.scrolled {
  background: rgb(0, 0, 0);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.20rem;
  letter-spacing: 0.1em;
  color: #fff;
  white-space: nowrap;
}

/* ── Desktop nav links ── */
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
}

.nav-links a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
}

/* ── Hamburger button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  transition: background 0.18s;
}

.hamburger:hover { background: rgba(255, 255, 255, 0.15); }

.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
}

.hamburger span:nth-child(3) { width: 65%; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  width: 100%;
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile / tablet menu ── */
@media (max-width: 930px) {
  .hamburger { display: flex; }

  .logo img {
    height: 32px;
  }

  .logo-text {
    font-size: 1.0rem;
    letter-spacing: 0.06em;
  }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(10, 22, 40, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(68px + 3rem) 1.5rem 3rem;
  gap: 1.25rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.01em;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  max-width: 640px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
}

.hero-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ── Content section ── */
.content {
  background: #fff;
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #1a1a2e;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.content p, .content-secondary p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.25rem;
}

.content p:last-child, .content-secondary p:last-child {
  margin-bottom: 0;
}

.content-secondary {
  width: 75%;
  margin: 20% auto auto auto;
  background: #fff;
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

/* ── Image grid ── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.image-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.image-grid figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

@media (max-width: 700px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  
  nav {
    background: rgb(0, 0, 0);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }

  .logo img {
    height: 26px;
  }

  .logo-text {
    font-size: 1.0rem;
    letter-spacing: 0.04em;
  }
  .content-secondary {
    margin: 40% auto auto auto;
    padding: 3rem 2rem;
  }
}
