/* Color Variables - Updated to SOLID BASE CONSTRUCTION Palette */
:root {
  --royal-blue: #003399;     /* Primary (Background) */
  --metallic-gold: #D4AF37;  /* Accent / Highlight */
  --white: #FFFFFF;          /* Neutral (Text / Background) */
  --charcoal-black: #1A1A1A; /* Dark Accent (Optional) */
  --light-gray: #f5f7fa;     /* Light blue-gray for readability */
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.5s ease-in-out;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--charcoal-black); /* Default text color (Charcoal Black) */
  background-color: var(--white); /* Main background color (White) */
  overflow-x: hidden;
}

/* -------------------- Utility Classes -------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------------------- Navbar Styles -------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  /* Initial state: Transparent Royal Blue background with blur */
  /* background-color: rgba(0, 51, 153, 0.1); /* Royal Blue with transparency */
  /* backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);  */
  box-shadow: none;
  transition: var(--transition);
  animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar Scrolled State */
.navbar.scrolled {
  /* Scrolled state: Solid Royal Blue background */
  background: var(--royal-blue); /* Primary: Royal Blue */
  box-shadow: var(--shadow);
  padding: 12px 5%;
  backdrop-filter: none;
}

/* Logo Styles */
.logo {
  position: relative;
  z-index: 1001;
  transition: var(--transition);
}
/* 
.logo:hover {
  transform: scale(1.05);
} */

.logo img {
  
  width: 150px;
  object-fit: cover;  
}




/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  transition: var(--transition);
}

.nav-links li {
  margin-left: 25px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  /* Default state (unscrolled) is white on transparent Royal Blue background */
  color: var(--white); /* Navbar Text: White */
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
  font-size: 1rem;
}

/* SCROLLED STATE: Links are white on the solid Royal Blue background */
.navbar.scrolled .nav-links a {
  color: var(--white); /* Navbar Text: White */
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--metallic-gold); /* Accent: Metallic Gold */
  transition: var(--transition);
  border-radius: 2px;
}


.nav-links a:hover::after {
  opacity: 1;
  bottom: -3px;
}

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

.nav-links a:hover,
.nav-links a.active,
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  /* Gold hover/active state, regardless of scroll */
  color: var(--metallic-gold); /* Accent: Metallic Gold */
  transform: translateY(-2px);
}

/* Dropdown Styles */
.dropdown-container {
  position: relative;
}

.dropdown {
  position: relative;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.dropdown-container a.dropbtn i {
  color: var(--white); /* Navbar Text: White */
  transition: var(--transition);
  font-size: 0.8rem;
}

.navbar.scrolled .dropdown-container a.dropbtn i {
  color: var(--white); /* Navbar Text: White */
}

.dropdown-container:hover a.dropbtn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  /* Dropdown content is white background */
  
  background: var(--royal-blue); 
  min-width: 280px;
  box-shadow: var(--shadow);
  z-index: 1000;
  border-top: 3px solid var(--metallic-gold); /* Accent: Metallic Gold */
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  /* Dropdown links are Charcoal Black on White background */
  color: var(--white); /* Dark Accent: Charcoal Black */
  padding: 14px 20px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid var(--light-gray);
  font-weight: 400;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dropdown-content a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--light-gray), transparent);
  transition: var(--transition);
}

.dropdown-content a:hover::before {
  left: 100%;
}

.dropdown-content a:hover {
  /* Slight Metallic Gold glow/fade-in */
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  color: var(--white);
  padding-left: 25px;
  transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white); /* Icon: White */
  cursor: pointer;
  transition: var(--transition);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  position: relative;
  overflow: hidden;
}

.menu-toggle i {
  pointer-events: none;
}

.menu-toggle::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: var(--transition);
}

.menu-toggle:hover::before {
  left: 100%;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.navbar.scrolled .menu-toggle {
  color: var(--white); /* Icon: White */
}

.navbar.scrolled .menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* -------------------- Hero Section Styles -------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url('../images/hero/hero11.jpg');
  /* Use your image path */
  background-repeat: no-repeat;
  background-size: 220% auto;
  background-position: 100% 50%;
  animation: realisticMove 45s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  
  padding-top: 100px;
  overflow: hidden;
}


.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(26, 26, 26, 0.7) 0%, /* Charcoal Black + Royal Blue */
    rgba(0, 51, 153, 0) 50%,
    rgba(26, 26, 26, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1.5s ease-out 0.5s both;
}






.hero-content h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  background-color: #f5f7fade; /* Hero image background */
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; 
  text-transform: uppercase;
  animation: textShimmer 6s ease-in-out infinite;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.6)) 
          drop-shadow(-2px -2px 6px rgba(0, 0, 0, 0.891)); /* White and black shadow */
}



.hero-content p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #fff8dc, #ffd700, #b8860b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; 
  animation: titleGlow 3s ease-in-out infinite alternate;
  filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.4));
}

@keyframes textShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes titleGlow {
  0% {
    text-shadow: 
      2px 2px 8px rgba(0, 0, 0, 0.6),
      0 0 10px rgba(212, 175, 55, 0.3),
      0 0 20px rgba(255, 215, 0, 0.4);
  }
  100% {
    text-shadow: 
      2px 2px 15px rgba(212, 175, 55, 0.7),
      0 0 25px rgba(255, 215, 0, 0.6),
      0 0 40px rgba(255, 255, 204, 0.4);
  }
}


.btn-primary {
  display: inline-block;
  padding: 15px 35px;
  /* Button Background: Metallic Gold */
  background: var(--metallic-gold); /* Accent: Metallic Gold */
  color: var(--charcoal-black); /* Button Text: Charcoal Black */
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3); /* Button Highlight: Metallic Gold */
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.btn-primary::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: var(--transition);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5); /* Hover Effect: Metallic Gold glow */
}

/* Animation Keyframes */
@keyframes realisticMove {
  0% {
    background-position: 100% 50%;
    transform: scale(1);
  }
  50% {
    background-position: 0% 55%;
    transform: scale(1.05);
  }
  100% {
    background-position: 100% 50%;
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -------------------- Mobile Responsiveness FIXES -------------------- */
@media (max-width: 768px) {
  /* Navbar is solid Royal Blue on mobile */
  .navbar,
  .navbar.scrolled {
    background-color: var(--royal-blue); /* Primary: Royal Blue */
    padding: 15px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: none;
  }

  /* Show the toggle button */
  .menu-toggle {
    display: flex;
    color: var(--white); /* Icon: White */
  }

  /* FIX 1: Menu background is Royal Blue */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--royal-blue); /* Primary: Royal Blue */
    box-shadow: var(--shadow);
    padding: 80px 20px 40px;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  /* FIX 2: All links (active/scrolled/default) are WHITE on the Royal Blue menu */
  .nav-links a,
  .navbar.scrolled .nav-links a {
    color: var(--white) !important; /* Navbar Text: White */
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--metallic-gold) !important; /* Accent: Metallic Gold */
  }

  .dropdown-container a.dropbtn i {
    color: var(--white) !important; /* Icon: White */
  }

  .nav-links li {
    margin: 15px 0;
    width: 100%;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
  }

  /* Staggered animation for links */
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-links.active li:nth-child(6) {
    transition-delay: 0.35s;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  /* Mobile Dropdown Logic */
  .dropdown-content {
    position: static;
    box-shadow: none;
     /* Main Content Background: White */
    border-top: none;
    display: none;
    width: 100%;
    animation: none;
    margin-top: 10px;
    border-radius: 8px;
  }

  .dropdown-content a {
    color: var(--white) !important; /* Dark Accent: Charcoal Black */
    /* Dropdown links are dark on white background */
  }

  .dropdown-container.active .dropdown-content {
    display: block;
    max-height: 500px;
    animation: mobileDropdown 0.3s ease-out;
  }

  @keyframes mobileDropdown {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hero adjustments */
  .hero-section {
    height: 80vh;
    background-size: cover;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .btn-primary {
    padding: 14px 30px;
    font-size: 1rem;
  }

  .logo img {
    height: 50px;
    width: 50px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 15px;
  }

  .logo img {
    height: 45px;
    width: 45px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}