/* CSS Variables */
:root {
    --primary-color: #5D9C80; /* Muted Green */
    --secondary-color: #A3C9A8; /* Lighter Green */
    --accent-color: #FFB347; /* Warm Orange/Gold */
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --background-light: #ffffff;
    --background-dark: #f0f4f7; /* Light grayish blue */
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p { margin-bottom: var(--spacing-sm); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.primary-btn {
    background-image: linear-gradient(to right, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    box-shadow: 0 8px 20px -5px rgba(93, 156, 128, 0.4);
    background-size: 200% auto;
}

.primary-btn:hover {
    background-position: right center; /* change the direction of the change here */
    box-shadow: 0 12px 25px -8px rgba(93, 156, 128, 0.6);
    transform: translateY(-2px);
}

.content-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.section-description {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-light);
    backdrop-filter: blur(5px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh; /* viewport height */
    background: url('images/image_14.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* About Section */
.about-section {
    background-color: var(--background-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    text-align: left;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px -10px var(--shadow-medium);
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: translateY(-5px) scale(1.01);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
}

.about-text h3 {
    font-family: var(--font-body);
    color: var(--accent-color);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

/* Services Section */
.services-section {
    background-color: var(--background-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-content: center;
    align-items: stretch; /* Ensures cards in a row have equal height */
}

.service-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 10px 30px -8px var(--shadow-light);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px -12px var(--shadow-medium);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 4px);
    margin-bottom: var(--spacing-md);
    filter: brightness(0.95);
    transition: filter 0.4s ease;
}

.service-card:hover img {
    filter: brightness(1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.6rem;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    flex-grow: 1; /* Allows paragraph to take up available space */
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--background-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.why-item {
    background: linear-gradient(135deg, var(--background-light) 0%, #fefefe 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 8px 25px -7px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px -10px var(--shadow-medium);
}

.why-item .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    color: var(--accent-color); /* Emphasize icons with accent */
    transition: transform 0.3s ease;
}

.why-item:hover .icon {
    transform: scale(1.1);
}

.why-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.why-item p {
    color: #555;
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--background-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-content: center;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px -8px var(--shadow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 45px -12px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    z-index: 0;
}

.cta-banner h2 {
    color: var(--text-light);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.cta-banner p {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    position: relative;
    z-index: 1;
    background-image: linear-gradient(to right, var(--accent-color) 0%, #FFD700 100%); /* Gold/Yellow gradient */
    box-shadow: 0 8px 20px -5px rgba(255, 179, 71, 0.4);
}

.cta-banner .btn:hover {
    box-shadow: 0 12px 25px -8px rgba(255, 179, 71, 0.6);
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    font-size: 0.9rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: var(--spacing-lg);
    text-align: left;
}

.footer-brand, .footer-links, .footer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    text-align: center;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Scroll Reveal Animations */
@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }

    .navbar {
        flex-direction: column;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .nav-links {
        margin-top: var(--spacing-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0 var(--spacing-md) var(--spacing-xs) var(--spacing-md);
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
    .about-text {
        order: 2;
    }

    .about-text h2, .about-text h3 {
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-info {
        min-width: unset;
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links li {
        margin: var(--spacing-xs) 0;
    }

    .cta-banner h2 {
        font-size: 2.5rem;
    }
    .cta-banner p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    p { font-size: 0.95rem; }

    .content-section {
        padding: var(--spacing-lg) 0;
    }

    .hero-section {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .nav-links {
        display: none; /* Hide for smaller mobile, could add a hamburger menu if allowed, but strict instructions are no interaction */
    }

    .navbar {
        justify-content: center; /* Center logo if nav links are hidden */
    }

    /* Card grids will naturally stack due to minmax and auto-fit on smaller screens */
    .service-card, .why-item, .gallery-item {
        margin-left: auto;
        margin-right: auto;
        max-width: 350px; /* Constrain width of single cards */
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .cta-banner h2 {
        font-size: 2rem;
    }
    .cta-banner p {
        font-size: 1rem;
    }

    .footer-brand h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }

    .service-card img {
        height: 180px;
    }
    .gallery-item img {
        height: 250px;
    }
}
/* 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;
}
