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

        :root {
            --cream: #FAF8F4;
            --white: #FFFFFF;
            --ink: #1A1A1A;
            --ink-light: #555550;
            --ink-muted: #999990;
            --accent: #2D6A4F;
            --accent-light: #D8F3DC;
            --accent-warm: #E76F51;
            --border: #E8E4DC;
            --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
            --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
            --radius: 14px;
            --serif: 'DM Serif Display', Georgia, serif;
            --sans: 'DM Sans', sans-serif;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--sans);
            background: var(--cream);
            color: var(--ink);
            line-height: 1.6;
            font-size: 16px;
        }

        /* NAV */
        nav {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(250,248,244,0.88);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 60px;
        }
        .nav-logo {
            font-family: var(--serif);
            font-size: 1.15rem;
            color: var(--ink);
            text-decoration: none;
            letter-spacing: 0.01em;
        }
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        .nav-links a {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--ink-light);
            text-decoration: none;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            transition: color 0.2s;
        }
        .nav-links a:hover { color: var(--accent); }

        /* WRAPPER */
        .page { max-width: 860px; margin: 0 auto; padding: 0 2rem; }

        /* ── SECTION 1: HERO ── */
        .hero {
            padding: 80px 0 70px;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 3rem;
            align-items: center;
            border-bottom: 1px solid var(--border);
        }
        .hero-text {}
        .hero-label {
            display: inline-block;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--accent);
            background: var(--accent-light);
            padding: 4px 12px;
            border-radius: 100px;
            margin-bottom: 1.2rem;
        }
        .hero-name {
            font-family: var(--serif);
            font-size: clamp(2.6rem, 6vw, 4rem);
            line-height: 1.1;
            color: var(--ink);
            margin-bottom: 1rem;
        }
        .hero-name em {
            font-style: italic;
            color: var(--accent);
        }
        .hero-bio {
            font-size: 1.05rem;
            color: var(--ink-light);
            max-width: 480px;
            line-height: 1.75;
            margin-bottom: 1.8rem;
        }
        .hero-contacts {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
            border: none;
        }
        .btn-primary {
            background: var(--accent);
            color: #fff;
        }
        .btn-primary:hover { background: #1e4d39; transform: translateY(-1px); box-shadow: var(--shadow-md); }
        .btn-outline {
            background: transparent;
            color: var(--ink);
            border: 1.5px solid var(--border);
        }
        .btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

        .hero-photo {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--white);
            box-shadow: var(--shadow-lg);
            flex-shrink: 0;
            background: var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .hero-photo-placeholder {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            border: 4px solid var(--white);
            box-shadow: var(--shadow-lg);
            background: linear-gradient(135deg, var(--accent-light), var(--border));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--serif);
            font-size: 3rem;
            color: var(--accent);
            flex-shrink: 0;
        }

        /* ── SECTION 2: EDUCATION & SKILLS ── */
        .section {
            padding: 64px 0;
            border-bottom: 1px solid var(--border);
        }
        .section-header {
            margin-bottom: 2.5rem;
        }
        .section-label {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ink-muted);
            margin-bottom: 0.4rem;
        }
        .section-title {
            font-family: var(--serif);
            font-size: 2rem;
            color: var(--ink);
        }

        .edu-skills-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        .card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 1.6rem;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .card-title {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--ink-muted);
            margin-bottom: 1.2rem;
        }
        .edu-item { margin-bottom: 1.2rem; }
        .edu-item:last-child { margin-bottom: 0; }
        .edu-degree {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--ink);
        }
        .edu-school {
            font-size: 0.9rem;
            color: var(--ink-light);
        }
        .edu-year {
            font-size: 0.8rem;
            color: var(--ink-muted);
            margin-top: 2px;
        }

        .skills-groups { display: flex; flex-direction: column; gap: 1.2rem; }
        .skill-group-label {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--ink-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 0.5rem;
        }
        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .skill-tag {
            background: var(--cream);
            border: 1px solid var(--border);
            color: var(--ink-light);
            padding: 4px 12px;
            border-radius: 100px;
            font-size: 0.82rem;
            font-weight: 500;
            transition: all 0.2s;
        }
        .skill-tag:hover {
            background: var(--accent-light);
            border-color: var(--accent);
            color: var(--accent);
        }

        /* ── SECTION 3: WORK EXPERIENCE ── */
        .timeline { display: flex; flex-direction: column; gap: 0; }
        .timeline-item {
            display: grid;
            grid-template-columns: 160px 1fr;
            gap: 1.5rem;
            padding: 1.8rem 0;
            border-bottom: 1px solid var(--border);
            position: relative;
        }
        .timeline-item:last-child { border-bottom: none; }
        .timeline-date {
            text-align: right;
            padding-top: 3px;
        }
        .timeline-period {
            font-size: 0.82rem;
            color: var(--ink-muted);
            font-weight: 500;
        }
        .timeline-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            margin-top: 0.5rem;
        }
        .timeline-body {}
        .timeline-role {
            font-weight: 600;
            font-size: 1rem;
            color: var(--ink);
            margin-bottom: 2px;
        }
        .timeline-company {
            font-size: 0.9rem;
            color: var(--accent);
            font-weight: 500;
            margin-bottom: 0.6rem;
        }
        .timeline-desc {
            font-size: 0.9rem;
            color: var(--ink-light);
            line-height: 1.7;
        }
        .timeline-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            margin-top: 0.75rem;
        }
        .timeline-tag {
            font-size: 0.75rem;
            background: var(--accent-light);
            color: var(--accent);
            padding: 2px 10px;
            border-radius: 100px;
            font-weight: 500;
        }

        /* ── SECTION 4: PROJECTS ── */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.2rem;
        }
        .project-card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            transition: all 0.25s;
        }
        .project-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-3px);
            border-color: transparent;
        }
        .project-card-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.75rem;
        }
        .project-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: var(--accent-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }
        .project-status {
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 3px 9px;
            border-radius: 100px;
        }
        .status-live { background: #D8F3DC; color: #2D6A4F; }
        .status-wip { background: #FFF3CD; color: #856404; }
        .status-archived { background: #f0f0f0; color: #666; }

        .project-name {
            font-weight: 600;
            font-size: 1rem;
            color: var(--ink);
            margin-bottom: 0.4rem;
        }
        .project-desc {
            font-size: 0.875rem;
            color: var(--ink-light);
            line-height: 1.65;
            flex: 1;
            margin-bottom: 1.1rem;
        }
        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-bottom: 1.1rem;
        }
        .tech-tag {
            font-size: 0.72rem;
            background: var(--cream);
            border: 1px solid var(--border);
            color: var(--ink-muted);
            padding: 2px 8px;
            border-radius: 4px;
        }
        .project-actions {
            display: flex;
            gap: 8px;
        }
        .project-actions .btn {
            flex: 1;
            justify-content: center;
            padding: 8px 12px;
            font-size: 0.82rem;
        }
        .btn-github {
            background: var(--ink);
            color: #fff;
        }
        .btn-github:hover { background: #333; transform: translateY(-1px); }
        .btn-demo {
            background: transparent;
            color: var(--accent);
            border: 1.5px solid var(--accent-light);
        }
        .btn-demo:hover { background: var(--accent-light); transform: translateY(-1px); }
        .btn-disabled {
            opacity: 0.4;
            pointer-events: none;
        }

        /* FOOTER */
        footer {
            padding: 3rem 0;
            text-align: center;
            font-size: 0.85rem;
            color: var(--ink-muted);
        }
        footer a { color: var(--accent); text-decoration: none; }

        /* ANIMATIONS */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        .hero-text { animation: fadeUp 0.6s ease both; }
        .hero-photo-placeholder { animation: fadeUp 0.6s 0.1s ease both; }
        .section { animation: fadeUp 0.5s ease both; }

        /* RESPONSIVE */
        @media (max-width: 640px) {
            .hero { grid-template-columns: 1fr; text-align: center; }
            .hero-photo-placeholder { margin: 0 auto; }
            .hero-contacts { justify-content: center; }
            .edu-skills-grid { grid-template-columns: 1fr; }
            .timeline-item { grid-template-columns: 1fr; gap: 0.4rem; }
            .timeline-date { text-align: left; }
            nav { padding: 0 1rem; }
            .nav-links { gap: 1.2rem; }
        }