/* ================= ROOT VARIABLES ================= */

:root {
  --nav-h-desktop: 96px;
  --nav-h-mobile: 82px;
}

/* ================= GLOBAL ================= */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #000;
}

.page-bg {
  min-height: 100dvh;
  background: linear-gradient(135deg, #ffdd00, #ffaa00, #ffcc33);
  background-size: cover;
}

/* ================= NAVBAR ================= */

.navbar-custom {
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  transition: 0.4s ease;
  padding: 20px 24px;
}

.navbar-custom.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-link {
  color: #f1f1f1 !important;
  font-weight: 500;
  position: relative;
  transition: 0.3s ease;
}

.nav-link::after {
  content: "";
  width: 0;
  height: 2px;
  background: #ffb703;
  position: absolute;
  left: 0;
  bottom: -3px;
  transition: 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #ffb703 !important;
  transform: scale(1.05);
}

.navbar-brand {
  background: linear-gradient(45deg, #FFD700, #FFA500, #FFB703);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: normal;
}

/* ================= MAIN CONTENT OFFSET ================= */

.main-content {
  padding-top: var(--nav-h-desktop);
}

@media (max-width: 991px) {
  .main-content {
    padding-top: var(--nav-h-mobile);
  }
}

/* ================= HERO ================= */

.hero-section {
  min-height: calc(100svh - var(--nav-h-desktop));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: #fff;
  padding: 80px 20px;

  background:
    linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.65)),
    url("https://www.narthanashethra.lk/Images/Narthana.jpg");

  background-size: cover;
  background-position: center;
}

@media (max-width: 576px) {
  .hero-section {
    min-height: calc(100svh - var(--nav-h-mobile));
    padding: 60px 15px;
  }
}

/* ================= MOBILE MENU ================= */

@media (max-width: 991px) {
  .navbar-collapse {
    backdrop-filter: blur(15px);
    border-radius: 10px;
    margin-top: 10px;
    padding: 20px 0;
  }

  .navbar-nav {
    align-items: center;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 10px 0;
  }
}
