/* --- Global Styles & Colors (JSM Dark Mode) --- */
:root {
    --primary-green: #5cd600; /* Vivid flyer green! */
    --dark-green: #296600;
    --bg-main: #121212;       /* Deep dark grey for main background */
    --bg-section: #050505;    /* Pitch black for alternating sections */
    --bg-card: #1e1e1e;       /* Slightly lighter dark grey for cards/forms */
    --text-main: #ffffff;     /* White for headings */
    --text-muted: #cccccc;    /* Light grey for easy reading */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-muted);
    line-height: 1.7;
    background-color: var(--bg-main);
}

/* Custom flyer font for headings */
.brand-font {
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 2px;
}

/* --- Helper Classes --- */
.bg-dark { background-color: var(--bg-section); }
.text-light { color: var(--text-main); }
.text-green { color: var(--primary-green); }

/* --- Navigation (Dynamic Glassmorphism) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; 
    padding: 1.8rem 5%;
    color: var(--text-main);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--primary-green);
}

.logo {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-shadow: 2px 2px 0px var(--primary-green);
}

/* The waving leaf animation */
.leaf {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo:hover .leaf {
    transform: rotate(20deg) scale(1.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    /* This points out of the CSS folder, into assets/images/ */
    background-image: url('../assets/images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-main);
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75); /* Made slightly darker for dark mode */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 5px;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    transform: rotate(-2deg);
}

.hero .hero-sub {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.9);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: #000;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 15px rgba(92, 214, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    background-color: #72ff00; /* Brighter green on hover */
    box-shadow: 0 6px 20px rgba(92, 214, 0, 0.6);
}

.btn-large {
    width: 100%;
    margin-top: 10px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
}

/* --- General Section Layout --- */
.section {
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); /* Deep shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333; /* Subtle border for dark mode */
}

.service-card:hover {
    transform: translateY(-10px);
    /* Neon green glow effect on hover! */
    box-shadow: 0 15px 30px rgba(92, 214, 0, 0.15);
    border-color: var(--primary-green);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.9; /* Slight dim on images so they don't blind the user */
    transition: opacity 0.3s ease;
}

.service-card:hover .card-img {
    opacity: 1; /* Brightens up when hovered */
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- About Section --- */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
}

/* --- Contact Form --- */
.contact-box {
    background: var(--bg-card);
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    text-align: center;
    border: 1px solid #333;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

/* Dark Mode Form Fields */
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #444;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #2a2a2a; /* Dark text boxes */
    color: var(--text-main);   /* White text typed in */
    transition: border 0.3s ease, background-color 0.3s ease;
}

/* Placeholder text color */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background-color: #333;
}

/* --- Footer --- */
footer {
    background-color: var(--bg-section);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

/* --- Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================================
   RESPONSIVE DESIGN (MOBILE FRIENDLY - SCREEN SIZES UNDER 768px)
   ====================================================================== */
@media (max-width: 768px) {
    
    /* --- 1. General Spacing --- */
    .section {
        padding: 60px 6%; /* Tighter padding so content doesn't squeeze */
    }
    
    .section-title {
        font-size: 2rem; /* Shrink titles so they don't break lines awkwardly */
        margin-bottom: 30px;
    }

    /* --- 2. Dynamic Navbar (Stacking on Mobile) --- */
    .navbar {
        flex-direction: column; /* Stacks the logo on top, links underneath */
        gap: 15px;
        padding: 1rem 5% !important; /* Force tight padding so it fits */
        text-align: center;
    }
    
    .logo {
        font-size: 1.5rem; /* Slightly smaller logo */
    }

    .nav-links {
        gap: 1.2rem; /* Space out the links so fingers can easily tap them */
    }

    /* --- 3. Hero Section (Scale down giant text) --- */
    .hero {
        height: 65vh; /* Shorter header on mobile so users see more content */
        /* CRUCIAL: Mobile safari struggles with fixed parallax background. 
           We set it to 'scroll' on mobile to keep the site extremely smooth! */
        background-attachment: scroll; 
    }

    .hero h1 {
        font-size: 2.3rem; /* Shrinks from 4rem so it doesn't overflow the screen */
    }

    .hero .hero-sub {
        font-size: 1.1rem; /* Shrinks the subtitle text */
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* --- 4. Services Grid --- */
    .services-grid {
        grid-template-columns: 1fr; /* Force cards into 1 clean column */
        gap: 20px;
    }

    /* --- 5. About Section (Split layout becomes 1 column) --- */
    .about-container {
        flex-direction: column; /* Stack text on top of image */
        gap: 30px;
        text-align: center;
    }
    
    .about-text h2 {
        text-align: center !important; /* Center the about title on mobile */
    }

    .about-image {
        order: 2; /* Put the image underneath the text */
    }

    /* --- 6. Contact Section --- */
    .contact-box {
        padding: 30px 15px; /* Shrinks the inner padding so the form fits on narrow screens */
    }

    /* CRUCIAL FOR iOS: 
       Any input font size smaller than 16px causes iPhones to forcefully 
       zoom in on the screen when tapped, breaking your layout. 
       We set it to 16px to prevent this zoom! */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px; 
        padding: 12px;
    }
}