*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
}

img {
    max-width: 100%;
    width: 100%;
    height: 500px;
}

.container {
    max-width: 100%;
    width: 100%;
    background-color: white;
}

.firstimg {
    position: sticky;
    width: 100%;
    top: 0px;
    height: 150px;
    z-index: 1;
    object-fit: cover;
    display: block;
}

/* NAVBAR - PERFECTLY CENTERED */
nav {
    position: sticky;
    top: 0px;
    margin-top: 20px;
    padding-top: 20px;
    z-index: 1000;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 3.5vw, 48px);
    padding-left: 20px;
    padding-right: 20px;
}

nav a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    margin: 0;
}

nav a:hover {
    color: grey;
    cursor: pointer;
}

nav hr {
    width: 100%;
    flex-basis: 100%;
    margin: 15px 0 0 0 !important;
    border: 0;
    border-top: 0.5px solid grey;
}

/* SECOND INFO */
.secondinfo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 50px 100px;
    background-color: white;
}

/* GENERAL INFO */
.info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 100px;
    padding: 50px 100px;
    background-color: white;
}

.info p {
    width: 75%;
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
}

/* GALLERY (DESKTOP & LAPTOP) */
.info.gallery {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 100px;
}

.project {
    position: relative;
    flex: 1;
    width: calc(50% - 20px);
    overflow: hidden;
}

.project .one,
.project .fix {
    width: 100%;
    height: 480px;
    margin-left: 0;
    display: block;
    object-fit: cover;
}

/* VIEW PROJECT BUTTON */
.project button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    padding: 12px 25px;
    background: transparent;
    color: white;
    border: 1px solid white;
    cursor: pointer;
    transition: 0.3s;
}

.project:hover button {
    opacity: 1;
}

button:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

/* CONTACT INFO (DESKTOP & LAPTOP) */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 100px;
}

.contact-info p {
    width: auto;
    flex: 1;
    min-width: 220px;
}

.contact-info iframe {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 250px;
    margin-left: 0 !important;
    border: 0;
}

/* FOOTER */
footer .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 50px 100px;
}

footer .info p {
    width: auto;
    margin: 0;
}

.social {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.social a {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
}

.social img {
    object-fit: contain;
}

.foot {
    position: relative;
    font-size: 25px;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 10px 100px;
    background-color: grey;
}

.foot p {
    margin: 0;
}

/* ===================================================
   TABLETS (768px – 1024px)
   =================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    nav {
        margin-top: 15px;
        padding-top: 15px;
        gap: clamp(15px, 2.5vw, 30px);
    }

    nav a {
        font-size: 16px;
        margin: 0;
    }

    nav hr {
        margin: 12px 0 0 0 !important;
    }

    .firstimg {
        height: 140px;
        object-fit: cover;
    }

    .secondinfo {
        padding: 30px 40px;
    }

    .info {
        padding: 30px 40px;
        gap: 40px;
    }

    .info p {
        font-size: 16px;
    }

    .info.gallery {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        gap: 25px;
        padding: 30px 40px;
    }

    .project {
        position: relative;
        flex: 1;
        width: calc(50% - 13px);
    }

    .project .one,
    .project .fix {
        width: 100%;
        height: 340px;
        margin-left: 0;
        display: block;
        object-fit: cover;
    }

    .project button {
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.4);
    }

    .contact-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 30px 40px;
    }

    .contact-info p {
        width: 100%;
        min-width: 0;
    }

    .contact-info iframe {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        height: 250px;
        margin-left: 0 !important;
    }

    footer .info {
        padding: 20px 40px;
        gap: 15px;
    }

    footer .info p:first-child {
        font-size: 22px !important;
        flex: 1;
        min-width: 0;
    }

    .social {
        margin-left: 0;
        gap: 15px;
    }

    .social a:first-child img {
        width: 48px !important;
        height: 48px !important;
    }

    .social a:nth-child(2) img {
        width: 35px !important;
        height: 35px !important;
    }

    .social a:nth-child(3) img {
        width: 38px !important;
        height: 38px !important;
    }

    .foot {
        font-size: 18px;
        padding: 10px 40px;
    }
}

/* ===================================================
   LARGE PHONES (481px – 767px)
   =================================================== */
@media (min-width: 481px) and (max-width: 767px) {
    nav {
        gap: 10px 18px;
        margin-top: 10px;
        padding-top: 12px;
        padding-left: 15px;
        padding-right: 15px;
    }

    nav a {
        margin: 0;
        font-size: 14px;
    }

    nav hr {
        margin: 10px 0 0 0 !important;
    }

    .firstimg {
        height: 120px;
        object-fit: cover;
    }

    .secondinfo {
        padding: 20px 25px;
    }

    .info {
        padding: 25px 25px;
    }

    .info.gallery {
        flex-direction: column;
        padding: 20px 25px;
        gap: 20px;
    }

    .gallery .project {
        width: 100%;
    }

    .project .one,
    .project .fix {
        width: 100%;
        height: 320px;
        object-fit: cover;
    }

    .project button {
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.4);
    }

    .contact-info {
        display: block;
        padding: 25px 25px;
    }

    .contact-info p {
        width: 100%;
        margin-bottom: 15px;
    }

    .contact-info iframe {
        width: 100%;
        max-width: 100%;
        height: 240px;
        margin-left: 0 !important;
    }

    footer .info {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        gap: 15px;
    }

    footer .info p:first-child {
        font-size: 18px !important;
        flex: 1;
        min-width: 0;
    }

    .social {
        margin-left: auto;
        gap: 12px;
    }

    .social a:first-child img {
        width: 42px !important;
        height: 42px !important;
    }

    .social a:nth-child(2) img {
        width: 32px !important;
        height: 32px !important;
    }

    .social a:nth-child(3) img {
        width: 35px !important;
        height: 35px !important;
    }

    .foot {
        font-size: 14px;
        padding: 10px 25px;
    }
}

/* ===================================================
   MOBILE PHONES (320px – 480px)
   =================================================== */
@media (max-width: 480px) {
    nav {
        gap: 8px 12px;
        margin-top: 5px;
        padding-top: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    nav a {
        margin: 0;
        font-size: 12px;
    }

    nav hr {
        margin: 8px 0 0 0 !important;
    }

    .firstimg {
        height: 100px;
        object-fit: cover;
    }

    .secondinfo {
        padding: 15px 15px;
    }

    .info {
        padding: 20px 15px;
    }

    .info.gallery {
        flex-direction: column;
        padding: 15px 15px;
        gap: 15px;
    }

    .gallery .project {
        width: 100%;
    }

    .project .one,
    .project .fix {
        width: 100%;
        height: 240px;
        object-fit: cover;
    }

    .project button {
        opacity: 0.9;
        background: rgba(0, 0, 0, 0.4);
        padding: 10px 18px;
        font-size: 13px;
    }

    .contact-info {
        display: block;
        padding: 20px 15px;
    }

    .contact-info p {
        width: 100%;
        margin-bottom: 12px;
    }

    .contact-info iframe {
        width: 100%;
        max-width: 100%;
        height: 220px;
        margin-left: 0 !important;
    }

    footer .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 15px;
    }

    footer .info p:first-child {
        font-size: 17px !important;
        width: 100%;
    }

    .social {
        margin-left: 0;
        gap: 10px;
    }

    .social a:first-child img {
        width: 36px !important;
        height: 36px !important;
    }

    .social a:nth-child(2) img {
        width: 28px !important;
        height: 28px !important;
    }

    .social a:nth-child(3) img {
        width: 30px !important;
        height: 30px !important;
    }

    .foot {
        font-size: 12px;
        padding: 10px 15px;
        text-align: center;
        justify-content: center;
    }
}