/* General & Typography */

:root {
    --primary-blue: #0B2A4A;
    --secondary-blue: #1C5D99;
    --accent-gold: #FFC300;
    --light-gray: #f8f9fa;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --white: #FFFFFF;
}

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





body::before {
    content: '';
    position:fixed;
    top: 75px;
    left: 0;
    width: 100%; /* Ensure it covers the full viewport width */
    height: 100%; /* Ensure it covers the full viewport height */
    background: url('newcover.png') no-repeat center center;
    background-size: cover;
    z-index: -1; /* Place it behind all other content */
}

body::after {
    content: '';
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, 0.77);
    z-index: -1; /* Same z-index as ::before, but will render on top due to source order */
}
html{
    width: 100%;
    overflow-x: hidden;
    scroll-behavior:smooth;
    scroll-padding-top: 75px; /* Offset for the sticky navbar */
}

body {
    
    line-height: 1.7;
    overflow-x: hidden;
    
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

h1 { font-size: 3.8em; text-align: center;}
h2 { font-size: 2.4em; text-align: center;}
h3 { font-size: 1.8em; text-align: center;}

a {
    text-decoration: none;
    color: var(--secondary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-gold);
}

.section {
    padding: 80px 20px;
    
    text-align: center;
    position: relative;
    background-size: 100%;
    width: 100%;
}
.section-content {
    max-width: auto;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.our-story-content h2,
.us h2,
.leaders-title,
.partners-title {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.our-story-content h2::after,
.us h2::after,
.leaders-title::after,
.partners-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent-gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 50px;
    font-family: 'Montserrat', sans-serif;
    max-width: 900px; /* Constrain width for better readability */
    margin-left: auto; /* Center the element */
    margin-right: auto; /* Center the element */
}

/* Header & Navigation */
.header {
    position: relative;
    margin-top: 75px; /* Push the header down by the height of the navbar */
    background-color: transparent; /* Ensure header doesn't hide the new background */
    /* Use dvh (dynamic viewport height) for better mobile browser support, especially iOS */
    height: calc(100dvh - 75px); /* Adjust height to fill the remaining viewport */
    overflow: hidden;
}

.navbar {
    position:fixed;
    height: 75px;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;    
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1000;
}

.navbar.sticky {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 75px;
}

.navbar .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--white);
    transition: color 0.4s ease;


}

.navbar .logo  {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;


}

.navbar.sticky .nav-links a {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

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

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    filter: brightness(0.65);
}

.slider-item.active {
    opacity: 1;
}

.slider-item-1 { 
    background-image: url('https://images.unsplash.com/photo-1542382257290-a9b3420c29a8?auto=format&fit=crop&q=80&w=2940&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-position: center top; /* Ensure top of the image is always visible */
}
.slider-item-2 { background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b460?auto=format&fit=crop&q=80&w=2940&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }
.slider-item-3 { background-image: url('https://images.unsplash.com/photo-1501440263304-45e3f3501a52?auto=format&fit=crop&q=80&w=2940&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); }

.hero-content {
    color: black;
    text-align: center;
    opacity: 100%;
    max-width: 800px;
    padding: 0 20px;
    position: fixed;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    color: white;
    letter-spacing: 1px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-content .tagline {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.99);
}

.cta-button {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    padding: 18px 35px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: var(--secondary-blue);
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background-color: var(--primary-blue);
    color: var(--white);
}
.cta-button.secondary:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
}

/* Services Section */
.services {
    background:  var(--light-gray);

}

.main-content-wrapper {
    background-color: white;
    position: relative; /* Create a stacking context to appear above the background */
    z-index: 1;
}

.service-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex: 0 1 45%; /* Set basis to allow for a 2-column layout */
    max-width: 450px; /* Allow cards to be a bit wider in a 2-column layout */
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.3s ease, opacity 0.4s ease;
    border-top: 5px solid var(--secondary-blue);
    transform-origin: center top;
}

.service-icon {
    font-size: 3.5em;
    color: var(--secondary-blue);
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent-gold);
}

.service-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--primary-blue);
    min-height: 3.5em; /* Ensures headings have a consistent height, aligning paragraphs below */
}

.service-card p {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows the paragraph to grow and push the button down */
    color: #555;
}

.learn-more {
    display: inline-block; /* To make padding and other box model properties work correctly */
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;    
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.learn-more:hover {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    transform: scale(1.05);
}

/* Gallery Section */
.gallery {
    background-color: transparent;
}
.gallery .section-title, .gallery .section-subtitle {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(3, 1fr); /* Enforce a strict 3-column grid */
    gap: 25px;
    margin-top: 40px;
}
.gallery-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.4em;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-align: left;
}

.card-content p {
    font-size: 0.95em;
    color: #555;
    text-align: left;
}

/* About Us Section */

.about {
    background-color: white;
    position: relative;
    overflow: hidden;
    text-align: left;
    text-align: center;
    padding: 100px 20px;
        background-size:auto;

}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1 1 30%; /* Image container takes 30% width */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Keep the shadow */
}

.about-content {
    flex: 1 1 70%; /* Content container takes 70% width */
    padding: 0;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    text-align: center;
}

.about-content h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 10px;
}

.about-content .section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--primary-blue);
}

.about-content p {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--primary-blue);
    text-align: left;
    text-align: justify; /* Justify paragraph text for a clean, block-like appearance */
}

/* Our Story Section */
.our-story-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0 0 20px; /* Removed top padding to reduce gap */
}

.our-story-content {
    max-width: 900px; /* Or your preferred width */
    margin: 0 auto;
    padding: 0 20px; /* Adds space on the left and right */
    text-align: center;
}
.our-story-content p {
    text-align: justify;
}

/* Our Partners Section */
.partners-section {
    margin-top: 50px; /* Space above partners section */
    text-align: center;
}

.partners-title {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 2em; /* Inherits from h2, but explicitly set for clarity */
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for desktop */
    gap: 20px;
    justify-items: center; /* Center images within their grid cells */
    align-items: center;
    max-width: 400px; /* Constrain width for the 2-column grid */
    margin: 0 auto; /* Center the grid itself */
}

.partners-grid img {
    max-width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: add some styling */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Optional: add some styling */
    object-fit: contain; /* Ensures the entire image is visible without cropping */
    padding: 10px; /* Add some padding around the image if it's a logo */
}

/* Contact Section */




.gallery1 {
  display: flex;
  justify-content: space-between; /* Distributes space between the images */
  gap: 20px; /* Adds a small gap between the images */
  justify-content: center; /* Distributes space between the images */
  gap: 10px; /* Adds a small gap between the images */
}

.gallery1 figure {
  margin: 0; /* Removes default figure margin */
  text-align: center; /* Centers the image and caption */
}

.gallery1 img {
  max-width: auto; /* Ensures images are responsive */
  height: 180px;
}

.leaders-container {
    text-align: center;
}

.leaders-title {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.contact {
    background: linear-gradient(to top, var(--white), var(--light-gray));
    padding: 100px 20px;
    text-align: center;
}

.contact-grid {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.contact-info {
    text-align: left;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    color: var(--accent-gold);
    margin-bottom: 25px;
    font-size: 2em;
    
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.05em;
    display: flex;
    align-items: center;
}

.contact-info p i {
    font-size: 1.3em;
    margin-right: 15px;
    color: var(--accent-gold);
}

.contact-info .social-links {
    margin-top: 30px;
}

.contact-info .social-links a {
    color: var(--white);
    font-size: 1.8em;
    margin-right: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info .social-links a:hover {
    color: var(--accent-gold);
    transform: translateY(-5px);
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.contact-form-container h3 {
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(28, 93, 153, 0.2);
    outline: none;
}

.submit-button {
    width: 100%;
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    border: none;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    text-transform: uppercase;
}

.submit-button:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 20px 30px;
    text-align: center;
    position:sticky;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 30px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--white);
    font-size: 1.6em;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

/* Floating WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.15);
    background-color: #1DA851;
}

/* Flying Plane Animation */
#flying-plane {
    position: fixed;
    top: 15%; /* Adjust vertical position */
    width: 200px; /* Adjust size as needed */
    height: auto;
    opacity: 0;
    z-index: 998; /* Below navbar but above most content */
    transform: translateX(-10vw) rotate(15deg); /* Start off-screen left */
    transition: opacity 0.5s ease;
    pointer-events: none; /* Make sure it's not clickable */
    will-change: transform; /* Performance hint for the browser */
    filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.2));
}

/* Animations (Reveal on Scroll) */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Specific reveal animations */
.reveal.fade-left {
    transform: translateX(-30px) scale(0.95);
}
.reveal.fade-left.active {
    transform: translateX(0) scale(1);
}

.reveal.fade-right {
    transform: translateX(30px) scale(0.95);
}
.reveal.fade-right.active {
    transform: translateX(0) scale(1);
}


.us{
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 20px;
}

.us-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}
.us-content p {
    margin-bottom: 30px;
}

.us-text {
    flex: 1 1 60%;
    text-align: center; /* Center align the content within this container */
}

.us-text h2, .us-text p {
    text-align: left; /* Align heading and paragraph to the left */
}

.us h2 {
    color: var(--white);
}

.us-image {
    flex: 1 1 40%;
}

.us-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.ull{
    list-style: none;
    display: flex;
    flex-direction: column;
    word-spacing: normal;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 0;
    text-align: left; /* Align the list to the left */
    color: var(--primary-blue);
    color: var(--white);
}

.ull li {
    display: flex;
    text-align: left;
}

.ull li b {
    flex: 0 0 220px; /* Assign a fixed width to the bolded title */
    font-weight: 700; /* Ensure consistent bolding */
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
   
   
    .navbar { padding: 20px 30px; }
    .nav-links li { margin-left: 25px; }
    .hero-content h1 { font-size: 3.5em; }
    .hero-content .tagline { font-size: 1.3em; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form-container { padding: 30px; }
    .footer-content { flex-direction: column; gap: 20px; }
    .footer-links { gap: 15px; justify-content: center; }
    .gallery1 { flex-direction: column; align-items: center; }
    .us-content {
        flex-direction: column;
    }
    .about-container {
        flex-direction: column;
    }
    .about-content {
        order: 1; /* Show content first on mobile */
    }
    .about-image {
        order: 2; /* Show image second on mobile */
    }

    .us-text h2, .us-text p { text-align: center; }
    .ull { text-align: left; }

    .ull li {
        display: block; /* Change to block to allow natural text flow */
        margin-bottom: 15px; /* Add space between list items */
    }

    .ull li b {
        flex: none; /* Remove the fixed width from the bolded title on mobile */
    }

    .partners-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
        max-width: 250px; /* Adjust max-width for single column on mobile */
    }
}

@media (max-width: 768px) {
    /* The pseudo-element fix works on mobile, so no override is needed here */
    .navbar { padding: 15px 20px; }
    .nav-links { display: none; flex-direction: column; width: 100%; text-align: center; margin-top: 15px; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 10px 0; }
    .hero-content h1 { font-size: 2.8em; }
    .hero-content .tagline { font-size: 1.1em; }
    .hero-content h1 { font-size: 2.4em; }
    .hero-content .tagline { font-size: 1em; }
    .cta-button { padding: 14px 28px; font-size: 1em; }
    .cta-button { padding: 12px 24px; font-size: 0.9em; }
    .section-title { font-size: 2em; }
    .section-subtitle { font-size: 1em; }
    .section-title { font-size: 1.8em; }
    .section-subtitle { font-size: 0.95em; }
    .service-container {
        flex-direction: column;
        padding-bottom: 50vh; /* Add space at the bottom for the last card to scroll */
    }
    .service-card {
        max-width: 100%;
        position: sticky;
        top: 100px;
    }
    /* Stacking effect for service cards */
    .service-card:nth-child(2) { top: 120px; }
    .service-card:nth-child(3) { top: 140px; }
    .service-card:nth-child(4) { top: 160px; }
    .service-card:nth-child(5) { top: 180px; }
    /* Stacking effect for service cards on mobile */
    .service-card:nth-child(2) { top: 120px; }
    .service-card:nth-child(3) { top: 140px; }
    .service-card:nth-child(4) { top: 160px; }
    .service-card:nth-child(5) { top: 180px; }
    .contact-grid { padding: 20px; }
    .learn-more { padding: 10px 20px; font-size: 0.9em; }
    .whatsapp-button { width: 55px; height: 55px; font-size: 2em; bottom: 20px; right: 20px; }
    .about-content p, .us p, .ull li, .service-card p { font-size: 0.95em; }
}
/* Add to your existing CSS file, preferably at the bottom */

/* Hamburger menu button */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger-menu:focus {
    outline: none;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue); /* Blue by default */
    transition: all 0.3s ease;

}

.navbar.sticky .hamburger-menu span {
    background-color: var(--primary-blue); /* Blue when sticky */
}

/* Hamburger animation to 'X' */
.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}



/* Mobile Navigation Layout */
@media (max-width: 768px) {

   
    .navbar {
        justify-content: space-between;
        transition: all 0.3s ease;
    }    

    .hamburger-menu {
        display:flex ;
        position: fixed;
        right: 20px;
        margin-top: 9px;
        height: 30px;

        /* Show the button on mobile */
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Ensure a single column layout on mobile */
    }


    .nav-links {
        position: fixed;
        top: 0;        
        right: -100%; /* Position off-screen to the right */
        height: 100dvh; /* Use dynamic viewport height for mobile */
        width: 70%;
        max-width: 400px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
        z-index: 999;
        background-color: rgba(255, 255, 255, 0.25); /* 75% transparent white background */
        -webkit-backdrop-filter: blur(12px); /* Add blur for consistency */
        backdrop-filter: blur(12px);
        color: var(--primary-blue);
               
    } 
        

    .nav-links.active {
        right: 0; /* Slide into view */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-links a {      
        color: var(--primary-blue);
        font-size: 1.5em;

    }
    .navb-links .sticky{
        color: var(--primary-blue);
    }
}
