/* ============================================
       PALETTE — Two colors only
       Background: white (#FFFFFF) <-> warm beige (#F5EFE6 / #EDE3D6)
       Accent / buttons: #2C2C2C (charcoal near-black)
       Text: #1A1A1A primary · #7A7A7A muted
    ============================================ */
:root {
    --white: #ffffff;
    --beige-1: #f5efe6;
    --beige-2: #ede3d6;
    --beige-3: #ddd0c0;
    --charcoal: #2c2c2c;
    --charcoal-h: #444444;
    --ink: #1a1a1a;
    --muted: #7a7a7a;
    --border: #e0d8cf;
    --badge-text: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    /* Clean, modern body text */
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: "Inter", sans-serif;
    /* Bold, high-tech headings */
    letter-spacing: -0.02em;
}

/* ============================================
       CONTAINER — 900px max, feels editorial
    ============================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 88px 0;
}

/* ============================================
       NAVBAR
    ============================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition:
        background 0.3s,
        box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(245, 239, 230, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.nav-logo {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
}

.nav-logo em {
    font-style: normal;
    color: var(--muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.83rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ink);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--charcoal);
    transition: width 0.25s;
}

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

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
}

#mobile-menu {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 22px;
    border-top: 1px solid var(--border);
}

#mobile-menu.open {
    display: flex;
}

/* ============================================
       BUTTONS — charcoal only
    ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dark {
    background: var(--charcoal);
    color: #fff;
}

.btn-dark:hover {
    background: var(--charcoal-h);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(44, 44, 44, 0.2);
}

.btn-mail {
    background: var(--charcoal);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn-ghost:hover {
    background: var(--charcoal);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.78rem;
}

/* ============================================
       SECTION GRADIENTS — beige & white only
    ============================================ */
#hero {
    background: linear-gradient(145deg,
            var(--white) 0%,
            var(--beige-1) 55%,
            var(--beige-2) 100%);
}

#about {
    background: linear-gradient(160deg,
            var(--beige-1) 0%,
            var(--white) 100%);
}

#skills {
    background: linear-gradient(145deg,
            var(--white) 0%,
            var(--beige-1) 50%,
            var(--beige-2) 100%);
}

#experience {
    background: linear-gradient(160deg,
            var(--beige-2) 0%,
            var(--beige-1) 60%,
            var(--white) 100%);
}

#projects {
    background: linear-gradient(145deg,
            var(--white) 0%,
            var(--beige-1) 55%,
            var(--beige-2) 100%);
}

#contact {
    background: linear-gradient(150deg,
            var(--charcoal) 0%,
            #111 100%);
    color: var(--beige-1);
}

/* ============================================
       HERO
    ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 64px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(221, 208, 192, 0.55) 0%,
            transparent 68%);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 52px;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

/* badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F5EFE6 0%, #EBE1D5 100%);
    border: 1px solid rgba(44, 44, 44, 0.13);
    border-radius: 4px;
    padding: 5px 13px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
    animation: fadeUp 0.6s ease both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3dba5b;
    animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.hero-name {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.06;
    color: var(--ink);
    margin-top: 16px;
    animation: fadeUp 0.65s 0.1s ease both;
}

.hero-name .dim {
    color: var(--muted);
    font-weight: 300;
}

.hero-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.65;
    margin-top: 14px;
    animation: fadeUp 0.65s 0.2s ease both;
}

.hero-title strong {
    color: var(--ink);
    font-weight: 600;
}

.hero-tagline {
    font-family: "Playfair Display", serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.7;
    border-left: 2px solid var(--beige-3);
    padding-left: 16px;
    margin-top: 22px;
    animation: fadeUp 0.65s 0.3s ease both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
    animation: fadeUp 0.65s 0.4s ease both;
}

.hero-stats {
    display: flex;
    margin-top: 38px;
    animation: fadeUp 0.65s 0.5s ease both;
}

.stat-item {
    padding: 14px 22px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.stat-item:first-child {
    padding-left: 0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: "Playfair Display", serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.03em;
}

/* hero image */
.hero-img-wrap {
    flex-shrink: 0;
    width: 280px;
    height: 280px;
    position: relative;
    animation: fadeUp 0.7s 0.15s ease both;
}

.img-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1.5px dashed var(--beige-3);
    animation: spinSlow 22s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.profile-img,
.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--beige-2);
}

.profile-placeholder {
    background: linear-gradient(135deg,
            var(--beige-2) 0%,
            var(--beige-3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Playfair Display", serif;
    font-size: 4rem;
    font-weight: 700;
    color: rgba(44, 44, 44, 0.4);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
       SECTION HEADER
    ============================================ */
.section-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}

.section-title {
    font-size: clamp(1.75rem, 3.2vw, 2.3rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
}

.section-rule {
    width: 36px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    margin: 12px 0 34px;
}

/* ============================================
       CARDS
    ============================================ */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.card:hover {
    box-shadow: 0 10px 32px rgba(44, 44, 44, 0.09);
    transform: translateY(-3px);
}

/* ============================================
       ABOUT — centred columns, aligned to top
    ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    /* both columns start from top */
}

.about-bio p {
    font-size: 0.96rem;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 16px;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

.about-bio a {
    color: var(--charcoal);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

.h-card:hover {
    box-shadow: 0 6px 20px rgba(44, 44, 44, 0.08);
    transform: translateY(-2px);
}

.h-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.h-card h4 {
    font-family: "DM Sans", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.h-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.6;
}

.h-card a {
    color: var(--charcoal);
    font-weight: 600;
}

/* ============================================
       SKILLS — Card-based layout
    ============================================ */
.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.skill-category-label {
    font-family: "DM Sans", sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.skill-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.skill-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--beige-3);
    transition: background 0.22s;
}

.skill-card:hover {
    box-shadow: 0 8px 28px rgba(44, 44, 44, 0.1);
    transform: translateY(-3px);
    border-color: var(--beige-3);
}

.skill-card:hover::before {
    background: var(--charcoal);
}

.skill-card-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.skill-card-name {
    font-family: "Inter", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.skill-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.skill-level-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--beige-1);
    color: var(--charcoal);
    border: 1px solid var(--border);
}

.skill-level-badge.expert {
    background: var(--charcoal);
    color: var(--beige-1);
    border-color: var(--charcoal);
}

.skill-card-yrs {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 44px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--charcoal);
    background: var(--beige-1);
    border: 1px solid var(--border);
    padding: 4px 11px;
    border-radius: 4px;
}

/* ============================================
       EXPERIENCE
    ============================================ */
.timeline {
    position: relative;
    padding-left: 58px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.tl-entry {
    position: relative;
}

.tl-dot {
    position: absolute;
    left: -58px;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--beige-1);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tl-title {
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.tl-company {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

.tl-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--beige-1);
    border: 1px solid var(--border);
    padding: 3px 11px;
    border-radius: 4px;
    white-space: nowrap;
}

.tl-desc {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.tl-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.tl-points li {
    display: flex;
    gap: 10px;
    font-size: 0.84rem;
    color: #3a3a3a;
    line-height: 1.65;
}

.tl-points li::before {
    content: "—";
    color: var(--beige-3);
    flex-shrink: 0;
}

/* ============================================
       PROJECTS
    ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.proj-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition:
        box-shadow 0.25s,
        transform 0.25s;
}

.proj-card:hover {
    box-shadow: 0 14px 36px rgba(44, 44, 44, 0.1);
    transform: translateY(-5px);
}

.proj-accent {
    height: 3px;
    background: var(--charcoal);
}

.proj-body {
    padding: 22px;
}

.proj-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.proj-emoji {
    font-size: 1.7rem;
}

.proj-link {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--beige-1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.82rem;
    color: var(--ink);
    transition: background 0.2s;
}

.proj-link:hover {
    background: var(--charcoal);
    color: #fff;
    border-color: var(--charcoal);
}

.proj-title {
    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.proj-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.proj-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.proj-tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--charcoal);
    background: var(--beige-1);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ============================================
       CONTACT
    ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.c-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--beige-1);
    margin-bottom: 8px;
}

.c-intro {
    font-size: 0.88rem;
    color: rgba(245, 239, 230, 0.55);
    line-height: 1.75;
    margin-bottom: 28px;
}

.c-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-decoration: none;
    color: var(--beige-1);
    transition: opacity 0.2s;
}

.c-row:hover {
    opacity: 0.65;
}

.c-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.c-lbl {
    font-size: 0.65rem;
    color: rgba(245, 239, 230, 0.4);
    margin-bottom: 1px;
    letter-spacing: 0.05em;
}

.c-val {
    font-size: 0.85rem;
    font-weight: 600;
}

.cf {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.cf input,
.cf textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    padding: 12px 15px;
    color: var(--beige-1);
    font-family: "DM Sans", sans-serif;
    font-size: 0.87rem;
    outline: none;
    transition: all 0.2s;
}

.cf input::placeholder,
.cf textarea::placeholder {
    color: rgba(245, 239, 230, 0.3);
}

.cf input:focus,
.cf textarea:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--beige-1);
    color: var(--charcoal);
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 22px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s;
    align-self: flex-start;
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-1px);
}

.form-msg {
    display: none;
    font-size: 0.83rem;
    padding: 10px 14px;
    border-radius: 7px;
}

.form-msg.ok {
    color: #86efac;
    background: rgba(134, 239, 172, 0.1);
    border: 1px solid rgba(134, 239, 172, 0.25);
}

.form-msg.err {
    color: #fca5a5;
    background: rgba(252, 165, 165, 0.1);
    border: 1px solid rgba(252, 165, 165, 0.25);
}

/* ============================================
       FOOTER
    ============================================ */
footer {
    background: #111;
    color: rgba(245, 239, 230, 0.38);
    text-align: center;
    padding: 22px;
    font-size: 0.76rem;
}

footer a {
    color: rgba(245, 239, 230, 0.6);
    text-decoration: none;
}

footer a:hover {
    color: var(--beige-1);
}

/* ============================================
       SCROLL REVEAL
    ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================
       RESPONSIVE
    ============================================ */
@media (max-width: 820px) {
    .hero-inner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .hero-img-wrap {
        width: 190px;
        height: 190px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-tagline {
        border-left: none;
        border-top: 2px solid var(--beige-3);
        padding: 14px 0 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skill-cards-row {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    section {
        padding: 64px 0;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-item {
        padding: 10px 14px;
    }
}