@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
    display: flex;
    color: white;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Roboto Condensed", sans-serif;
     background-image:  linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),  url("./img/office.png");
    background-size: cover;
    background-position: center;
    animation: gradient 12s ease infinite;
}



.header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(47, 46, 46);
  height: 7em;
  opacity: 80%;
  animation: slideDown 0.6s ease-out forwards;

}

@keyframes slideDown {
    from {
        transform: translateY(-80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}



.header img {
    width: 100px;
    height: auto;
    border-radius: 35%;
    padding-left: 5px
}

.navbar {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-right: 3em;
   
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    cursor: pointer;
    color: rgb(254, 253, 253);
}

.navbar li img {
    width: 35px;
    height: auto;
}

.intro {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 950px;
    margin: 0 auto;
    gap: 15px;
}

.intro img {
    width: 250px;
    height: auto;
    border-radius: 30px;
    flex-shrink: 0;
}
.intro h1 {
    font-size: 6em;
    font-weight: bold;
    width: 100%;
}

.intro p {
    font-size: 1.2rem;
    margin-top: 10px;
}

.portfolio {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 2em;
    margin-bottom: 3em;
}



.cards-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}


.card img {
    width: 300px;
    height: 150px;
}

/* portfolio page section */

.projects {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 2em;
}

.cards-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.projects h1 {
    font-size: 3em;
}

.card {
  margin-top: 3em;
}

/* about section */

.about {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 950px;
    margin: 0 auto;
    gap: 35px;
    padding-top: 3em;
    padding-bottom: 2em;
}

.mainPhoto {
    width: 300px;
    height: auto;
    border-radius: 30px;
    flex-shrink: 0;
}

.about-text {
    font-size: 1.2em;
    min-width: 700px;
}

.images {
    display: flex;
    padding-top: 15px;
    justify-content: space-evenly;
    gap: 20px;

}

.img-wrapper {
    width: 150px;
    height: auto;
}


.img-wrapper img {
    width: 150px;
    height: 160px;
    border-radius: 30px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.img-wrapper:hover img {
    transform: scale(2.1) translateY(-40%);
    transform-origin: bottom center;
    z-index: 999;
}

/* contact section */

.contact {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 35px;
    padding-top: 2em;
    padding-bottom: 2em;
}

.contact-container { 
    flex: 1;
}

.contact h1 {
    font-size: 4em;
}

.contact p {
    font-size: 1.5em;
    line-height: 1.6em;
    max-width: 500px;
}

.contact-icons {
    display: flex;
    gap: 20px;
    list-style: none;
}

.contact-icons img {
    padding-top: 10px ;
    width: 4em;
    height: auto;
}

.contact-icons li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 20px;
}

.contact-image {
    flex: 1;
    max-width: 200px;
    width: 35%;
    height: auto;
    border-radius: 30px;
}

/* contact form */
.email {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1em;
    min-height: 300px;
    gap: 15px;
}

.email form {
    display: flex;
    flex-direction: column;
    width: 700px;
    gap: 15px;
}

/* Name and Email on the same row */
.email form .row {
    display: flex;
    gap: 15px;
}

.email form .row .field {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

/* All other fields */
.email form label {
    font-weight: 500;
}

.email form input,
.email form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Larger textarea for message */
.email form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Centered button */
.email form button {
    align-self: center;
    padding: 10px 32px;
    font-size: 1rem;
    cursor: pointer;
    background-color: black;
    color: white;
}

/* ══════════════════════════════
   TABLET  (max 900px)
══════════════════════════════ */
@media (max-width: 900px) {
    .header {
        height: auto;
        padding: 1em;
        justify-content: space-between;
    }

    .navbar {
        margin-right: 0;
    }

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

    .intro img {
        width: 180px;
    }

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

    .mainPhoto {
        width: 200px;
    }

    .about-text {
        min-width: unset;
        width: 100%;
    }

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

    .contact-image {
        max-width: 150px;
        width: 150px;
    }

    .contact p {
        max-width: 100%;
    }

    .contact-icons {
        justify-content: center;
    }
}

/* ══════════════════════════════
   MOBILE  (max 600px)
══════════════════════════════ */
@media (max-width: 600px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 1em;
        gap: 0.75em;
    }

    .navbar ul {
        gap: 12px;
        justify-content: center;
    }

    .intro img {
        width: 140px;
    }

    .mainPhoto {
        width: 150px;
    }

    .card img {
        width: 100%;
        height: auto;
    }

    .email form .row {
        flex-direction: column;
    }

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

    .img-wrapper img {
        width: 110px;
        height: 120px;
    }

    .img-wrapper {
        width: 110px;
    }
}
