/* ==========================================
   Andrea Natali | Portfolio Design System
   ========================================== */

/* --- CSS VARIABLES & TOKENS --- */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(31, 41, 55, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Brand Accent Colors */
    --color-primary: #3b82f6; /* Blue (Civic Alert) */
    --color-primary-glow: rgba(59, 130, 246, 0.35);
    
    --color-red: #ef4444; /* Red (WebTV) */
    --color-red-glow: rgba(239, 68, 68, 0.35);
    
    --color-green: #10b981; /* Green (Eco Bus) */
    --color-green-glow: rgba(16, 185, 129, 0.35);
    
    --color-purple: #8b5cf6; /* Purple (KeyLight) */
    --color-purple-glow: rgba(139, 92, 246, 0.35);
    
    --color-gold: #f59e0b; /* Gold (Awards/Points) */
    
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.15s ease;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Overlay & Gradient */
.bg-gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

ul {
    list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* ==========================================
   LAYOUT & HEADER
   ========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--color-primary);
}

.nav-menu ul {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 9999px;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* --- MAIN CONTENT AREA --- */
.main-content {
    max-width: 1200px;
    margin: 6.5rem auto 4rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 15rem);
}

/* Page Section Base */
.page-section {
    display: none; /* Controlled by Router */
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-section.active {
    display: block;
}

/* ==========================================
   COMPONENTS & UTILITIES
   ========================================== */

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-green {
    background: var(--color-green);
    color: white;
    box-shadow: 0 4px 14px var(--color-green-glow);
}

.btn-green:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn-blue {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-blue:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.btn-purple {
    background: var(--color-purple);
    color: white;
    box-shadow: 0 4px 14px var(--color-purple-glow);
}

.btn-purple:hover {
    background: #7c3aed;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 1rem;
}

.badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    border-color: rgba(16, 185, 129, 0.3);
}

.badge.purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    border-color: rgba(139, 92, 246, 0.3);
}

.badge-new {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Section Header styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Lists */
.custom-list {
    margin-top: 1rem;
}

.custom-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.custom-list li i {
    margin-top: 0.25rem;
}

/* Color classes */
.text-red { color: var(--color-red); }
.text-green { color: var(--color-green); }
.text-blue { color: var(--color-primary); }
.text-purple { color: var(--color-purple); }
.text-gold { color: var(--color-gold); }

.margin-top { margin-top: 3rem; }
.margin-top-sm { margin-top: 1.5rem; }
.margin-top-xs { margin-top: 0.75rem; }

/* Grid Layouts */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.grid-2-cols-unequal {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
}

/* Local Video Container */
.local-video-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
}

.local-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ==========================================
   HOME SECTION (HERO & GRID)
   ========================================== */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0 4rem 0;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.typed-text {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-cta-buttons {
    display: flex;
    gap: 1.25rem;
}

/* Floating Card Stack Visuals */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card-stack {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-card {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.floating-card i {
    font-size: 1.25rem;
}

.floating-card.c1 {
    top: 15%;
    left: -5%;
    color: var(--color-purple);
    border-color: var(--color-purple-glow);
    animation: float 6s ease-in-out infinite;
}

.floating-card.c2 {
    top: 45%;
    left: 25%;
    color: var(--color-red);
    border-color: var(--color-red-glow);
    animation: float 6s ease-in-out infinite 2s;
}

.floating-card.c3 {
    top: 75%;
    left: -10%;
    color: var(--color-green);
    border-color: var(--color-green-glow);
    animation: float 6s ease-in-out infinite 4s;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    margin: 4rem 0 3rem 0;
}

.section-divider::before, .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.section-divider span {
    padding: 0 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Projects Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    border: 1px solid transparent;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Visual color highlights on hover */
.project-card[data-target="webtv"]:hover::before {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.05);
}
.project-card[data-target="ecobus"]:hover::before {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}
.project-card[data-target="civicalert"]:hover::before {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.05);
}
.project-card[data-target="keylight"]:hover::before {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.card-image-placeholder {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-wireframe-preview {
    font-size: 5rem;
    color: rgba(16, 185, 129, 0.3);
}

.card-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
}

.card-year.gold {
    color: var(--color-gold);
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.15);
}

.project-card.vincente {
    border-color: rgba(245, 158, 11, 0.25);
}

.card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.project-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--text-primary);
}

/* Custom icon colors on hover */
.project-card[data-target="webtv"]:hover .card-icon { background: rgba(239, 68, 68, 0.15); border-color: var(--color-red); color: var(--color-red); }
.project-card[data-target="ecobus"]:hover .card-icon { background: rgba(16, 185, 129, 0.15); border-color: var(--color-green); color: var(--color-green); }
.project-card[data-target="civicalert"]:hover .card-icon { background: rgba(59, 130, 246, 0.15); border-color: var(--color-primary); color: var(--color-primary); }
.project-card[data-target="keylight"]:hover .card-icon { background: rgba(139, 92, 246, 0.15); border-color: var(--color-purple); color: var(--color-purple); }

.card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-more-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.project-card:hover .card-more-link {
    color: var(--text-primary);
}

/* ==========================================
   WEBTV SECTION
   ========================================== */
.youtube-live-wrapper {
    background: #000;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.video-container-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-container-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-label {
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    background: #111827;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.pulse-dot {
    width: 0.65rem;
    height: 0.65rem;
    background-color: var(--color-red);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-red);
    animation: pulse 1.5s infinite;
}

/* Skills Grid inside Webtv */
.skills-flex {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

.skill-tag-large {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.skill-tag-large i {
    font-size: 1.5rem;
    color: var(--color-red);
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.skill-tag-large h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.skill-tag-large p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Behind the scenes gallery */
.subsection-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    font-size: 0.9rem;
    color: var(--text-primary);
}

.gallery-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-item-text h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.gallery-item-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.stat-highlight {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-red);
    padding: 0.75rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 0.5rem;
    align-self: flex-start;
}

/* ==========================================
   MINI ECO BUS SECTION
   ========================================== */
.specs-list {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.spec-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-val {
    font-weight: 600;
    color: var(--text-primary);
}

/* Bus Interactive Blueprint CSS */
.bus-visualizer-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.bus-canvas {
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255,255,255,0.05);
    border-radius: 0.75rem;
}

.bus-chassis {
    width: 380px;
    height: 120px;
    background: linear-gradient(180deg, #1f2937, #111827);
    border: 2px solid var(--border-hover);
    border-radius: 1.5rem 0.75rem 0.5rem 0.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Windows */
.bus-windows {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 35px;
    display: flex;
    gap: 8px;
}

.bus-windows::before {
    content: '';
    flex-grow: 1;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 0.25rem;
}

/* Hotspots */
.bus-hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.bus-hotspot span {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(11, 15, 25, 0.9);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition-quick);
}

.bus-hotspot:hover span {
    opacity: 1;
    transform: translateY(0);
}

.hotspot-pulse {
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--color-green);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px var(--color-green);
    position: relative;
}

.hotspot-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.4);
    animation: ripple 1.8s infinite;
}

/* Specific positions */
.solar-roof {
    top: -25px;
    left: 80px;
}

.cabin-space {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cabin-space .hotspot-pulse {
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}
.cabin-space .hotspot-pulse::after {
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.4);
}

.battery-pack {
    bottom: -15px;
    left: 120px;
}

.battery-pack .hotspot-pulse {
    background-color: var(--color-purple);
    box-shadow: 0 0 10px var(--color-purple);
}
.battery-pack .hotspot-pulse::after {
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.4);
}

/* Wheels */
.wheel {
    position: absolute;
    bottom: -20px;
    width: 42px;
    height: 42px;
    background: radial-gradient(circle, #374151 30%, #111827 70%);
    border: 4px dashed #4b5563;
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
}

.front-wheel { left: 50px; }
.rear-wheel { right: 50px; }

/* Info panel */
.info-bubble {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    margin-top: 1rem;
    transition: var(--transition-quick);
}

.info-bubble h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-bubble p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   CIVIC ALERT SECTION
   ========================================== */
.victory-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.victory-badge-img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.victory-photo-container {
    width: 100%;
    margin-top: 1.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    aspect-ratio: 16 / 9;
}

.victory-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.victory-photo:hover {
    transform: scale(1.03);
}

/* Phone Simulator styling */
.phone-simulator-pane {
    display: flex;
    justify-content: center;
    align-items: center;
}

.smartphone-wrapper {
    perspective: 1000px;
}

.smartphone-case {
    width: 290px;
    height: 580px;
    background: #1e293b;
    border: 10px solid #0f172a;
    border-radius: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.phone-speaker {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: #0f172a;
    border-radius: 4px;
    z-index: 20;
}

.phone-screen {
    flex-grow: 1;
    background: #0b0f19;
    margin: 15px 5px 15px 5px;
    border-radius: 1.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-home-btn {
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 4px;
    background: #475569;
    border-radius: 2px;
    z-index: 20;
}

/* Smartphone App Styles */
.app-header {
    background: #111827;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
}

.app-logo {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-primary);
}

.user-points-display {
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.app-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.85rem;
    position: relative;
}

/* Scrollbar for app */
.app-body::-webkit-scrollbar {
    width: 3px;
}
.app-body::-webkit-scrollbar-track {
    background: transparent;
}
.app-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 9999px;
}

.app-screen {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeIn 0.3s ease forwards;
}

.app-screen.active {
    display: flex;
}

.screen-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-intro-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* FAST alert widget elements */
.fast-alert-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fast-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.fast-btn i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.fast-btn span {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
}

.fast-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Active pressing state */
.fast-btn:active {
    transform: scale(0.95);
    background: rgba(59, 130, 246, 0.2);
}

.divider-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 0.5rem 0 1rem 0;
    position: relative;
}

.divider-text::before, .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: rgba(255,255,255,0.05);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* Form inside app */
#manual-alert-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#manual-alert-form input, #manual-alert-form select, #manual-alert-form textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    padding: 0.45rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.75rem;
}

#manual-alert-form input:focus, #manual-alert-form select:focus, #manual-alert-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.range-sliders {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.range-sliders label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.range-sliders input[type="range"] {
    padding: 0;
    cursor: pointer;
}

.app-btn-submit {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.35rem;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-quick);
    margin-top: 0.25rem;
}

.app-btn-submit:hover {
    background: #2563eb;
}

/* App Screen 2: Map and Feed */
.simulated-map {
    height: 110px;
    background: #1f2937;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-bg {
    width: 100%;
    height: 100%;
    background-color: #111827;
    background-image: radial-gradient(circle, #374151 1px, transparent 1px);
    background-size: 12px 12px;
    position: relative;
}

.map-marker {
    position: absolute;
    color: var(--color-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.map-marker:hover {
    transform: scale(1.2);
    color: white;
}

.map-marker.m1 { top: 30%; left: 20%; color: var(--color-red); }
.map-marker.m2 { top: 60%; left: 70%; color: var(--color-green); }
.map-marker.m3 { top: 15%; left: 60%; color: var(--color-gold); }

.map-tooltip {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6rem;
    text-align: center;
    color: var(--text-secondary);
}

.feed-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feed-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
}

.feed-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.feed-item-cat {
    font-weight: 600;
    color: var(--color-primary);
}

.feed-item h4 {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
}

.feed-item p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* App Screen 3: Rewards */
.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reward-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-details h4 {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
}

.reward-details p {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.reward-cost {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gold);
}

.btn-redeem {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--color-gold);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.btn-redeem:hover {
    background: var(--color-gold);
    color: white;
}

/* App Screen 4: Profile */
.app-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.user-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-green);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-desc {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* App Bottom Navigation */
.app-nav {
    height: 50px;
    background: #111827;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-quick);
}

.app-nav-item i {
    font-size: 0.95rem;
}

.app-nav-item span {
    font-size: 0.55rem;
    font-weight: 500;
}

.app-nav-item.active {
    color: var(--color-primary);
}

/* DB Visualizer styling */
.db-visualizer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.db-table {
    width: 100%;
    background: #111827;
    border: 1px solid var(--border-hover);
    border-radius: 0.5rem;
    overflow: hidden;
}

.db-table-header {
    background: rgba(59, 130, 246, 0.15);
    border-bottom: 1px solid var(--border-hover);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.db-table-rows {
    padding: 0.5rem 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.db-table-rows div {
    display: flex;
    justify-content: space-between;
}

.db-key {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.7rem;
}

.db-type {
    color: var(--text-muted);
}

.db-relation-line {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}

/* ==========================================
   KEYLIGHT SECTION
   ========================================== */

/* Competitors Table */
.competitors-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.competitors-table th, .competitors-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.competitors-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
}

.competitors-table td.highlight-col, .competitors-table th.highlight-col {
    color: var(--color-purple);
    font-weight: 600;
    background: rgba(139, 92, 246, 0.05);
}

/* RGB Simulator Styling */
.rgb-panel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.rgb-profile-selectors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rgb-profile-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-quick);
}

.rgb-profile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Active glows for profile buttons */
.rgb-profile-btn.active[data-profile="rainbow"] {
    border-color: var(--color-purple);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    color: var(--color-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.rgb-profile-btn.active[data-profile="fps"] {
    border-color: var(--color-red);
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.rgb-profile-btn.active[data-profile="moba"] {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.rgb-profile-btn.active[data-profile="stealth"] {
    border-color: var(--color-gold);
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-gold);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Keyboard Mockup Grid */
.keyboard-mockup {
    background: #111827;
    border: 4px solid #1f2937;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.keyboard-row {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.key {
    width: 32px;
    height: 32px;
    background: #1f2937;
    border-radius: 0.25rem;
    border-bottom: 3px solid #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    user-select: none;
    transition: all 0.2s ease;
}

.key.space { width: 120px; }
.key.shift { width: 50px; }
.key.esc { width: 38px; }

/* Monitor backglow visualizer */
.ambient-glow-indicator {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.glow-monitor-back {
    width: 180px;
    height: 80px;
    background: #1f2937;
    border: 3px solid #374151;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.glow-light-left, .glow-light-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.65;
    z-index: 1;
    transition: var(--transition-smooth);
}

.glow-light-left { left: 15%; }
.glow-light-right { right: 15%; }

/* --- RGB Dynamic Classes (Applied via JS) --- */

/* 1. Rainbow Wave Profile */
.profile-rainbow .key {
    animation: keyRainbowWave 4s infinite linear;
}
.profile-rainbow .glow-light-left, .profile-rainbow .glow-light-right {
    animation: glowRainbow 8s infinite linear;
}

/* 2. FPS Profile (Red theme, WASD highlighting) */
.profile-fps .key {
    background: #1f2937;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.profile-fps #key-w, .profile-fps #key-a, .profile-fps #key-s, .profile-fps #key-d {
    background: var(--color-red);
    color: white;
    box-shadow: 0 0 8px var(--color-red);
    text-shadow: 0 0 2px black;
}
.profile-fps .glow-light-left, .profile-fps .glow-light-right {
    background-color: var(--color-red);
    opacity: 0.8;
    animation: pulseRed 2s infinite ease-in-out;
}

/* 3. MOBA Profile (Blue theme, QWER and Spell CDs) */
.profile-moba .key {
    background: #111827;
}
.profile-moba #key-q, .profile-moba #key-w, .profile-moba #key-e, .profile-moba #key-r {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 8px var(--color-primary);
}
.profile-moba #key-d, .profile-moba #key-f {
    background: var(--color-gold);
    color: white;
    box-shadow: 0 0 8px var(--color-gold);
}
.profile-moba .glow-light-left, .profile-moba .glow-light-right {
    background-color: var(--color-primary);
    opacity: 0.7;
}

/* 4. Stealth Profile (Warm Amber theme, breathing) */
.profile-stealth .key {
    background: #111827;
    animation: keyBreatheAmber 4s infinite ease-in-out;
}
.profile-stealth .glow-light-left, .profile-stealth .glow-light-right {
    background-color: var(--color-gold);
    opacity: 0.35;
    animation: glowBreatheAmber 4s infinite ease-in-out;
}

/* ==========================================
   FOOTER
   ========================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.95);
    padding: 2.5rem 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px var(--color-red);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
        box-shadow: 0 0 16px var(--color-red);
    }
}

@keyframes ripple {
    0% { box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.4); }
    100% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* RGB Keyboard Animations */
@keyframes keyRainbowWave {
    0% { background: #3b82f6; box-shadow: 0 0 4px #3b82f6; }
    25% { background: #8b5cf6; box-shadow: 0 0 4px #8b5cf6; }
    50% { background: #ef4444; box-shadow: 0 0 4px #ef4444; }
    75% { background: #10b981; box-shadow: 0 0 4px #10b981; }
    100% { background: #3b82f6; box-shadow: 0 0 4px #3b82f6; }
}

@keyframes glowRainbow {
    0% { background-color: #3b82f6; }
    25% { background-color: #8b5cf6; }
    50% { background-color: #ef4444; }
    75% { background-color: #10b981; }
    100% { background-color: #3b82f6; }
}

@keyframes pulseRed {
    0%, 100% { opacity: 0.6; filter: blur(25px); }
    50% { opacity: 0.9; filter: blur(20px); }
}

@keyframes keyBreatheAmber {
    0%, 100% { background: #111827; box-shadow: none; }
    50% { background: rgba(245, 158, 11, 0.25); box-shadow: 0 0 4px var(--color-gold); color: white; }
}

@keyframes glowBreatheAmber {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.55; }
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .floating-card-stack {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    
    .floating-card.c1 { top: 0; left: 0; }
    .floating-card.c2 { top: 35%; left: 35%; }
    .floating-card.c3 { top: 70%; left: 5%; }

    .grid-2-cols-unequal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 4.5rem);
        background: #0b0f19;
        border-top: 1px solid var(--border-color);
        transition: var(--transition-smooth);
        padding: 2rem;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.15rem;
        padding: 0.75rem 2rem;
    }
    
    .main-content {
        padding: 0 1.25rem;
        margin-top: 5.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .bus-canvas {
        overflow-x: auto;
    }
    
    .bus-chassis {
        transform: scale(0.8);
    }
}

/* Custom Styles for WebTV Logo in Card */
.webtv-card-logo {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

/* Custom Styles for Database ER Diagram */
.db-er-diagram-container {
    width: 100%;
    margin-top: 1.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.db-er-diagram {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    cursor: pointer;
    transition: var(--transition-smooth);
}

.db-er-diagram:hover {
    transform: scale(1.01);
    filter: drop-shadow(0 6px 15px rgba(59, 130, 246, 0.25));
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.96);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-quick);
    z-index: 2010;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.lightbox-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.lightbox-content-wrapper {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

.lightbox-content-wrapper:active {
    cursor: grabbing;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}
