:root {
    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --display-font: 'Outfit', sans-serif;

    /* Colors - Dark Theme (Premium) */
    --bg-body: #050505;
    /* Deep black */
    --bg-surface: #101010;
    --bg-surface-glass: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.08);
    /* Faint border */

    --text-main: #e5e5e5;
    --text-muted: #a3a3a3;
    --text-highlight: #60a5fa;
    /* Blue accent */

    /* Accents */
    --accent-primary: #3b82f6;
    /* Blue 500 */
    --accent-glow: rgba(59, 130, 246, 0.4);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Layout */
    --radius-md: 12px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.08), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.05), transparent 40%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4 {
    font-family: var(--display-font);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-highlight {
    color: var(--accent-primary);
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Navbar */
.navbar {
    padding: var(--space-md) 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.accent-dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    padding-top: var(--space-xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: var(--space-xs);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: var(--space-sm);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    /* Slightly rounded, clean */
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    /* Solid blue */
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stack Section */
.stack-section {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-size: 2.5rem;
}

.stack-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    /* Sidebar + Grid */
    gap: var(--space-lg);
}

/* Filter Sidebar */
.stack-filters ul {
    display: flex;
    /* Mobile breaks to row, desktop col */
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-item {
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.filter-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.filter-item.active {
    color: white;
    background: rgba(59, 130, 246, 0.1);
    border-left-color: var(--accent-primary);
}

/* Tech Grid */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.glass-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Projects Section */
.projects-section {
    padding: var(--space-xl) 0;
    overflow: hidden;
    /* For glows */
}

.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    /* Large spacing between projects */
}

.project-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
}

.project-item.reverse {
    flex-direction: row-reverse;
}

/* Project Text Side */
.project-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.project-label {
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-xs);
}

.project-title {
    font-size: 2.5rem;
    color: var(--text-highlight);
    /* Using the blue highlight requested */
    margin-bottom: var(--space-md);
    font-family: var(--display-font);
}

.project-desc-box {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle box */
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--border-subtle);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(4px);
}

.project-desc-box p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 1rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: var(--space-md);
}

.project-tech-list li {
    font-size: 0.8rem;
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-main);
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.btn-details:hover {
    gap: 12px;
    color: var(--text-highlight);
}

.btn-details .arrow {
    font-size: 1.2rem;
    line-height: 1;
}

/* Project Mockup Side */
.project-mockup {
    flex: 1.2;
    /* Slightly larger than text */
    position: relative;
}

.mockup-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    /* Landscape rectangle */
    background: linear-gradient(135deg, #101010 0%, #1a1a1a 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.project-item:hover .mockup-placeholder {
    transform: translateY(-5px);
    border-color: rgba(60, 130, 246, 0.2);
}

.mockup-content span {
    font-family: var(--display-font);
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* Glow Effect behind mockup */
.project-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* About Section Renewal V2 */
.about-section {
    padding: var(--space-xl) 0;
}

.about-grid-v2 {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-md);
    /* The layout will be defined by grid-column spans on children */
}

/* 1. Hero Positioning (Full Width) */
.about-hero {
    grid-column: 1 / -1;
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left: 3px solid var(--accent-primary);
}

.about-headline {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
    color: white;
}

.about-subhead {
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    max-width: 900px;
}

/* 2. What I Build (Left Column) */
.about-build {
    padding: var(--space-md);
}

.about-build h4 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: white;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.build-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.build-list-v2 li {
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.build-list-v2 li::before {
    content: '→';
    color: var(--accent-primary);
    font-size: 1.1rem;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

/* 3. Impact Stats (Right Column) */
.about-impact {
    padding: var(--space-md);
}

.about-impact h4 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: white;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.impact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.impact-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: var(--display-font);
}

.impact-label {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.impact-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 4. Journey Timeline (Full Width or Split) */
.about-timeline {
    grid-column: 1 / -1;
    padding: var(--space-lg);
}

.about-timeline h4 {
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    color: white;
}

.timeline-v2 {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--border-subtle);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-lg);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    /* Center on line */
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(5, 5, 5, 1);
    /* Outline to separate from line */
}

.timeline-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.timeline-header h5 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.timeline-header .role {
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-header .date {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.timeline-bullets {
    list-style: disc inside;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-bullets li {
    margin-bottom: 4px;
}

/* 5. Philosophy (Full Width) */
.about-philosophy {
    grid-column: 1 / -1;
    padding: var(--space-md);
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    /* Very subtle blue tint */
    border: 1px dashed var(--border-subtle);
}

.about-philosophy h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.philosophy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.philosophy-item {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.philosophy-item:not(:last-child)::after {
    content: '|';
    margin-left: var(--space-md);
    color: var(--border-subtle);
}

/* Footer */
.footer {
    padding: var(--space-md) 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: var(--space-md);
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .stack-layout {
        grid-template-columns: 1fr;
    }

    /* Projects Mobile */
    .projects-wrapper {
        gap: 5rem;
    }

    .project-item,
    .project-item.reverse {
        flex-direction: column;
        gap: var(--space-md);
    }

    .project-mockup {
        width: 100%;
    }

    .project-content {
        width: 100%;
    }

    /* About Section Mobile */
    .about-grid-v2 {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-item:not(:last-child)::after {
        display: none;
    }

    .philosophy-grid {
        flex-direction: column;
        gap: 8px;
    }

    .stack-filters ul {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-subtle);
        margin-bottom: var(--space-md);
    }

    .filter-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .filter-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-primary);
    }
}