*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --cream: #FAF7F2;
    --beige: #F2EDE4;
    --nude: #E8DDD0;
    --brown: #C4A882;
    --deep-brown: #8B6F47;
    --gold: #C9A84C;
    --gold-light: #F0D98A;
    --black: #1A1714;
    --text: #2C2520;
    --text-muted: #8A7968;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --section-alt: #F7F3EE;
    --border: #E8DDD0;
}

[data-dark] {
    --cream: #1A1714;
    --beige: #221E1A;
    --nude: #2C2520;
    --black: #FAF7F2;
    --text: #EDE8E0;
    --text-muted: #A09078;
    --white: #2C2520;
    --card-bg: #221E1A;
    --section-alt: #1E1B17;
    --border: #3A3028;
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s
}

[data-dark] nav {
    background: rgba(26, 23, 20, 0.92)
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em
}

.nav-logo span {
    color: var(--gold)
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s
}

.nav-links a:hover {
    color: var(--gold)
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem
}

.dark-toggle {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s
}

.dark-toggle:hover {
    border-color: var(--gold);
    color: var(--gold)
}

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 6rem 4rem 4rem;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--beige);
    border: 1px solid var(--nude);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-brown);
    margin-bottom: 1.5rem
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.15;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em
}

.hero h1 em {
    font-style: italic;
    color: var(--gold)
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 460px
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem
}

.btn-primary {
    background: var(--text);
    color: var(--cream);
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    display: inline-block
}

.btn-primary:hover {
    background: var(--gold);
    color: #3A2800;
    transform: translateY(-2px)
}

.btn-outline {
    background: transparent;
    color: var(--text);
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid var(--nude);
    transition: all 0.25s;
    display: inline-block
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px)
}

.hero-socials {
    display: flex;
    gap: 1rem;
    align-items: center
}

.hero-socials span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.5rem
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--beige)
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative
}

.hero-img-wrap {
    position: relative;
    width: 360px;
    height: 460px
}

.hero-img-bg {
    position: absolute;
    inset: 20px 0 0 20px;
    background: linear-gradient(135deg, var(--gold-light), var(--nude));
    border-radius: 40% 60% 60% 40%/40% 40% 60% 60%;
    z-index: 0
}

.hero-img-card {
    position: absolute;
    inset: 0 20px 20px 0;
    background: var(--nude);
    border-radius: 40% 60% 60% 40%/40% 40% 60% 60%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.hero-img-placeholder {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--brown);
    opacity: 0.4
}

.hero-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.8rem 1.1rem;
    z-index: 3
}

.hero-badge-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em
}

.hero-badge-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text)
}

.hero-badge-2 {
    position: absolute;
    top: 30px;
    left: -20px;
    background: var(--gold);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    z-index: 3
}

.hero-badge-2 p {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3A2800;
    letter-spacing: 0.03em
}

/* SECTIONS */
section {
    padding: 5rem 2rem
}

.container {
    max-width: 1100px;
    margin: 0 auto
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2
}

.section-sub {
    color: var(--text-muted);
    max-width: 520px;
    font-size: 0.95rem
}

/* ABOUT */
.about {
    background: var(--section-alt)
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem
}

.about-img-box {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--nude);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--brown);
    opacity: 0.5;
    position: relative
}

.about-tag {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gold);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3A2800
}

.about-img-wrap {
    position: relative
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold)
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem
}

.pill {
    background: var(--beige);
    border: 1px solid var(--nude);
    border-radius: 50px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted)
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.25s
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(201, 168, 76, 0.1)
}

.skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--beige);
    border: 1px solid var(--nude);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.8rem
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem
}

.skill-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.skill-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0
}

/* SERVICES */
.services {
    background: var(--section-alt)
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 3rem
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden
}

.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px)
}

.service-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--nude);
    margin-bottom: 0.8rem;
    line-height: 1
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem
}

.service-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6
}

/* PORTFOLIO */
.portfolio-filter {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 2rem 0
}

.filter-btn {
    background: var(--beige);
    border: 1px solid var(--nude);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Manrope', sans-serif
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text);
    color: var(--cream);
    border-color: var(--text)
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08)
}

.project-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative
}

.project-thumb.t1 {
    background: linear-gradient(135deg, #F2EDE4, #E8DDD0)
}

.project-thumb.t2 {
    background: linear-gradient(135deg, #EDE0D0, #D4C0A8)
}

.project-thumb.t3 {
    background: linear-gradient(135deg, #F7F0E6, #EADDC8)
}

.project-thumb.t4 {
    background: linear-gradient(135deg, #E8D8C0, #C4A882)
}

.project-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 23, 20, 0.7);
    color: #FAF7F2;
    border-radius: 50px;
    padding: 0.25rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em
}

.project-info {
    padding: 1.2rem
}

.project-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem
}

.project-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55
}

/* TIMELINE */
.timeline {
    margin-top: 3rem;
    position: relative
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: var(--nude)
}

.tl-item {
    padding: 0 0 2.5rem 56px;
    position: relative
}

.tl-dot {
    position: absolute;
    left: 12px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--cream);
    z-index: 1
}

[data-dark] .tl-dot {
    border-color: #1A1714
}

.tl-year {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.3rem
}

.tl-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem
}

.tl-sub {
    font-size: 0.85rem;
    color: var(--text-muted)
}

/* TESTIMONIALS */
.testimonials {
    background: var(--section-alt)
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem
}

.testi-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.25s
}

.testi-card:hover {
    border-color: var(--gold)
}

.testi-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem
}

.testi-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.6rem
}

.testi-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.8rem
}

.testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--beige);
    border: 1px solid var(--nude);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--deep-brown);
    flex-shrink: 0
}

.testi-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text)
}

.testi-role {
    font-size: 0.75rem;
    color: var(--text-muted)
}

/* RESUME */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 3rem;
    margin-top: 3rem
}

.resume-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border)
}

.resume-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border)
}

.resume-item:last-child {
    border-bottom: none
}

.resume-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem
}

.resume-item-sub {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.2rem
}

.resume-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted)
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--text);
    color: var(--cream);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 2rem;
    transition: all 0.25s
}

.download-btn:hover {
    background: var(--gold);
    color: #3A2800
}

/* CONTACT */
.contact {
    background: var(--section-alt)
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--beige);
    border: 1px solid var(--nude);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600
}

.contact-val {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500
}

.form-group {
    margin-bottom: 1.2rem
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    transition: border-color 0.2s;
    outline: none
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold)
}

.form-group textarea {
    resize: vertical;
    min-height: 120px
}

.form-submit {
    width: 100%;
    background: var(--text);
    color: var(--cream);
    border: none;
    border-radius: 50px;
    padding: 0.9rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 0.5rem
}

.form-submit:hover {
    background: var(--gold);
    color: #3A2800
}

/* FOOTER */
footer {
    padding: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border)
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    list-style: none;
    margin-bottom: 1.2rem;
    flex-wrap: wrap
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.2s
}

.footer-links a:hover {
    color: var(--gold)
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted)
}

.footer-copy span {
    color: var(--gold)
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

@media(max-width:768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 5rem 1.5rem 2rem;
        text-align: center;
        gap: 2rem
    }

    .hero-visual {
        display: none
    }

    .skills-grid {
        grid-template-columns: 1fr
    }

    .about-grid,
    .resume-grid,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .about-img-wrap {
        display: none
    }

    nav .nav-links {
        display: none
    }

    .hero-btns,
    .hero-socials {
        justify-content: center
    }
}
