/* Basic setup */
body {
    font-family:'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    background-color:#f4f4f4;
}

/* ======== HEADER & NAVIGATION ======== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

.badge {
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    text-shadow:#333 1px 1px 1px;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.5em;
    cursor: pointer;
}

/* ======== IMAGE SLIDER ======== */
.image-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 300px;
    background-color: #e0e0e0;
    margin: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 2em;
    color: #888;
}

.arrow {
    font-size: 3em;
    color: #aaa;
    padding: 0 20px;
    cursor: pointer;
}

/* ======== MATERIALS SECTION ======== */
.materials-section {
    text-align: center;
    padding: 20px;
}

.materials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.material-tag {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px; /* This makes it oval */
    padding: 10px 20px;
    font-size: 1em;
    box-shadow: 1px 1px 3px rgba(21, 200, 36, 0.1);
    cursor: pointer;
}

/* ======== CLIENTS SECTION ======== */
.clients-section {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    margin-top: 20px;
}

/* ======== WHATSAPP BUTTON ======== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======== RESPONSIVE (for mobile) ======== */
@media (max-width: 768px) {
    .scroller-track {
        /* ... */
        animation-name: scroll-mobile;
        animation-duration: 12s; /* CHANGED TO 12s */
    }
    /* ... */
}
/* ======== NAVIGATION ANIMATION ======== */
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative; /* Needed for the pseudo-element */
    padding-bottom: 5px; /* Adds space for the line */
}

/* Creates the underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* Starts with no width */
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease-out; /* Animation effect */
}

/* On hover, expand the width to 100% */
.nav-links a:hover::after {
    width: 100%;
}
/* ======== MATERIAL TAGS ANIMATION ======== */
.material-tag {
    /* ... keep all your existing styles ... */
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
     background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1em;
    box-shadow: 5px 5px 3px rgba(240, 218, 13, 0.1);
    cursor: pointer;
    /* UPDATED: Faster transition for a 'snappy' click */
    transition: transform 0.1s ease, background-color 0.2s ease;
    transform: translateY(3px) scale(0.98); /* Moves it down 3px and shrinks it slightly */
    box-shadow: none;
}

.material-tag:hover {
    transform: scale(1.05); /* Makes the tag 5% larger */
    background-color: #007bff;
    color:burlywood;
    border-color:brown;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
}
.whatsapp-button {
    /* ... keep all your existing styles ... */
    animation: pulse 2s infinite; /* This applies the animation */
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Starts 20px lower */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ends at its normal position */
    }
}
.materials-section {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.8s ease-out; /* Apply the fade-in */
}

.clients-section {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    margin-top: 20px;
    animation: fadeIn 0.8s ease-out 0.2s; /* Apply fade-in with a small delay */
    animation-fill-mode: backwards; /* Ensures it starts invisible */
}
.material-tag {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    /* UPDATED: Faster transition for a 'snappy' click */
    transition: transform 0.1s ease, background-color 0.2s ease;
    transform: translateY(3px) scale(0.98); /* Moves it down 3px and shrinks it slightly */
    box-shadow: none;
}
/* NEW: This rule makes the button move on click */
.material-tag:active {
    transform: translateY(3px) scale(0.98); /* Moves it down 3px and shrinks it slightly */
    box-shadow: none; /* Optional: removes the shadow for a 'pressed in' look */
}
/*
===============
ABOUT PAGE STYLES
===============
*/

/* Style for the main text container */
.content-container {
    max-width: 900px;
    margin: 30px auto; /* Centers the container */
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.content-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.content-container h3 {
    color: #0056b3; /* A blue to match the badge */
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.content-container p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* Styles for the expertise list */
.expertise-list {
    list-style: none; /* Removes default bullets */
    padding-left: 0;
}

.expertise-list li {
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #444;
}

/* Highlights the active nav link */
.nav-links a.active {
    font-weight: bold;
    color: #007bff;
}

/* Remove hover effect for the active page */
.nav-links a.active::after {
    width: 100%;
    background-color: #007bff;
}
/*
==================
CONTACT INFO BLOCK (ON ABOUT PAGE)
==================
*/

.contact-info-block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows it to stack on small screens */
    gap: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.contact-info-block p {
    margin: 0;
    line-height: 1.6;
}
/*
===============
CONTACT PAGE STYLES
===============
*/

.contact-page-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 30px;
    margin-top: 30px;
}

.contact-details,
.contact-form {
    flex: 1; /* Each takes up half the space */
    min-width: 300px; /* Prevents them from getting too squished */
}

.contact-details h3 {
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
    margin-top: 0;
}

.contact-details p {
    line-height: 1.7;
    color: #555;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
}


/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Important for padding to work correctly */
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.submit-button:active {
    transform: scale(0.98);
}
/*
===============
LOCATION PAGE STYLES
===============
*/

.address-block {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.address-block h3 {
    margin-top: 0;
    color: #333;
}

.address-block p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #555;
}

/* This reuses the button style from your contact page */
.address-block .submit-button {
    text-decoration: none;
    display: inline-block; /* Makes it behave like a button */
    margin-top: 15px;
}


/* Makes the map responsive */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ======== LOGO IMAGE STYLING ======== */
.logo-image {
    height: 50px;  /* You can change this height! */
    width: auto;   /* Keeps the logo from stretching */
    margin-right: 10px; /* Adds space next to the PMADG badge */
}
.logo {
    font-weight: bold;
    font-size: 1.2em;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin-right: 10px;
}
.logo {
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
}
/* This makes the <button> tags look like your old tags */
.material-tag {
    /* This copies all your old .material-tag styles */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    font-family: Arial, sans-serif; /* Ensures font matches */
    
    /* Animation from before */
    transition: transform 0.1s ease, background-color 0.2s ease;
}

/* This is the new style for the SELECTED button */
.material-tag.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.05);
}

.material-tag:hover:not(.active) {
    background-color: #f0f0f0; /* Slight hover effect */
}

/* New Gallery Styles
*/
.photo-gallery {
    display: grid;
    /* This creates 3 columns. Change "3" to "4" for 4 columns */
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

.gallery-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* This class will be added by JavaScript to hide items */
.gallery-item.hide {
    display: none;
}

/* Make gallery responsive on mobile */
@media (max-width: 768px) {
    .photo-gallery {
        /* 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        /* 1 column on phones */
        grid-template-columns: 1fr;
    }
}
/*
==================
NEW AUTO-SCROLLER
==================
*/

/*
==================
AUTO-SCROLLER
==================
*/

/* Define the scroll animation */
@keyframes scroll-desktop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This moves the track by the width of the first 15 images */
        transform: translateX(calc(-25vw * 5));
    }
}

.scroller {
    width: 100%;
    overflow: hidden;
    background: #f4f4f4;
    padding: 20px 0;
    margin: 20px 0;
}

.scroller-track {
    display: flex;
    /* ... */
    width: calc(30 * 25vw); 
    animation: scroll-desktop 25s linear infinite; /* CHANGED TO 15s */
}

.scroller-track:hover {
    animation-play-state: paused; /* Pauses when you hover */
}

.scroller-track img {
    width: 25vw; /* 4 images on screen */
    height: 300px;
    object-fit: cover;
    flex-shrink: 0;
    padding: 0 10px; /* Spacing between images */
    
    /* THIS IS THE FIX: */
    /* It includes the padding in the 25vw width */
    box-sizing: border-box; 
}


/* For mobile (shows 2 images) */
@media (max-width: 768px) {
    .scroller-track {
        width: calc(30 * 50vw);
        animation-name: scroll-mobile;
        animation-duration: 45s; 
    }
    
    .scroller-track img {
        width: 50vw; /* 50vw = 2 images on screen */
    }

    /* Define the mobile animation */
    @keyframes scroll-mobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50vw * 15)); }
    }
}
@media (max-width: 768px) {
    .scroller-track {
        /* Total width = 30 images * 50vw width */
        width: calc(30 * 50vw);
        /* Use the mobile animation */
        animation-name: scroll-mobile;
        animation-duration: 45s; /* Faster for fewer images */
    }
    
    .scroller-track img {
        width: 50vw; /* 50vw = 2 images on screen */
    }

    /* Define the scroll animation for mobile */
    @keyframes scroll-mobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50vw * 15)); }
    }
}
/*
==================
CLIENT LOGO SCROLLER
==================
*/

/* Define the new scroll animation for clients */
@keyframes scroll-clients-desktop {
    /* ... (delete everything inside) ... */
}

.clients-section {
    text-align: center; 
}

.client-scroller {
    /* ... (delete everything inside) ... */
}

.client-track {
    /* ... (delete everything inside) ... */
}

.client-track:hover {
    /* ... (delete everything inside) ... */
}

.client-track img {
    height: 50px;  /* CHANGED: Set a smaller height */
    width: auto;   /* Let width adjust automatically */
    max-width: 120px; /* CHANGED: Set a smaller max width */
    object-fit: contain;
}


/* On mobile, we'll show 3 logos
*/
@media (max-width: 68px) {
    .client-track {
        /* ... (delete everything inside) ... */
    }
    
    .client-track img {
        /* ... (delete everything inside) ... */
    }

    /* Define the scroll animation for mobile */
    @keyframes scroll-clients-mobile {
        /* ... (delete everything inside) ... */
    }
}
/* You can delete this rule now */
.logo {
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
}
/*
==================
GOVERNMENT LOGO (RIGHT SIDE)
==================
*/
.logo-image-right {
    height: 50px;  /* You can change this height */
    width: auto;   /* Keeps the logo from stretching */
    margin-right: 10px; /* Adds space before the menu icon on mobile */
}
/*
==================
MOBILE MENU STYLES (Add to bottom of style.css)
==================
*/

/* Hide the close icon by default */
.menu-toggle .fa-times {
    display: none;
}

/* Show the close icon when active */
.menu-toggle.is-active .fa-times {
    display: block;
}

/* Hide the bars icon when active */
.menu-toggle.is-active .fa-bars {
    display: none;
}

/* Style the mobile menu container */
@media (max-width: 768px) {
    
    /* This is the <nav> element */
    nav#mobile-menu {
        display: none; /* Hidden by default */
        position: absolute;
        top: 70px; /* Adjust this to match your header height */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 100;
    }

    /* This class is added by JavaScript to show the menu */
    nav#mobile-menu.is-active {
        display: block;
    }
    
    /* Overwrite the desktop nav link styles */
    nav#mobile-menu .nav-links {
        display: block; /* Stack links vertically */
        width: 100%;
    }

    nav#mobile-menu .nav-links li {
        width: 100%;
        margin: 0;
    }

    /* Style the links for mobile */
    nav#mobile-menu .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        box-sizing: border-box; /* Include padding in width */
    }

    /* Remove the hover underline on mobile */
    nav#mobile-menu .nav-links a::after {
        display: none;
    }
}