/* Demo Page Styles - Orange Theme with High Contrast */
:root {
    --primary-orange: #D18501;
    --primary-orange-dark: #B8750A;
    --primary-orange-light: #E09520;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-medium: #333333;
    --overlay-dark: rgba(0, 0, 0, 0.75);
    --bg-light: #f8f9fa;
}

/* Hero Section */
.demo-hero {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                      url('/static/images/hero_construction_tablet_demo.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    width: 100%;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content-demo {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content-demo h1 {
    color: #d39e10 !important;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.hero-content-demo .lead {
    color: #d39e10 !important;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Override any red underlined text in demo sections */
.demo-hero u,
.demo-cta-section u,
.demo-hero [style*="text-decoration: underline"],
.demo-cta-section [style*="text-decoration: underline"],
.demo-hero .text-decoration-underline,
.demo-cta-section .text-decoration-underline {
    color: white !important;
    text-decoration-color: white !important;
}

/* Ensure all underlined text in orange sections is white */
.demo-hero *[style*="color: red"],
.demo-cta-section *[style*="color: red"],
.demo-hero *[style*="color:#ff0000"],
.demo-cta-section *[style*="color:#ff0000"] {
    color: white !important;
}

.demo-badge-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.demo-badge {
    background: rgba(209, 133, 1, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* Section Headings */
.section-heading {
    color: var(--primary-orange);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    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-light));
    border-radius: 2px;
}

/* Quick Feature Cards */
.quick-feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(209, 133, 1, 0.2);
    border-color: var(--primary-orange-light);
}

.quick-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.quick-feature-card h5 {
    color: var(--text-medium);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.quick-feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Feature Detail Cards */
.feature-detail-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.feature-detail-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-orange-light);
}

.premium-highlight {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, rgba(209, 133, 1, 0.02), rgba(224, 149, 32, 0.02));
}

.feature-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.feature-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.feature-header h3 {
    color: var(--text-medium);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.feature-badge.premium {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
}

.feature-content {
    color: var(--text-medium);
}

.feature-description {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.feature-list li {
    padding: 10px 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    padding-left: 25px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

.feature-list li strong {
    color: var(--text-medium);
    font-weight: 600;
}

/* Demo CTA Section */
.demo-cta-section {
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.6)), 
                      url('/static/images/hero_construction_tablet_demo.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    min-height: 400px;
    width: 100%;
}

.demo-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.demo-cta-card {
    position: relative;
    z-index: 2;
}

.demo-cta-section .section-heading {
    color: white;
}

.demo-cta-section .section-heading::after {
    background: white;
}

.cta-feature {
    text-align: center;
    padding: 20px;
}

.cta-feature i {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    display: block;
}

.cta-feature h5 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-feature p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Ensure all text in CTA section is white, including underlined text */
.demo-cta-section p,
.demo-cta-section span,
.demo-cta-section small,
.demo-cta-section div,
.demo-cta-section u {
    color: white !important;
}

/* Override any red text decoration in CTA section */
.demo-cta-section * {
    text-decoration-color: white !important;
}

.btn-light {
    background: white;
    color: var(--primary-orange);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    color: var(--primary-orange-dark);
    background: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Technical Specifications */
.tech-spec-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tech-spec-card:hover {
    border-color: var(--primary-orange-light);
    box-shadow: 0 6px 20px rgba(209, 133, 1, 0.15);
}

.tech-spec-card h4 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.spec-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.spec-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content-demo h1 {
        font-size: 2.5rem;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .demo-badge-group {
        flex-direction: column;
        align-items: center;
    }

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

    .feature-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-header h3 {
        font-size: 1.3rem;
    }

    .feature-detail-card {
        padding: 25px 20px;
    }

    .btn-light,
    .btn-outline-light {
        width: 100%;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .demo-hero {
        padding: 80px 20px 60px;
    }

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

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

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

    .quick-feature-card {
        padding: 20px 15px;
    }

    .quick-icon {
        width: 60px;
        height: 60px;
        font-size: 1.7rem;
    }
}