/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5f2ed;
    --black: #111111;
    --white: #ffffff;
    --accent: #c8a96e;
    --muted: #888880;
    --card-bg: #ffffff;
    --border: #e0dbd2;
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Trebuchet MS', Helvetica, Arial, sans-serif;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ---- NAV ---- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background-color: transparent;
    transition: background-color var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    background-color: rgba(245, 242, 237, 0.96);
    box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--black);
    transition: color var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--black);
    transition: transform var(--transition), opacity var(--transition);
}

/* ---- HERO ---- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 60px 60px;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

/* large decorative background text */
#hero::before {
    content: "SD";
    position: absolute;
    right: -20px;
    bottom: -60px;
    font-family: var(--font-display);
    font-size: 28vw;
    font-style: italic;
    color: rgba(0,0,0,0.04);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
}

.hero-left {
    flex: 1;
    z-index: 1;
    animation: fadeUp 0.9s ease forwards;
    opacity: 0;
}

.hero-right {
    flex: 0 0 400px;
    z-index: 1;
    animation: fadeUp 0.9s ease 0.2s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    color: var(--muted);
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    background-color: #4caf50;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-name {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.line-hey {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: normal;
    color: var(--black);
    line-height: 1.1;
}

.line-iam {
    font-family: var(--font-body);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--black);
}

.line-name {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    /* gradient text */
    background: linear-gradient(135deg, var(--black) 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 36px;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 13px 30px;
    background-color: var(--black);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    padding: 13px 30px;
    border: 1px solid var(--black);
    color: var(--black);
    border-radius: 100px;
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
    transform: translateY(-2px);
}

/* hero image */
.hero-img-wrap {
    width: 380px;
    height: 480px;
    border-radius: 200px 200px 0 0;
    overflow: hidden;
    border: 3px solid var(--border);
    position: relative;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.hero-img-wrap:hover .hero-img {
    transform: scale(1.04);
}

/* ---- ABOUT ---- */
#about {
    padding: 100px 60px;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-img-col {
    position: relative;
}

.about-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(20%);
    transition: filter var(--transition);
}

.about-img:hover {
    filter: grayscale(0%);
}

.about-text-col h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: normal;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--black);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 600;
}

.about-text-col p {
    color: #444;
    margin-bottom: 16px;
    font-size: 0.96rem;
    line-height: 1.75;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--black);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.5px;
    transition: border-color var(--transition), color var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--black);
}

/* ---- PROJECTS ---- */
#projects {
    padding: 100px 60px;
    background-color: var(--bg);
}

.projects-header {
    max-width: 1100px;
    margin: 0 auto 50px auto;
}

.projects-header h2 {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* .project-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
} */

.project-img-wrap {
    position: relative;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.5s ease;
}

.project-card.featured .project-img-wrap img {
    height: 100%;
    min-height: 320px;
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17,17,17,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-link {
    padding: 12px 28px;
    background-color: var(--white);
    color: var(--black);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color var(--transition), color var(--transition);
}

.overlay-link:hover {
    background-color: var(--accent);
    color: var(--white);
}

.project-info {
    padding: 28px;
}

.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.project-info p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin-bottom: 18px;
}

.project-link {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.5px;
    transition: color var(--transition);
    text-decoration: underline;
    text-underline-offset: 4px;
}

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

/* ---- CONTACT ---- */
#contact {
    padding: 120px 60px;
    background-color: var(--black);
    color: var(--white);
    text-align: center;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
}

#contact .section-label {
    color: var(--accent);
}

#contact h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: normal;
    font-style: italic;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--white);
}

.contact-sub {
    color: #aaa;
    font-size: 0.96rem;
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: #ccc;
    padding: 14px 28px;
    border: 1px solid #333;
    border-radius: 100px;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
    min-width: 300px;
    justify-content: center;
}

.contact-item:hover {
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 20px;
    text-align: center;
}

/* ---- FOOTER ---- */
footer {
    background-color: #0a0a0a;
    padding: 32px 60px;
    border-top: 1px solid #1a1a1a;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--white);
}

footer p {
    font-size: 0.82rem;
    color: #555;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.82rem;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition);
}

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

/* ---- MOBILE NAV OPEN STATE ---- */
.nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg);
    padding: 20px 40px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    #navbar {
        padding: 18px 30px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    #hero {
        flex-direction: column-reverse;
        padding: 100px 30px 60px;
        text-align: center;
        min-height: auto;
    }

    .hero-right {
        flex: unset;
    }

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

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

    #about {
        padding: 70px 30px;
    }

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

    .about-img {
        height: 360px;
    }

    #projects {
        padding: 70px 30px;
    }

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

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    #contact {
        padding: 80px 30px;
    }

    footer {
        padding: 24px 30px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .line-iam {
        font-size: 3rem;
    }

    .line-name {
        font-size: 2.6rem;
    }

    .about-stats {
        gap: 20px;
    }

    .contact-item {
        min-width: unset;
        width: 100%;
    }
}
