/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 1000;
background: #000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(26, 29, 36, 0.92);
  box-shadow: 0 5px 8px -4px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.nav-brand .brand-link {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.95;
}

/* Desktop nav list */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li a {
  color: #fff;
  font-size: 13.5px;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
  position: relative;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  border-radius: 1px;
}

.nav-list li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-list li a:hover::after {
  transform: scaleX(1);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.18s;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Subtle dark overlay for readability */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ===== Search Box ===== */
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 680px;
  border: 5px solid rgba(255, 255, 255, 0.0);
  border-radius: 30px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
}

.search-input {
  flex: 1;
  height: 50px;
  padding: 0 20px 0 28px;
  font-size: 14px;
  color: #333;
  border: none;
  border-radius: 25px 0 0 25px;
  background: #fff;
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: #aaa;
  font-size: 13px;
}

.search-btn {
  flex-shrink: 0;
  height: 50px;
  padding: 0 28px;
  font-size: 14px;
  color: #fff;
  background: #1173EB;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: background 0.18s ease;
  white-space: nowrap;
}

.search-btn:hover {
  background: #0d63d0;
}

/* ===== Footer ===== */
.site-footer {
  background: #1A1D24;
  padding: 18px 24px;
  text-align: center;
}

.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer a {
  color: #9A9B9D;
  font-size: 13px;
  transition: color 0.18s;
}

.site-footer a:hover {
  color: #fff;
}

/* ===== Responsive ===== */

/* Large screens: shrink nav font slightly */
@media (max-width: 1100px) {
  .nav-list li a {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* Tablet & below: switch to hamburger menu */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(22, 25, 33, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    animation: slideDown 0.25s ease;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 13px 28px;
    font-size: 15px;
    border-radius: 0;
  }

  .nav-list li a::after {
    display: none;
  }

  .nav-list li a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-list li + li {
    border-top: 1px solid rgba(255,255,255,0.05);
  }
}

/* Mobile: search box adjustments */
@media (max-width: 560px) {
  .search-box {
    max-width: 100%;
    border-width: 4px;
  }

  .search-input {
    height: 42px;
    font-size: 13px;
    padding: 0 12px 0 18px;
  }

  .search-btn {
    height: 42px;
    padding: 0 18px;
    font-size: 13px;
  }
}

/* Small mobile */
@media (max-width: 380px) {
  .nav-container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 0 16px;
  }
}

/* Slide-down animation for mobile menu */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
