:root {
    :root {
        --bg: #fbf6ef;
        --card: rgba(255, 255, 255, 0.78);
        --text: #1f2933;
        --muted: #6b5f55;
        --border: rgba(234, 223, 212, 0.9);

        /* Accent system */
        --accent: #2b1f16;
        --accent-soft: rgba(43, 31, 22, 0.12);

        /* Extra */
        --pill: rgba(244, 237, 229, 0.85);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Premium warm background blobs */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 200, 160, 0.38), transparent 55%),
        radial-gradient(circle at 85% 18%, rgba(255, 220, 190, 0.35), transparent 60%),
        radial-gradient(circle at 50% 95%, rgba(220, 200, 180, 0.25), transparent 60%),
        linear-gradient(to bottom, #fbf6ef, #f8f1e8);
}

/* Subtle dot pattern overlay (professional) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.20;
    background-image: radial-gradient(rgba(43, 31, 22, 0.10) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Layout */
.hero,
main,
footer {
    max-width: 980px;
    margin: auto;
    padding: 0 24px;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 246, 239, 0.70);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(234, 223, 212, 0.7);
}

.nav-inner {
    max-width: 980px;
    margin: auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border);
    background: white;
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.resume-btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(30, 20, 10, 0.08);
}

/* Mobile menu */
.menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: white;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 1.05rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    max-width: 980px;
    margin: auto;
    padding: 0 24px 18px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(234, 223, 212, 0.7);
    text-decoration: none;
    color: var(--muted);
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ---------------- HERO ---------------- */
.hero {
    padding: 70px 24px 25px;
    /* less bottom space */
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: -40px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 200, 160, 0.25), transparent 65%);
    filter: blur(10px);
    z-index: -1;
}

.hero h1 {
    font-size: 2.85rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.role {
    margin-top: 12px;
    font-size: 1.1rem;
    color: var(--muted);
}

.tagline {
    margin-top: 22px;
    max-width: 590px;
    font-size: 1rem;
    color: #3c2f27;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 12px 18px;
    border-radius: 16px;
    font-weight: 650;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
    background: linear-gradient(to bottom,
            rgba(43, 31, 22, 1),
            rgba(43, 31, 22, 0.88));
    color: white;
    border: 1px solid rgba(43, 31, 22, 0.9);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.75);
    color: var(--accent);
    border: 1px solid rgba(234, 223, 212, 0.9);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(30, 20, 10, 0.12);
}

/* ---------------- HERO GRID (TEXT LEFT, PHOTO RIGHT) ---------------- */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.hero-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    /* ✅ keeps it consistent */
    margin-left: auto;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(234, 223, 212, 0.9);
    box-shadow: 0 26px 70px rgba(30, 20, 10, 0.16);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Mobile: stack */
@media (max-width: 800px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-width: 240px;
        height: 260px;
        margin-left: 0;
        margin-top: 25px;
    }
}

/* ---------------- SECTIONS ---------------- */
.section {
    margin-top: 65px;
    padding: 44px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow:
        0 20px 60px rgba(30, 20, 10, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(14px);
}


.section h2 {
    font-size: 1.65rem;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
    color: var(--accent);
    position: relative;
    padding-bottom: 12px;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right,
            rgba(43, 31, 22, 0.40),
            rgba(43, 31, 22, 0.08));
}


.section p {
    max-width: 780px;
    margin-bottom: 12px;
    color: #3c2f27;
}

/* ---------------- PROJECTS ---------------- */
/* ---------------- PROJECTS ---------------- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(234, 223, 212, 0.9);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(30, 20, 10, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(30, 20, 10, 0.14);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--pill);
    color: var(--muted);
    white-space: nowrap;
}

.tech {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Make projects 2 columns on larger screens */
@media (min-width: 850px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------------- SKILLS ---------------- */
/* ---------------- SKILLS (GROUPED + BULLETS) ---------------- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
}

.skills-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(30, 20, 10, 0.05);
}

.skills-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
}

/* Skill lists */
.skills-list {
    list-style: none;
    display: grid;
    gap: 10px;
    color: #3c2f27;
    font-size: 0.95rem;
}

/* Base bullet style */
.skills-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

/* Core: checkmark */
.skills-list.core li::before {
    content: "•";
    color: var(--accent);
    font-weight: 700;
}

/* Languages: dot */
.skills-list.languages li::before {
    content: "•";
    color: var(--muted);
    font-weight: 900;
}

/* Tools: arrow */
.skills-list.tools li::before {
    content: "•";
    color: var(--accent);
    font-weight: 700;
}

/* 3 columns on desktop */
@media (min-width: 850px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ---------------- LINKS ---------------- */
a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(43, 31, 22, 0.25);
    transition: border 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
    border-bottom: 1px solid rgba(43, 31, 22, 0.65);
}

/* Contact spacing */
.contact-line {
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 24px;
    margin-top: 80px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 750px) {
    .nav-links {
        display: none;
    }

    .resume-btn {
        display: none;
    }

    .menu-btn {
        display: inline-block;
    }

    .mobile-menu.show {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .section {
        padding: 28px;
    }
}