/* Basic styles */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #1c1c1c;
    line-height: 1.6;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* Header */

header {
    background-color: #111827;
    color: white;
    padding: 20px 5%;
    text-align: center;
}

.logo {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin: 8px 0;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}


/* Main */

main {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Hero */

.hero {
    padding: 60px 0;
    text-align: center;
}

.intro {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #4b5563;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 5px;
}

.hero h2 {
    font-size: 1.3rem;
    color: #4b5563;
    margin-bottom: 20px;
}

.hero-text > p {
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-photo {
    margin: 40px auto 0;
    max-width: 350px;
}

.hero-photo img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}


/* Buttons */

.button {
    display: inline-block;
    background-color: #111827;
    color: white;
    text-decoration: none;
    padding: 12px 22px;
    margin-top: 10px;
    border-radius: 5px;
}

.button:hover,
.button:focus {
    background-color: #374151;
}


/* Projects */

#projects {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title p,
.small-title {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.project-card {
    background-color: white;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.project-number {
    font-size: 2rem;
    font-weight: bold;
    color: #9ca3af;
    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-card span {
    color: #6b7280;
    font-size: 0.9rem;
}

.coming-soon {
    margin-top: 25px;
    margin-bottom: 0;
    font-weight: bold;
}


/* About */

#about {
    background-color: white;
    padding: 40px;
    margin: 50px 0;
    border-radius: 15px;
}

.about-photo {
    margin-bottom: 30px;
}

.about-photo img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.about-text h2 {
    font-size: 2rem;
}


/* Contact */

#contact {
    text-align: center;
    padding: 80px 20px;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#contact p {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* Footer */

footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
}


/* Larger screens */

@media (min-width: 750px) {

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .logo {
        margin-bottom: 0;
    }

    nav ul {
        display: flex;
        gap: 30px;
    }

    nav li {
        margin: 0;
    }


    /* Hero desktop */

    .hero {
        min-height: 650px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
        text-align: left;
    }

    .hero-text {
        width: 55%;
    }

    .hero-text > p {
        margin-left: 0;
        margin-right: 0;
    }

    .hero h1 {
        font-size: 4.5rem;
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-photo {
        width: 40%;
        max-width: none;
        margin: 0;
    }

    .hero-photo img {
        height: 500px;
    }


    /* Projects desktop */

    .project-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .project-card {
        margin-bottom: 0;
        min-height: 280px;
    }


    /* About desktop */

    #about {
        display: flex;
        align-items: center;
        gap: 50px;
        padding: 50px;
    }

    .about-photo {
        width: 45%;
        margin-bottom: 0;
    }

    .about-text {
        width: 55%;
    }

    .about-photo img {
        height: 450px;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }
}