* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #F5F0E8;
    color: #38291F;
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

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

section {
    scroll-margin-top: 85px;
}

.section {
    padding: 100px 10%;
}


/* NAVBAR */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #F5F0E8;
    border-bottom: 1px solid #E4D9CC;
}

.navbar {
    min-height: 80px;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #A17A58;
}

.nav-button {
    border: 1px solid #49362A;
    padding: 11px 22px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s;
}

.nav-button:hover {
    background: #38291F;
    color: #F5F0E8;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 25px;
    color: #38291F;
    cursor: pointer;
}


.hero {
    min-height: 570px;
    padding: 90px 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    max-width: 600px;
}

.eyebrow {
    color: #967557;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 22px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(55px, 7vw, 85px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 27px;
    font-style: italic;
    margin-bottom: 20px;
}

.hero-description {
    color: #77685C;
    line-height: 1.9;
    max-width: 480px;
    margin-bottom: 30px;
}

.primary-button {
    display: inline-block;
    background: #38291F;
    color: #F5F0E8;
    padding: 15px 27px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s;
}

.primary-button:hover {
    background: #80634D;
    transform: translateY(-3px);
}

.hero-photo {
    width: 340px;
    flex-shrink: 0;
    text-align: center;
}

.hero-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 170px 170px 12px 12px;
    border: 7px solid #E8DDD0;
}

.photo-caption {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-top: 15px;
    color: #80634D;
}


/* ABOUT */

.about {
    background: #EDE5DA;
    display: flex;
    align-items: center;
    gap: 70px;
}

.about-image {
    width: 45%;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.about-content {
    flex: 1;
}

.about-content h2,
.section-heading h2,
.journey h2,
.contact h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 22px;
}

.about-content > p:not(.eyebrow) {
    color: #77685C;
    line-height: 1.9;
    margin-bottom: 25px;
}

.secondary-button {
    display: inline-block;
    border: 1px solid #80634D;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 13px;
    transition: 0.3s;
}

.secondary-button:hover {
    background: #38291F;
    color: #F5F0E8;
}


/* SKILLS */

.section-heading {
    margin-bottom: 40px;
}

.section-heading > p:not(.eyebrow) {
    color: #77685C;
    margin-top: 12px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 30px;
    border: 1px solid #E0D5C8;
    border-radius: 10px;
    transition: 0.3s;
}

.skill-card:hover {
    background: #EDE5DA;
    transform: translateY(-5px);
}

.skill-card span {
    color: #A17A58;
    font-size: 12px;
}

.skill-card h3 {
    margin: 22px 0 10px;
    font-size: 23px;
}

.skill-card p {
    color: #77685C;
    font-size: 13px;
    line-height: 1.7;
}


/* PROJECTS */

.projects {
    background: #EDE5DA;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    background: #F5F0E8;
    border-radius: 12px;
    overflow: hidden;
}

.project-visual {
    height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #F5F0E8;
    gap: 10px;
}

.project-visual span {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}

.project-visual p {
    font-size: 10px;
    letter-spacing: 3px;
}

.cafe {
    background: linear-gradient(135deg, #0F172A, #1E293B, #334155);
}

.game {
    background: linear-gradient(135deg, #172A32, #48666A);
}

.future {
    background: linear-gradient(135deg, #4C3B30, #A68A6D);
}

.project-info {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info h3 {
    font-size: 19px;
    margin-bottom: 7px;
}

.project-info p {
    font-size: 12px;
    color: #806F60;
}

.project-info > span {
    font-size: 22px;
}


/* JOURNEY */

.journey {
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.journey > p:last-child {
    max-width: 600px;
    margin: auto;
    color: #77685C;
    line-height: 1.9;
}


/* CONTACT */

.contact {
    background: #38291F;
    color: #F5F0E8;
    text-align: center;
}

.contact .eyebrow {
    color: #C5A78B;
}

.contact h2 {
    font-size: 50px;
}

.contact > p:not(.eyebrow) {
    color: #D1C2B3;
    margin-bottom: 30px;
}

.contact .primary-button {
    background: #F5F0E8;
    color: #38291F;
}

.contact .primary-button:hover {
    background: #DCCAB6;
}


/* FOOTER */

footer {
    background: #F5F0E8;
    border-top: 1px solid #E0D5C8;
    padding: 25px 10%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #77685C;
}


/* MOBILE RESPONSIVENESS */

@media (max-width: 850px) {

    .navbar {
        padding: 0 6%;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #F5F0E8;
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
        border-bottom: 1px solid #E0D5C8;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-button {
        display: none;
    }

    .hero {
        padding: 70px 7%;
        flex-direction: column;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-photo {
        width: min(300px, 100%);
    }

    .about {
        flex-direction: column;
        padding: 70px 7%;
    }

    .about-image {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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


@media (max-width: 500px) {

    .section {
        padding: 70px 7%;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .about-content h2,
    .section-heading h2,
    .journey h2,
    .contact h2 {
        font-size: 34px;
    }

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

    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
