/* ==========================================================================
   SHUBHAM ARORA - DATA ARCHITECT PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Colors */
    --bg-base: #060913;
    --bg-surface: rgba(13, 20, 38, 0.45);
    --bg-surface-solid: #0d1426;
    --bg-surface-hover: rgba(22, 33, 62, 0.7);
    
    --cyan: #00f5d4;
    --cyan-glow: rgba(0, 245, 212, 0.35);
    --cyan-dim: rgba(0, 245, 212, 0.1);
    
    --teal: #00bbf9;
    --teal-glow: rgba(0, 187, 249, 0.35);
    --teal-dim: rgba(0, 187, 249, 0.1);
    
    --emerald: #06d6a0;
    --emerald-glow: rgba(6, 214, 160, 0.3);
    
    --gold: #f77f00;
    --gold-glow: rgba(247, 127, 0, 0.3);
    
    --red: #ef476f;
    --red-glow: rgba(239, 71, 111, 0.3);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(0, 245, 212, 0.15);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* FX */
    --blur: blur(12px);
    --shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base Resets & Defaults --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

/* --- Interactive Canvas Layer --- */
#data-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0c1224 0%, #050811 100%);
}

/* --- Typography & Global Elements --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--cyan); }
.text-teal { color: var(--teal); }
.text-gold { color: var(--gold); }
.text-emerald { color: var(--emerald); }

/* --- UI Buttons & Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-dim) 0%, rgba(0, 187, 249, 0.15) 100%);
    color: var(--cyan);
    border-color: rgba(0, 245, 212, 0.3);
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.05);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 100%);
    color: #030712;
    border-color: var(--cyan);
    box-shadow: 0 0 25px var(--cyan-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.05);
    color: var(--text-primary);
    border-color: rgba(148, 163, 184, 0.15);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 245, 212, 0.06);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cyan);
    letter-spacing: 0.03em;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--cyan);
    animation: heartbeat 2s infinite;
}

/* Glassmorphism Panel styles */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    margin: 0 auto 1.5rem;
    border-radius: 20px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* --- Header / Navigation --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

#site-header.scrolled {
    height: 70px;
    background: rgba(5, 7, 15, 0.9);
    border-bottom-color: rgba(0, 245, 212, 0.15);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.logo-node {
    width: 12px;
    height: 12px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    position: relative;
}

.logo-node::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid rgba(0, 245, 212, 0.4);
    border-radius: 50%;
    animation: rotate-slow 6s linear infinite;
}

.logo-text span {
    font-weight: 300;
    color: var(--text-secondary);
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--cyan);
}

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

.btn-connect-nav {
    color: var(--cyan) !important;
    border: 1px solid rgba(0, 245, 212, 0.25);
    padding: 0.4rem 1rem !important;
    border-radius: 6px;
    background: rgba(0, 245, 212, 0.05);
}

.btn-connect-nav::after {
    display: none;
}

.btn-connect-nav:hover {
    background: rgba(0, 245, 212, 0.15) !important;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
}

.nav-social {
    display: flex;
    align-items: center;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: var(--cyan-dim);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 25%;
    right: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.08) 0%, rgba(0, 187, 249, 0.03) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#hero-badge {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

/* Live Operational Metrics Dashboard Card */
.hero-dashboard {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.hero-dashboard:hover {
    border-color: rgba(0, 245, 212, 0.35);
    box-shadow: 0 25px 60px rgba(0, 245, 212, 0.06);
}

.dashboard-header {
    background: rgba(13, 20, 38, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-dots {
    display: flex;
    gap: 6px;
}

.dashboard-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.dashboard-dots span:nth-child(1) { background-color: var(--red); }
.dashboard-dots span:nth-child(2) { background-color: var(--gold); }
.dashboard-dots span:nth-child(3) { background-color: var(--emerald); }

.dashboard-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.metric-card {
    padding: 1.8rem 1.5rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.metric-card:nth-child(even) {
    border-right: none;
}

.metric-card:nth-child(n+3) {
    border-bottom: none;
}

.metric-card:hover {
    background: rgba(0, 245, 212, 0.02);
}

.metric-icon {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

#val-scale { color: var(--cyan); text-shadow: 0 0 15px var(--cyan-glow); }
#val-volume { color: var(--teal); text-shadow: 0 0 15px var(--teal-glow); }
#val-sla { color: var(--emerald); text-shadow: 0 0 15px rgba(6, 214, 160, 0.2); }
#val-cost { color: var(--gold); text-shadow: 0 0 15px var(--gold-glow); }

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.dashboard-footer {
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(6, 9, 19, 0.5);
}

.status-indicator-glow {
    width: 6px;
    height: 6px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--emerald);
    animation: blink 2.5s infinite;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* Scroll indicator */
.scroll-prompt {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scroll-prompt:hover {
    color: var(--cyan);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 20px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-indicator 1.8s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --- Philosophy / Focus Pillars --- */
.philosophy-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    margin-top: 2rem;
}

.pillar-card {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2.2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.pillar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(148, 163, 184, 0.03) 0%, rgba(0,0,0,0) 80%);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 212, 0.25);
    box-shadow: 0 15px 35px rgba(0, 245, 212, 0.04);
}

.pillar-card:hover .pillar-glow {
    background: radial-gradient(circle at 10% 10%, var(--cyan-dim) 0%, rgba(0,0,0,0) 80%);
}

.pillar-icon {
    margin-bottom: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    border-color: var(--cyan);
    background: var(--cyan-dim);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Simulators Section --- */
.simulators-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.simulator-wrapper {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    margin-top: 1rem;
}

/* Tabs Bar */
.simulator-tabs {
    display: flex;
    background: rgba(6, 9, 19, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.sim-tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    position: relative;
}

.sim-tab-btn:last-child {
    border-right: none;
}

.tab-icon {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.tab-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 0.4rem;
}

.sim-tab-btn:hover {
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.02);
}

.sim-tab-btn.active {
    color: var(--text-primary);
    background: rgba(13, 20, 38, 0.35);
}

.sim-tab-btn.active .tab-icon {
    color: var(--cyan);
    filter: drop-shadow(0 0 5px var(--cyan-glow));
}

.sim-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    box-shadow: 0 -2px 10px var(--cyan);
}

/* Tab Panels Layout */
.simulator-display {
    padding: 3rem;
}

.simulator-panel {
    display: none;
    grid-template-columns: 1fr 1.3fr;
    gap: 3.5rem;
    align-items: center;
}

.simulator-panel.active {
    display: grid;
}

.panel-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.info-alert {
    padding: 1.2rem;
    background: rgba(247, 127, 0, 0.05);
    border: 1px solid rgba(247, 127, 0, 0.2);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-alert strong {
    color: var(--gold);
    font-weight: 600;
}

.info-metrics-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.2rem;
}

.mini-metric {
    display: flex;
    flex-direction: column;
}

.mini-metric .m-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
}

.mini-metric .m-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Compass Lineage Canvas Area --- */
.compass-canvas-container {
    height: 400px;
    background: #03060c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}

.compass-overlay-metric {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(3, 6, 12, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-icon-dot {
    width: 6px;
    height: 6px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--cyan);
}

.alert-icon-dot.warn {
    background-color: var(--gold);
    box-shadow: 0 0 6px var(--gold);
    animation: heartbeat 1s infinite;
}

#lineage-svg {
    width: 100%;
    height: 100%;
}

/* Graph Node Styles */
.node-circle {
    fill: #0c152b;
    stroke: var(--text-muted);
    stroke-width: 2px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.node-g:hover .node-circle {
    stroke: var(--cyan);
    fill: var(--cyan-dim);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.node-g.active .node-circle {
    stroke: var(--cyan);
    fill: var(--cyan-dim);
    filter: url(#glow-filter);
}

.node-g.alert .node-circle {
    stroke: var(--gold);
    fill: rgba(247, 127, 0, 0.1);
}

.node-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    fill: var(--text-secondary);
    transition: var(--transition-smooth);
}

.node-g:hover .node-text, .node-g.active .node-text {
    fill: var(--text-primary);
}

.node-g.alert .node-text {
    fill: var(--gold);
}

.connection-line {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 1.5px;
    transition: var(--transition-smooth);
}

.connection-line.active {
    stroke: url(#line-grad-active);
    stroke-width: 2.5px;
}

.connection-line.alert {
    stroke: url(#line-grad-alert);
    stroke-width: 2.5px;
    stroke-dasharray: 4;
    animation: dash 1s linear infinite;
}

/* --- Data Quality Validation Terminal Area --- */
.pangea-terminal-container {
    height: 400px;
    background: #03060c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: rgba(13, 20, 38, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.term-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.term-status-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.term-status-badge.running {
    background: rgba(0, 187, 249, 0.08);
    border-color: rgba(0, 187, 249, 0.3);
    color: var(--teal);
}

.term-status-badge.success {
    background: rgba(6, 214, 160, 0.08);
    border-color: rgba(6, 214, 160, 0.3);
    color: var(--emerald);
}

.terminal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-line {
    color: var(--text-secondary);
    line-height: 1.45;
}

.term-line.prompt {
    color: var(--cyan);
}

.term-line.info {
    color: var(--teal);
}

.term-line.success {
    color: var(--emerald);
}

.term-line.warn {
    color: var(--gold);
}

.term-line.cursor::after {
    content: '_';
    animation: cursor-blink 1s step-end infinite;
    color: var(--cyan);
}

.terminal-footer {
    background: rgba(6, 9, 19, 0.6);
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(148, 163, 184, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    border-radius: 10px;
    transition: width 0.1s linear;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* --- Blueprint Section --- */
.blueprint-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.blueprint-display {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.blueprint-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blueprint-layer {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.layer-indicator {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.layer-title-area h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.layer-title-area p {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.layer-pulse {
    position: absolute;
    right: 1.5rem;
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-smooth);
    opacity: 0;
}

/* Hover & Active Blueprint Layer States */
.blueprint-layer:hover, .blueprint-layer.active {
    border-color: rgba(0, 245, 212, 0.25);
    background: rgba(22, 33, 62, 0.5);
    transform: translateX(10px);
}

.blueprint-layer:hover .layer-indicator, .blueprint-layer.active .layer-indicator {
    border-color: var(--cyan);
    background: var(--cyan-dim);
    color: var(--cyan);
}

.blueprint-layer:hover .layer-title-area h4, .blueprint-layer.active .layer-title-area h4 {
    color: var(--cyan);
}

.blueprint-layer:hover .layer-pulse, .blueprint-layer.active .layer-pulse {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    opacity: 1;
    animation: heartbeat 2s infinite;
}

/* Detail Card */
.blueprint-details-card {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.blueprint-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--cyan), var(--teal));
}

.details-header {
    margin-bottom: 2rem;
}

.details-layer-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.blueprint-details-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
}

.blueprint-details-card .details-body p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.tech-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 4px;
}

.details-highlight-box {
    padding: 1.2rem;
    background: rgba(0, 187, 249, 0.05);
    border: 1px solid rgba(0, 187, 249, 0.2);
    border-radius: 8px;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.d-box-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--teal);
}

.d-box-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Career Journey (Timeline) --- */
.journey-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

/* Central spine */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(0, 245, 212, 0.3) 0%, 
        rgba(0, 187, 249, 0.3) 40%, 
        rgba(247, 127, 0, 0.1) 80%,
        rgba(0,0,0,0) 100%
    );
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-left {
    left: 0;
    text-align: right;
}

.timeline-right {
    left: 50%;
    text-align: left;
}

/* Timeline marker circles */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    top: 2.2rem;
    background-color: var(--bg-base);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    z-index: 5;
    transition: var(--transition-smooth);
}

.timeline-right::after {
    left: -8px;
}

.timeline-item:hover::after {
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    background-color: var(--cyan);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.timeline-content {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.timeline-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.02) 0%, rgba(0,0,0,0) 80%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(0, 245, 212, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 245, 212, 0.02);
}

.timeline-item:hover .timeline-glow {
    background: radial-gradient(circle at 50% 0%, var(--cyan-dim) 0%, rgba(0,0,0,0) 80%);
}

.timeline-badge-org {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.timeline-role {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.timeline-summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.timeline-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bullet-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    text-align: left;
}

.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.bullet-dot.teal { background-color: var(--teal); box-shadow: 0 0 6px var(--teal); }
.bullet-dot.cyan { background-color: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.bullet-dot.emerald { background-color: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.bullet-dot.gold { background-color: var(--gold); box-shadow: 0 0 6px var(--gold); }

.bullet-item span:last-child {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* --- Connect & Contact Form --- */
.connect-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.connect-glow {
    position: absolute;
    bottom: -100px;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 187, 249, 0.05) 0%, rgba(0, 245, 212, 0.01) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.connect-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.connect-info h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.connect-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    border-color: rgba(0, 245, 212, 0.2);
    transform: translateX(6px);
    box-shadow: 0 10px 25px rgba(0, 245, 212, 0.02);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
    background: var(--cyan-dim);
    border-color: var(--cyan);
    color: var(--cyan);
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Contact Form Card */
.connect-form-card {
    background: var(--bg-surface);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(0, 187, 249, 0.15);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.form-header {
    background: rgba(13, 20, 38, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-indicator-form {
    width: 6px;
    height: 6px;
    background-color: var(--teal);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--teal);
}

.form-header span:last-child {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

#contact-form {
    padding: 2.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 10px rgba(0, 187, 249, 0.15);
    background: rgba(6, 9, 19, 0.95);
}

.form-group textarea {
    resize: none;
}

#form-submit-btn {
    gap: 0.6rem;
}

.btn-loader {
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: rotate-slow 1s linear infinite;
    display: none;
}

/* Alert Box */
.form-alert {
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    display: none;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.form-alert.success {
    display: flex;
    background: rgba(6, 214, 160, 0.05);
    border: 1px solid rgba(6, 214, 160, 0.20);
    color: var(--emerald);
}

.form-alert.success .alert-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--emerald);
    box-shadow: 0 0 6px var(--emerald);
}

.form-alert.error {
    display: flex;
    background: rgba(239, 71, 111, 0.05);
    border: 1px solid rgba(239, 71, 111, 0.20);
    color: var(--red);
}

.form-alert.error .alert-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--red);
    box-shadow: 0 0 6px var(--red);
}

/* --- Footer --- */
#site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
    background: rgba(6, 9, 19, 0.9);
}

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

#site-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-divider {
    color: rgba(148, 163, 184, 0.1);
}

/* --- reveal-on-scroll trigger states --- */
.reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes heartbeat {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes blink {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scroll-indicator {
    0% { top: 6px; opacity: 0; }
    30% { opacity: 1; }
    90% { top: 20px; opacity: 0; }
    100% { top: 20px; opacity: 0; }
}

@keyframes cursor-blink {
    from, to { color: transparent }
    50% { color: var(--cyan) }
}

@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

/* --- Responsive Media Queries --- */

/* Laptops & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-dashboard {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .simulator-panel {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blueprint-display {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .connect-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .timeline::after {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-left {
        left: 0;
    }
    
    .timeline-right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 22px !important;
        right: auto !important;
    }
}

/* Tablets & Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sim-tab-btn {
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .tab-sub {
        display: none;
    }
    
    .simulator-display {
        padding: 1.5rem;
    }
    
    .blueprint-details-card {
        padding: 1.8rem;
    }
    
    .timeline-content {
        padding: 1.8rem;
    }
    
    .connect-info h2 {
        font-size: 2.2rem;
    }
    
    .connect-info p {
        margin-bottom: 2rem;
    }
    
    #contact-form {
        padding: 1.5rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Mobile Menu Drawer Toggle */
    .mobile-nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #090e1a;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
        transition: var(--transition-smooth);
        padding: 100px 2rem 2rem;
    }
    
    #main-nav.open {
        right: 0;
    }
    
    #main-nav ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-social {
        display: none;
    }
    
    /* Hamburguer animations */
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--cyan);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--cyan);
    }
}
