:root {
    --primary-color: #14960e;
    --primary-dark: #0f7a0a;
    --text-color: #333;
    --text-light: #f4f4f4;
    --bg-overlay: rgba(255, 255, 255, 0.1);
    /* Much brighter, almost transparent */
    --bg-card: rgba(255, 255, 255, 0.95);
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Background WOW Effect & Slideshow --- */
#global-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#global-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 20s ease-out;
    transform: scale(1.1);
}

#global-background img.active {
    opacity: 1;
    transform: scale(1.0);
}

#global-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    /* Bright and cheerful gradient */
    pointer-events: none;
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    /* Brighter header */
    backdrop-filter: blur(10px);
    transition: background var(--transition-speed);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 90px;
    /* Fixed height to prevent growing */
    overflow: visible;
    /* Allow logo to hang out */
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
    /* Shrink header on scroll */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    border: none;
    padding: 0;
    position: relative;
    z-index: 1001;
    height: 100%;
    width: 200px;
    /* Clickable area for logo */
}

.logo img {
    height: 220px;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: all var(--transition-speed);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

/* Centered Header Text */
.header-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-text span {
    color: var(--primary-color);
}

.header-text .phone {
    font-weight: 400;
    font-size: 1.1rem;
    color: #555;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--primary-color);
}

/* Responsive: Hide phone or adjust on small screens */
@media (max-width: 900px) {
    .header-text .phone {
        display: none;
    }
}

@media (max-width: 600px) {
    .header-text {
        display: none;
        /* Hide text on very small screens to save space for logo and burger */
    }
}

/* Shrink logo on scroll */
header.scrolled .logo img {
    height: 100px;
    top: -15px;
}

.logo:hover {
    background: transparent;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    /* Darker text for better contrast on bright bg */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 1002;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    /* Green color for visibility */
    transition: var(--transition-speed);
    border-radius: 2px;
}

/* --- Layout Containers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* --- Hero Section (Home) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
    /* Offset for fixed header */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    /* Added shadow for readability */
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-speed), background var(--transition-speed);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

.btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* --- Content Cards (About, Services, Legal) --- */
.content-section {
    background: var(--bg-card);
    margin: 40px auto;
    border-radius: 15px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Legal Text Styling --- */
.legal-text ul {
    padding-left: 40px;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.legal-text p {
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 3%;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 50%;
        transform: translateX(50%);
        /* Center the hamburger menu */
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed);
    }

    nav ul.active {
        right: 0;
    }

    nav a {
        color: var(--text-light);
        /* White text in mobile menu */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .content-section {
        padding: 30px;
        margin: 20px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- Services Gallery --- */
.service-category {
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-header {
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.service-header h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    word-wrap: break-word;
    /* Ensure long words break */
    hyphens: auto;
    /* Add hyphens if supported */
}

@media (max-width: 600px) {
    .service-header h3 {
        font-size: 1.5rem;
        /* Smaller font on mobile */
    }

    .service-category {
        padding: 20px;
        /* Reduce padding on mobile to give more space for text */
    }
}

/* Very small displays - prevent text overlap */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-header h3 {
        font-size: 1.3rem;
    }

    .content-section {
        padding: 25px 15px;
    }

    body {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

.service-story {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
}