@font-face {
    font-family: 'DreamPlanner';
    src: url('fonts/DreamPlanner.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color System - Option A (Most Classy) */
    --bg-color: #0f0f11;
    --text-primary: #f4f4f4;
    --text-muted: #8c8c94;
    --accent: #6c8cff;
    /* Soft muted blue */
    --accent-subtle: rgba(108, 140, 255, 0.05);
    --border-color: #1a1a1e;

    /* Typography */
    --font-display: 'DreamPlanner', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Cascadia Code', 'Fira Code', monospace;

    /* Spacing & Rhythm */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    /* Expanded for "Journal" look */
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

main {
    padding-top: 6rem;
    /* Offset for fixed header */
}

/* ========================================
   Section Rhythm & Spacing
   ======================================== */
.container {
    max-width: 1000px;
    /* Slimmer for reading */
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    /* Increased for readability */
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

/* ========================================
   Header & Navigation (Magazine Style)
   ======================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease;
}

.header {
    padding: 1.5rem 0;
}

.header.scrolled {
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

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

/* Underline grow on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ========================================
   Hero Section (Quiet Confidence)
   ======================================== */
.hero-section {
    min-height: calc(100vh - 6rem);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    display: block;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.name {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Increased for readability */
}

.tagline {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 2.5rem;
}

.btn {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.btn-primary {
    color: var(--accent);
}

.btn-secondary {
    color: var(--text-muted);
}

.btn:hover {
    color: var(--text-primary);
}

/* Arrow Slide Interaction */
.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ========================================
   About Section (Literary)
   ======================================== */
.about-content {
    max-width: 700px;
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-muted);
}

.about-content p {
    margin-bottom: 3rem;
}

.about-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Experience / Projects (Structured Layout)
   ======================================== */
.journal-list {
    display: flex;
    flex-direction: column;
}

.journal-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    gap: var(--spacing-md);
}

.journal-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.item-meta {
    font-family: var(--font-display);
}

.item-meta .label {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.item-meta .org {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-main h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.item-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.item-tech {
    display: flex;
    gap: 1.5rem;
    opacity: 0.5;
}

.item-tech span {
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

/* Project Hover Effect */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-link:hover .item-main h3 {
    color: var(--accent);
}

/* ========================================
   Skills (Minimalist Grid)
   ======================================== */
.skills-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.skill-category p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ========================================
   Contact & Footer
   ======================================== */
.contact-section h2 {
    font-size: clamp(3rem, 10vw, 6rem);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.social-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* ========================================
   Cookie Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    gap: 2rem;
}

.cookie-banner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.8rem !important;
}

.footer {
    padding: 6rem 0 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-tag {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.6;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
    }

    .nav-links {
        display: none;
        /* Mobile Menu simplification */
    }

    .journal-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .name {
        font-size: 4rem;
    }
}