
:root {
    --primary-dark-green: #0f4a31;
    --primary-light-green: #a9d45c;
    --light-bg: #f7f9f5;
    --white: #ffffff;
    --dark-text: #333333;
    --light-text: #f1f1f1;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, height 0.4s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100px;
    transition: height var(--transition-fast);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.header.scrolled .navbar {
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-dark-green);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
}

.header:not(.scrolled) .nav-logo {
    color: var(--white);
}

.logo-img {
    height: 50px;
    width: 50px;
    margin-right: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

.nav-logo:hover .logo-img {
    transform: rotate(10deg) scale(1.1);
}

.logo-text-light {
    color: var(--primary-light-green);
    font-weight: 600;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    position: relative;
    transition: color var(--transition-fast);
}

.header:not(.scrolled) .nav-link {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-light-green);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--dark-text); transition: all 0.3s ease-in-out; }
.header:not(.scrolled) .bar { background-color: var(--white); }


/* Hero Section */
@keyframes kenburns {
    0% { transform: scale(1.05) translate(2%, -1%); }
    100% { transform: scale(1.25) translate(-2%, 1%); }
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1617861376834-02a55faa1020?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    animation: kenburns 25s ease-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 74, 49, 0.8), rgba(15, 74, 49, 0.5));
}

.hero-content {
    position: relative; z-index: 1; max-width: 800px;
    padding: 0 1rem;
}

.hero-content h1 {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-light-green);
    color: var(--primary-dark-green);
    padding: 1rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(169, 212, 92, 0.2);
    background-color: #b9e06c;
}

/* General Section Styling */
.content-section, .content-section-colored {
    padding: 6rem 2rem;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
}
.content-section-colored {
    background-color: var(--light-bg);
}

.section-title {
    font-family: var(--font-header);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary-dark-green);
    position: relative;
}

.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--primary-light-green), var(--primary-dark-green));
    margin: 10px auto 0;
}

/* Services Section - Redesigned */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary-light-green), var(--primary-dark-green));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-dark-green);
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.service-icon svg {
    width: 50px;
    height: 50px;
}
.service-card:hover .service-icon {
    color: var(--primary-light-green);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-header);
    color: var(--dark-text);
    font-size: 1.3rem;
    transition: color var(--transition-fast);
}
.service-card:hover h3 {
    color: var(--primary-dark-green);
}

.service-description {
    font-size: 0.9rem;
    color: #555;
    margin-top: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* About Section - Redesigned */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}
.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    max-width: 600px;
}
.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-dark-green);
    font-family: var(--font-header);
}
.about-text h4 {
    font-size: 1.1rem;
    color: var(--primary-light-green);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.about-text p {
    text-align: justify;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.gallery-item { overflow: hidden; border-radius: 8px; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after { content: '+'; font-size: 3rem; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5); background: rgba(15, 74, 49, 0.7); width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease; }
.gallery-item:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Lightbox Modal */
.modal { display: none; position: fixed; z-index: 1001; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); }
.modal-content { margin: auto; display: block; width: 90%; max-width: 900px; animation: zoomIn 0.4s; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#lightbox-image { width: 100%; height: auto; border-radius: 5px; }
.close-cursor { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; }
.close-cursor:hover, .close-cursor:focus { color: #bbb; }

/* Contact Section */
.contact-container { display: flex; gap: 3rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.contact-info h3 { font-family: var(--font-header); color: var(--primary-dark-green); font-size: 1.8rem; margin-bottom: 1rem; }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.info-item svg { color: var(--primary-dark-green); width: 24px; height: 24px; }
.info-item a, .info-item span { text-decoration: none; color: var(--dark-text); font-weight: 500; transition: color var(--transition-fast); }
.info-item a:hover { color: var(--primary-dark-green); }

/* Contact Form - Floating Labels */
.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1rem 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--light-bg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form label {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    color: #888;
    pointer-events: none;
    transition: top var(--transition-fast), font-size var(--transition-fast), color var(--transition-fast);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form input:not(:placeholder-shown),
.contact-form textarea:not(:placeholder-shown) {
    outline: none;
    border-color: var(--primary-dark-green);
    box-shadow: 0 0 5px rgba(15, 74, 49, 0.3);
}
.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: 0.2rem;
    font-size: 0.75rem;
    color: var(--primary-dark-green);
}
#form-status { margin-top: 1rem; font-weight: 600; }

/* Footer */
.footer { background-color: var(--primary-dark-green); color: var(--light-text); padding: 3rem 2rem; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-links a { color: var(--light-text); text-decoration: none; margin: 0 10px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-light-green); }


/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    html { scroll-padding-top: 70px; }
    .hero-content h1 { font-size: 2.8rem; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { max-width: 400px; margin: 0 auto; }
    .about-text { text-align: center; }
    .about-text p { text-align: center; }
}

@media (max-width: 768px) {
    .navbar { height: 80px; }
    .header.scrolled .navbar { height: 70px; }
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: var(--white); width: 100%; height: calc(100vh - 70px); text-align: center; transition: 0.3s; gap: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 2rem 0; }
    .nav-link, .header:not(.scrolled) .nav-link { color: var(--dark-text); }
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .content-section, .content-section-colored { padding: 4rem 1rem; }
    .section-title { font-size: 2rem; margin-bottom: 3rem; }
    .contact-container { flex-direction: column; }
}
