:root {
    --color-bg: #030712;
    /* gray-950 */
    --color-card: rgba(15, 23, 42, 0.6);
    /* slate-900/60 */
    --color-text: #e2e8f0;
    /* slate-200 */
    --color-text-muted: #94a3b8;
    /* slate-400 */
    --color-accent: #0ea5e9;
    /* sky-500 */
    --color-accent-dark: #0284c7;
    /* sky-600 */
}

/* --- Lenis Smooth Scroll --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* --- 3D Canvas Background --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* --- Aurora Background (subtler) --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.1) 0%, transparent 30%),
        /* sky-600 */
        radial-gradient(circle at 90% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 35%),
        /* violet-500 */
        radial-gradient(circle at 50% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 30%);
    /* teal-500 */
    animation: aurora 20s linear infinite;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* --- Glassmorphism Navbar --- */
.glass-nav {
    background: rgba(3, 7, 18, 0.7);
    /* gray-950/70 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    /* slate-700/50 */
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--color-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    /* slate-700/50 */
    transition: all 0.3s ease;
}

/* --- Section Title --- */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    font-size: 2.25rem;
    /* 3xl */
    font-weight: 800;
    color: white;
    margin-bottom: 2.5rem;
    /* mb-10 */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, var(--color-accent), var(--color-accent-dark));
    border-radius: 2px;
}

/* --- Project Card Interaction --- */
.project-card .details {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.project-card:hover .details {
    opacity: 1;
    transform: translateY(0);
}

.project-card .details h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 639px) {
    .project-card .details h3 {
        max-width: 90%;
    }
}

.project-card .project-image {
    transition: all 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: blur(8px);
}

/* Specific Project Glows */
.project-card-rapid {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0);
    border-color: rgba(51, 65, 85, 0.5);
}

.project-card-rapid:hover {
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.project-card-container {
    box-shadow: 0 0 15px rgba(234, 179, 8, 0);
    border-color: rgba(51, 65, 85, 0.5);
}

.project-card-container:hover {
    border-color: rgba(234, 179, 8, 0.7);
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.4);
}

.project-card-quote {
    box-shadow: 0 0 15px rgba(20, 184, 166, 0);
    border-color: rgba(51, 65, 85, 0.5);
}

.project-card-quote:hover {
    border-color: rgba(20, 184, 166, 0.7);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.4);
}

.project-card-focus {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0);
    border-color: rgba(51, 65, 85, 0.5);
}

.project-card-focus:hover {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modal Styling --- */
.modal {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#modal-backdrop {
    pointer-events: auto;
    z-index: 1;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    transition: transform 0.3s ease;
    overflow-x: hidden;
}

/* Force scrollable - higher specificity */
#modal-content-box.modal-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.7);
}

/* --- Custom Scrollbar (Glassmorphism Style) --- */
#modal-content-box::-webkit-scrollbar {
    width: 14px;
}

#modal-content-box::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 10px;
    margin: 8px 0;
    border: 1px solid rgba(51, 65, 85, 0.3);
}

#modal-content-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            rgba(14, 165, 233, 0.6) 0%,
            rgba(6, 182, 212, 0.6) 100%);
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

#modal-content-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            rgba(14, 165, 233, 0.9) 0%,
            rgba(6, 182, 212, 0.9) 100%);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
    border-color: rgba(14, 165, 233, 0.3);
}

#modal-content-box::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg,
            rgba(14, 165, 233, 1) 0%,
            rgba(6, 182, 212, 1) 100%);
}

/* Firefox Scrollbar Styling */
#modal-content-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.6) rgba(15, 23, 42, 0.4);
}

/* --- Scroll Progress Indicator --- */
.scroll-progress {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(51, 65, 85, 0.3);
    z-index: 100;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg,
            rgba(14, 165, 233, 0.8) 0%,
            rgba(6, 182, 212, 0.8) 50%,
            rgba(20, 184, 166, 0.8) 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

/* --- Scroll Fade Effects (Removed - was blocking trackpad scrolling) --- */
/* Fade effects disabled to ensure smooth trackpad scrolling */

/* --- Active Scrolling Effect --- */
#modal-content-box.is-scrolling::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            rgba(14, 165, 233, 1) 0%,
            rgba(6, 182, 212, 1) 100%);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
}

/* --- Interactive Modal Components --- */

/* Project Modal Header */
.project-modal-header {
    /* Background set by JavaScript based on scroll position */
    color: white;
    padding: 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-bottom: 4px solid #5a67d8;
    border-radius: 1rem 1rem 0 0;
}

.project-modal-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 0;
}

.project-modal-header .subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 500;
}

.project-github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 1rem;
}

.project-github-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Two Column Layout */
.modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .modal-columns {
        grid-template-columns: 1fr;
    }
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: #a78bfa;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    font-weight: 700;
}

.modal-section h4 {
    color: #c4b5fd;
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal-section p {
    color: #cbd5e1;
}

.modal-section ul li {
    color: #cbd5e1;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-left: 5px solid #667eea;
    padding: 1.25rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

.metric-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .metric-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (min-width: 1024px) {
    .metric-card {
        padding: 2rem 1.5rem;
    }
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.metric-card .value {
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

@media (min-width: 640px) {
    .metric-card .value {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .metric-card .value {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .metric-card .value {
        font-size: 1.875rem;
    }
}

.metric-card .label {
    font-size: 0.65rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .metric-card .label {
        font-size: 0.75rem;
    }
}

@media (min-width: 768px) {
    .metric-card .label {
        font-size: 0.875rem;
    }
}

/* Tech Stack Badges */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
}

.tech-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease;
}

.tech-badge:hover {
    transform: scale(1.05);
}

/* Flow Diagram */
.flow-diagram {
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flow-item {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #667eea;
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
    text-align: center;
    color: #e2e8f0;
}

.flow-arrow {
    text-align: center;
    color: #667eea;
    font-size: 1.5rem;
    margin: 0.375rem 0;
    font-weight: bold;
}

/* Code Block */
.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.code-block .keyword {
    color: #c792ea;
}

.code-block .string {
    color: #c3e88d;
}

.code-block .function {
    color: #82aaff;
}

.code-block .comment {
    color: #546e7a;
    font-style: italic;
}

/* Modal Table */
.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-table th,
.modal-table td {
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.875rem;
    text-align: left;
}

.modal-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.modal-table tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}

.modal-table td {
    color: #cbd5e1;
}

/* Full Width Section */
.modal-full-width {
    grid-column: 1 / -1;
}

/* Future Cards Grid */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.future-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.future-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

.future-card h4 {
    margin-top: 0;
    margin-bottom: 0.625rem;
    color: #a78bfa;
}

.future-card p {
    font-size: 0.875rem;
    margin: 0;
    color: #cbd5e1;
}

/* --- AI Dungeon Master Modal Specific Styles --- */

/* Scroll Animation Container */
.scroll-animated-item {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    filter: blur(4px);
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animated-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Glass Card Component */
.section-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
    overflow-x: hidden;
}

.section-card:hover {
    box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.1), 0 10px 10px -5px rgba(168, 85, 247, 0.04);
}

@media (min-width: 640px) {
    .section-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .section-card {
        padding: 2rem;
    }
}

/* Section Header with Icon */
.section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ai-main-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }

    /* Only apply grid column spans on large screens */
    .ai-grid-1 {
        grid-column: span 1;
    }

    .ai-grid-2 {
        grid-column: span 2;
    }

    .ai-grid-3 {
        grid-column: span 3;
    }

    .ai-grid-5 {
        grid-column: span 5;
    }
}

/* Feature List Item */
.feature-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #e879f9;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
    border: none;
    padding: 0;
    font-size: 1rem;
}

.feature-content p {
    color: #94a3b8;
    margin: 0;
}

/* Future Vision Grid */
.future-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .future-vision-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.future-vision-item {
    display: flex;
    align-items: center;
}

.future-vision-icon {
    width: 1.25rem;
    height: 1.25rem;
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-table th,
.modal-table td {
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.875rem;
    text-align: left;
}

.modal-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.modal-table tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.4);
}

.modal-table td {
    color: #cbd5e1;
}

/* Full Width Section */
.modal-full-width {
    grid-column: 1 / -1;
}

/* Future Cards Grid */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.future-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    padding: 1.25rem;
    border-radius: 0.5rem;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.future-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
}

.future-card h4 {
    margin-top: 0;
    margin-bottom: 0.625rem;
    color: #a78bfa;
}

.future-card p {
    font-size: 0.875rem;
    margin: 0;
    color: #cbd5e1;
}

/* --- AI Dungeon Master Modal Specific Styles --- */

/* Scroll Animation Container */
.scroll-animated-item {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    filter: blur(4px);
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animated-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Glass Card Component */
.section-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
    overflow-x: hidden;
}

.section-card:hover {
    box-shadow: 0 20px 25px -5px rgba(168, 85, 247, 0.1), 0 10px 10px -5px rgba(168, 85, 247, 0.04);
}

@media (min-width: 640px) {
    .section-card {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .section-card {
        padding: 2rem;
    }
}

/* Section Header with Icon */
.section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ai-main-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }

    /* Only apply grid column spans on large screens */
    .ai-grid-1 {
        grid-column: span 1;
    }

    .ai-grid-2 {
        grid-column: span 2;
    }

    .ai-grid-3 {
        grid-column: span 3;
    }

    .ai-grid-5 {
        grid-column: span 5;
    }
}

/* Feature List Item */
.feature-list-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #e879f9;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.feature-content h3 {
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
    border: none;
    padding: 0;
    font-size: 1rem;
}

.feature-content p {
    color: #94a3b8;
    margin: 0;
}

/* Future Vision Grid */
.future-vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .future-vision-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.future-vision-item {
    display: flex;
    align-items: center;
}

.future-vision-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #c084fc;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.future-vision-text {
    color: #cbd5e1;
}

/* --- RESTORED MISSING STYLES --- */

/* Section Header with Icon */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #c084fc;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.section-header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

@media (min-width: 768px) {
    .section-header-title {
        font-size: 1.875rem;
    }
}

/* Tech Badge */
.ai-tech-badge {
    display: inline-block;
    background-color: #334155;
    color: #d8b4fe;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: default;
}

.ai-tech-badge:hover {
    background-color: #475569;
}

/* Metric Item */
.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: rgba(15, 23, 42, 0.5);
    padding: 1rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    height: 100%;
    min-height: 120px;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e879f9;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    word-break: break-word;
    max-width: 100%;
}

.metric-label {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
    max-width: 100%;
}

@media (min-width: 640px) {
    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.875rem;
    }
}

@media (min-width: 1024px) {
    .metric-value {
        font-size: 1.75rem;
    }
}

/* AI Code Block */
.ai-code-block {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.875rem;
    margin: 1rem 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.ai-code-block code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.ai-code-comment {
    color: #64748b;
}

.ai-code-keyword {
    color: #c084fc;
}

.ai-code-string {
    color: #86efac;
}

.ai-code-function {
    color: #60a5fa;
}

.ai-code-number {
    color: #ef4444;
}

.ai-code-variable {
    color: #fb923c;
}

/* Grid Layouts for AI Modal */
.ai-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .ai-main-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }

    /* Only apply grid column spans on large screens */
    .ai-grid-1 {
        grid-column: span 1;
    }

    .ai-grid-2 {
        grid-column: span 2;
    }

    .ai-grid-3 {
        grid-column: span 3;
    }

    .ai-grid-5 {
        grid-column: span 5;
    }
}