/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --chicago-color: #0066cc;
    --nova-color: #dc143c;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Summary Cards */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.summary-card.chicago {
    border-top: 4px solid var(--chicago-color);
}

.summary-card.nova {
    border-top: 4px solid var(--nova-color);
}

.city-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.chicago .city-badge {
    background: rgba(0, 102, 204, 0.1);
    color: var(--chicago-color);
}

.nova .city-badge {
    background: rgba(220, 20, 60, 0.1);
    color: var(--nova-color);
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Key Insight */
.key-insight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.key-insight h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.key-insight p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Comparison Section */
.comparison-section {
    margin-bottom: 3rem;
}

.comparison-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background: var(--primary-color);
    color: white;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: right;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background-color: var(--light-bg);
}

.comparison-table .chicago-col {
    background-color: rgba(0, 102, 204, 0.05);
}

.comparison-table .nova-col {
    background-color: rgba(220, 20, 60, 0.05);
}

.comparison-table .total-row {
    font-weight: 700;
    background-color: var(--light-bg);
}

.comparison-table .savings {
    color: var(--success-color);
    font-weight: 600;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.stat-card.chicago {
    border-right: 4px solid var(--chicago-color);
}

.stat-card.nova {
    border-right: 4px solid var(--nova-color);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.stat-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-list {
    list-style: none;
    text-align: right;
}

.stat-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Insight Box */
.insight-box {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.insight-box.savings {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.alert h4 {
    margin-bottom: 1rem;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-right: 4px solid var(--info-color);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-right: 4px solid var(--success-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-right: 4px solid var(--warning-color);
}

/* Arabic Jobs Comparison */
.arabic-jobs-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.job-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.job-card.highlighted {
    border: 3px solid var(--success-color);
    position: relative;
}

.advantage-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.job-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.job-multiplier {
    background: var(--success-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.job-sectors {
    margin: 1rem 0;
}

.job-sectors h5 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.job-sectors ul {
    list-style: none;
}

.job-sectors li {
    padding: 0.5rem 0;
}

.salary-range {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.1rem;
}

/* Job Examples */
.job-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.job-example {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-right: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.job-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.job-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.job-desc {
    font-size: 0.9rem;
}

/* Schools Comparison */
.schools-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.school-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.school-card.highlighted {
    border: 3px solid var(--nova-color);
    position: relative;
}

.school-districts {
    margin-top: 1rem;
}

.district {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.district strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.ranking {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.support-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.support-card ul {
    list-style: none;
}

.support-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.support-card li:last-child {
    border-bottom: none;
}

/* Recommendations */
.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recommendation-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.recommendation-card.chicago {
    border-top: 5px solid var(--chicago-color);
}

.recommendation-card.nova {
    border-top: 5px solid var(--nova-color);
}

.recommendation-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.best-for {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

/* Hybrid Strategy */
.hybrid-strategy {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.hybrid-strategy h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.strategy-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.strategy-step {
    flex: 1;
    min-width: 250px;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.strategy-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.strategy-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-right: 3px solid var(--primary-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.resource-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.resource-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.resource-contact {
    color: var(--success-color) !important;
    font-weight: 600;
    margin-top: 0.3rem;
}

/* Financial Projection */
.projection-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--light-bg);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.projection-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.projection-col {
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.projection-col strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.projection-col ul {
    list-style: none;
}

.projection-col li {
    padding: 0.5rem 0;
}

/* Neighborhoods */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.neighborhood-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.neighborhood-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.neighborhood-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-right: 3px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.neighborhood-item:hover {
    transform: translateX(-5px);
}

.neighborhood-name {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.neighborhood-price {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.neighborhood-features {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Disable complex animations on mobile */
    .hero-title {
        animation: none !important;
        background: none !important;
        -webkit-text-fill-color: white !important;
        color: white !important;
    }

    /* Hero Section Mobile Fix */
    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        padding: 0 10px !important;
    }

    .hero-description {
        font-size: 0.9rem !important;
        padding: 0 10px !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        padding: 0 15px !important;
    }

    /* Navbar Mobile Fix */
    .navbar {
        padding: 0.75rem 0;
        position: sticky;
        top: 0;
        z-index: 2001;
        width: 100%;
    }

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 15px;
        position: relative;
    }

    .nav-brand {
        flex: 1;
    }

    .nav-brand h2 {
        font-size: 1rem;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 80px);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 0;
        z-index: 2000;
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex !important;
        animation: slideInDown 0.3s ease-out;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1.2rem 1.5rem;
        color: white;
        text-decoration: none;
        width: 100%;
        font-size: 1.1rem;
        font-weight: 500;
        transition: background 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a:active {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px 10px;
        z-index: 2002;
        position: relative;
        transition: transform 0.3s ease;
    }

    /* Cards Mobile */
    .summary-grid,
    .stats-grid,
    .schools-comparison,
    .arabic-jobs-comparison,
    .recommendation-grid,
    .neighborhoods-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .summary-card,
    .stat-card,
    .job-card,
    .school-card,
    .recommendation-card {
        padding: 1.5rem;
    }

    /* Strategy Flow */
    .strategy-flow {
        flex-direction: column;
    }

    .strategy-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }

    /* Tables Mobile */
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.4rem;
        font-size: 0.85rem;
    }

    /* Buttons Mobile */
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
    }

    /* Fix overflow issues */
    .container {
        padding: 0 15px;
    }

    /* Job Examples */
    .job-examples {
        grid-template-columns: 1fr;
    }

    /* Timeline Mobile */
    .timeline-marker {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    /* Projection Tabs */
    .projection-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-btn {
        width: 100%;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Disable 3D effects on mobile for performance */
    .summary-card,
    .stat-card,
    .recommendation-card {
        transform: none !important;
    }

    .summary-card:hover,
    .stat-card:hover,
    .recommendation-card:hover {
        transform: translateY(-5px) !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 30px 0;
    }

    .hero {
        padding: 70px 0 35px !important;
        min-height: auto !important;
    }

    .hero-title {
        font-size: 1.35rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.75rem !important;
        padding: 0 8px !important;
        animation: none !important;
        background: none !important;
        -webkit-text-fill-color: white !important;
        color: white !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
        padding: 0 8px !important;
    }

    .hero-description {
        font-size: 0.85rem !important;
        margin-bottom: 1.25rem !important;
        padding: 0 8px !important;
    }

    .section-title {
        font-size: 1.4rem !important;
        padding: 0 10px !important;
    }

    .nav-brand h2 {
        font-size: 1rem !important;
        max-width: calc(100vw - 90px) !important;
    }

    .nav-menu a {
        font-size: 1rem !important;
        padding: 0.9rem 1.2rem !important;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 5px;
    }

    .nav-brand h2 {
        font-size: 1.1rem;
    }

    .mobile-menu-toggle {
        font-size: 1.3rem;
    }

    /* Cards */
    .summary-card,
    .stat-card,
    .job-card,
    .school-card,
    .recommendation-card,
    .resource-item,
    .neighborhood-item {
        padding: 1.25rem;
    }

    /* Tables */
    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.35rem;
        font-size: 0.8rem;
    }

    /* Stats */
    .stat-icon {
        font-size: 2.5rem;
    }

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

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

    /* Alerts and Boxes */
    .alert,
    .key-insight,
    .insight-box {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }

    /* Timeline */
    .timeline-content {
        padding: 1.5rem;
    }

    /* Projection */
    .projection-col {
        padding: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }
}

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

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Apply Animations */
.hero-title {
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    animation: fadeInDown 1.2s ease-out;
}

.hero-description {
    animation: fadeInUp 1.4s ease-out;
}

.hero-cta {
    animation: fadeInUp 1.6s ease-out;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.summary-card {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.summary-card:nth-child(1) {
    animation-delay: 0.1s;
}

.summary-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-icon {
    animation: bounce 2s infinite;
}

.stat-card:hover .stat-icon {
    animation: pulse 0.6s ease-in-out;
}

.key-insight {
    animation: fadeInUp 0.8s ease-out;
    background-size: 200% 200%;
    animation: fadeInUp 0.8s ease-out, gradient-shift 5s ease infinite;
}

.insight-box {
    animation: fadeInLeft 0.8s ease-out;
    background-size: 200% 200%;
    animation: fadeInLeft 0.8s ease-out, gradient-shift 5s ease infinite;
}

.job-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.job-card:nth-child(1) {
    animation-delay: 0.1s;
}

.job-card:nth-child(2) {
    animation-delay: 0.2s;
}

.job-number {
    animation: pulse 2s infinite;
}

.advantage-badge {
    animation: bounce 2s infinite;
}

.job-multiplier {
    animation: pulse 2s infinite;
}

.school-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.school-card:nth-child(1) {
    animation-delay: 0.1s;
}

.school-card:nth-child(2) {
    animation-delay: 0.2s;
}

.recommendation-card {
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.recommendation-card:nth-child(1) {
    animation-delay: 0.1s;
}

.recommendation-card:nth-child(2) {
    animation-delay: 0.2s;
}

.resource-item {
    animation: fadeInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.resource-item:nth-child(1) { animation-delay: 0.05s; }
.resource-item:nth-child(2) { animation-delay: 0.1s; }
.resource-item:nth-child(3) { animation-delay: 0.15s; }
.resource-item:nth-child(4) { animation-delay: 0.2s; }
.resource-item:nth-child(5) { animation-delay: 0.25s; }

.neighborhood-item {
    animation: slideInRight 0.5s ease-out;
    animation-fill-mode: both;
}

.neighborhood-item:nth-child(1) { animation-delay: 0.05s; }
.neighborhood-item:nth-child(2) { animation-delay: 0.1s; }
.neighborhood-item:nth-child(3) { animation-delay: 0.15s; }
.neighborhood-item:nth-child(4) { animation-delay: 0.2s; }

.timeline-item {
    animation: fadeInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-marker {
    animation: pulse 2s infinite;
}

.step-number {
    animation: pulse 2s infinite;
}

.comparison-table tbody tr {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}

.comparison-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.comparison-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.comparison-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.comparison-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.comparison-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.comparison-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.comparison-table tbody tr:nth-child(7) { animation-delay: 0.35s; }

.section-title {
    animation: fadeInDown 0.8s ease-out;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--chicago-color), var(--nova-color));
    border-radius: 2px;
    animation: shimmer 2s infinite;
}

/* Animated Background for Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

/* Animated Icons */
.stat-icon {
    display: inline-block;
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Glow Effect on Hover */
.summary-card:hover,
.stat-card:hover,
.job-card:hover,
.school-card:hover {
    animation: glow 1.5s ease-in-out infinite;
}

/* Shimmer Effect for Badges */
.city-badge,
.advantage-badge,
.ranking {
    position: relative;
    overflow: hidden;
}

.city-badge::after,
.advantage-badge::after,
.ranking::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

/* Loading Skeleton Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Parallax Effect for Hero */
.hero-content {
    animation: float 6s ease-in-out infinite;
}

/* Hover Effects with Smooth Transitions */
.btn,
.summary-card,
.stat-card,
.job-card,
.school-card,
.recommendation-card,
.resource-item,
.neighborhood-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Transform Effects */
.summary-card:hover,
.recommendation-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Animated Border */
@keyframes border-dance {
    0%, 100% {
        border-color: var(--chicago-color);
    }
    50% {
        border-color: var(--nova-color);
    }
}

.job-card.highlighted {
    animation: border-dance 3s ease-in-out infinite;
}

/* Typing Effect for Section Titles (can be added via JS) */
.section-title {
    overflow: hidden;
    white-space: nowrap;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Particle Background Animation */
@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(90deg);
    }
    50% {
        transform: translate(0, -20px) rotate(180deg);
    }
    75% {
        transform: translate(-10px, -10px) rotate(270deg);
    }
}

/* Animated Underline Effect */
.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active-link::after {
    width: 100%;
}

/* Gradient Text Animation - Desktop Only */
@keyframes gradient-text {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (min-width: 769px) {
    .hero-title {
        background: linear-gradient(45deg, #fff, #f0f0f0, #fff, #f0f0f0);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradient-text 5s ease infinite, fadeInDown 1s ease-out;
    }
}

/* Loading Dots Animation */
@keyframes dot-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Card Flip Effect */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Glitch Effect (optional) */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Neon Glow Effect */
@keyframes neon-glow {
    0%, 100% {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #667eea, 0 0 40px #667eea;
    }
    50% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #764ba2, 0 0 20px #764ba2;
    }
}

/* Scan Line Effect */
@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

/* Morph Animation */
@keyframes morph {
    0%, 100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    }
    34% {
        border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%;
    }
    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

/* Wave Animation for Backgrounds */
@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

/* Spotlight Effect */
.summary-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.summary-card:hover::before,
.stat-card:hover::before {
    opacity: 1;
}

/* Magnetic Button Effect */
.btn {
    cursor: pointer;
    position: relative;
    transition: transform 0.1s ease;
}

/* Aurora Background Effect */
@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
}

/* Breathing Animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.key-insight,
.insight-box {
    animation: breathe 4s ease-in-out infinite;
}

/* Confetti Effect (CSS particles) */
.celebration-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--success-color);
    animation: confetti-fall 3s ease-in infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Hover Lift Effect */
.job-example,
.neighborhood-item {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.job-example:hover,
.neighborhood-item:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Pulsing Dot Indicator */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse-dot 2s ease-in-out infinite;
}

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

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Tilt Perspective Reset */
.summary-card,
.stat-card,
.recommendation-card {
    transform-style: preserve-3d;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-cta {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
    
    /* Disable animations in print */
    * {
        animation: none !important;
        transition: none !important;
    }
}
