html {
    scroll-behavior: smooth;
}

/* If you have a sticky header, add this so the title isn't hidden behind the bar */
section {
    scroll-margin-top: 100px; /* Adjust based on your navbar height */
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: rgb(30 35 48);
    overflow-x: hidden;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    /* Adjust height to match your navbar's scale */
    height: 30px; 
    width: auto;
    display: block;
    
    /* Ensures the logo stays sharp */
    image-rendering: -webkit-optimize-contrast;
}

/* Navbar Fix */
.navbar {
    background-color: #f0f0f0;
    padding: 0 4%; /* Use 4% for a "neat" edge look like your first screenshot */
    display: flex;
    justify-content: space-between; /* This forces Logo left and Group right */
    align-items: center;
    height: 80px;
    width: 100%;
}

/* This container holds links AND button */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 3rem; /* Space between the text links and the yellow button */
}

.logo {
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 1.5rem;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem; /* Space between individual text links */
    margin: 0; /* Remove that margin-left auto from here */
}

.nav-links a {
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

.contact-btn {
    background-color: #d4af37;
    color: #000;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Main Content - Expanded Width */
.container {
    width: 90%; /* Increased from standard max-width */
    max-width: 1600px; 
    margin: 5rem auto;
    margin-top: 20px;
}
/* Container to hold text and icon side-by-side */
.heading-container {
    display: flex;
    align-items: center; /* Vertical alignment */
    gap: 10px;           /* Space between text and icon */
}

/* Remove the old circle styles and style the icon specifically for this spot */
.business-icon-small {
    width: 20px;
    height: 20px;
    object-fit: contain;
    /* If you want the icon to be black/dark like the text: */
    filter: brightness(0); 
    opacity: 0.7;
}

/* --- Section Title Adjustment --- */
.section-title {
    text-align: center;
    width: 100%;
    /* If it looks too far left, add a small left padding to compensate for visual weight */
    padding-left: 20px; 
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 850; /* Professional Semi-bold */
    font-size: 3.2rem;
    color: rgb(255, 255, 255);
    margin-top: 0; 
    padding-top: 20px; /* Adjust this number to bring it higher */
    margin-bottom: 3rem;
    text-transform: capitalize;
}

/* 1. Ensure the Grid stays intact */
.business-grid {
    display: grid;
   /* Forces 4 columns on large screens */
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px;
}

/* 2. Responsive adjustment for Tablets & Mobile */
@media (max-width: 1100px) {
    .business-grid {
        /* Drops to 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .business-grid {
        /* Drops to 1 column on mobile */
        grid-template-columns: 1fr;
    }
}

/* 2. The Card must have a height for absolute images to show */
.card {
    position: relative;
    height: 560px; /* Adjust based on your design */
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0; /* Placeholder color while images load */
    backface-visibility: hidden;
    transform: translateZ(0);
}
.card-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
   
    width: fit-content;
    max-width: calc(100% - 40px); 
    background: rgba(255, 255, 255, 0.85) !important; /* White transparent */
    backdrop-filter: trasparent rgba(0.9);
    -webkit-backdrop-filter: blur(10px);
    
    padding: 10px 20px;
    border-radius: 12px;
    z-index: 10; /* Ensures it sits ABOVE the shuffling images */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* This targets the link inside your heading */
.card-overlay h3 a {
    text-decoration: none !important; /* Removes the underline */
    color: #1a1a1a;                  /* Set your preferred text color (e.g., Dark Grey) */
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 850;
    font-size: 2rem;
    display: block;         
}

/* Optional: Change color slightly when hovering over the text */
.card-overlay h3 a:hover {
    color: #d4af37; /* Example: changes to blue only when you touch it */
}
/* 3. Slideshow Container */
.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow img {
    position: absolute;
    top: 0;
    margin-left: -0.5%; /* Re-centers the slightly larger image */
    width: 101%;
    height: 100%;
    object-fit: cover !important;
    opacity: 0; 
    /* Ensure this default matches the animation start exactly */
    transform: scale(1.1) translateX(-30px);

    animation: elegantSlideZoomOut 12s infinite ease-in-out;
    will-change: transform, opacity;
    transition: transform 0.8s ease-out; /* This handles the zoom back to 1.1 when mouse leaves */
}

/* FIX: This makes the very first image visible immediately on page load */
.slideshow img:first-child {
    opacity: 1;
    transform: scale(1.1) translateX(0); /* Add scale(1.1) here */
}

@keyframes elegantSlideZoomOut {
    0% { 
        opacity: 0; 
        transform: scale(1.1) translateX(-30px); 
    }
    8% { 
        opacity: 1; 
        transform: scale(1.1) translateX(0); /* The snappy slide-in */
    }
    33% { 
        opacity: 1; 
        transform: scale(1.1) translateX(0); /* Stay visible for 1/3rd of the 12s loop */
    }
    40% { 
        opacity: 0; 
        transform: scale(1.1) translateX(0); /* Fade out so the next image shows */
    }
    100% { 
        opacity: 0; 
    }
}

/* --- CARD 1 (Residential) --- */
.card:nth-child(1) .slideshow img:nth-child(1) { animation-delay: 0s; }
.card:nth-child(1) .slideshow img:nth-child(2) { animation-delay: 4s; }
.card:nth-child(1) .slideshow img:nth-child(3) { animation-delay: 8s; }

/* --- CARD 2 (Commercial) - Starts 1s late to be "one-by-one" --- */
.card:nth-child(2) .slideshow img:nth-child(1) { animation-delay: 1s; }
.card:nth-child(2) .slideshow img:nth-child(2) { animation-delay: 5s; }
.card:nth-child(2) .slideshow img:nth-child(3) { animation-delay: 9s; }

/* --- CARD 3 (Hospitality) - Starts 2s late --- */
.card:nth-child(3) .slideshow img:nth-child(1) { animation-delay: 2s; }
.card:nth-child(3) .slideshow img:nth-child(2) { animation-delay: 6s; }
.card:nth-child(3) .slideshow img:nth-child(3) { animation-delay: 10s; }

/* --- CARD 4 (Precast) - Starts 3s late --- */
.card:nth-child(4) .slideshow img:nth-child(1) { animation-delay: 3s; }
.card:nth-child(4) .slideshow img:nth-child(2) { animation-delay: 7s; }
.card:nth-child(4) .slideshow img:nth-child(3) { animation-delay: 11s; }

/* Zoom-out effect on hover */
.card:hover .slideshow img {
    transform: scale(1) translateX(0) !important;
    transition: transform 0.8s ease-out !important;
}


/* --- About Section Layout --- */
.about-section {
    background-color: rgb(240, 240, 240);
    padding: 80px 0 0 0;
    margin-top: 50px;
}

.about-container {
    width: 90%; /* Keeps the side margins neat */
    max-width: 1400px; /* High max-width for wide screens */
    margin: 0 auto;
}

.about-main-title {
    text-align: center;
    width: 100%;
    /* If it looks too far left, add a small left padding to compensate for visual weight */
    padding-left: 20px; 
    
font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 850; /* Professional Semi-bold */
    font-size: 3.2rem;
    color: rgb(10, 17, 40);
    margin-top: 10px;
    margin-bottom: 3rem;
    text-transform: capitalize;
}

.about-block {
    margin-bottom: 50px;
    width: 100%; /* Ensures it doesn't shrink to half page */
    text-align: left;
}

.about-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700; /* Little bold as requested */
    font-size: 1.8rem;
    color: rgb(10, 17, 40);
    margin-bottom: 15px;
}

.about-block p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8; /* Increased line height for professional readability */
    color: rgb(10, 17, 40);
    font-size: 1.1rem;
    
    /* CRITICAL FIX: Set this to 100% to stop early wrapping */
    max-width: 100%; 
    text-align: justify; /* Optional: makes it look very neat like a magazine */
}

/* --- Stats Banner (Bottom Bar) --- */
.stats-banner {
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 5%;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.02);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: #0a1128;
    line-height: 1;
}

.stat-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: #ddd;
    margin: 0 20px;
}

/* Mobile Responsive Stats */
@media (max-width: 768px) {
    .stats-banner {
        flex-direction: column;
        gap: 30px;
    }
    .stat-divider {
        display: none;
    }
}

/* --- Culture Section --- */
.culture-section {
    background-color: hsl(0, 0%, 94%);
    padding: 60px 0 0 0;
}

.culture-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.culture-main-title {
    text-align: center;
    width: 100%;
    /* If it looks too far left, add a small left padding to compensate for visual weight */
    padding-left: 20px; 
    margin-top: 0px;
    margin-bottom: 3rem;
    
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 850; /* Professional Semi-bold */
    font-size: 3.2rem;
    color: #0a1128;
    text-transform: capitalize;
}

.culture-content p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 100%; /* Fixes the half-page wrap */
}

/* --- Culture Banner Bar --- */
.culture-banner {
    background-color: hsl(0, 0%, 94%);
    padding: 10px 0; /* Increased from 50px for more vertical presence */
    border-top: 0px solid #eee;
    width: 100%;
    margin-top: -60px
}
/* --- Fix for R and TM symbols --- */
sup {
    font-size: 0.4em; /* Makes symbols much smaller */
    vertical-align: super;
    margin-left: 2px;
}

.banner-inner {
    display: flex;
    align-items: center;
    /* CHANGE: This pulls everything from the edges to the absolute center */
    justify-content: center; 
    
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
}

/* GPTW Logo Styling */
.gptw-cert img {
    /* This height matches the visual scale of your screenshot */
    height: 180px; 
    width: auto;
    
    /* Ensures the logo doesn't look blurry */
    image-rendering: -webkit-optimize-contrast;
    object-fit: contain;
    
    /* Keeps the logo from being squeezed */
    flex-shrink: 0;
}

/* Center Text Styling */
.gptw-text {
    /* flex: 0 1 auto ensures the text doesn't stretch and push items away */
    flex: 0 1 auto; 
    padding-left: 40px;
    /* Control the gap between text and the Careers section line here */
    padding-right: 60px; 
}

.we-are {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.gptw-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: #e31e24; /* Red color from the GPTW brand */
    margin: 0px 0;
}

.gptw-sub {
    font-size: 0.9rem;
    color: #666;
}

/* Careers Section on the Right */
.careers-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 1px solid #ddd;
    padding-left: 40px;
    /* Ensure no auto-margins are pushing it to the right */
    margin-left: 0; 
}

.career-icon {
    font-size: 2rem;
    color: #0a1128;
}

.career-label {
    display: block;
    font-weight: 900;
    font-size: 1.1rem;
    color: #0a1128;
    letter-spacing: 1px;
}

.join-link {
    color: #001529;           /* Match your dark blue theme */
    text-decoration: underline; /* Keep the underline so users know it's clickable */
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.3s ease;
}

.join-link:hover {
    color: #d4af37;           /* Changes color slightly when hovered */
    text-decoration: none;    /* Optional: removes underline on hover */
}

/* Responsiveness */
@media (max-width: 992px) {
    .banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .gptw-text { padding: 0; }
    .careers-cta { border: none; padding: 0; }
}

/* --- Footprint Section Layout --- */
.footprint-section {
    background-color: rgb(30 35 48);
    padding: 80px 0;
    text-align: center;
}

.footprint-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.footprint-title {
   font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 850; /* Professional Semi-bold */
    font-size: 3.2rem;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 3rem;
    text-transform: capitalize;
}

/* --- Map Container --- */
.map-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    padding: 15px; /* Creates a clean white frame */
    border: 1px solid #eaeaea;
    
    /* Smooth transition for the container's shadow */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.footprint-map {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    
    /* Starting state: crisp and clear */
    filter: brightness(1) contrast(1);
    transform: scale(1);
    /* Ultra-smooth movement */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                filter 0.5s ease;
}
/* --- Hover State Effects --- */
.map-wrapper:hover {
    /* 1. The container "lifts" off the page with a deeper shadow */
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #0088cc; /* Border changes to your brand blue */
}
.map-wrapper:hover .footprint-map {
    /* 2. Subtle zoom to invite the user to look closer */
    transform: scale(1.03);
    
    /* 3. Slight brightness boost to make the markers pop */
    filter: brightness(1.05) contrast(1.05);
}

.map-legend {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

/* --- Mobile View --- */
@media (max-width: 768px) {
    .map-legend {
        position: static;
        margin-top: 20px;
        background: #fff;
    }
}

/* --- Footer Main Styling --- */
.site-footer {
    background-color: rgb(240, 240, 240);
    color: #ffffff;
    padding: 30px 0;
    font-family: 'Montserrat', sans-serif;
}

/* 2. The Inner Container */
.footer-container {
    position: relative; /* This is the anchor for the icons */
    width: 100% !important;
    max-width: 100% !important;
    padding: 40px 40px; /* Keep your existing padding */
    padding-bottom: 10px;   /* REDUCE THIS from 40px to 10px */
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.footer-social-aside {
    position: absolute;  /* This takes them out of the normal flow */
    right: 40px;         /* Distance from the right edge */
    bottom: 40px;        /* Distance from the bottom edge */
    display: flex;
    gap: 15px;
}
/* 3. Style the icons */
.footer-social-aside i {
    font-size: 28px;
    color: #001529;      /* Matches your Corporate Office color */
    transition: 0.3s ease;
}

.footer-social-aside i:hover {
    color: #0077b5;      /* LinkedIn blue on hover */
}

.contact-info-wrapper {
    /* REMOVE any 'margin: auto' if it exists */
    margin-left: 0 !important; 
    
    /* This controls the left-side alignment of the block */
    text-align: left;
    
    /* Prevents the text from stretching too far right */
    max-width: 450px; 
}

/* --- Logo Section --- */
.footer-logo img {
    height: 30px;
    width: auto;
    margin-bottom: 10px;
}

/* Container Spacing */
.contact-container {
    /* 1. Remove any existing left padding that is pushing it away from the edge */
    padding-left: 0; 
    
    /* 2. Match this margin to whatever margin the Logo has. 
       If the Logo is at the very edge, keep this 0. */
    margin-left: 0; 
    
    /* 3. This ensures the text stays aligned under the logo */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    
}

/* Main Heading: "Corporate Office" */
.contact-heading {
    color: rgb(10, 17, 40);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Row setup for Icon + Text alignment */
.contact-row {
    display: flex;
    align-items: flex-start; /* Aligns icon with the top line of text */
    margin-bottom: 18px;
}

/* Icon Styling */
.contact-row i {
    color: rgb(10, 17, 40); 
    font-size: 0.9rem;
    width: 25px;    /* Fixed width so all text starts at the same line */
    margin-top: 5px;
    text-align: left;
}

/* Text Styling */
.contact-row p {
    color: rgb(10, 17, 40);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Link Styling */
.contact-row a {
    color: rgb(10, 17, 40);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.contact-row a:hover {
    color: #3b82f6; /* Subtle blue glow on hover */
    border-bottom: 1px solid #3b82f6;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 20px; /* Moves it to the left like your screenshot */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: left;
    font-size: 35px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
}

.bottom-bar {
    background-color: #0a0a0a;
    color: #d1d1d1;
    padding: 15px 50px; /* Match the '50px' to your Logo alignment */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    border-top: 1px solid #333;
    font-family: Arial, sans-serif;
}

.bottom-bar a {
    color: #d1d1d1;
    text-decoration: none;
    margin: 0 5px;
}

.bottom-bar a:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@keyframes cinematicMove {
    0% {
        transform: scale(1.0) translateX(0) translateY(0) rotate(0deg);
        filter: brightness(0.9);
    }
    25% {
        transform: scale(1.1) translateX(-10px) translateY(5px) rotate(0.5deg);
    }
    50% {
        transform: scale(1.2) translateX(10px) translateY(-5px) rotate(-0.5deg);
        filter: brightness(1.1);
    }
    75% {
        transform: scale(1.1) translateX(-5px) translateY(-10px) rotate(0.3deg);
    }
    100% {
        transform: scale(1.0) translateX(0) translateY(0) rotate(0deg);
        filter: brightness(0.9);
    }
}
/* --- CLEANED MOBILE HEADER & UI (768px and below) --- */
@media (max-width: 768px) {
    
    /* 1. Navbar Container */
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important; /* Pushes toggle group to the right */
        align-items: center !important;
        height: 100px !important;
        padding: 0 20px !important;
        position: relative !important;
    }

    /* 2. CENTERED LOGO */
    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        z-index: 10;
    }

    .logo img {
        height: 45px !important; /* Made larger as you requested */
        width: auto !important;
    }

    /* 3. Toggle Group: Far Right */
    .menu-toggle {
        margin-left: auto !important;
        z-index: 100 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 4. Button Cleanup: Removes stray white lines/borders */
    .hamburger-menu, .close-menu {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        cursor: pointer !important;
        outline: none !important;
    }

    /* --- 4. The X Icon Logic --- */
    .close-menu {
        display: none !important; /* Hidden until menu-open class is active */
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 30px !important;
        height: 30px !important;
        z-index: 101 !important;
    }

    .close-menu span {
        position: absolute;
        width: 25px !important;
        height: 3px !important;
        background-color: #000000 !important;
        left: 2px;
        top: 13px;
    }

    /* Create the X shape by rotating the two spans */
    .close-menu span:nth-child(1) { transform: rotate(45deg); }
    .close-menu span:nth-child(2) { transform: rotate(-45deg); }

    /* Switch icons when menu is open */
    .navbar.menu-open .hamburger-menu { 
        display: none !important; 
    }
    
    .navbar.menu-open .close-menu { 
        display: flex !important; 
        align-items: center; 
        justify-content: center; 
    }

.hamburger-menu {
        /* 1. Remove the white box/line background */
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        
        /* 2. Positioning (Move it to the right so it doesn't touch the logo) */
        position: absolute !important;
        right: 20px !important; 
        top: 50% !important;
        transform: translateY(-50%) !important;
        
        /* 3. Sizing */
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 30px !important;
        height: 20px !important;
        padding: 0 !important;
        cursor: pointer !important;
        z-index: 100 !important;
    }

   .hamburger-menu span {
        width: 100% !important;
        height: 3px !important; /* Bold enough to see */
        background-color: #000000 !important; /* Pure black lines */
        display: block !important;
        border-radius: 2px !important;
    }

    /* 4. Dropdown Menu */
    .nav-right-group {
        display: none; 
        position: absolute !important;
        top: 100px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #fff !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
    }

    .nav-right-group.active {
        display: block !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        padding: 10px 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .nav-links li {
        text-align: center !important;
        padding: 20px 0 !important;
        border-bottom: 1px solid #f2f2f2 !important;
    }

    .nav-links li a {
        color: #000 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
    }
/* Ensure the Contact Us link shows up in the mobile menu */
.nav-links li.mobile-only {
    display: block !important;
}

/* Optional: Make it look like a button in the mobile list */
.nav-links li.mobile-only a {
    background-color: #d4af37 !important; /* Gold background */
    color: #000 !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    display: inline-block !important;
    margin: 10px 0 !important;
}
 /* Toggle Lines into X Animation */
    .nav-right-group.active ~ .hamburger-menu span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-right-group.active ~ .hamburger-menu span:nth-child(2) { opacity: 0; }
    .nav-right-group.active ~ .hamburger-menu span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* 5. Map Wrapper UI */
    .map-wrapper {
        position: relative;
        display: block;
        cursor: pointer;
    }

  /* Refined Mobile Map Zoom Button */
@media (max-width: 768px) {
    .map-wrapper::after {
        content: '🔍 Tap to Zoom'; /* Shortened text to save space */
        position: absolute;
        bottom: 12px; /* Moved closer to the bottom edge */
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 102, 178, 0.9); /* Slight transparency for a sleeker look */
        color: white;
        padding: 6px 16px; /* Reduced padding to make it thinner */
        border-radius: 20px; /* More elegant rounded corners */
        font-size: 11px; /* Smaller font for a professional feel */
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 5;
        white-space: nowrap;
        border: 1px solid rgba(255,255,255,0.2); /* Subtle border for definition */
    }
}       

/* 2. Portfolio Labels: Light Grey, Small, No Caps */
    .card-overlay {
        background: none !important;
        backdrop-filter: none !important; /* Removes blur */
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding-bottom: 15px !important; /* Slightly tighter spacing */
    }

    .card-overlay h3, 
    .card-overlay .label { 
        background: rgba(255, 255, 255, 0.9) !important; /* Light grey */
        color: #000000 !important;      /* Black text for contrast */
        padding: 6px 14px !important;   /* Compact sizing */
        font-size: 0.8rem !important;   /* Smaller font */
        border-radius: 6px !important;
        border: none !important;        /* No outline */
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        
        /* Text styling */
        text-transform: none !important; /* Removes All Caps */
        font-weight: 500 !important;     /* Medium weight for readability */
        margin: 0 !important;
        display: inline-block !important;
    }

.portfolio-card:active .card-overlay h3 {
        background: rgba(220, 220, 220, 1) !important;
        transform: scale(0.98);
    }

.navbar.menu-open .close-menu { 
        display: flex !important; 
        align-items: center; 
        justify-content: center; 
    }

} /* This extra bracket ensures the mobile section is CLOSED */

/* --- DESKTOP VIEW --- */
@media screen and (min-width: 769px) {
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 40px !important;
        box-sizing: border-box !important;
    }

   .nav-right-group {
        display: flex !important;
        align-items: center !important; 
        height: 100% !important; /* Forces the group to use the full navbar height */
        margin-left: auto !important;
    }
    
    .nav-links {
        display: flex !important;
        align-items: center !important; /* Centers individual text links */
        gap: 2.5rem !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

   .nav-links li:has(.contact-btn) {
    display: flex !important;
    align-items: center !important;
}
  .nav-links li a.contact-btn {
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.contact-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 45px !important;
    /* This line is the most important: it stops the text from being pushed up */
    padding: 0 25px !important;
    margin: 0 !important; 
    line-height: 1 !important;
    text-decoration: none !important;
}

    .menu-toggle {
        display: none !important;
    }
}

/* This goes at the bottom of your entire CSS file */
@media screen and (max-width: 768px) {
    .card-overlay h3 a::after {
        content: " \2192" !important; 
        display: inline-block !important;
        margin-left: 8px !important;
        color: #000 !important;
        font-weight: bold !important;
        font-size: 1.2rem !important;
    }

    .card-overlay h3 a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}