@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
    --primary: #e2ecf1;
    --secondary: #004960;
    --outline: #97d0a1;
    --btn: #82b449;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--secondary);
    overflow-x: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

/* nav bar */

.menu-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 4.5rem;
}

.logo {
    width: 135px;
    height: 110px;
    position: relative;
    top: 0px;
    left: 0px;
    transform: translateX(-32px);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-menu-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-direction: row;
    text-decoration: none;
}

li {
    list-style: none;
    cursor: pointer;
}

.horizontal-menu a {
    font-size: 1.3rem;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.horizontal-menu a:hover {
    color: var(--btn);
}

.horizontal-menu .active {
    color: var(--btn);
}

.horizontal-menu .active::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--btn);
    margin-top: 2rem;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 101; /* Must be above the menu */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: var(--btn);
    /* This is the transition for the 'X' animation */
    transition: all 0.3s ease-in-out;
    /* No border-radius, as requested */
}

.hamburger-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px; /* You can adjust this width */
    background-color: var(--secondary);
    z-index: 100; /* Below the hamburger icon */

    /* Start off-screen to the right */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;

    box-sizing: border-box;
    padding-top: 80px; /* Give space for the 'X' icon */
}

.hamburger-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamburger-menu-list li a {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between SVG and text */
    padding: 16px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;

    /* Color for text and SVG, as requested */
    color: var(--primary);
    fill: var(--primary);

    transition: background-color 0.2s;
}

.hamburger-menu-list li a svg {
    width: 24px;
    height: 24px;
    /* We use 'fill' here, which inherits the 'color' property, 
               but setting it directly ensures it works. */
    fill: var(--primary);
}

.hamburger-menu-list li a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- 4. Active Link Styling --- */
.hamburger-menu-list li a.active {
    color: var(--btn); /* Active text color */
    fill: var(--btn); /* Active SVG color */

    /* This makes the "whole selected part" distinguishable */
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--btn);

    /* Adjust padding to account for the border */
    padding-left: 21px;
}

body.menu-active .hamburger-menu {
    transform: translateX(0);
}

/* --- 5. The "Active" State (Toggled by JavaScript) --- */

/* Animate hamburger bars into an 'X' */
body.menu-active .hamburger .bar:nth-child(1) {
    /* Moves down 9.5px and rotates */
    transform: translateY(9.5px) rotate(45deg);
}

body.menu-active .hamburger .bar:nth-child(2) {
    /* Fades out */
    opacity: 0;
}

body.menu-active .hamburger .bar:nth-child(3) {
    /* Moves up 9.5px and rotates */
    transform: translateY(-9.5px) rotate(-45deg);
}

/* messages */
.messages-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.message {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 0px;
    color: white;
    font-size: 15px;

    animation: fadeIn 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    min-width: 250px;
}

.message.success {
    background: var(--outline);
}
.message.error {
    background: #dc3545;
}
.message.info {
    background: var(--secondary);
}
.message.warning {
    background: #ffc107;
    color: #333;
}

.message .icon {
    font-size: 18px;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* loading dots */
.loader-overlay {
    position: fixed;
    top: 3%;
    right: 0;
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns loader to the left */
    padding-left: 20px;
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loader-overlay.hidden {
    opacity: 0;
}

/* --- NEW LOADER STYLES --- */

/* This is the new loader container */
.loader {
    display: flex;
    gap: 8px; /* Adds space between the dots */
}

/* This is the new dot style */
.loader .dot {
    width: 10px;
    height: 10px;

    /* As requested: use the CSS variable, with a fallback */
    background: var(--outline, #97d0a1);

    border-radius: 0%; /* Makes them circular dots */

    /* Attach the new animation */
    animation: dot-pulse 1.2s ease-in-out infinite;

    /* Start the dots slightly faded */
    opacity: 0.4;
    transform: scale(0.95);
}

/* Stagger the animation for each dot */
.loader .dot:nth-child(1) {
    animation-delay: 0s;
}
.loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}
.loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Keyframes for the pulsing effect */
@keyframes dot-pulse {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero section */
.hero {
    padding: 2rem 2rem;
    gap: 1rem;
}

.side-by-side {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .horizontal-menu {
        display: none !important;
    }

    .page-header {
        margin-top: 1rem !important;
    }

    .side-by-side {
        flex-direction: column !important;
    }

    .hero-text {
        display: none;
    }

    .hero-header {
        text-align: center !important;
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
    }

    .hero-img {
        margin-top: 2rem !important;
        padding: 0 !important;
        height: 50vh !important;
        width: 100vw !important;
    }

    .statistics-carousel {
        left: 50% !important;
        transform: translate(-50%, -75%) !important;
        width: 80%;
    }

    .statistics-carousel-list li {
    }

    .upper {
        font-size: 1.1rem !important;
    }

    .lower {
        font-size: 0.8rem !important;
    }

    .about {
        padding: 0rem !important;
    }

    .about-right {
        padding: 0 !important;
    }

    .about-left {
        padding: 1rem !important;
    }

    .project-docs p {
        left: 10% !important;
        font-size: 1rem !important;
    }

    .project-docs form {
        padding: 0.7rem !important;
        gap: 8px !important;
    }

    .project-docs form label {
        font-size: 0.8rem !important;
    }

    .project-docs form input {
        font-size: 0.8rem !important;
    }

    .project-docs form .active {
        height: 100%;
    }

    .form-control {
        padding: 4px 8px !important;
        outline: red !important;
    }

    #docForm {
    }

    .gallery {
        padding-right: 0 !important;
    }
    .about-right,
    .about-left,
    .gallery-left,
    .gallery-right,
    .contact-left,
    .contact-right,
    .vision-mission-right,
    .vision-mission-left {
        width: 100% !important;
    }

    .gallery-left {
        order: -1;
        padding: 1rem !important;
    }

    .gallery-right {
        padding: 0 !important;
    }

    .overlay-text {
        font-size: 1rem !important;
    }

    .contact-info-header {
        font-size: 1rem !important;
    }

    .floating-cube {
        width: 25px !important;
        height: 25px !important;
    }

    .contact-icon {
        width: 15px !important;
        height: 15px !important;
    }

    .contact-info-text {
        font-size: 0.8rem !important;
    }

    .footer-links ul {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .footer-links ul a {
        font-size: 0.8rem !important;
    }

    #newsletter-subscription form {
        flex-direction: column !important;
        font-size: 0.8rem !important;
    }

    #newsletter-subscription h3 {
        font-size: 0.8rem !important;
    }

    #newsletter-subscription input {
        font-size: 0.8rem !important;
    }

    .footer-copyright {
        font-size: 0.8rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .copyright-text {
        text-align: center;
    }

    /* About page */
    .statistics-section {
        margin-bottom: 1rem !important;
    }

    .statistics-section-list {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .statistics-section-list span {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .value-header {
        font-size: 0.9rem !important;
    }

    .value-text {
        font-size: 0.9rem !important;
    }

    .vision-two {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .vision-mission-left {
        padding-top: 1rem !important;
        order: -1 !important;
    }
}

.hero-header {
    font-family: "Playfair display", serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.accent {
    color: var(--outline);
}

.hero-text {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.hero-img {
    padding: 2rem 2rem;
    width: 100%;
    height: 65vh;
    position: relative;
    z-index: 1;
}

.img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-container::after {
    content: "";
    position: absolute;
    background: rgba(0, 73, 76, 0.3);
    inset: 0;
}

.statistics-carousel {
    background: var(--outline);
    padding: 1rem;
    margin: 1rem 0;
    position: absolute;
    top: 0;
    transform: translateY(-25%);
    right: 9%;
}

.statistics-carousel-list {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
}

.statistics-carousel-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.upper {
    font-weight: 600;
    font-size: 1.5rem;
}

.lower {
    font-size: 0.85rem;
}

/* About section */
.about {
    width: 100%;
    height: auto;
    padding: 2rem 0rem 2rem 2rem;
    display: flex;
    gap: 1rem;
}
.about-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    font-size: 0.7rem;
    color: var(--btn);
    margin-bottom: 0.5rem;
}

.about-text {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.big-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.about-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 0rem;
}

.about-img img:first-child {
    border-radius: 0;
    width: 50%;
    height: 90%;
    object-fit: cover;
}

.about-img img:nth-child(2) {
    border-radius: 0;
    width: 50%;
    height: 60%;
    object-fit: cover;
}

.project-docs-container {
    width: 70%;
    height: 70%;
    position: absolute;
    bottom: 0%;
    left: 28%;
    transform: translateY(60%);
    z-index: 21;
}

.project-docs {
    width: 100%;
    height: 100%;
    border-radius: 0px;
    position: relative;
    overflow: hidden !important;

    box-shadow: 10px 10px 20px rgba(0, 73, 96, 0.5);
    z-index: 22;
}

.project-docs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-docs::after {
    content: "";
    position: absolute;
    background: rgba(0, 73, 76, 0.8);
    inset: 0;
}

.project-docs p {
    position: absolute;
    top: 10%;
    left: 15%;
    color: var(--outline);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 2;
    z-index: 2;
}

#docGet {
    position: absolute;
    bottom: 10%;
    right: 10%;
    z-index: 2;
}

.hidden {
    display: none;
}

.project-docs form {
    position: absolute;
    inset: 0;
    padding: 2rem;
    padding-top: 0.8rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--secondary);
    z-index: 55;
    color: var(--primary);
    box-shadow: 10px 10px 20px rgba(0, 73, 96, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-docs form.active {
    transform: translateY(0%);
}

.form-control {
    padding: 8px 16px;
    outline: none;
    border: 1.3px solid var(--outline);
    border-radius: 0px;
    font-size: 1.2rem;
    color: var(--primary);
    background: var(--primary);
}

/* Gallery section */
.gallery {
    margin-top: 7rem;
    padding: 3rem 2rem 2rem 0rem;
    height: auto;
    width: 100%;
    gap: 1rem;
}

.gallery-right {
    height: 100%;
    width: 50%;
    border-radius: 0px;
}

.gallery-left {
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 1.5;
}

.imgs-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0px;
}
.img-wrapper {
    position: relative; /* Anchors the absolute text inside */
    width: 33.33%; /* Each wrapper takes 1/3 width */

    overflow: hidden; /* Keeps everything tidy */
    cursor: pointer; /* Shows it's interactive */
}

/* The image now fills the wrapper */
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Removes default inline spacing */
    transition: transform 0.3s ease; /* Optional: Smooth zoom effect */
}

.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Flexbox to center the text perfectly */
    display: flex;
    justify-content: center;
    align-items: flex-end;

    background: rgba(0, 73, 76, 0.5);
    color: var(--primary);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;

    /* Hiding logic */
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- HOVER EFFECTS --- */

/* When hovering the wrapper, make text visible */
.img-wrapper:hover .overlay-text {
    opacity: 1;
}

.gallery-left p {
    font-size: 1rem;
    line-height: 1.7;
}

/* Contact section*/
.contact {
    padding: 1rem;
    height: auto;
    width: 100%;
    gap: 2rem;
}

.contact-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.contact-left form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contact-left h2 {
    justify-self: flex-start;
    align-self: flex-start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.form-group label {
    font-size: 1rem;
    position: absolute;
    left: 2%;
    top: 0;
    transform: translateY(50%);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    padding-left: 4.5rem;
    outline: none;
    border: 1.3px solid var(--outline);
    border-radius: 0px;
    font-size: 1rem;
    resize: none;
    background: transparent;
    color: var(--secondary);
}

.form-group textarea {
    padding-left: 5rem;
}

.contact-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-right .contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--secondary);
    padding: 2rem;
    border-radius: 0px;
    color: var(--primary);
    position: relative;
}

.floating-cube {
    background: var(--outline);
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
}

.contact-info-header {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Wrapper for each row (Icon + Text) */
.contact-row {
    display: flex;
    align-items: center; /* Vertically center icon with text */
    gap: 12px; /* Space between icon and text */
    margin-bottom: 15px;
}

/* The SVG Icon styling */
.contact-icon {
    width: 20px;
    height: 20px;
    /* This makes the icon inherit the text color, 
       or you can set a specific color like #e67e22 */
    fill: currentColor;
    flex-shrink: 0; /* Prevents icon from squishing if text is long */
}

/* Optional: Ensure text removes default margins for clean alignment */
.contact-info-text {
    margin: 0;
    line-height: 1.5;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    padding-top: 0rem;
    height: auto;
    width: 100%;
}

.footer-links ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-links ul a {
    font-size: 1.2rem;
    color: var(--secondary);
    text-decoration: none;
}

#newsletter-subscription {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#newsletter-subscription form {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* About Us Page */
.statistics-section {
    margin: 7rem 0 4rem 0;
    padding: 3rem;
    background: var(--outline);
    height: auto;
    width: 100%;
}

.statistics-section span {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.statistics-section-list {
    width: 100%;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.vision-mission-section {
    width: 100%;
    padding: 2rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.vision-mission-left {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 1rem;
}

.vision-mission-left p {
    line-height: 1.7;
}

.vision-mission-right {
    display: flex;
    width: 70%;
    flex-direction: column;
    gap: 2rem;
}

.vision-two {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.value-container {
    display: flex;
    background: var(--secondary);
    padding: 1rem;
    color: var(--primary);
    border-radius: 0px;
    flex-direction: row;
    gap: 1rem;
}

.value-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vision-one {
    display: flex;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    gap: 1rem;
}

/* Container for the floating icons */
.social-container {
    position: fixed;
    bottom: 1.5rem; /* equivalent to bottom-6 */
    right: 0rem; /* equivalent to right-4 */
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* equivalent to gap-3 */
}

/* Shared styles for the buttons */
.social-btn {
    color: var(--secondary); /* Replacement for 'text-text-secondary' (Gray) */
    background-color: var(--btn); /* bg-white/80 */
    border-radius: 0;
    padding: 0.5rem; /* p-2 */

    /* shadow-md */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* transition-colors */
    transition: color 0.2s ease-in-out;

    /* Flex alignment to center the SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Specific Hover Colors */

/* WhatsApp Hover Green */
.social-btn.whatsapp:hover {
    color: #25d366;
}

/* Email Hover Dark Color */
/* Replaced 'text-primary-dark' with a dark blue/black. Change as needed. */
.social-btn.email:hover {
    color: #111827;
}
