/* BASE STYLES & RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #1F4A2C; /* Brand Deep forest green */
    color: #FFFFFF;      /* Brand White */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* LOADER */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #1F4A2C;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader h1 {
    font-size: 60px;
    font-family: 'Playfair Display', serif;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {opacity: 0.3;}
    50% {opacity: 1;}
    100% {opacity: 0.3;}
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.4s ease-in-out, box-shadow 0.4s ease-in-out, padding 0.4s;
}

nav.scrolled {
    background: #1F4A2C; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 15px 50px;
}

nav h2.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: #A5D6A7; /* A soft light green hover effect */
}

/* HERO SECTION */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1519741497674-611481863552') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(31, 74, 44, 0.75); /* Darker green overlay for better text contrast */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

/* Hero Animations */
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    margin-bottom: 10px;
    letter-spacing: 3px;
    animation: slideDown 1s ease-out forwards;
}

.hero-content p {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: slideUp 1s ease-out 0.5s forwards; 
    opacity: 0; 
}

.hero-content button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

.hero-content button:hover {
    background: white;
    color: #1F4A2C;
}

/* Keyframes */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* GENERIC SECTIONS */
section {
    padding: 100px 10vw;
    text-align: center;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    margin-bottom: 30px;
}

section p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* SERVICES */
.service-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; 
    justify-content: center;
    margin-top: 40px;
}

.card {
    background: white;
    color: #1F4A2C;
    padding: 40px 20px;
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    font-size: 14px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* GALLERY */
.gallery {
    background: rgba(0, 0, 0, 0.1); /* Slight contrast from main background */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

/* Staggered Gallery Animation Classes */
.gallery-grid img.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-grid img.stagger-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid img:hover {
    transform: scale(1.05) !important;
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* CONTACT */
.contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 18px;
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ensures it stays above all other content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #14331e;
    font-size: 14px;
}

/* SCROLL ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================= */

@media screen and (max-width: 768px) {
    /* Navbar adjust */
    nav {
        padding: 15px 20px;
        flex-direction: column; /* Stack logo and links */
        gap: 15px;
    }
    
    nav.scrolled {
        padding: 10px 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 12px;
    }

    /* Hero adjust */
    .hero-content h1 {
        font-size: 40px;
    }
    
    .hero-content p {
        font-size: 16px;
    }

    /* Sections adjust */
    section {
        padding: 60px 20px; /* Less padding on mobile */
    }

    section h2 {
        font-size: 32px;
    }

    /* Services adjust */
    .service-cards {
        flex-direction: column; /* Stack cards vertically */
    }

    .card {
        padding: 30px 15px;
    }

    /* Contact adjust */
    .contact-info p {
        font-size: 16px;
    }

    /* WhatsApp adjust - slightly smaller for mobile screens */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}