:root {
    /* Fresh Canopy Palette */
    --nt-bg-light: #f1f8f5;
    /* Very pale mint */
    --nt-bg-white: #ffffff;
    --nt-forest-text: #064e3b;
    /* Deep Green Text */
    --nt-sage-text: #376558;
    /* Softer Sage Text */

    --nt-accent-primary: #10b981;
    /* Vibrancy */
    --nt-accent-soft: #a7f3d0;
    /* Soft Green */

    --nt-glass-bg: rgba(255, 255, 255, 0.7);
    --nt-glass-border: rgba(255, 255, 255, 0.9);

    --nt-bg-forest: #064e3b;
    /* Deep Forest Green for dark sections */
}

body.nature-tech {
    background-color: var(--nt-bg-light);
    color: var(--nt-forest-text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Navbar - Clean Green on Light */
body.nature-tech .navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    position: absolute;
    width: 100%;
    z-index: 100;
}

body.nature-tech .navbar .nav-link,
body.nature-tech .navbar .navbar-brand {
    color: var(--nt-forest-text) !important;
    font-weight: 600;
}

body.nature-tech .navbar .btn-outline-success {
    border-color: var(--nt-forest-text) !important;
    color: var(--nt-forest-text) !important;
}

body.nature-tech .navbar .btn-outline-success:hover {
    background-color: var(--nt-forest-text) !important;
    color: white !important;
}

/* --- Hero Section */
.nt-hero {
    position: relative;
    /* Flexbox & Dimensions */
    min-height: 70vh;
    /* Allow growth */
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Ensure existing gradient is preserved */
    background: linear-gradient(135deg, var(--nt-bg-light) 0%, #d1fae5 100%);
    overflow: hidden;
}

/* Subtle Face Background */
.nt-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/faceBG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    /* Increased visibility */
    /* Very subtle */
    pointer-events: none;
    z-index: 0;
}

.nt-hero-content {
    position: relative;
    z-index: 2;
    /* Content on top */
    /* Ensure text is above background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 2rem;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Canvas below content, above background */
    opacity: 0.6;
    /* Subtle */
}

.nt-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    animation: ntFadeUp 1.2s ease-out forwards;
}

.nt-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--nt-forest-text);
    letter-spacing: -1px;
}

.nt-subtitle {
    font-size: 1.25rem;
    color: var(--nt-sage-text);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

.nt-btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--nt-forest-text);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 78, 59, 0.15);
}

.nt-btn:hover {
    transform: translateY(-2px);
    background: #042f24;
    /* Darker green */
    color: white;
    box-shadow: 0 6px 20px rgba(6, 78, 59, 0.25);
}

@media (max-width: 768px) {
    .nt-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

.nt-btn-outline {
    background: transparent;
    border: 2px solid var(--nt-forest-text);
    color: var(--nt-forest-text);
}

.nt-btn-outline:hover {
    background: white;
    color: var(--nt-forest-text);
}

.nt-text-primary {
    color: var(--nt-forest-text) !important;
}

.nt-text-secondary {
    color: var(--nt-sage-text) !important;
}


/* --- Animations --- */
.nt-animate-in {
    opacity: 0;
    animation: ntFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.nt-delay-1 {
    animation-delay: 0.2s;
}

.nt-delay-2 {
    animation-delay: 0.4s;
}

.nt-delay-3 {
    animation-delay: 0.6s;
}

@keyframes ntFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Features Section --- */
.nt-features {
    padding: 100px 20px;
    background: white;
    position: relative;
}

.nt-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.nt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--nt-accent-primary);
}

.nt-icon-box {
    width: 60px;
    height: 60px;
    background: var(--nt-bg-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nt-forest-text);
    font-size: 24px;
    margin-bottom: 20px;
}

.nt-card h3 {
    color: var(--nt-forest-text);
}

.nt-card p {
    color: var(--nt-sage-text);
}

@media (max-width: 991px) {

    /* Changed from 768px to match navbar break */
    .nt-title {
        font-size: 2rem;
        /* Smaller for mobile to prevent overlap */
    }

    .nt-hero-content {
        padding-top: 140px;
        /* Increased to clear logo + navbar */
    }

    /* Compact Hero for Pricing/Inner Pages */
    .nt-hero.nt-hero-align-top {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        /* Center horizontally if column */
        padding-top: 85px !important;
        /* Space for navbar */
    }

    .nt-hero.nt-hero-align-top .nt-hero-content {
        padding-top: 0 !important;
        /* Reset content padding */
    }
}

/* --- Mobile Navigation Fixes --- */
@media (max-width: 991px) {

    /* Navbar Collapse: Reset styles to allow Bootstrap animation to work */
    body.nature-tech .navbar-collapse {
        margin-top: 1rem;
    }

    /* Move Card Styling to the inner Nav */
    body.nature-tech .navbar-nav {
        background-color: rgba(255, 255, 255, 0.95);
        /* High opacity white */
        backdrop-filter: blur(10px);
        /* Frosted glass effect */
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 20px 40px -5px rgba(6, 78, 59, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    body.nature-tech .navbar-nav .nav-link {
        padding: 0.75rem 0;
        /* More touch space */
        border-bottom: 1px solid rgba(6, 78, 59, 0.05);
    }

    body.nature-tech .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Ensure toggler is visible */
    body.nature-tech .navbar-toggler {
        border-color: var(--nt-forest-text);
        background-color: rgba(255, 255, 255, 0.5);
    }

    body.nature-tech .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(6, 78, 59, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}