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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #fff5f7;
    color: #fb6853;
}


header {
    width: 100%;
    background: #fb6853;
}

.navbar {
    max-width: 1100px;
    margin: auto;

    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 30px;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;

    transition: 0.2s;
}

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

.menu-button {
    display: none;

    background: #eebbd0;
    color: #fb6853;

    border: 2px solid white;

    padding: 10px 14px;

    border-radius: 10px;

    cursor: pointer;
}


.hero {
    width: 100%;

    min-height: 470px;

    padding: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        radial-gradient(
            circle at top,
            #ffd9df,
            #fff5f7 60%
        );
}

.hero-text {
    width: 45%;
}

.hero-text h1 {
    font-size: 55px;
    color: #fb6853;

    margin-bottom: 20px;
}

.hero-text p {
    color: #fb6853;

    line-height: 1.6;

    margin-bottom: 30px;
}


.pixel-button {
    display: inline-block;

    background: #fb6853;
    color: white;

    border: 3px solid white;

    padding: 12px 25px;

    border-radius: 5px;

    font-weight: bold;

    text-decoration: none;

    cursor: pointer;

    box-shadow: 3px 3px 0 #eaa7bd;

    transition: 0.2s;
}

.pixel-button:hover {
    transform: translateY(-3px);

    box-shadow: 5px 5px 0 #d58ca9;
}


.hero-image {
    width: 45%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;

    height: 300px;

    object-fit: contain;

    display: block;

    border-radius: 15px;
}

.example-images {
    width: 100%;

    margin: 50px 0;

    padding: 50px 20px;

    background: #ffe1e7;
}

.section-title {
    text-align: center;

    color: #fb6853;

    font-size: 28px;

    margin-bottom: 35px;
}


.image-gallery {
    max-width: 900px;

    margin: auto;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 30px;
}

.image-gallery img {
    width: 25%;

    max-width: 220px;

    height: 160px;

    object-fit: cover;

    display: block;

    border-radius: 15px;

    box-shadow: 8px 10px 0 #c94d3e;

    transition: 0.2s;
}

.image-gallery img:hover {
    transform: translateY(-5px);

    box-shadow: 10px 13px 0 #fb6853;
}


.projects-section {
    width: 100%;

    max-width: 1100px;

    margin: 50px auto;

    padding: 0 20px;
}


.cards {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.card {
    text-decoration: none;
    color: inherit;

    display: block;

    min-height: 300px;

    background: #ffd9df;

    border-radius: 18px;

    padding: 25px 20px;

    text-align: center;

    box-shadow: 8px 10px 0 #c94d3e;

    transition: 0.2s;
}

.card:hover {
    transform: translate(-3px, -5px);

    box-shadow: 12px 15px 0 #fb6853;

    cursor: pointer;
}

.card h2 {
    font-size: 18px;

    margin: 10px 0 20px;

    color: #fb6853;
}

.card img {
    width: 100%;

    max-width: 220px;

    height: 160px;

    object-fit: contain;

    display: block;

    margin: 20px auto;
}

.card p {
    font-size: 14px;

    line-height: 1.5;

    color: #fb6853;
}


footer {
    margin-top: 50px;

    padding: 25px;

    text-align: center;

    background: #fb6853;

    color: white;

    font-weight: bold;
}


@media (max-width: 850px) {


    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: flex;

        gap: 15px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .menu-button {
        display: block;
    }


    /* HERO */

    .hero {
        padding: 40px 25px;

        flex-direction: column;

        text-align: center;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text h1 {
        font-size: 40px;
    }


    /* HERO IMAGE */

    .hero-image {
        width: 100%;

        margin-top: 30px;
    }

    .hero-image img {
        width: 80%;

        max-width: 400px;

        height: 250px;
    }


    /* EXAMPLE IMAGES */

    .image-gallery {
        gap: 20px;
    }

    .image-gallery img {
        width: 28%;

        max-width: 180px;

        height: 140px;
    }


    /* PROJECT CARDS */

    .cards {
        grid-template-columns: 1fr 1fr;

        gap: 15px;
    }

    .card {
        min-height: 280px;
    }
}


@media (max-width: 550px) {

    .navbar {
        padding: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        display: flex;

        gap: 10px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .menu-button {
        padding: 8px 11px;
    }


    .hero {
        padding: 35px 20px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 14px;
    }


    .hero-image img {
        width: 90%;

        max-width: 350px;

        height: 220px;
    }


    .example-images {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .image-gallery {
        flex-direction: column;

        gap: 25px;
    }

    .image-gallery img {
        width: 70%;

        max-width: 250px;

        height: 170px;
    }


    .cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .card {
        min-height: 280px;
    }

    .card img {
        max-width: 250px;

        height: 180px;
    }
}


.gallery-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-image img {
    width: 300px;
    max-width: 80%;

    height: 220px;

    object-fit: contain;

    display: block;

    cursor: pointer;

    transition: transform 0.2s;
}

.gallery-image img:hover {
    transform: scale(1.03);
}

.gallery-image img:active {
    transform: scale(0.95);
}


@media (min-width: 1400px) {

    .navbar {
        max-width: 1300px;
        padding: 25px 40px;
    }

    .hero {
        min-height: 600px;

        padding: 90px 10%;

        gap: 60px;
    }

    .hero-text {
        width: 45%;
    }

    .hero-text h1 {
        font-size: 70px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-image {
        width: 50%;
    }

    .hero-image img {
        max-width: 600px;
    }

    .projects-section {
        max-width: 1300px;
    }

    .cards {
        gap: 35px;
    }

    .card {
        min-height: 350px;

        padding: 30px 25px;
    }

    .card img {
        max-width: 250px;
        height: 190px;
    }

    .example-images {
        padding: 70px 30px;
    }

    .image-gallery {
        max-width: 1100px;
        gap: 50px;
    }

    .image-gallery img {
        max-width: 260px;
        height: 190px;
    }

    .section-title {
        font-size: 32px;
    }
}