/* --- Base Reset, Body & Variables --- */
:root {
  --gold: #f9a825;
  --gold-darker: #d4af37;
  --black: #000000;
  --dark-gray: #1a1a1a;
  --white: #ffffff;
  --gray-text: #ccc;
  --text-light: #e5e7eb;
  --light-bg: #faf7f2; /* New color for the quote section */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Main Layout --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Added padding to prevent content from hiding under the fixed header */
  padding-top: 150px;
}

.bg-img {
  display: none; /* Hidden by default on mobile */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  opacity: 0.8;
}

.mobile-bg {
  display: block; /* Shown by default on mobile */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(249, 168, 37, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: -1;
}

/* --- Floating Elements from HTML --- */
.floating-element {
  position: absolute;
  background: rgba(249, 168, 37, 0.08);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  will-change: transform;
}
.floating-element:nth-child(3) {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
}
.floating-element:nth-child(4) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 10%;
}
.floating-element:nth-child(5) {
  width: 150px;
  height: 150px;
  bottom: 10%;
  left: 20%;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
    padding 0.4s ease, transform 0.4s ease;
  transform: translateY(0);
}

/* Style for the header when the page is scrolled */
.header.scrolled {
  background-color: rgba(18, 18, 18, 0.65);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.171);
  border-radius: 0 0 50px 50px;
  transform: translateY(-0.5rem); /* Adjust as needed */
}

.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.8rem 2rem;
  transition: padding 0.4s ease;
  margin-top: 1rem;
}

/* Shrink navbar padding slightly on scroll */
.header.scrolled .navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-top: 0;
}

.logo-link {
  grid-column: 1;
}

.logo {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease, height 0.4s ease;
}

/* Shrink logo on scroll */
.header.scrolled .logo {
  height: 85px;
}

.logo:hover {
  transform: scale(1.05);
}

/* --- Hamburger Menu (Mobile-First) --- */
.hamburger-btn {
  display: block;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--white);
  transition: all 0.3s ease-in-out;
}

.hamburger-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links-desktop,
.btn-nav-desktop {
  display: none;
}

/* --- Mobile Navigation Menu --- */
.nav-menu-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transition: left 0.4s ease-in-out;
  z-index: 1000;
}

.nav-menu-mobile.active {
  left: 0;
}

.nav-menu-mobile a {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-menu-mobile a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu-mobile a:hover {
  color: var(--gold);
}

.nav-menu-mobile a:hover::after {
  width: 100%;
}

/* === ADDED: Active Nav Link Styles === */
.nav-menu-mobile a.active {
  color: var(--gold);
}

.nav-menu-mobile a.active::after {
  width: 100%;
}


/* --- Buttons --- */
.btn {
  background-color: var(--gold);
  color: var(--black);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(249, 168, 37, 0.4);
}

.btn-nav-mobile {
  font-size: 1.5rem;
  padding: 0.75rem 2rem;
}

.btn-nav-desktop {
  font-size: 1rem;
  padding: 0.75rem 2rem;
}

/* --- Hero Content Styling (Centered) --- */
.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Centers items horizontally */
  text-align: center; /* Centers text inside */
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto; /* Centers the container */
  width: 100%;
  z-index: 10;
}

.hero-content h1 {
  font-size: 1.75rem; /* Mobile first */
  font-weight: 700;
  line-height: 1.2;
  max-width: 900px;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-align: center;
}

.hero-content p {
  font-size: 1rem;
  max-width: 600px;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.btn-hero {
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  font-weight: 700;
}

/* --- Mission Box Styling --- */
.page-content {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.mission-box {
  background-color: var(--gold);
  color: var(--black);
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  z-index: 10;
}

.mission-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.mission-box p:first-of-type {
  margin-bottom: 1.5rem;
}

.sec2-dec {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: auto;
  z-index: 15;
}

.sec-3deco {
  display: none; /* This is likely a background or positioned element */
}

/* --- Foundation Section Styling --- */
.foundation-sec {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 2rem auto;
  text-align: center;
}

.foundation-sec h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.foundation-sec h1 span {
  color: var(--gold);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.foundation-cards-1,
.foundation-cards-2,
.foundation-cards-3 {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 15px;
  background: var(--dark-gray);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foundation-cards-1:hover,
.foundation-cards-2:hover,
.foundation-cards-3:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(249, 168, 37, 0.1);
}

.cardhead {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card-para {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-text);
}

/* --- Quote Section Styling (Updated) --- */
.quote-section {
  padding: 4rem 2rem 6rem;
  display: grid;
  place-items: center;
  background-color: var(--light-bg); /* Light background from image */
}

.quote-container {
  max-width: 900px;
  position: relative;
}

.quote-text {
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  position: relative;
  color: var(--dark-gray); /* Dark text for light background */
}

.quote-decorator {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 50px;
  height: 50px;
  background-color: var(--black); /* Black square from image */
  z-index: 5; /* Ensure it's visible */
}

/* --- Scroll Animation Classes --- */
.hidden-on-load {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
footer {
  background: linear-gradient(180deg, var(--black) 0%, var(--dark-gray) 100%);
  color: #f9f9f9;
  padding: 60px 8%;
  position: relative;
  overflow: hidden;
}

@keyframes shine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 2;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--gold-darker);
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

.footer-links h3 {
  color: var(--gold-darker);
  margin-bottom: 15px;
  font-size: 18px;
  position: relative;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: var(--gray-text);
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: var(--gold-darker);
  transform: translateX(4px);
}

.footer-social h3 {
  color: var(--gold-darker);
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-gray);
  border: 1px solid var(--gold-darker);
  border-radius: 50%;
  color: var(--gold-darker);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--gold-darker);
  color: var(--black);
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--gold-darker);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.footer-bottom span {
  color: var(--gold-darker);
  font-weight: 500;
}

/* --- Responsive Media Queries (Updated) --- */

@media (min-width: 768px) {
  .logo {
    height: 120px;
  }

  .header.scrolled .logo {
    height: 95px;
  }

  /* --- Hero Content (Centering inherited) --- */
  .hero-content {
    padding: 2rem 4rem;
    /* Centering rules are inherited from mobile-first */
  }

  .hero-content h1 {
    font-size: 4.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    max-width: 42rem;
  }

  /* --- Mission Box --- */
  .mission-box {
    padding: 4rem;
  }
  .mission-box p {
    font-size: 1.25rem;
  }
  .sec2-dec {
    width: 80px;
  }

  /* --- Foundation --- */
  .foundation-sec h1 {
    font-size: 3.5rem;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* --- Quote --- */
  .quote-text {
    font-size: 2.75rem;
  }
  .quote-decorator {
    width: 60px;
    height: 60px;
    top: -25px;
    right: -25px;
  }

  /* --- Footer --- */
  footer {
    padding: 50px 5%;
  }

  .footer-logo h2 {
    font-size: 24px;
  }

  /* --- Navbar --- */
  .btn-nav-desktop {
    z-index: -10; /* Note: This was in your code, may need review */
  }
  .nav-links-desktop,
  .navbar .btn-nav-desktop {
    display: none; /* Kept from your mobile-first setup */
  }
}

@media (min-width: 1024px) {
  .bg-img {
    display: block;
  }
  .mobile-bg {
    display: none;
  }

  .navbar {
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    padding: 2rem 3rem;
  }

  .logo {
    height: 150px;
  }

  .header.scrolled .logo {
    height: 100px;
  }

  .hamburger-btn {
    display: none;
  }

  .nav-menu-mobile {
    display: none;
  }

  .nav-links-desktop {
    display: flex;
    justify-content: center;
    gap: 3rem;
    grid-column: 2;
  }

  .nav-links-desktop a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
  }

  .nav-links-desktop a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
  }

  .nav-links-desktop a:hover {
    color: var(--gold);
  }

  .nav-links-desktop a:hover::after {
    width: 100%;
  }
  
  /* === ADDED: Active Nav Link Styles === */
  .nav-links-desktop a.active {
    color: var(--gold);
  }

  .nav-links-desktop a.active::after {
    width: 100%;
  }


  .btn-nav-desktop {
    display: inline-block;
    grid-column: 3;
    z-index: 1; /* Fixed z-index */
  }

  /* --- Hero Content --- */
  .hero-content {
    padding: 2rem 5rem;
  }

  .hero-content h1 {
    font-size: 5.5rem; /* Larger for desktop */
  }

  .hero-content p {
    font-size: 1.25rem;
    max-width: 48rem;
  }

  .navbar .btn-nav-desktop {
    display: inline-block;
    grid-column: 3;
  }
}

/* === ADDED: Scroll to top button === */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gold-darker);
  color: var(--black);
  border: none;
  /* UPDATED for perfect circle */
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  display: none; /* JS will manage this */
  z-index: 99;
  transition: 0.3s;
}

#scrollTopBtn:hover {
  background: var(--black);
  color: var(--gold-darker);
  border: 1px solid var(--gold-darker);
}