/* ==========================================================
   RESET & BASE STYLES
========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-bg: #000;
  --gold: #f5c542;
  --royal: #007bff;
  --page-bg: #fff;
  --muted: #f9f9f9;
}

html,
body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: var(--page-bg);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================
   HEADER & NAVIGATION
========================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  width: 100%;
  background: var(--nav-bg);
  color: #fff;
  padding: 0.8rem 2rem;
  transition: background 0.25s ease;
}

.nav-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Left: Navigation Links */
.nav-links {
  justify-self: start;
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover {
  color: var(--gold);
}

/* Center: Logo */
.logo {
  justify-self: center;
  position: relative;
}

.logo img {
  height: 70px;
  width: auto;
  transition: transform 0.25s ease;
  display: block;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Right: Social Icons (desktop) */
.social-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons img {
  height: 20px;
  filter: invert(1);
  transition: opacity 0.2s ease;
}

.social-icons img:hover {
  opacity: 0.8;
}

/* ==========================================================
   MOBILE ICONS (Search/User)
========================================================== */
.mobile-icons {
  display: none;
  align-items: center;
  gap: 0.8rem;
}

.mobile-icons img.icon {
  width: 26px;
  height: 26px;
  filter: invert(1);
}

/* ==========================================================
   HAMBURGER MENU
========================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2000;
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 6px;
}

.hamburger span {
  background: var(--royal);
  height: 3px;
  width: 22px;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   HERO SECTION
========================================================== */
.hero {
  color: #fff;
  text-align: center;
  padding: 8rem 2rem;
  background-color: #111;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  background: rgba(0, 0, 0, 0.55);
  display: inline-block;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.hero .mission {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--gold);
  color: #000;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: #e2a700;
}

/* ==========================================================
   INTRO GALLERY
========================================================== */
.intro-gallery {
  background: #fff;
  padding: 2rem 0;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.gallery-grid img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   ABOUT & FEATURE STRIP
========================================================== */
.about-preview {
  background: #fafafa;
  text-align: center;
  padding: 3rem 1.5rem;
}

.feature-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: #fff;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.feature {
  text-align: center;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.feature p {
  font-size: 0.95rem;
  color: #555;
}

/* ==========================================================
   BRAND BANNER + SCROLL
========================================================== */
.brand-banner {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.brand-banner h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.brand-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.brand-scroll {
  overflow: hidden;
  white-space: nowrap;
  background: #f5f5f5;
  padding: 1rem 0;
}

.scroll-track {
  display: inline-block;
  animation: scroll 15s linear infinite;
}

.scroll-track span {
  display: inline-block;
  margin: 0 2rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================
   HIGHLIGHTS
========================================================== */
.highlights {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--muted);
}

.highlights h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.grid.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 450px;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.item h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.3rem;
  color: #333;
}

.item p {
  color: #555;
  padding: 0 1.5rem;
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
  text-align: center;
  padding: 2rem;
  background: #222;
  color: #fff;
}

/* ==========================================================
   MOBILE BASE STYLES
========================================================== */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .social-icons {
    display: none !important;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    width: 100%;
  }

  .logo {
    order: 1;
    display: flex;
    align-items: center;
    position: relative;
  }

  .logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
  }

  .mobile-icons {
    display: flex;
    order: 2;
    align-items: center;
    gap: 0.6rem;
    position: relative;
  }

  .mobile-icons img.icon {
    width: 26px;
    height: 26px;
    filter: invert(1);
  }

  .hamburger {
    display: flex;
    order: 3;
    position: relative;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1500;
  }

  .nav-links.open {
    transform: translateY(0);
  }
}

/* ==========================================================
   MOBILE VERTICAL — Shift logo & icons further left again
========================================================== */
@media (max-width: 650px) and (orientation: portrait) {
  .logo {
    left: -180px; /* doubled shift left */
  }

  .mobile-icons,
  .hamburger {
    left: -180px;
  }

  .logo img {
    height: 74px;
  }

  html,
  body,
  .navbar,
  .nav-container {
    overflow-x: hidden;
  }
}

/* ==========================================================
   DESKTOP — HIDE MOBILE ELEMENTS
========================================================== */
@media (min-width: 901px) {
  .mobile-icons,
  .hamburger {
    display: none !important;
  }
}

/* ========================================================== MOBILE ICONS + HAMBURGER — TIGHTEN SPACING NEAR LOGO ========================================================== */
@media (max-width: 650px) and (orientation: portrait) {
  /* Keep hamburger slightly to the right of the logo */
  .hamburger {
    position: absolute;
    left: 85px; /* was overlapping logo, so moved slightly right */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1600;
  }

  /* Move mobile icons closer to hamburger */
  .mobile-icons {
    position: absolute;
    left: 135px; /* was too far; this brings icons nearer */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem; /* slightly tighter spacing between icons */
    z-index: 1600;
  }
}