/* Modern Landing Page Styles with Orange Theme */
:root {
    --primary-orange: #D18501;
    --primary-orange-dark: #B8750A;
    --primary-orange-light: #E09520;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.75);
    --overlay-light: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Hero Section with Background Image */
.landing-page {
    position: relative;
    overflow: hidden;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--overlay-dark), rgba(26, 26, 26, 0.85)),
                url('/static/images/hero_construction_tablet.png') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding: 80px 20px;
}

/* Glassmorphism Hero Content */
.hero-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--text-light) !important;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    color: var(--text-light);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Orange Theme Buttons */
.btn-primary-orange {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: var(--text-light);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(209, 133, 1, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-orange:hover {
    background: linear-gradient(135deg, var(--primary-orange-light), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(209, 133, 1, 0.6);
    color: var(--text-light);
}

.btn-outline-orange {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: var(--text-light) !important;
    border: 2px solid var(--primary-orange) !important;
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.btn-outline-orange:hover {
    background: var(--primary-orange) !important;
    color: var(--text-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(209, 133, 1, 0.4) !important;
    text-shadow: none !important;
}

/* Feature Icons with Orange Theme */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(209, 133, 1, 0.3);
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--text-light);
}

.feature-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(209, 133, 1, 0.5);
}

/* Modern Feature Cards */
.feature-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(209, 133, 1, 0.2);
}

.feature-card h5 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0 15px 0;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-orange-dark), var(--primary-orange));
    padding: 80px 0;
}

.stat-card {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(209, 133, 1, 0.15) !important;
}

.stat-card h3 {
    color: var(--text-light) !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.stat-card p {
    color: var(--text-light) !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Testimonials Section */
.testimonial-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(209, 133, 1, 0.15);
}

.testimonial-card .stars {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 15px;
}

.testimonial-card h6 {
    color: var(--text-dark);
    font-weight: 700;
    margin: 0;
}

.testimonial-card small {
    color: var(--primary-orange);
    font-weight: 500;
}

/* Section Headings */
.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-dark));
    border-radius: 2px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--overlay-dark), rgba(26, 26, 26, 0.9)),
                url('/static/images/construction_site_bl_36e29c65.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 100px 20px;
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light) !important;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-section .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Landing Page Text Colors - White for Dark Backgrounds (ALL MODES) */
.hero-content h1,
.hero-content .lead,
.hero-content p,
.cta-section h2,
.cta-section .lead,
.cta-section p,
.stats-section h2,
.stats-section .lead,
.stat-card h3,
.stat-card p {
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Feature Cards - White Text on Light Backgrounds (BOTH MODES) */
.feature-card h5,
.feature-card p {
    color: var(--text-light) !important;
    text-shadow: none !important;
}

/* Testimonials - White Text on Light Backgrounds (BOTH MODES) */
.testimonial-card h6,
.testimonial-card p,
.testimonial-card small {
    color: var(--text-light) !important;
    text-shadow: none !important;
}

/* Section Headings - Dark Text (BOTH MODES) */
.section-heading {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Light Mode Override - White Text for Most, Black for Section Headings */
[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content .lead,
[data-theme="light"] .hero-content p,
[data-theme="light"] .cta-section h2,
[data-theme="light"] .cta-section .lead,
[data-theme="light"] .cta-section p,
[data-theme="light"] .stats-section h2,
[data-theme="light"] .stats-section .lead,
[data-theme="light"] .stat-card h3,
[data-theme="light"] .stat-card p,
[data-theme="light"] .feature-card h5,
[data-theme="light"] .feature-card p,
[data-theme="light"] .testimonial-card h6,
[data-theme="light"] .testimonial-card p,
[data-theme="light"] .testimonial-card small {
    color: #ffffff !important;
    text-shadow: none !important;
}

[data-theme="light"] .section-heading {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Dark Mode - White Text for Most, Black for Section Headings */
[data-theme="dark"] .hero-content h1,
[data-theme="dark"] .hero-content .lead,
[data-theme="dark"] .hero-content p,
[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section .lead,
[data-theme="dark"] .cta-section p,
[data-theme="dark"] .stats-section h2,
[data-theme="dark"] .stats-section .lead,
[data-theme="dark"] .stat-card h3,
[data-theme="dark"] .stat-card p,
[data-theme="dark"] .feature-card h5,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .testimonial-card h6,
[data-theme="dark"] .testimonial-card p,
[data-theme="dark"] .testimonial-card small {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .section-heading {
    color: #000000 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Mobile Responsive Text Colors - White for Most, Black for Section Headings */
@media (max-width: 768px) {
    .hero-content h1,
    .hero-content .lead,
    .hero-content p,
    .cta-section h2,
    .cta-section .lead,
    .stats-section h2,
    .stats-section .lead,
    .stat-card h3,
    .stat-card p,
    .feature-card h5,
    .feature-card p,
    .testimonial-card h6,
    .testimonial-card p,
    .testimonial-card small {
        color: #ffffff !important;
        text-shadow: none !important;
    }
    
    .section-heading {
        color: #000000 !important;
        text-shadow: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 30px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

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

    .stat-card h3 {
        font-size: 2.5rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }
}

/* FORCE STAT CARDS TO MATCH TESTIMONIALS - ULTRA HIGH SPECIFICITY */
.stats-section .stat-card,
.stats-section .row .stat-card,
.stats-section .container .stat-card,
[data-theme="dark"] .stats-section .stat-card,
[data-theme="light"] .stats-section .stat-card,
body .stats-section .stat-card,
html body .stats-section .stat-card {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.stats-section .stat-card h3,
.stats-section .row .stat-card h3,
.stats-section .container .stat-card h3,
[data-theme="dark"] .stats-section .stat-card h3,
[data-theme="light"] .stats-section .stat-card h3,
body .stats-section .stat-card h3,
html body .stats-section .stat-card h3 {
    color: #ffffff !important;
    text-shadow: none !important;
}

.stats-section .stat-card p,
.stats-section .row .stat-card p,
.stats-section .container .stat-card p,
[data-theme="dark"] .stats-section .stat-card p,
[data-theme="light"] .stats-section .stat-card p,
body .stats-section .stat-card p,
html body .stats-section .stat-card p {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Dark Mode Support - Consistent Dark Backgrounds */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Light Mode Support - Same Dark Backgrounds for Consistency */
[data-theme="light"] .feature-card,
[data-theme="light"] .testimonial-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}