/* CSS Reset and Variables */
:root {
    /* Color Palette - Minimalist Executive Theme */
    --bg-primary: #FBFBFB;
    --bg-secondary: #EEEEEE;
    --text-main: #2D3748;
    --text-muted: #718096;
    --text-light: #718096;

    --accent: #2C5282;
    --accent-hover: #1A365D;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
}

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

    /* Subtle dot-grid pattern to reduce blankness */
    background-image: radial-gradient(var(--bg-secondary) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

/* Decorative Top Line */
.top-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    z-index: 1001;
    animation: slideRight 1s ease-out forwards;
    transform-origin: left;
}

@keyframes slideRight {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

/* Side Palettes */
.side-palette {
    position: fixed;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.side-palette::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: var(--text-muted);
    margin: 0 auto;
    opacity: 0.5;
}

.left-palette {
    left: 40px;
    animation: fadeUp 1s ease-out 1s both;
}

.right-palette {
    right: 40px;
    animation: fadeUp 1s ease-out 1.2s both;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons a {
    display: inline-block;
    transition: var(--transition);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.email-wrapper {
    writing-mode: vertical-rl;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.email-wrapper a {
    display: inline-block;
    transition: var(--transition);
}

.email-wrapper a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(251, 251, 251, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bg-secondary);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-heading);
    transition: var(--transition);
}

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

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 3.5rem 4rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .subtitle {
    font-size: 2.2rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-hook {
    font-size: 1.3rem;
    max-width: 650px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

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

/* About Section */
.about-content {
    max-width: 800px;
}

.glass-panel {
    /* Retained class for compatibility, but styled minimally */
    background: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.about-content .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* Work Section */
.work-category {
    margin-bottom: var(--spacing-lg);
}

.category-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-secondary);
}

/* Cards */
.card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    transition: var(--transition);
    margin-bottom: var(--spacing-md);
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Minimal Timeline Nodes */
.timeline .card::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 3rem;
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline .card:hover::before {
    background: var(--accent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

.card-header h4 {
    font-size: 1.4rem;
}

.company {
    color: var(--text-muted);
    font-weight: 500;
}

.date,
.project-date {
    font-size: 0.95rem;
    color: var(--text-light);
    font-family: var(--font-heading);
}

.card-bullets {
    margin-bottom: 2rem;
    padding-left: 1.2rem;
}

.card-bullets li {
    color: var(--text-main);
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: square;
}

.card-bullets li::marker {
    color: var(--accent);
}

/* Grid Layout for Projects */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.grid .card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.grid .card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.grid .card .project-date {
    margin-bottom: 1.5rem;
    display: inline-block;
    width: max-content;
}

.grid .card .card-bullets {
    flex-grow: 1;
}

/* Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

/* Footer */
footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--bg-secondary);
    background: var(--bg-primary);
}

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

footer p {
    margin: 0;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    transition: var(--transition);
}

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

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .left-palette {
        left: 20px;
    }

    .right-palette {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }

    .side-palette {
        display: none;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title .subtitle {
        font-size: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .card-header {
        flex-direction: column;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline .card::before {
        left: -1.35rem;
    }

    .about-content {
        padding: 1.5rem;
    }
}