:root {
    --bg-base: #FFFFFF;
    --surface: #F8F9FA;
    --surface-hover: #F1F3F5;
    --primary-accent: #2B2B2B; /* Dark slate for high contrast */
    --secondary-accent: #FF9EBB; /* Light Pink */
    --text-primary: #111111;
    --text-secondary: #555555;
    --border-color: #E5E7EB;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Boot Up Loader */
.loader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #FFF; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }

/* Floating Ambient Glows */
.ambient-glow { position: fixed; border-radius: 50%; filter: blur(100px); opacity: 0.5; z-index: -1; animation: floatGlow 15s infinite alternate ease-in-out; pointer-events: none; }
.glow-1 { width: 500px; height: 500px; background: rgba(255, 20, 147, 0.15); top: -100px; left: -100px; }
.glow-2 { width: 600px; height: 600px; background: rgba(255, 182, 193, 0.15); bottom: -100px; right: -100px; animation-delay: -5s; }
@keyframes floatGlow { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 50px) scale(1.1); } }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3 { font-family: var(--font-heading); }

.glass-panel {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Layout */
.app-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 280px; height: 100vh; position: fixed;
    border-radius: 0; border-top: none; border-bottom: none; border-left: none;
    padding: 2rem 0; display: flex; flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.logo-container {
    padding: 0 2rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem;
}

.logo-icon { color: var(--secondary-accent); }
.logo-text {
    font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; line-height: 1.2; color: var(--text-primary);
}
.logo-text span {
    font-size: 0.8rem; color: var(--secondary-accent); font-family: var(--font-body); font-weight: 600;
}

.nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; padding: 0 1rem; }
.nav-links li {
    padding: 0.75rem 1rem; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 1rem;
    color: var(--text-secondary); transition: all 0.3s ease; font-weight: 500;
}
.nav-links li:hover { background: var(--surface); color: var(--text-primary); }
.nav-links li.active {
    background: rgba(212, 175, 55, 0.1); color: var(--secondary-accent); border: 1px solid rgba(212, 175, 55, 0.3);
}

.hire-me-btn { margin-top: auto; color: var(--text-primary) !important; border: 1px solid var(--border-color); background: var(--surface); }

/* Main Content Area */
.content-area { margin-left: 280px; padding: 3rem; width: calc(100% - 280px); }
.view-section { display: none; max-width: 1200px; margin: 0 auto; }
.view-section.active { display: block; }
.view-header { margin-bottom: 3rem; }

/* Rotating Header */
.rotating-header-container { height: 80px; position: relative; overflow: hidden; margin-bottom: 1rem; }
.rotating-text { font-size: 3.5rem; font-weight: 800; position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; background: linear-gradient(135deg, #FF0055 0%, #FF1493 25%, #FF00FF 50%, #FF69B4 75%, #FFB6C1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rotating-text.visible { opacity: 1; transform: translateY(0); }
.rotating-text.exit { opacity: 0; transform: translateY(-20px); }
.subtitle { color: var(--text-secondary); font-size: 1.2rem; }

/* Project Miniatures */
.miniatures-grid { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; }
.miniature-card {
    display: flex; justify-content: space-between; align-items: center;    padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border-radius: 12px; cursor: pointer; border: 1px solid rgba(255,20,147,0.1);
}
.miniature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(255, 20, 147, 0.15); border-color: rgba(255,20,147,0.3); }
.mini-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.mini-content p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; }
.see-more-btn {
    padding: 1rem 2rem; background: transparent; color: var(--secondary-accent); border: 2px solid var(--secondary-accent);
    border-radius: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s;
}
.miniature-card:hover .see-more-btn { background: var(--secondary-accent); color: #FFF; }

/* Small Computer Wrapper */
.small-computer {
    background: #E5E7EB; border-radius: 16px; padding: 1rem; padding-top: 1.5rem; border: 1px solid #D1D5DB;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); margin-top: 2rem; position: relative;
}
.small-computer::before {
    content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background: #9CA3AF; border-radius: 50%;
}
.small-computer-screen {
    background: #0D0E12; border-radius: 8px; overflow: hidden; position: relative; width: 100%; height: calc(100vh - 220px); min-height: 450px;
}

/* -------------------------------------------------------------
   COMPLEX DASHBOARD REPLICA UI (Dark Mode inside Small Computer)
   ------------------------------------------------------------- */
.complex-dashboard {
    width: 100%; height: 100%; background: #0F1218; color: #FFFFFF; font-family: 'Inter', sans-serif;
    display: flex; overflow: hidden;
}

/* Dashboard Sidebar */
.dash-sidebar {
    width: 220px; background: #13171F; border-right: 1px solid #222834; padding: 1.5rem;
    display: flex; flex-direction: column;
}
.dash-logo {
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2.5rem;
}
.dash-logo-icon { width: 30px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #00F0FF, #B026FF); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.dash-logo-text { font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.dash-logo-text span { font-size: 0.7rem; color: #8892B0; font-weight: 400; }

.dash-nav { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.dash-nav li {
    padding: 0.6rem 1rem; border-radius: 6px; color: #8892B0; font-size: 0.9rem; font-weight: 500;
    display: flex; align-items: center; gap: 0.75rem; cursor: pointer; transition: all 0.2s;
}
.dash-nav li:hover { background: #1C222E; color: #FFFFFF; }
.dash-nav li.active { background: #1A2735; color: #00F0FF; border: 1px solid rgba(0, 240, 255, 0.2); }

/* Dashboard Main */
.dash-main { flex: 1; padding: 2rem; overflow-y: auto; background: radial-gradient(circle at top right, rgba(0,240,255,0.02), transparent 40%); }
.dash-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.dash-header-title h2 { font-size: 1rem; color: #8892B0; font-weight: 500; margin-bottom: 0.25rem; }
.dash-header-title h1 { font-size: 2rem; color: #FFFFFF; font-family: 'Outfit', sans-serif; }
.dash-header-subtitle { color: #8892B0; font-size: 0.85rem; margin-top: 0.25rem; }

.dash-metrics { display: flex; gap: 2rem; }
.dash-metric { border-left: 2px solid #222834; padding-left: 1rem; }
.dash-metric-title { font-size: 0.75rem; color: #8892B0; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.dash-metric-val { font-size: 1.8rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.5rem; }
.dash-metric-trend { font-size: 0.85rem; color: #39FF14; font-weight: 500; }

/* Dashboard Cards Grid */
.dash-grid-top { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.dash-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.dash-card {
    background: #171C25; border: 1px solid #222834; border-radius: 12px; padding: 1.25rem;
    position: relative; overflow: hidden;
}
.dash-card::before { content:''; position: absolute; top:0; left:0; width: 100%; height: 2px; }
.card-cyan::before { background: #00F0FF; box-shadow: 0 0 10px #00F0FF; }
.card-green::before { background: #39FF14; box-shadow: 0 0 10px #39FF14; }
.card-purple::before { background: #B026FF; box-shadow: 0 0 10px #B026FF; }

.dc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dc-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.dc-icon svg { width: 16px; height: 16px; }
.card-cyan .dc-icon { background: rgba(0,240,255,0.1); color: #00F0FF; border: 1px solid rgba(0,240,255,0.2); }
.card-green .dc-icon { background: rgba(57,255,20,0.1); color: #39FF14; border: 1px solid rgba(57,255,20,0.2); }
.card-purple .dc-icon { background: rgba(176,38,255,0.1); color: #B026FF; border: 1px solid rgba(176,38,255,0.2); }

.dc-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.dc-stats { display: flex; justify-content: space-between; font-size: 0.8rem; color: #8892B0; margin-bottom: 0.5rem; }
.dc-stats span.active { color: #39FF14; }
.dc-progress { height: 4px; background: #222834; border-radius: 2px; overflow: hidden; }
.dc-progress-fill { height: 100%; border-radius: 2px; }
.card-cyan .dc-progress-fill { background: #00F0FF; }
.card-green .dc-progress-fill { background: #39FF14; }
.card-purple .dc-progress-fill { background: #B026FF; }

/* Dashboard Graph Area */
.dash-graph { background: #171C25; border: 1px solid #222834; border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; }
.dg-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.dg-title { font-size: 0.8rem; color: #8892B0; text-transform: uppercase; letter-spacing: 1px; }
.dg-val { font-size: 0.9rem; color: #00F0FF; font-weight: 600; }
.dg-chart-mock { flex: 1; border-bottom: 1px solid #222834; border-left: 1px solid #222834; position: relative; margin-top: 1rem; }
.dg-line { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,<svg preserveAspectRatio="none" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 Q25,20 50,50 T100,10" fill="none" stroke="%23B026FF" stroke-width="2"/><path d="M0,90 Q25,40 50,70 T100,30" fill="none" stroke="%2300F0FF" stroke-width="2"/></svg>') no-repeat; background-size: 100% 100%; }

/* Dashboard Bottom Pipeline */
.dash-pipeline { background: #171C25; border: 1px solid #222834; border-radius: 12px; padding: 1.5rem; }
.dp-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.dp-header-icon { color: #00F0FF; }
.dp-header-title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

.dp-flow { display: flex; align-items: center; justify-content: space-between; }
.dp-node { background: #1E2430; border: 1px solid #2D3646; border-radius: 8px; padding: 1rem; width: 18%; text-align: center; position: relative; }
.dp-node-title { font-size: 0.75rem; color: #8892B0; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.dp-node-val { font-size: 1.5rem; font-weight: 700; color: #00F0FF; margin-bottom: 0.5rem; }
.dp-node-stats { font-size: 0.7rem; color: #8892B0; display: flex; flex-direction: column; gap: 0.2rem; }
.dp-node-stats span { display: flex; justify-content: space-between; }
.dp-node-stats strong { color: #FFF; }
.dp-connector { flex: 1; height: 2px; background: #2D3646; position: relative; }
.dp-connector::after { content: ''; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; background: #00F0FF; border-radius: 50%; box-shadow: 0 0 10px #00F0FF; }

/* Case Study */
.case-study { margin-top: 4rem; padding: 3rem; border-top: 1px solid var(--border-color); }
.case-study h3 { font-size: 2.5rem; color: var(--secondary-accent); margin-bottom: 2rem; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.cs-block h4 { color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.cs-block p { color: var(--text-secondary); line-height: 1.8; }

.hidden { display: none !important; }
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Modals & Forms */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal.active { opacity: 1; pointer-events: all; }
.modal-content { width: 500px; padding: 3rem; background: #FFF; border-radius: 12px; }
.input-field { width: 100%; background: #F8F9FA; border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.75rem 1rem; border-radius: 6px; font-family: var(--font-body); margin-bottom: 1rem; }
.btn-primary { background: var(--secondary-accent); color: #FFF; border: none; padding: 0.75rem 2rem; border-radius: 6px; font-weight: 700; cursor: pointer; transition: transform 0.2s; }
.btn-primary:hover { transform: translateY(-2px); }

/* Inner Views Logic */
.inner-view { display: none; animation: fadeIn 0.3s ease-out forwards; }
.inner-view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Inner View Components (Dark Theme) */
.dash-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.dash-table th { text-align: left; padding: 1rem; color: #8892B0; border-bottom: 1px solid #222834; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.dash-table td { padding: 1rem; border-bottom: 1px solid #1C222E; font-size: 0.9rem; }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-active { background: rgba(57,255,20,0.1); color: #39FF14; }
.status-idle { background: rgba(136,146,176,0.1); color: #8892B0; }
.status-error { background: rgba(255,51,102,0.1); color: #FF3366; }

.dash-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1rem; }
.dash-gallery-item { background: #171C25; border: 1px solid #222834; border-radius: 12px; overflow: hidden; }
.dash-gallery-img { width: 100%; height: 150px; background: #2D3646; display: flex; align-items: center; justify-content: center; color: #8892B0; font-family: var(--font-mono); }
.dash-gallery-content { padding: 1rem; font-size: 0.85rem; color: #FFF; }

.dash-queue { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.queue-item { background: #171C25; border: 1px solid #222834; border-radius: 8px; padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
.queue-info h4 { color: #FFF; font-size: 0.95rem; margin-bottom: 0.25rem; }
.queue-info p { color: #8892B0; font-size: 0.8rem; font-family: var(--font-mono); }

.dash-form { max-width: 600px; margin-top: 1rem; }
.dash-input { width: 100%; background: #171C25; border: 1px solid #222834; color: #FFF; padding: 0.75rem 1rem; border-radius: 6px; font-family: var(--font-mono); margin-bottom: 1.5rem; }
.dash-input:focus { outline: none; border-color: #00F0FF; }
.dash-label { display: block; color: #8892B0; font-size: 0.85rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* -------------------------------------------------------------
   CASE STUDY MISSION REPORT
   ------------------------------------------------------------- */
.cs-section-title {
    font-size: 2.5rem; font-weight: 800; color: #0D0E12; text-align: center; margin-bottom: 2rem; position: relative;
    transition: all 0.3s ease; cursor: default;
}
.cs-section-title:hover {
    color: #FF1493; text-shadow: 0 0 20px rgba(255, 20, 147, 0.3); transform: scale(1.02);
}

.cs-container { display: flex; flex-direction: column; gap: 2rem; margin-top: 4rem; }
.cs-hero {
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); border-radius: 16px; padding: 3rem 2rem; 
    border: 1px solid rgba(255, 20, 147, 0.15); text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}
.cs-hero::before {
    content: ''; position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 150px; background: rgba(255, 20, 147, 0.15); filter: blur(60px); z-index: 0; pointer-events: none;
}
.cs-hero-title { font-size: 2.2rem; font-weight: 800; color: #0D0E12; position: relative; z-index: 1; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.cs-hero-subtitle { color: #6B7280; font-size: 1.2rem; position: relative; z-index: 1; font-weight: 500; }

.cs-metrics {
    display: flex; gap: 1.5rem; margin-top: 2.5rem; position: relative; z-index: 1; justify-content: center; flex-wrap: wrap;
}
.cs-metric-box {
    background: #FFFFFF; border: 1px solid rgba(255, 20, 147, 0.1); border-radius: 12px; padding: 1.5rem; min-width: 200px; flex: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-metric-box:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255, 20, 147, 0.08);
}
.cs-metric-val { font-size: 3rem; font-weight: 800; color: #FF1493; margin-bottom: 0.2rem; line-height: 1; }
.cs-metric-label { font-size: 0.9rem; color: #6B7280; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.cs-toggle-container {
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid rgba(255, 20, 147, 0.15); overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}
.cs-toggle-header { display: flex; border-bottom: 1px solid rgba(255, 20, 147, 0.1); }
.cs-toggle-btn {
    flex: 1; padding: 1.5rem; text-align: center; font-weight: 700; color: #9CA3AF; cursor: pointer; transition: all 0.3s ease;
    background: transparent; border: none; outline: none; font-size: 1.1rem;
}
.cs-toggle-btn:hover { color: #FF1493; background: rgba(255, 20, 147, 0.02); }
.cs-toggle-btn.active { color: #FF1493; background: rgba(255, 20, 147, 0.05); border-bottom: 3px solid #FF1493; }

.cs-toggle-body { padding: 3rem; }
.cs-toggle-content { display: none; color: #4B5563; line-height: 1.8; font-size: 1.15rem; }
.cs-toggle-content.active { display: block; animation: fadeIn 0.5s ease forwards; }

.cs-cta-box {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.05), rgba(255, 0, 85, 0.02)); border: 1px solid rgba(255, 20, 147, 0.2);
    border-radius: 16px; padding: 3rem; text-align: center; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(255, 20, 147, 0.05);
}
.cs-cta-box h3 { color: #0D0E12; font-size: 1.8rem; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.cs-cta-btn {
    background: #FF1493; color: #FFF; padding: 1rem 2.5rem; border-radius: 8px; font-weight: 700; font-size: 1.2rem;
    border: none; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}
.cs-cta-btn:hover { background: #FF0055; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 20, 147, 0.6); }

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

/* -------------------------------------------------------------
   INTERACTIVE STORY CARDS
   ------------------------------------------------------------- */
.story-cards-container {
    display: flex; gap: 1.5rem; margin-top: 1.5rem; margin-bottom: 2rem; width: 100%; max-width: 900px; margin-left: auto; margin-right: auto;
}
.story-card {
    flex: 1; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 20, 147, 0.1); border-radius: 12px; padding: 1.5rem;
    cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; height: 80px; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.story-card:hover, .story-card.open {
    height: 250px; box-shadow: 0 15px 35px rgba(255, 20, 147, 0.15); border-color: rgba(255, 20, 147, 0.3);
    transform: translateY(-5px); background: rgba(255, 255, 255, 0.9);
}
.story-card-header {
    display: flex; align-items: center; gap: 0.75rem; font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
}
.story-card-icon {
    color: #FF1493; display: flex; align-items: center; justify-content: center;
}
.story-card-content {
    margin-top: 1rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6;
    opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}
.story-card:hover .story-card-content, .story-card.open .story-card-content {
    opacity: 1; transform: translateY(0);
}

/* -------------------------------------------------------------
   MOBILE RESPONSIVENESS
   ------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Global Layout */
    .app-container { flex-direction: column; overflow-y: auto; height: 100%; }
    .sidebar { width: 100%; padding: 1rem; border-right: none; border-bottom: 1px solid var(--border-color); }
    .logo-container { margin-bottom: 0; text-align: left; display: flex; align-items: center; gap: 1rem; }
    .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
    .nav-links li { margin-bottom: 0; padding: 0.5rem 0.75rem; font-size: 0.85rem; flex: 1 1 calc(50% - 0.5rem); text-align: center; justify-content: center; }
    .content-area { overflow-y: visible; padding: 1rem; }

    /* Main Page Elements */
    .rotating-header-container { height: 100px; }
    .rotating-text { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    .miniatures-grid { grid-template-columns: 1fr; }
    
    /* Interactive Story Cards Mobile */
    .story-cards-container { flex-direction: column; }
    .story-card { height: auto; }
    .story-card-content { opacity: 1; transform: translateY(0); }
    .story-card:hover, .story-card.open { height: auto; transform: translateY(-3px); }

    /* Small Computer Wrapper */
    .small-computer { margin-top: 1rem; padding: 0.5rem; border-radius: 12px; }
    .small-computer-screen { height: auto; min-height: 600px; border-width: 4px; overflow-y: auto; }

    /* Inner Dark Dashboard Layout */
    .complex-dashboard { flex-direction: column; overflow-y: visible; }
    .dash-sidebar { width: 100%; border-right: none; border-bottom: 1px solid #222834; padding: 1rem; }
    .dash-logo { margin-bottom: 1rem; }
    .dash-nav { display: flex; overflow-x: auto; white-space: nowrap; gap: 0.5rem; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; }
    .dash-nav li { margin-bottom: 0; padding: 0.5rem 1rem; font-size: 0.85rem; }
    
    /* Inner Dash Content */
    .dash-main { padding: 1rem; }
    .dash-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .dash-metrics { width: 100%; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
    .dash-metric { flex: 1 1 calc(50% - 1rem); }
    
    .dash-grid-top { flex-direction: column; }
    .dash-cards-row { flex-direction: column; gap: 1rem; }
    .dash-graph { margin-top: 1rem; }
    
    .dash-gallery { grid-template-columns: 1fr; }
    .dash-table th, .dash-table td { padding: 0.75rem 0.5rem; font-size: 0.8rem; }
    
    /* Pipeline Nodes */
    .dp-flow { flex-direction: column; align-items: stretch; gap: 0; background: #1C222E; padding: 1rem; border-radius: 8px; }
    .dp-node { width: 100%; flex: none; text-align: left; display: flex; justify-content: space-between; align-items: center; }
    .dp-node-title { margin-bottom: 0; }
    .dp-connector { width: 2px; height: 20px; background: #39FF14; margin: 0.5rem 0 0.5rem 1rem; flex: none; }
}
