/* ========================================
   E-COMMERCE CHURN PROJECT STYLES
   Matching main portfolio theme with crimson accent
   ======================================== */

/* ===== MOBILE WARNING ===== */
.mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc143c, #b71c28);
    color: white;
    padding: 15px 20px;
    text-align: center;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.mobile-warning i {
    font-size: 24px;
}

.mobile-warning p {
    margin: 0;
    font-size: 14px;
}

.mobile-warning button {
    background: white;
    color: crimson;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-warning button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@media (max-width: 1024px) {
    .mobile-warning {
        display: flex;
    }
}

/* ===== PROJECT HERO SECTION ===== */
.project-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 20, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 50%);
    animation: pulseBackground 8s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 20, 60, 0.15);
    border: 1px solid rgba(220, 20, 60, 0.3);
    color: #ff4466;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title .highlight {
    color: crimson;
    background: linear-gradient(135deg, crimson, #ff4466);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 32px;
    color: #ccc;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn.primary {
    background: crimson;
    color: white;
    border: 2px solid crimson;
}

.hero-btn.primary:hover {
    background: transparent;
    color: crimson;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
}

.hero-btn.secondary {
    background: transparent;
    color: #ddd;
    border: 2px solid #444;
}

.hero-btn.secondary:hover {
    background: #444;
    border-color: #666;
    transform: translateY(-2px);
}

/* ===== KEY METRICS SECTION ===== */
.key-metrics {
    padding: 80px 0;
    background: #111;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.metric-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, crimson, #ff4466);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: crimson;
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.2);
}

.metric-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

.metric-icon.accuracy {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.metric-icon.churn {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.metric-icon.revenue {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.metric-icon.retention {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.metric-content {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
}

.metric-unit {
    font-size: 28px;
    font-weight: 600;
    color: crimson;
}

.metric-label {
    font-size: 16px;
    color: #ddd;
    font-weight: 600;
    margin-bottom: 8px;
}

.metric-detail {
    font-size: 13px;
    color: #888;
}

/* ===== PRESENTATION SECTION ===== */
.presentation-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    color: #111;
    margin-bottom: 15px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.7);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: crimson;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.5);
}

.video-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 15px;
}

.info-item i {
    color: crimson;
    font-size: 18px;
}

/* ===== EXECUTIVE SUMMARY ===== */
.executive-summary {
    padding: 80px 0;
    background: #f8f8f8;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.summary-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.lead-text {
    font-size: 19px;
    line-height: 1.7;
    color: #222;
    margin-bottom: 20px;
}

.key-findings {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid crimson;
    margin-top: 30px;
}

.key-findings h3 {
    font-size: 22px;
    color: #111;
    margin-bottom: 20px;
}

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

.findings-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.findings-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.findings-list i {
    color: crimson;
    font-size: 18px;
    margin-top: 2px;
}

.findings-list span {
    flex: 1;
    line-height: 1.6;
}

.summary-visuals {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visual-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.visual-card h4 {
    font-size: 20px;
    color: #111;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.impact-item {
    text-align: center;
}

.impact-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.impact-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: crimson;
}

.model-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row span {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

.stat-bar {
    height: 30px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, crimson, #ff4466);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: width 1.5s ease;
}

/* ===== PROJECT JOURNEY ===== */
.project-journey {
    padding: 80px 0;
    background: #111;
}

.project-journey .section-title {
    color: #fff;
}

.project-journey .section-description {
    color: #ccc;
}

.journey-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.journey-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-card:hover {
    transform: translateY(-10px);
    border-color: crimson;
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3);
}

.journey-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 20, 60, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.journey-card:hover .journey-icon {
    background: crimson;
    transform: scale(1.1) rotate(5deg);
}

.journey-icon i {
    font-size: 36px;
    color: crimson;
    transition: all 0.3s ease;
}

.journey-card:hover .journey-icon i {
    color: white;
}

.journey-card h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
}

.journey-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.journey-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: crimson;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.journey-card:hover .journey-link {
    gap: 12px;
    color: #ff4466;
}

/* ===== RESOURCES SECTION ===== */
.resources-section {
    padding: 80px 0;
    background: #fff;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.resource-card {
    background: #f8f8f8;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.resource-card:hover {
    border-color: crimson;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.15);
}

.resource-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon {
    background: crimson;
    transform: scale(1.1);
}

.resource-icon i {
    font-size: 32px;
    color: crimson;
    transition: all 0.3s ease;
}

.resource-card:hover .resource-icon i {
    color: white;
}

.resource-card h3 {
    font-size: 20px;
    color: #111;
    margin-bottom: 12px;
}

.resource-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: crimson;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.resource-btn:hover {
    background: #b71c28;
    transform: scale(1.05);
}

/* ===== TABLEAU DASHBOARD CENTERING ===== */
.tableau-section {
    overflow-x: hidden !important;
}

.tableau-section .max-width {
    max-width: 1400px;
    overflow-x: hidden;
}

.tableau-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden !important;
}

.tableauPlaceholder {
    width: 100% !important;
    max-width: 1366px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    overflow: hidden !important;
}

.tableauViz {
    margin: 0 auto !important;
    display: block !important;
    max-width: 100% !important;
}

/* Prevent Tableau from causing horizontal scroll */
.tableauPlaceholder iframe,
.tableauPlaceholder object,
.tableauPlaceholder embed,
.tableauViz iframe,
.tableauViz object,
.tableauViz embed {
    max-width: 100% !important;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.breadcrumb a {
    color: crimson;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ff4466;
}

.breadcrumb i {
    font-size: 10px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-description {
    font-size: 18px;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BUSINESS CONTEXT ===== */
.business-context {
    padding: 80px 0;
    background: #f8f8f8;
}

.crisis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.crisis-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid crimson;
    transition: all 0.3s ease;
}

.crisis-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.crisis-icon {
    width: 70px;
    height: 70px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.crisis-icon i {
    font-size: 32px;
    color: crimson;
}

.crisis-card h3 {
    font-size: 24px;
    color: #111;
    margin-bottom: 12px;
}

.crisis-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.context-detail {
    background: white;
    padding: 40px;
    border-radius: 15px;
    border-left: 4px solid crimson;
}

.context-detail h3 {
    font-size: 26px;
    color: #111;
    margin-bottom: 20px;
}

.context-detail p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.detail-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.detail-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
}

.detail-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: crimson;
    font-weight: bold;
    font-size: 18px;
}

/* ===== DATASET SECTION ===== */
.dataset-section {
    padding: 80px 0;
    background: #fff;
}

.dataset-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.dataset-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dataset-tab-btn:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.dataset-tab-btn.active {
    background: crimson;
    color: white;
    border-color: crimson;
}

.dataset-tab-btn i {
    font-size: 18px;
}

.dataset-content {
    display: none;
    animation: fadeInContent 0.5s ease;
}

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

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

.dataset-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 35px;
}

.info-card {
    background: #f8f8f8;
    padding: 25px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
}

.info-card i {
    font-size: 32px;
    color: crimson;
}

.info-card h4 {
    font-size: 18px;
    color: #111;
    margin-bottom: 5px;
}

.info-card p {
    font-size: 13px;
    color: #666;
}

.dataset-description {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 35px;
}

.dataset-description h3 {
    font-size: 22px;
    color: #111;
    margin-bottom: 15px;
}

.dataset-description p {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.cleaning-steps {
    margin-top: 25px;
}

.cleaning-steps h4 {
    font-size: 18px;
    color: #111;
    margin-bottom: 15px;
}

.cleaning-steps ul {
    list-style: none;
    padding-left: 0;
}

.cleaning-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #555;
}

.cleaning-steps i {
    color: #2ecc71;
    margin-top: 3px;
}

.dataset-preview {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f8f8;
    border-bottom: 2px solid #e0e0e0;
}

.preview-header h4 {
    font-size: 20px;
    color: #111;
}

.preview-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.action-btn.primary {
    background: crimson;
    color: white;
    border-color: crimson;
}

.action-btn.primary:hover {
    background: #b71c28;
}

.table-container {
    max-height: 500px;
    overflow: auto;
    padding: 25px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: crimson;
}

.loading-state p {
    font-size: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8f8f8;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #111;
    border-bottom: 2px solid #e0e0e0;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.data-table tr:hover {
    background: #f8f8f8;
}

/* ===== DATA DICTIONARY ===== */
.data-dictionary {
    padding: 80px 0;
    background: #f8f8f8;
}

.dictionary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.dict-category {
    background: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dict-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    color: #111;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.dict-category i {
    color: crimson;
    font-size: 24px;
}

.dict-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dict-item {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid crimson;
}

.dict-item strong {
    display: block;
    color: #111;
    font-size: 15px;
    margin-bottom: 5px;
}

.dict-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ===== INSIGHTS PREVIEW ===== */
.insights-preview {
    padding: 80px 0;
    background: #111;
}

.insights-preview .section-title {
    color: #fff;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.insight-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
}

.insight-number {
    font-size: 48px;
    font-weight: 700;
    color: crimson;
    margin-bottom: 15px;
}

.insight-card p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.next-step {
    text-align: center;
}

.next-step p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 25px;
}

.next-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: crimson;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.next-btn:hover {
    background: #ff4466;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 20, 60, 0.3);
    gap: 16px;
}

/* ===== FOOTER ===== */
.project-footer {
    background: #0a0a0a;
    padding: 40px 0;
    border-top: 1px solid #222;
}

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

.footer-left h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
}

.footer-left p {
    color: #888;
    font-size: 14px;
}

.footer-right {
    display: flex;
    gap: 25px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: crimson;
}

.footer-link i {
    font-size: 16px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .metrics-grid,
    .journey-cards,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .metrics-grid,
    .crisis-grid,
    .journey-cards,
    .resources-grid,
    .insights-grid,
    .dictionary-grid,
    .dataset-info {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .metric-value {
        font-size: 36px;
    }
    
    .metric-unit {
        font-size: 20px;
    }
}
/* ===== MOBILE NAVBAR - HAMBURGER MENU FIX ===== */

/* Hide hamburger on desktop */
.hamburger-btn {
    display: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger-btn i {
    font-size: 23px;
    color: #fff;
    transition: all 0.3s ease;
}

.hamburger-btn i.active {
    color: #dc143c;
}

@media (max-width: 947px) {

    /* Show hamburger icon */
    .hamburger-btn {
        display: block;
    }

    /* Hide nav links by default on mobile */
    .navbar .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: #111;
        flex-direction: column;
        align-items: center;
        padding: 20px 0 30px;
        gap: 0;
        transition: left 0.35s ease;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        list-style: none;
        margin: 0;
    }

    /* Slide in when active */
    .navbar .menu.active {
        left: 0;
    }

    /* Style each nav item */
    .navbar .menu li {
        width: 100%;
        text-align: center;
    }

    .navbar .menu li a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        color: #ddd;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .navbar .menu li a:hover,
    .navbar .menu li a.active {
        background: rgba(220, 20, 60, 0.15);
        color: #dc143c;
    }

    /* Remove menu-btn class styles from nav links on mobile
       (they share class with old approach — make sure they look like links) */
    .navbar .menu li a.menu-btn {
        background: none;
        border: none;
        border-radius: 0;
        font-weight: 400;
        letter-spacing: normal;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .navbar .menu li a.menu-btn:hover,
    .navbar .menu li a.active.menu-btn {
        background: rgba(220, 20, 60, 0.15);
        color: #dc143c;
    }
}
