/** 
/**
 * Base Styles & CSS Variables
 * Apple-Minimalist meets Futuristic Data Viz
 */

:root {
    --bg-base: #121212;
    --bg-card: #1D1D1F;
    --accent-blue: #007AFF;
    --text-main: #FFFFFF;
    --text-muted: #86868B;
    --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Menlo', 'Monaco', monospace;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* App Container (above canvas) */
.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #FFFFFF, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

section.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #FFF;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: #005bb5;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FFF;
}

.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 35px;
    width: auto;
    filter: invert(1);
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 500;
}

.social-links a:hover {
    color: var(--accent-blue);
}

.social-links .muted-email {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Engineering Pillars */
.engineering-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.pillar-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.3);
}

.pillar-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pillar-number {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.9rem;
    opacity: 0.8;
}

.pillar-header h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.pillar-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .engineering-pillars {
        grid-template-columns: 1fr;
    }
    .hero-headline {
        font-size: 3rem;
    }
}

/* Case Study Section */
.split-layout {
    display: flex;
    min-height: 400px;
    overflow: hidden;
    margin-top: 2rem;
}

.split-left {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1542038784456-1ea8e935640e?q=80&w=1000&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    min-height: 300px;
}

.split-left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(18, 18, 18, 0.3);
}

.split-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glowing-arch-diagram {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0,0,0,0.4);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    border: 1px dashed rgba(0, 122, 255, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 122, 255, 0.05);
}

.arch-node {
    background: rgba(18, 18, 18, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-main);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.2);
    position: relative;
    z-index: 2;
}

.arch-edge {
    height: 2px;
    flex: 1;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
}

/* Labs Section */
.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lab-card {
    padding: 2rem;
    transition: transform 0.3s;
}

.lab-card:hover {
    transform: translateY(-5px);
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.badge {
    background: rgba(0, 122, 255, 0.2);
    color: var(--accent-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.live-indicator-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #34C759;
    border-radius: 50%;
    box-shadow: 0 0 8px #34C759;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.status-metrics {
    margin-top: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 1rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.metric:last-child {
    margin-bottom: 0;
}

.text-success {
    color: #34C759;
}

/* Lens Section */
.lens-copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.gallery-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 2rem;
    padding: 0 2rem;
}

.gallery-item {
    scroll-snap-align: center;
    width: 80vw;
    max-width: 900px;
    height: 500px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.gallery-item:hover {
    opacity: 1;
}

.img-1 { background-image: url('https://images.unsplash.com/photo-1551334787-21e6bd3ab135?q=80&w=1000&auto=format&fit=crop'); }
.img-2 { background-image: url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?q=80&w=1000&auto=format&fit=crop'); }
.img-3 { background-image: url('https://images.unsplash.com/photo-1452421822248-d4c2b47f0c81?q=80&w=1000&auto=format&fit=crop'); }
.img-4 { background-image: url('https://images.unsplash.com/photo-1506869640319-fea1a2789159?q=80&w=1000&auto=format&fit=crop'); }

/* Dev Logs Section */
.dev-logs-section {
    padding: 6rem 0 2rem 0;
}

.dev-logs-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.log-header {
    background: rgba(255,255,255,0.05);
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.log-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.log-dot.red { background-color: #FF5F56; }
.log-dot.yellow { background-color: #FFBD2E; }
.log-dot.green { background-color: #27C93F; }

.log-title {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.log-content {
    padding: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #E2E2E2;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.3);
}

.status-badge-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.status-item {
    background: rgba(0, 122, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 122, 255, 0.3);
    font-size: 0.85rem;
}

.status-item .label {
    color: var(--accent-blue);
    font-weight: 600;
    margin-right: 0.5rem;
}

.log-content p {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    border-left: 3px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
}

/* CLI Footer styles */
.cli-footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(0, 122, 255, 0.3);
    background: #0D0D0D;
    font-family: var(--font-mono);
    box-shadow: inset 0 20px 50px rgba(0,0,0,0.5);
}

.cli-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.cli-left {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cli-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cli-line .status-optimal {
    color: #00FF41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.cli-line .sla-text {
    color: #FFF;
    font-weight: bold;
}

.cli-line .counter-text {
    color: var(--accent-blue);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 122, 255, 0.5);
}

.pulse-green-small {
    width: 6px;
    height: 6px;
    background-color: #00FF41;
    border-radius: 50%;
    box-shadow: 0 0 8px #00FF41;
    animation: pulse-terminal 2s infinite;
}

@keyframes pulse-terminal {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.cli-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.pipeline-svg {
    filter: drop-shadow(0 0 10px rgba(0, 122, 255, 0.2));
}

@keyframes svgPulse {
    0% { r: 3; opacity: 1; }
    50% { r: 5; opacity: 0.6; }
    100% { r: 3; opacity: 1; }
}

.svg-pulse {
    animation: svgPulse 2s infinite;
}

.health-line {
    stroke: var(--accent-blue);
    stroke-width: 2;
    filter: drop-shadow(0 0 4px var(--accent-blue));
}

/* Experience Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    padding: 2rem;
    margin-left: 4rem;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-blue);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: -2.35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-blue);
    z-index: 2;
}

.timeline-date {
    font-family: monospace;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.timeline-content h3 {
    margin-bottom: 0.2rem;
    font-size: 1.4rem;
}

.timeline-content h4 {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

/* Skills Matrix */
.skills-matrix {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    font-size: 0.9rem;
}

.matrix-header, .matrix-row {
    display: grid;
    grid-template-columns: 1.2fr 2fr 2fr;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.matrix-header {
    background: rgba(255,255,255,0.05);
    font-weight: 700;
    color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.matrix-row:last-child {
    border-bottom: none;
}

.matrix-row:hover {
    background: rgba(0, 122, 255, 0.05);
}

.matrix-col {
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
}

.matrix-col.label {
    font-weight: 600;
    color: var(--text-muted);
}

.matrix-col.highlight {
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .matrix-header, .matrix-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .timeline::before {
        left: 1rem;
    }
    .timeline-item {
        margin-left: 2rem;
    }
    .timeline-item::before {
        left: -1.35rem;
    }
}

/* Pipeline Health SVG */
.pipeline-health-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.health-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.health-line {
    stroke: var(--accent-blue);
    stroke-width: 2;
    filter: drop-shadow(0 0 4px var(--accent-blue));
}

/* Education Section */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.edu-card {
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.edu-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.edu-logo-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFF;
    border-radius: 12px;
    padding: 10px;
}

.edu-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edu-details h3 {
    font-size: 1.3rem;
    color: #FFF;
    margin-bottom: 0.3rem;
}

.edu-details h4 {
    color: var(--accent-blue);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.edu-date {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .edu-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}
