/* Mobile-first: prevent overflow on all devices */
html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    overflow-x: hidden;
    color: #333;
    min-width: 280px;
}

/* Navbar */
.navbar-custom {
    background: rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-scrolled {
    background: rgba(0,0,0,0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.btn-cta-nav {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}

.hero-overlay {
    position: relative;
    z-index: 3;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
    padding: 0 15px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.7);
    line-height: 1.6;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    background: linear-gradient(135deg, #20c997, #28a745);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    color: #fff;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
    color: #fff;
    font-size: 2rem;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, #1e3c2a 0%, #2f5d3a 100%);
    color: #fff;
    margin-top: -1px;
}

.stat-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin: 1rem 0;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2f5d3a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #28a745;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f5d3a;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #555;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* Why Section */
.why-section {
    background: #fff;
    padding: 5rem 0;
}

.why-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.why-content h5 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2f5d3a;
    margin-bottom: 0.5rem;
}

.why-content p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.why-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 1.25rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(30, 60, 42, 0.15);
}

.why-image-img {
    width: 100%;
    height: auto;
    max-height: 440px;
    min-height: 280px;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.image-placeholder {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 15px;
    padding: 4rem;
    text-align: center;
    color: #2f5d3a;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, #1e3c2a 0%, #2f5d3a 100%);
    padding: 5rem 0;
}

.cta-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
    background: linear-gradient(135deg, #20c997, #28a745);
    color: #fff;
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #28a745 !important;
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-custom {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .hero {
        min-height: 500px;
    }

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

    .feature-card {
        margin-bottom: 20px;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 300px;
    }

    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .btn-cta-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        max-width: 200px;
    }

    .hero-content {
        padding: 20px;
    }

    .stats-section {
        padding: 40px 20px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .why-section {
        padding: 40px 20px;
    }

    .why-image {
        padding: 1rem;
        border-radius: 16px;
    }
    .why-image-img {
        max-height: 360px;
        min-height: 240px;
        border-radius: 10px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .stat-card {
        padding: 20px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 400px;
        height: auto;
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

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

    .section-subtitle {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .why-item {
        flex-direction: column;
        text-align: center;
    }

    .why-content {
        margin-left: 0;
        margin-top: 15px;
    }

    .why-image {
        padding: 0.75rem;
        border-radius: 14px;
    }
    .why-image-img {
        max-height: 300px;
        min-height: 200px;
        border-radius: 8px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 0.95rem;
    }

    .btn-cta {
        padding: 12px 25px;
        font-size: 1rem;
    }

    footer {
        padding: 30px 15px;
        text-align: center;
    }
}

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 12px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Very small devices (320px and below) */
@media (max-width: 320px) {
    .hero {
        min-height: 360px;
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

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

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .cta-title {
        font-size: 1.25rem;
    }

    .cta-box {
        padding: 1.25rem 0.75rem;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Safe area for notched / rounded devices */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .hero-scroll-indicator {
        bottom: max(30px, env(safe-area-inset-bottom));
    }

    footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Utility Classes */
.text-green {
    color: #2f5d3a;
}

.bg-green {
    background-color: #2f5d3a;
}
