* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f7f5f2;
    color: #111;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* 
---------------------
HEADER
---------------------
*/

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(247,245,242,0.9);
    backdrop-filter: blur(10px);

    z-index: 1000;
}

.logo {
    font-size: 0.9rem;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #111;
    font-size: 0.9rem;
}

nav a:hover {
    opacity: 0.6;
}

/*
--------------------
HERO
--------------------
*/

.hero {
    min-height: 100vh;
    padding: 140px 8% 100px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-media {
    width: 100%;
    height: 65vh;

    background: #dcd8d2;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #777;
}

.hero-content {
    margin-top: 40px;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.hero-content span {
    color: #777;
}

/*
---------------------------
SECTION TITLE
---------------------------
*/

.section-title {
    padding: 150px 8% 80px;
}

.section-title h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 500;
}

/*
-----------------------
PROJECTS
-----------------------
*/

.project {
    padding: 0 8% 160px;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.project-media {
    width: 100%;
    height: 80vh;
    background: #dcd8d2;
    margin-bottom: 0;

    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.project-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.project-info p {
    color: #666;
}

/* Alternate every second project */

.project:nth-child(even) .project-media {
    order: 2;
}

.project:nth-child(even) .project-info {
    order: 1;
}

.project:nth-of-type(3n + 1) .project-media {
    transform: rotate(-1deg);
}

.project:nth-of-type(3n + 2) .project-media {
    transform: rotate(1deg);
}

.project:nth-of-type(3n + 3) .project-media {
    transform: rotate(-0.5deg);
}

/* 
-------------
About
-------------
*/

.about {
    padding: 150px 8%;
    max-width: 900px;
}

.about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin-bottom: 40px;
}

.about p {
    font-size: 1.25rem;
}

/*
---------------
SERVICES
---------------
*/

.services {
    padding: 150px 8%;
}

.services h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin-bottom: 60px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.service-grid h3 {
    margin-bottom: 20px;
}

.service-grid {
    color: #666;
}

/*
-----------------
CONTACT
-----------------
*/

.contact {
    padding: 180px 8%;
}

.contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 40px;
}

.contact a {
    color: #111;
    text-decoration: none;
}

.socials {
    margin-top: 40px;
    display: flex;
    gap: 25px;
}

/*
---------------
MOBILE
---------------
*/

@media (max-width: 768px) {

    header {
        padding: 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 0.8rem;
    }

    .hero,
    .project,
    .section-title,
    .services,
    .about,
    .contact {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-media {
        height: 50vh;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project:nth-child(even) .project-media,
    .project:nth-child(even) .project-info {
        order: initial;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}