@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');

body {
    box-sizing: border-box;
    background-color: #09090b;
    color: #f4f4f5;
    font-family: 'Host Grotesk', sans-serif;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    max-width: 1400px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.logo, .contact-icon {
    font-size: 1.5em;
    color: #ffffff;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: color 0.2s;
    padding: 10px 20px;
    display: block;
}

.navbar .nav-links li a:hover {
    color: #a1a1aa;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px;
    transition: all 0.3s ease;
}

.intro {
    text-align: left;
    padding: 100px 0 100px 20px; /* Top, Right, Bottom, Left */
    max-width: 1000px;
    margin-left: 0;
}

.intro h1 {
    font-size: 4em;
    font-weight: 500;
    margin-bottom: 0.2em;
}

.intro h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #f4f4f5;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.intro p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 2em;
}

h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 2em;
    text-align: left;
}

.services, .projects {
    padding: 50px 0 100px 20px;
    max-width: 800px;
    margin-left: 0;
    text-align: left;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background-color: #282828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h4 {
    font-size: 1.2em;
    margin-top: 0;
}

.card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.projects .project h4 {
    font-size: 2em;
    text-align: left;
    margin-top: 0;
    margin-bottom: 1em;
}

.projects .project {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.projects .project > div {
    flex: 1;
}

.projects .project img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin-top: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet styles */
    .intro {
        padding: 80px 20px;
    }

    .intro h1 {
        font-size: 3.5em;
    }

    .intro h2 {
        font-size: 2em;
    }

    .intro p {
        font-size: 1.1em;
    }

    .services, .projects {
        padding: 40px 20px;
    }

    .projects .project {
        flex-direction: column;
        text-align: center;
    }

    .projects .project img {
        max-width: 80%;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    /* Phone styles */
    header {
        padding: 15px 20px;
    }

    .intro {
        padding: 60px 15px;
    }

    .intro h1 {
        font-size: 2.5em;
    }

    .intro h2 {
        font-size: 1.5em;
    }

    .intro p {
        font-size: 1em;
    }

    .services, .projects {
        padding: 30px 15px;
    }

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

    .projects .project {
        flex-direction: column;
        text-align: center;
    }

    .projects .project img {
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 1023px) {
    .navbar .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: #181818;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .navbar .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}