/* --- GLOBAL --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0e0e0e;
  color: #e0e0e0;

  /* Make layout stretch so hero meets footer */
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #ccc;
}

nav a.active {
  color: #ff2a2a;
}

/* --- HERO (fills remaining space) --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 100px 20px;
  background: #121212;
}

/* --- FOOTER --- */
footer {
  background: #0d0d0d;
  padding: 25px 30px;
  border-top: 1px solid #222;
  color: #999;
  flex-shrink: 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h4 {
  color: #e0e0e0;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section a {
  font-size: 13px;
  margin-bottom: 6px;
}

.footer-section a {
  display: block;
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #ff2a2a;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #222;
  color: #666;
  font-size: 12px;
}

/* --- BURGER BUTTON --- */
.burger {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  z-index: 9999;
}

/* White by default */
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Red when open */
.burger.open span {
  background: #ff2a2a;
}

/* Transform animation */
.burger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.burger.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* --- FULLSCREEN MOBILE NAV --- */
#mobileNav {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;

  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);

  z-index: 9990;
}

#mobileNav a {
  font-size: 28px;
  color: #e0e0e0;
  text-decoration: none;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s ease;
}

/* 🔥 FIX: Active link inside mobile menu */
#mobileNav a.active {
  color: #ff2a2a !important;
}

#mobileNav.open {
  transform: translateY(0);
}

#mobileNav.open a {
  opacity: 1;
  transform: translateY(0);
}

#mobileNav.open a:nth-child(1) { transition-delay: 0.1s; }
#mobileNav.open a:nth-child(2) { transition-delay: 0.18s; }
#mobileNav.open a:nth-child(3) { transition-delay: 0.26s; }
#mobileNav.open a:nth-child(4) { transition-delay: 0.34s; }

body.nav-open {
  overflow: hidden;
}

/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 700px) {

  /* Stack header but keep burger top-right */
  header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    position: relative;
  }

  .burger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  /* Hide desktop nav */
  header nav {
    display: none;
  }

  /* Show fullscreen mobile nav */
  #mobileNav {
    display: flex;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* --- DESKTOP TYPOGRAPHY UPGRADE --- */
@media (min-width: 701px) {

  /* Global body text */
  body {
    font-size: 18px;
    line-height: 1.7;
  }

  /* Hero section */
  .hero h1 {
    font-size: 52px;
    letter-spacing: 1px;
  }

  .hero p {
    font-size: 20px;
    max-width: 800px;
  }

  /* Content sections */
  .content h2 {
    font-size: 28px !important;
    margin-bottom: 20px;
  }

  .content p {
    font-size: 18px;
    line-height: 1.75;
  }

  /* Footer */
  .footer-section h4 {
    font-size: 16px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 15px;
  }

  /* Desktop nav */
  nav a {
    font-size: 18px;
  }
}

/* --- MOBILE TYPOGRAPHY UPGRADE --- */
@media (max-width: 700px) {

  /* Global body text */
  body {
    font-size: 18px;
    line-height: 1.7;
  }

  /* Hero section */
  .hero h1 {
    font-size: 34px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 18px;
    max-width: 90%;
  }

  /* Content sections */
  .content h2 {
    font-size: 24px !important;
    margin-bottom: 16px;
  }

  .content p {
    font-size: 17px;
    line-height: 1.7;
  }

  /* Mobile nav */
  #mobileNav a {
    font-size: 26px;
    letter-spacing: 0.8px;
  }

  /* Footer */
  .footer-section h4 {
    font-size: 16px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 15px;
  }
}
