/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory; /* Forces the "one view" snap */
    overflow-x: hidden; 
  }
  

  
  
  /* 1. The Base Class: How elements look before scrolling to them */
  .reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95); /* Slide down and slightly smaller */
    filter: blur(5px); /* Optional: Adds a premium "soft" entrance */
    transition: all 1.0s cubic-bezier(0.165, 0.84, 0.44, 1); /* "God-level" smoothness */
    will-change: transform, opacity; /* Optimizes browser performance */
  }
  
  /* 2. The Active Class: Added by JavaScript when the element is scrolled into view */
  .reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  
  /* 3. Optional: Staggered Delay for Grids (like your 8 Gallery images) */
  /* This makes items pop up one-by-one instead of all at once */
  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  
  body {
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
   
  }
  /* --- Pre-loader Styles --- */
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff; /* Matches your clean theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
  }
  
  .loader-content {
    text-align: center;
    width: 200px;
  }
  
  .loader-logo {
    width: 100px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  .loader-bar {
    height: 2px;
    width: 100%;
    background: #f3f3f3;
    position: relative;
    overflow: hidden;
  }
  
  .loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #EAC452; /* Your gold color */
    animation: loading 1.5s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
  }
  
  @keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
  }
  
  /* --- Scroll Reveal Styles --- */
  .reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
  }
  
  .reveal.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Hide loader class */
  .loader-hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  
  /* Logo Styling */
  .logo img {
    height: 70px;
    width: auto; 
    display: block;
    transition: transform 0.3s ease;
  }
  
  /* Optional: Slight hover effect like the reference site */
  .logo img:hover {
    transform: scale(1.05);
  }
  
  
  
  /* Mobile Responsive adjustment */
  @media (max-width: 768px) {
    .logo img {
        height: 60px; /* Smaller logo for mobile screens */
    }
  }
  
  /* Navbar */
  header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: auto;
  }
  
  
  /* --- Desktop Settings --- */
  .menu-toggle {
    display: none; 
    cursor: pointer;
    
  }
  
  /* --- Mobile Responsive (Max Width 768px) --- */
  @media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show icon on mobile */
    }
  
    #nav-menu { 
      position: fixed;
      top: 5vh; 
      left: 0;
      height: 90vh; 
      width: 280px; 
      display: flex; /* Keep it flex to allow links to show */
      flex-direction: column;
      padding: 80px 30px;
      z-index: 1001;
  
      /* Glass + Blur */
      background: rgba(255, 255, 255, 0.1); 
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(20px);
      border-radius: 0 20px 20px 0;
      border: 1px solid rgba(255, 255, 255, 0.2);
  
      /* Smooth Pop-out Transition */
      transform: translateX(-100%);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* This is what the JS triggers */
  #nav-menu.active {
      transform: translateX(0);
  }
  
  .nav-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(10px);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.5s ease;
      z-index: 1000;
  }
  
  .nav-overlay.active {
      opacity: 1;
      visibility: visible;
  }
  
    .nav-links li {
        margin: 15px 0;
    }
  
   
  }
  
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: rgb(207, 152, 2);
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: 0.3s;
  }
  
  .nav-links li a:hover {
    color: #1dcc89;
  }
  
  
  
  /* Hero Section */
  .hero {
    height: 100vh;
    /* Keeping your original image and dark overlay */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
    url('/images/IMG-20260325-WA0004.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Adds a subtle parallax-like effect on scroll */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 900px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* --- The Rectangle Div (Glassmorphism) --- */
  .hero-text-box {
    background: rgba(255, 255, 255, 0.1); /* Very transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .hero-text-box p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
  }
  
  /* --- Dual Button Styling --- */
  .hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
  }
  
  .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
  }
  
  /* Primary Button (Gold) */
  .btn-primary {
    background: #d4af37;
    color: #fff;
    border: 2px solid #d4af37;
  }
  
  .btn-primary:hover {
    background: #b8962e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  }
  
  /* Secondary Button (Outline) */
  .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
  }
  
  .btn-secondary:hover {
    background: #fff;
    color: #333;
    transform: translateY(-3px);
  }
  
  /* --- Scroll Down Indicator --- */
  .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
  }
  
  /* Responsive Fixes */
  @media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-text-box { padding: 25px; width: 95%; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
  }
  
  /* --- Section Titles --- */
  .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .section-subtitle {
    text-align: center;
    color: #d4af37; /* Gold */
    margin-bottom: 50px;
    font-style: italic;
  }





  /* --- About Us Specific Styling --- */

/* Hero Spacing */
.about-hero-sub {
    padding: 100px 0 60px;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
                url('/images/IMG-20260325-WA0005.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.cta-tag {
  display: inline-block;
  color: #d4af37; /* MMBR Gold */
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 10px;
}


.section-title {
  font-size: 2rem; /* Scaled down for mobile */
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* --- Desktop Enhancements (768px and up) --- */
@media (min-width: 768px) {
  .about-hero-sub {
      padding: 100px 0 60px; /* More breathing room for desktop */
  }

  .section-title {
      font-size: 3.5rem; /* Larger, premium size for desktop */
      letter-spacing: -1px;
  }

  .section-subtitle {
      font-size: 1.25rem;
      max-width: 600px;
  }

  .cta-tag {
      font-size: 0.85rem;
      letter-spacing: 4px;
  }
}



/* Flex Container */
/* --- Section Container --- */
.mission-vision {
  padding: 80px 0;
  overflow: hidden; /* Prevents badge from causing horizontal scroll */
}

.about-flex-container {
  display: flex;
  align-items: center;
  gap: 40px; /* Reduced from 60px or 80px */
  max-width: 1300px; /* Increased overall container width */
  margin: 0 auto;
}

/* --- Text Content Styling --- */
.about-text-content {
  flex: 1;
}

.about-text-content h3 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.about-text-content p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

/* --- Value Grid --- */
.value-grid {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #d4af37; /* MMBR Gold */
}

.value-item i {
  font-size: 1.5rem;
}

.value-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* --- Visual Image Stack --- */
.about-visual {
  flex: 1;
  position: relative;
}

.image-stack {
  position: relative;
  padding: 20px; /* Space for the floating badge */
}

.responsive-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  display: block;
}


/* --- Experience Badge --- */
.experience-badge {
  position: absolute;
  bottom: 40px;
  left: -20px; /* Overlaps the image slightly */
  background: #17a76b;
  color: #d4af37;
  padding: 20px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 2;
}

.experience-badge .years {
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.experience-badge .exp-text {
  font-size: 0.7rem;
  color: #fff;
  letter-spacing: 2px;
}

/* --- Mobile Responsiveness (The Magic) --- */
@media (max-width: 992px) {
  .about-flex-container {
      flex-direction: column; /* Stacks text on top of image */
      text-align: center;
      gap: 40px;
  }

  .about-text-content h3 {
      font-size: 2rem;
  }

  .value-grid {
      justify-content: center; /* Centers icons on mobile */
      gap: 20px;
  }


  .responsive-img {
    transform: scale(1); /* Reset scale on mobile to prevent clipping */
    width: 100%;
    margin-top: 20px;
}

  .about-visual {
      width: 100%;
      max-width: 500px; /* Prevents image from being too huge on tablets */
  }

  .experience-badge {
      left: 20px; /* Moves badge inside on mobile to prevent screen overflow */
      bottom: 20px;
      padding: 15px;
  }
}

@media (max-width: 480px) {
  .value-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr); 
  }
  
  .value-item span {
      font-size: 0.7rem;
  }
}



/* --- Why MMBR Section --- */
.why-mmbr {
  padding: 80px 0;
  background-color: #ffffff; /* Brighter background */
  margin-bottom: 100px; /* Safety gap so it doesn't touch the next section */
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Prevents touching screen walls */
}

/* --- Vibrant Card Styling --- */
.why-card {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px;
  /* Brighter, more colorful shadow */
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.12); 
  border: 1px solid rgba(212, 175, 55, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon Container with Brighter Colors */
.why-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #d4af37, #f1c40f); /* Brighter Gold Gradient */
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.why-card h4 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 700;
}

.why-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* --- Interactive Hover --- */
.why-card:hover {
  transform: translateY(-12px);
  background: #fffdf6; /* Very subtle warm tint on hover */
  border-color: #d4af37;
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.why-card:hover .why-icon {
  transform: rotate(10deg) scale(1.1);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .why-mmbr {
      margin-bottom: 60px; /* Adjusted gap for mobile */
      padding: 60px 0;
  }
  
  .why-card {
      padding: 30px 20px;
  }
}

/* --- Grand Footer Styling --- */
.main-footer {
    background-color: #111; /* Deep charcoal */
    color: #fff;
    padding: 80px 0 0 0;
    font-family: 'Poppins', sans-serif;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Giving the brand column more room */
    gap: 40px;
  }
  
  /* Footer Columns */
  .footer-col h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
  }
  
  .footer-col h3 span {
    color: #d4af37; /* MMBR Gold */
  }
  
  .footer-col h4 {
    color: #d4af37;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    position: relative;
  }
  
  .footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: #d4af37;
  }
  
  /* Lists and Links */
  .footer-about {
    line-height: 1.8;
    color: #999;
    margin-bottom: 25px;
  }
  
  .contact-links, .footer-nav {
    list-style: none;
    padding: 0;
  }
  
  .contact-links li, .footer-nav li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    transition: 0.3s;
  }
  
  .footer-nav a {
    text-decoration: none;
    color: #999;
    transition: 0.3s;
  }
  
  .footer-nav a:hover, .contact-links li:hover {
    color: #1dcc89; 
    transform: translateX(5px);
  }
  
  /* Social Icons */
  .footer-socials {
    display: flex;
    gap: 15px;
  }
  
  .footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.4s;
  }
  
  .footer-socials a:hover {
    background: #d4af37;
    transform: translateY(-5px);
  }
  
  /* Bottom Copyright Bar */
  .footer-bottom {
    background: #07965f;
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  .footer-bottom p {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
  }
  
  /* --- Responsive Adjustments --- */
  @media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
  
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
  
    .contact-links li {
        justify-content: center;
    }
  
    .footer-socials {
        justify-content: center;
    }
    
    .main-footer {
        padding-top: 50px;
    }
  }




  /* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #d4af37; /* MMBR Gold */
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0; /* Hidden by default */
  visibility: hidden;
  transition: all 0.4s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 40px; /* Slight bounce up when appearing */
}

.back-to-top:hover {
  background-color: #1a1a1a; /* Turns black on hover */
  transform: translateY(-5px);
}

/* Adjust for mobile so it doesn't block content */
@media (max-width: 768px) {
  .back-to-top {
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
  }
}