:root {
    /* Colors */
    --color-primary: #2A4B4A; /* Dark Teal/Green */
    --color-secondary: #4F7977; /* Muted Teal */
    --color-accent: #D6A64B; /* Goldenrod */
    --color-light: #E0EFEF; /* Light Blue-Green */
    --color-background: #F8F8F8; /* Off-white background */
    --color-text-dark: #333;
    --color-text-light: #fdfdfd;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;

    /* Shadow */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-description {
    font-size: 1.15rem;
    color: var(--color-text-dark);
    max-width: 800px;
    margin: -1rem auto 3rem auto;
    text-align: center;
    line-height: 1.8;
}

/* Header */
header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem var(--spacing-md);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(42, 75, 74, 0.95); /* Slightly transparent */
    box-shadow: var(--shadow-md);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: var(--spacing-md);
}

.nav-links a {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    z-index: 1001;
}

.burger-menu div {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    overflow: hidden; /* Ensure background doesn't overflow */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/image_14.jpg') center/cover no-repeat fixed; /* High quality hero image */
    filter: brightness(0.7) sepia(0.2);
    z-index: -2;
    transform: scale(1.05); /* Slight zoom for subtle effect */
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(42, 75, 74, 0.7) 0%, rgba(79, 121, 119, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-md);
    animation: fadeInScale 1s ease-out forwards;
    opacity: 1;
    transform: translateY(20px);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-light);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* General Section Styling */
section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

section h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--color-light);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: left;
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.about-content.appear {
    transform: translateY(0);
    opacity: 1;
}

.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: var(--spacing-md);
}
.about-text h2::after {
    left: 0;
    transform: translateX(0);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.about-image img {
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
}


/* Services Section */
.services-section {
    background: linear-gradient(to bottom, var(--color-background), var(--color-light));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.service-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-md);
    text-align: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(20px);
    opacity: 1;
    /* For staggered animation */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.service-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.service-card:hover img {
    filter: grayscale(0);
}

.service-card h3 {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Why Choose Us Section */
.choose-us-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.choose-us-section h2 {
    color: var(--color-accent);
}

.choose-us-section .section-description {
    color: var(--color-light);
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    opacity: 1;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px) scale(1.02);
}

.icon-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    line-height: 1;
}

.feature-item h3 {
    color: var(--color-light);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.feature-item p {
    color: var(--color-light);
    font-size: 0.95rem;
    opacity: 1;.9;
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--color-background);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(20px);
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 75, 74, 0.4);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: var(--border-radius-md); /* Apply border-radius to img too */
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--color-light);
    padding-bottom: var(--spacing-xl); /* Add extra padding */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    padding: var(--spacing-md);
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(20px);
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-card p::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    position: absolute;
    top: -15px;
    left: -10px;
    opacity: 1;.2;
    z-index: 0;
}

.testimonial-card h4 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-section h2 {
    color: var(--color-text-light);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
.cta-section h2.appear {
    transform: translateY(0);
    opacity: 1;
}

.cta-section h2::after {
    background-color: var(--color-accent);
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: var(--spacing-md) auto 0 auto;
    color: var(--color-light);
    opacity: 1;.9;
    transform: translateY(20px);
    opacity: 1;
    transition: transform 0.6s ease-out 0.2s, opacity 0.6s ease-out 0.2s;
}
.cta-section p.appear {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: var(--spacing-lg) 0 var(--spacing-sm) 0;
    font-size: 0.95rem;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-content > div {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--spacing-md);
}

.footer-content h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-content p {
    color: var(--color-light);
    opacity: 1;.9;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-light);
    transition: color 0.3s ease;
    position: relative;
    padding-left: 10px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    text-align: center;
    color: var(--color-light);
    opacity: 1;.7;
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 1;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Intersection Observer Animations */
.about-content:not(.appear),
.service-card:not(.appear),
.feature-item:not(.appear),
.gallery-item:not(.appear),
.testimonial-card:not(.appear) {
    opacity: 1;
    transform: translateY(30px);
}

.about-content.appear,
.service-card.appear,
.feature-item.appear,
.gallery-item.appear,
.testimonial-card.appear {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Staggered animation for grid items */
.services-grid .service-card:nth-child(1),
.choose-us-grid .feature-item:nth-child(1),
.gallery-grid .gallery-item:nth-child(1),
.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2),
.choose-us-grid .feature-item:nth-child(2),
.gallery-grid .gallery-item:nth-child(2),
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3),
.choose-us-grid .feature-item:nth-child(3),
.gallery-grid .gallery-item:nth-child(3),
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4),
.choose-us-grid .feature-item:nth-child(4),
.gallery-grid .gallery-item:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5),
.choose-us-grid .feature-item:nth-child(5),
.gallery-grid .gallery-item:nth-child(5) { transition-delay: 0.4s; }
.services-grid .service-card:nth-child(6),
.choose-us-grid .feature-item:nth-child(6),
.gallery-grid .gallery-item:nth-child(6) { transition-delay: 0.5s; }


/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .hero-content h1 {
        font-size: 3.8rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }

    .services-grid,
    .choose-us-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Allow 2 or 3 */
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text h2 {
        text-align: center;
    }
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .about-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* Header & Nav */
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }

    .nav-links.nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--color-light);
    }
    .nav-links a::after {
        background-color: var(--color-accent);
        height: 2px;
    }

    .burger-menu.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger-menu.toggle .line2 {
        opacity: 1;
    }
    .burger-menu.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    /* General Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    section h2 {
        font-size: 2rem;
    }
    .section-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    /* Grids to single column */
    .services-grid,
    .choose-us-grid,
    .gallery-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-content > div {
        min-width: unset;
    }
    .footer-links ul {
        padding-left: 0;
    }
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    .footer-links a {
        padding-left: 0;
    }
    .footer-links a::before {
        display: none;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .logo {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .testimonial-card p {
        font-size: 1rem;
    }
    .testimonial-card p::before {
        font-size: 3rem;
        top: -10px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
    .cta-section p {
        font-size: 1.1rem;
    }
}


/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
