:root {
    /* --- BRAND PALETTE --- */
    --brand-green: #008950;
    --brand-dark: #02701c;
    --brand-red: #D32F2F;
    
    /* --- STRUCTURE --- */
    --primary-dark: #0F172A;
    --text-main: #334155;
    --text-muted: #64748b;
}

html, body {
    overflow-x: hidden; /* CRITICAL FIX: Stops the right-side white gap */
    width: 100%;
    position: relative;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #F8FAFC;
    line-height: 1.6;
}

/* --- NAVIGATION --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 137, 80, 0.08);
    padding: 1px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 65px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main) !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--brand-green) !important;
    background-color: rgba(0, 137, 80, 0.06);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 140px 0 80px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 137, 80, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(211, 47, 47, 0.03) 0%, transparent 50%);
    position: relative;
    overflow: hidden; /* Keeps gradients inside */
}

.hero-headline {
    font-size: 3.0rem;
    font-weight: 700;
    line-height: 1.15;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 550px;
    margin-bottom: 2rem;
}

/* --- BUTTONS --- */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-dark));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px -6px rgba(0, 137, 80, 0.4);
    color: white;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--brand-dark);
}

.btn-outline-dark {
    border: 1px solid #cbd5e1;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-dark);
    background: white;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

/* --- FEATURE CARDS --- */
.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-green);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(0, 137, 80, 0.08);
    color: var(--brand-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.feature-card:hover .feature-icon {
    background: var(--brand-green);
    color: white;
}

/* Danger / Lock Style Cards */
.feature-card.border-danger {
    border-color: #FECACA; /* Light Red Border */
}
.feature-card.border-danger:hover {
    border-color: var(--brand-red);
}
.icon-danger {
    background: #FEF2F2;
    color: var(--brand-red);
}
.feature-card.border-danger:hover .feature-icon {
    background: var(--brand-red);
    color: white;
}

/* --- INDUSTRY GRID --- */
.bg-dark-void { background-color: var(--primary-dark); color: white; }

.industry-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
    color: #94a3b8;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.industry-box:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--brand-green);
    color: white;
    transform: translateY(-3px);
}

/* --- ANIMATIONS (Desktop Only) --- */
@media (min-width: 992px) {
    .reveal-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .hero-animate {
        animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        opacity: 0;
    }
    .delay-100 { animation-delay: 0.1s; }
    .delay-200 { animation-delay: 0.2s; }
    .delay-300 { animation-delay: 0.3s; }
}

/* --- MOBILE & TABLET FIXES (Max Width 991px) --- */
@media (max-width: 991px) {
    /* 1. Reset Animations for Mobile */
    .reveal-on-scroll, .hero-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    /* 2. Navbar Fixes */
    .navbar-collapse {
        background: white;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        margin-top: 10px;
        border: 1px solid #f1f5f9;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-brand img {
        height: 65px; /* Smaller logo */
    }

    /* 3. Hero Adjustments */
    .hero-section {
        padding: 110px 0 60px; /* Adjust padding to clear fixed navbar */
        text-align: center;
    }
    
    .hero-headline {
        font-size: 2.2rem; /* Prevent text wrapping issues */
        margin-bottom: 1rem;
    }
    
    .hero-sub {
        font-size: 1.1rem;
        margin: 0 auto 1.5rem auto;
    }

    /* Center Buttons */
    .d-flex.flex-wrap.gap-3 {
        justify-content: center;
        flex-direction: column; /* Stack buttons on very small screens */
        padding: 0 20px;
    }

    .btn-primary, .btn-outline-dark {
        width: 100%; /* Full width buttons on mobile */
    }

    /* 4. Image Containment */
    img {
        max-width: 100%;
        height: auto;
    }

    .hero-section img {
        margin-top: 40px;
    }
    
    /* 5. Hide Floating Alerts on Mobile */
    .position-absolute.bottom-0 {
        display: none !important;
    }
}