/* Root Variables */
:root {
    --primary-color: #2E7D32;
    /* Rich Green */
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --accent-color: #009688;
    /* Teal from logo */
    --accent-light: #4DB6AC;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #F9FDF9;
    /* Very subtle green tint */
    --dark-bg: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.highlight {
    color: var(--primary-light);
    background: linear-gradient(120deg, transparent 0%, rgba(76, 175, 80, 0.1) 100%);
}

.divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 20px auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Main Header (Stacked Layout) */
.main-header {
    width: 100%;
    background-color: var(--white);
    padding: 20px 0 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    justify-content: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.logo-img {
    height: 100px;
    /* Bigger logo as requested */
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-tabs-container {
    background-color: var(--white);
    padding: 10px 0;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-tabs li a {
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-color);
    padding: 10px 5px;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-tabs li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-tabs li a:hover::after,
.nav-tabs li a.active::after {
    width: 100%;
}

.nav-tabs li a:hover {
    color: var(--primary-color);
}

/* Initial Hero Padding Adjustment for new Header height */
.hero {
    padding-top: 220px;
    /* Increased to account for taller header */
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.portfolio-content .category {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    /* Reduced height slightly due to large header */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F0F4C3 0%, #E0F2F1 100%);
    position: relative;
    padding-top: 350px;
    /* Ensure content clears the fixed header */
    padding-bottom: 80px;
    overflow: hidden;
}

/* Background aesthetic shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1), transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1s ease-out forwards;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease-out forwards;
}

/* Abstract leafy/tech visual */

/* Hero Image Styling */
.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInRight 1s ease-out forwards;
    object-fit: cover;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item .count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.highlight-card {
    border-left: 5px solid var(--accent-color);
}

.highlight-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.highlight-card i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Why Us */
.why-us-section {
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary-color);
}

.why-us-section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.why-us-section .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

/* Features/Deliverables */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Deep Dive */
.services-section {
    color: var(--white);
}

.services-section h2 {
    color: var(--white);
}

.services-wrapper {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.service-row {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-row:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-content h3 {
    font-size: 1.8rem;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.service-list {
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(0, 150, 136, 0.05));
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.small-text {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px;
}

/* Ideal For Section */
.ideal-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.ideal-item {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(46, 125, 50, 0.1);
    transition: var(--transition);
}

.ideal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary-color);
    color: var(--white);
    border-color: transparent;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links a {
    margin-left: 30px;
    color: #fff;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Annotations & Mobile */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add JS toggle later */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
        height: auto;
        padding-bottom: 60px;
    }

    .hero-text {
        margin-top: 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
        /* Hide visual on smaller screens to save space */
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 30px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}