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



@font-face {
    font-family: 'Manrope-Light';
    src: url('fonts/Manrope-Light.woff2') format('woff2'),
        url('fonts/Manrope-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Manrope-Medium';
    src: url('fonts/Manrope-Medium.woff2') format('woff2'),
        url('fonts/Manrope-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope-SemiBold';
    src: url('fonts/Manrope-SemiBold.woff2') format('woff2'),
        url('fonts/Manrope-SemiBold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}




body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    text-align: left;
    font-family: 'Manrope-Light';
}

html {
    scroll-behavior: smooth;
    color: white;
}

/* ===================== HEADER ===================== */
header {
    width: 100%;
    height: 6rem;
    position: fixed;
    top: 0;
    z-index: 10;
    color: aliceblue;
    font-family: 'Manrope-Light';
    font-size: 15px;
}


header {
    transition: background-color 0.3s ease;
    background-color: transparent;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.85);
    /* dark background */
}



.home-icon {
    width: 23px;
    height: auto;
    cursor: pointer;
    margin-left: 5px;
    margin-top: 19px;
}

.header-container {
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.header-container>div {
    margin: 3rem 0;
    height: 4rem;
    line-height: 4rem;
}

.click-home,
.navigation span {
    cursor: pointer;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 46px;
}

/* ===================== MAIN ===================== */
main {
    padding-top: 0;
}

/* ===================== HOME PAGE ===================== */
.home-page {
    background-color: #000000;
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
}

.hero-page {
    height: 40rem;
    width: 100%;
    max-width: 60rem;
    background-color: #1d1d1d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ===================== BANNER ===================== */
.banner {
    width: 100%;
    min-height: 52rem;
    background-color: #1d1d1d;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    /* For overlay or layer positioning */
}





.banner .container {
    width: 100%;
    max-width: 60rem;
    margin: 0 auto;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Manrope-Medium';
}

.banner h6 {
    font-size: 1.2rem;
    color: #cfcfcf;
    font-family: 'Manrope-Light';
}

/* ===================== PROJECTS ===================== */
.project-container {
    margin: 1rem 0rem 5rem 0rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1273px;
}

.project-card {
    padding: 1rem;
    height: 16rem;
    flex: 1 1 31%;
    background-color: #1d1d1d;
    cursor: pointer;
    min-width: 15rem;
}

/* ===================== ABOUT SECTION ===================== */
.about-container {
    margin: 4rem 0rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-card-img {
    height: 21rem;
    width: 100%;
    max-width: 28rem;
    background-color: #1d1d1d;
    padding: 1rem;
}

.about-card-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
}

.about-txt {
    height: 21rem;
    width: 100%;
    max-width: 49rem;
    background-color: #1d1d1d;
    padding: 1rem;
}

/* Extra about section */
.about-extra {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.about-extra-left {
    flex: 1;
    min-width: 200px;
    color: white;
    font-size: 1rem;
}

.about-extra-right {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    min-width: 300px;
}

.about-extra-right .box {
    background-color: #1d1d1d;
    padding: 2rem;
    text-align: left;
}

/* ===================== CONTACT SECTION ===================== */
.contact-container {
    margin: 1rem auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0;
}

.contact-card-txt {
    height: 39.7rem;
    width: 100%;
    max-width: 33rem;
    background-color: #1d1d1d;
    padding: 2rem;
}

.contact-card-lable {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    min-width: 20rem;
}

.name-lable {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.name-lable div {
    flex: 1 1 22rem;
    height: 4rem;
    background-color: #1d1d1d;
    padding: 1rem;
    min-width: 10rem;
}

.email-msg-lable {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.email,
.message,
.submit {
    background-color: #1d1d1d;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.email {
    height: 3rem;
}

.message {
    height: 7rem;
}

.submit {
    width: 9rem;
    height: 3rem;
}

/* ===================== PROJECT PAGE ===================== */
.project-page {
    margin: 0 auto;
    height: 31rem;
    width: 100%;
    max-width: 94rem;
    background-color: #1d1d1d;
    padding: 17rem;
    text-align: center;
}

/* ===================== HIDE ALL ===================== */
.hideAll,
.response-container {
    display: none;

}


/* ===================== FOOTER ===================== */
.site-footer {
    background: #1d1d1d;
    padding: 2.2rem 0;
    margin-top: 4rem;
}

.footer-inner {
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    padding: 0 1rem;
}

.footer-right span {
    margin-left: 1.2rem;
    cursor: pointer;
}











/* Wrap both left text and right form */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Left text */
.contact-card-txt {
    flex: 1;
}

.contact-card-txt h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* Right side form area */
.form-container {
    width: 40rem;
    /* adjust as needed */
    max-width: 100%;
    background: #1d1d1d;
    padding: 25px;
}

/* Form styling */
form p {
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    font-size: 1rem;
}

input[type="button"] {
    background: #000;
    color: #fff;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease;
}

input[type="button"]:hover {
    background: #444;
}


input[type="text"],
textarea {
    background-color: #242424;
    /* or #1d1d1d if you want lighter */
    color: #ffffff;
    /* text color */
    border: 1px solid #333;
    /* optional border */
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    font-size: 1rem;
    outline: none;
    /* optional */
}






form,
form input,
form textarea,
form label {
    font-family: 'Manrope-Light';
}






/* Response message */
.response-container {
    margin-top: 20px;
    display: none;
    /* keep hidden unless form is sent */
}

/* Mobile responsiveness */
@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
    }
}


@media print,
screen and (max-width: 40em) {

    /* Make all main containers full width on mobile */
    .header-container,
    main,
    .home-page,
    .banner .container,
    .project-container,
    .about-container,
    .about-extra,
    .contact-container,
    .footer-inner {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Header */
    .navigation {
        gap: 1.5rem;
    }

    /* Banner becomes more square-like */
    .banner {
        flex-direction: column;
        padding: 6rem 0rem 0rem 0;
        min-height: 40rem;
    }

    /* About section stacks vertically */
    .about-container {
        flex-direction: column;
        align-items: center;
    }


    .about-txt {
        max-width: 100%;
        height: auto;

    }

    /* Projects stack vertically */
    .project-container {
        justify-content: center;
    }

    .project-card {
        width: 90%;
        margin-top: 2rem;
    }

    /* Skills boxes (about-extra-right) turn into 2x2x2 grid */
    .about-extra-right {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact section stacks */
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card-txt,
    .contact-card-lable {
        max-width: 100%;
    }

    /* Footer layout */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Hide footer items like About, Contact, Works */
    .footer-right {
        display: none;
    }


    .site-footer {
        background: #1d1d1d;
        padding: 2.2rem 0;
        margin-top: 4rem;
    }

    .project-page {
        margin: 0 auto;
        height: 50rem;
        width: 100%;
        max-width: 94rem;
        background-color: #1d1d1d;
        padding: 26rem 0px 0px 0px;
        text-align: center;
    }
}


.banner[style*="display: block"] {
    display: flex !important;
}