/* CSS Reset & Variables */
:root {
    --primary-color: #2e7d32;
    /* Forest Green */
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary-color: #263238;
    /* Dark Blue Grey */
    --accent-color: #a5d6a7;
    /* Light Green Accent */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f9fbf9;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --transition: all 0.3s ease;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
    overflow: hidden;
    /* For animations coming from sides */
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(50px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 125, 50, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
    }
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* Animation Classes */
.reveal-text,
.reveal-up,
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-image {
    opacity: 0;
    transform: scale(0.9);
    transition: all 1s ease-out;
}

/* Active State for Animations */
.active.reveal-text,
.active.reveal-up,
.active.reveal-card {
    opacity: 1;
    transform: translateY(0);
}

.active.reveal-left,
.active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.active.reveal-image {
    opacity: 1;
    transform: scale(1);
}

.pulse-anim {
    animation: pulse 2s infinite;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Navigation & Dropdown */
.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 15px 0;
}

.nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 10px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
    transform: translateX(5px);
}

.btn-featured {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 30px;
}

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

.btn-featured::after {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #e8f5e9, transparent 40%),
        radial-gradient(circle at bottom left, #e3f2fd, transparent 40%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image Shapes and Content */
.hero-image-content {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: morph 8s ease-in-out infinite;
    max-width: 500px;
    max-height: 500px;
}

.hero-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite reverse;
    /* Reverse animation for effect */
    opacity: 0.3;
    z-index: 1;
}

/* Stats Section */
.stats {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-plus,
.stat-percent {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-label {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-box {
    width: 100%;
    max-height: 500px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.image-box:hover img {
    transform: scale(1.05);
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-text {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.section-text p {
    margin-bottom: 15px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.about-features i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Features Section (Cards) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services */
.services {
    background-color: #f1f3f1;
}

.services-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.service-card {
    flex: 1 1 250px;
    /* Adjusted flex base */
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    /* Centered content for services */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-content {
    padding: 40px 30px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: radial-gradient(circle at bottom right, #e8f5e9, transparent 50%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--primary-color);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p,
.info-item a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.social-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: white;
    color: var(--primary-color);
}

.contact-form-wrapper {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn-block {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo {
    color: white;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links a {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-list {
        display: none;
        /* Mobile menu handled by JS but standard list hidden */
    }

    .hamburger {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu Overlay Styles */
    .nav-list.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        /* Above hamburger */
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        display: none;
        /* Initially hidden on mobile */
        opacity: 1;
        visibility: visible;
        width: 100%;
        padding-left: 20px;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .contact-info {
        padding: 30px;
    }

    .contact-form-wrapper {
        padding: 30px;
    }
}