/* About Page Styles - Orange Theme Matching Landing Page */
: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);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.about-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%;
}

.about-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-about {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

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

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

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

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

/* Intro Text */
.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
}

/* Section Headings */
.section-heading {
    color: var(--primary-orange);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-orange-light));
    border-radius: 2px;
}

/* Founder Section */
.founder-section {
    padding: 40px 0;
}

.founder-image-wrapper {
    position: relative;
    display: inline-block;
}

.founder-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 6px solid var(--primary-orange);
    box-shadow: 0 10px 30px rgba(209, 133, 1, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(209, 133, 1, 0.4);
}

/* Content Cards */
.content-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-orange);
    margin-bottom: 30px;
}

.content-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* Highlight Card */
.highlight-card {
    background: linear-gradient(135deg, rgba(209, 133, 1, 0.05), rgba(184, 117, 10, 0.05));
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--primary-orange-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.highlight-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

/* Founder Quote */
.founder-quote {
    background: linear-gradient(135deg, rgba(209, 133, 1, 0.08), rgba(224, 149, 32, 0.08));
    border-left: 5px solid var(--primary-orange);
    padding: 30px 40px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
}

.founder-quote p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.founder-quote footer {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-orange);
    font-size: 1rem;
}

/* Roadmap Phases */
.roadmap-phases {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.phase-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

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

.current-phase {
    border-color: var(--primary-orange);
    background: linear-gradient(135deg, rgba(209, 133, 1, 0.03), rgba(224, 149, 32, 0.03));
    box-shadow: 0 4px 15px rgba(209, 133, 1, 0.2);
}

.phase-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.current-phase .phase-badge {
    background: linear-gradient(135deg, #27ae60, #229954);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
}

.phase-card h4 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.phase-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-card ul li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.phase-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Security Section */
.security-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.security-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    height: 100%;
    transition: all 0.3s ease;
}

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

.security-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-bottom: 20px;
}

.security-icon i {
    font-size: 2rem;
    color: white;
}

.security-card h5 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.security-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-card ul li {
    padding: 6px 0 6px 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.security-card ul li::before {
    content: '🔒';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(209, 133, 1, 0.3);
    text-align: center;
}

.welcome-card .section-heading {
    color: white;
}

.welcome-card .section-heading::after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
}

.welcome-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Orange Button */
.btn-primary-orange {
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.9)) !important;
    color: #000000 !important;
    border: none !important;
    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;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    text-shadow: none !important;
}

.btn-primary-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
    color: #000000 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
}

.btn-primary-orange:focus,
.btn-primary-orange:active {
    color: #000000 !important;
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.9)) !important;
}

/* Force black text in all themes and states with maximum specificity */
html body [data-theme="dark"] .btn-primary-orange,
html body [data-theme="light"] .btn-primary-orange,
html body .btn-primary-orange,
html body .btn-primary-orange:hover,
html body .btn-primary-orange:focus,
html body .btn-primary-orange:active,
html body .btn-primary-orange:visited,
html body .btn-primary-orange:link,
.btn-primary-orange *,
.btn-primary-orange span,
.btn-primary-orange i {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Ensure button background stays white in all themes */
[data-theme="dark"] .btn-primary-orange,
[data-theme="light"] .btn-primary-orange {
    background: linear-gradient(135deg, white, rgba(255, 255, 255, 0.9)) !important;
}

[data-theme="dark"] .btn-primary-orange:hover,
[data-theme="light"] .btn-primary-orange:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)) !important;
}

/* AI Integration Section */
.ai-integration-section {
    background: linear-gradient(135deg, rgba(209, 133, 1, 0.08), rgba(224, 149, 32, 0.08));
    border: 2px solid var(--primary-orange-light);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 8px 25px rgba(209, 133, 1, 0.15);
}

.ai-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.ai-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(209, 133, 1, 0.25);
    animation: aiPulse 3s ease-in-out infinite;
}

.ai-icon-wrapper i {
    font-size: 2.5rem;
    color: white;
}

@keyframes aiPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(209, 133, 1, 0.25);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(209, 133, 1, 0.35);
        transform: scale(1.05);
    }
}

.ai-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.ai-feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.ai-feature-icon {
    width: 60px;
    height: 60px;
    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;
}

.ai-feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.ai-feature-card h4 {
    color: var(--primary-orange);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

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

.ai-commitment {
    background: linear-gradient(135deg, rgba(209, 133, 1, 0.12), rgba(224, 149, 32, 0.12));
    border-left: 5px solid var(--primary-orange);
    padding: 25px 30px;
    border-radius: 8px;
    text-align: center;
}

.ai-commitment p {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.ai-commitment strong {
    color: var(--primary-orange);
}

/* Dark Mode: AI Integration Section */
[data-theme="dark"] .ai-integration-section {
    background: var(--darker-bg, #141414) !important;
    border-color: var(--primary-orange-light, #E09520) !important;
}

[data-theme="dark"] .ai-intro-text {
    color: #ffffff !important;
}

[data-theme="dark"] .ai-feature-card {
    background: var(--dark-bg, #1C1C1C) !important;
    border-color: rgba(245, 179, 1, 0.2) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .ai-feature-card h4 {
    color: var(--primary-orange-light) !important;
}

[data-theme="dark"] .ai-feature-card p {
    color: #ffffff !important;
}

[data-theme="dark"] .ai-commitment {
    background: var(--darker-bg, #141414) !important;
    border-color: var(--primary-orange) !important;
}

[data-theme="dark"] .ai-commitment p {
    color: #ffffff !important;
}

[data-theme="dark"] .ai-commitment strong {
    color: var(--primary-orange-light) !important;
}

/* Responsive: AI Integration */
@media (max-width: 768px) {
    .ai-integration-section {
        padding: 35px 25px;
    }

    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ai-intro-text {
        font-size: 1rem;
    }
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] body {
    background-color: var(--dark-bg, #1C1C1C);
    color: var(--text-light, #FFFFFF);
}

/* Dark mode: Main content background */
[data-theme="dark"] .py-5.bg-white {
    background-color: var(--dark-bg, #1C1C1C) !important;
}

/* Dark mode: Content cards */
[data-theme="dark"] .content-card {
    background: var(--darker-bg, #141414) !important;
    border-color: var(--border-color, rgba(245, 179, 1, 0.2)) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .content-card p {
    color: #ffffff !important;
}

[data-theme="dark"] .content-card * {
    color: #ffffff !important;
}

/* Dark mode: Force white text in content sections */
[data-theme="dark"] .content-card h1,
[data-theme="dark"] .content-card h2,
[data-theme="dark"] .content-card h3,
[data-theme="dark"] .content-card h4,
[data-theme="dark"] .content-card h5,
[data-theme="dark"] .content-card h6,
[data-theme="dark"] .content-card span,
[data-theme="dark"] .content-card div {
    color: #ffffff !important;
}

/* Dark mode: Highlight cards */
[data-theme="dark"] .highlight-card {
    background: var(--darker-bg, #141414) !important;
    border-color: var(--primary-orange-light, #E09520) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .highlight-card p {
    color: #ffffff !important;
}

[data-theme="dark"] .highlight-card * {
    color: #ffffff !important;
}

/* Dark mode: Founder section */
[data-theme="dark"] .founder-section {
    background-color: var(--dark-bg, #1C1C1C) !important;
}

[data-theme="dark"] .founder-section p {
    color: #ffffff !important;
}

[data-theme="dark"] .founder-section * {
    color: #ffffff !important;
}

/* Dark mode: Intro text */
[data-theme="dark"] .intro-text {
    color: #ffffff !important;
}

/* Dark mode: Founder quote */
[data-theme="dark"] .founder-quote {
    background: var(--darker-bg, #141414) !important;
    border-color: var(--primary-orange, #D18501) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .founder-quote p {
    color: #ffffff !important;
}

[data-theme="dark"] .founder-quote footer {
    color: var(--primary-orange, #D18501) !important;
}

/* Dark mode: Security section */
[data-theme="dark"] .security-section {
    background: var(--darker-bg, #141414) !important;
    color: #ffffff !important;
}

/* Dark mode: Security cards */
[data-theme="dark"] .security-card {
    background: var(--dark-bg, #1C1C1C) !important;
    border-color: var(--border-color, rgba(245, 179, 1, 0.2)) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .security-card h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .security-card ul li {
    color: #ffffff !important;
}

/* Dark mode: Phase cards */
[data-theme="dark"] .phase-card {
    background: var(--dark-bg, #1C1C1C) !important;
    border-color: var(--border-color, rgba(245, 179, 1, 0.2)) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .phase-card h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .phase-card ul li {
    color: #ffffff !important;
}

/* Dark mode: Section headings remain orange */
[data-theme="dark"] .section-heading {
    color: var(--primary-orange, #D18501) !important;
}

/* Dark mode: Welcome card keeps its gradient but ensure text visibility */
[data-theme="dark"] .welcome-card {
    background: linear-gradient(135deg, var(--primary-orange, #D18501), var(--primary-orange-dark, #B8750A)) !important;
    color: white !important;
}

[data-theme="dark"] .welcome-card p {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Dark mode: Force all text in welcome card to be white */
[data-theme="dark"] .welcome-card h1,
[data-theme="dark"] .welcome-card h2,
[data-theme="dark"] .welcome-card h3,
[data-theme="dark"] .welcome-card h4,
[data-theme="dark"] .welcome-card h5,
[data-theme="dark"] .welcome-card h6,
[data-theme="dark"] .welcome-card span,
[data-theme="dark"] .welcome-card div,
[data-theme="dark"] .welcome-card * {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Dark mode: Container backgrounds */
[data-theme="dark"] .container {
    background-color: transparent !important;
}

[data-theme="dark"] .row {
    background-color: transparent !important;
}

[data-theme="dark"] .col-lg-10,
[data-theme="dark"] .col-md-8,
[data-theme="dark"] .col-md-4,
[data-theme="dark"] .col-md-6 {
    background-color: transparent !important;
}

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

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

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

    .founder-image {
        width: 220px;
        height: 220px;
    }

    .content-card,
    .highlight-card,
    .security-section {
        padding: 25px;
    }

    .founder-quote {
        padding: 20px 25px;
    }

    .phase-card {
        padding: 20px;
    }

    .welcome-card {
        padding: 35px 25px;
    }

    /* Dark mode responsive overrides */
    [data-theme="dark"] .content-card,
    [data-theme="dark"] .highlight-card,
    [data-theme="dark"] .security-section {
        background: var(--darker-bg, #141414) !important;
        color: #ffffff !important;
    }
}

/* CRITICAL: Universal button text override - must be at end to override all other styles */
.btn-primary-orange,
.btn-primary-orange:hover,
.btn-primary-orange:focus,
.btn-primary-orange:active,
.btn-primary-orange:visited,
.btn-primary-orange:link,
[data-theme="dark"] .btn-primary-orange,
[data-theme="dark"] .btn-primary-orange:hover,
[data-theme="dark"] .btn-primary-orange:focus,
[data-theme="dark"] .btn-primary-orange:active,
[data-theme="light"] .btn-primary-orange,
[data-theme="light"] .btn-primary-orange:hover,
[data-theme="light"] .btn-primary-orange:focus,
[data-theme="light"] .btn-primary-orange:active {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Force all child elements to have black text */
.btn-primary-orange *,
.btn-primary-orange span,
.btn-primary-orange i,
[data-theme="dark"] .btn-primary-orange *,
[data-theme="dark"] .btn-primary-orange span,
[data-theme="dark"] .btn-primary-orange i {
    color: #000000 !important;
    text-shadow: none !important;
}

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

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

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

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

    .founder-image {
        width: 180px;
        height: 180px;
    }

    .intro-text {
        font-size: 1.1rem;
    }
}
