@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(rgba(0, 20, 0, 0.8), rgba(0, 50, 0, 0.8)), url('img/green_acrylic_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;

}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: black;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: rgb(0, 255, 0);
    font-weight: 800;
    cursor: pointer;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    text-shadow: 0 0 5px rgb(0, 255, 0),
        0 0 25px rgb(0, 255, 0);
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

.logo:hover {
    color: white;
    text-shadow: 0 0 5px white,
        0 0 25px white;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    transition: .3s;
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

@keyframes slideTop {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

nav a:hover {
    color: rgb(0, 255, 0);
}

nav a.active {
    border-bottom: 3px solid rgb(0, 255, 0);
}






section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

section.contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 9%;
    margin-top: 1rem;
    gap: 8rem;
}

section.mail-contact {
    height: 10vh;
    min-height: 10vh;
    max-height: 20vh;
    padding: 5rem 9% 5rem;
}



.contact-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1.5rem;
}

.contact-container h1 {
    font-size: 9rem;
}

.contact {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 9%;
    margin-top: 1rem;
    position: relative;
    min-height: 100vh;
    /* Ensure full viewport height */
}

.contact-container {
    flex: 1;
    /* Keeps the contact text on the left side */
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -20rem;
}

.contact-title {
    font-size: 9rem;
    text-align: left;
}


/************************magnetic btn*********************/


/* Style for magnetic buttons */
.magneticbtn a {
    background-color: transparent;
    margin-top: 1rem;
    border: 0.2rem solid rgb(0, 255, 0);
    width: 15rem;
    height: 15rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.magneticbtn .btn>span {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    transition: transform 100ms ease-out;
    z-index: 5;
}

.magneticbtn .hovercolor {
    position: absolute;
    z-index: 1;
    background-color: rgb(0, 255, 0);
    border-radius: 100%;
    width: 100%;
    height: 0%;
    bottom: 0;
    transition: height 0.3s ease-in-out;
}

.magneticbtn a:hover .hovercolor {
    height: 100%;
    box-shadow: 0 0 25px rgb(0, 255, 0);
}

.magneticbtn a:hover span {
    color: black;
}

.magneticbtn a:hover {
    box-shadow: 0 0 25px rgb(0, 255, 0);
}






/* Specific button positions for scattering */

.magneticbtn:nth-child(1) {
    margin-top: 10rem;
}

.magneticbtn:nth-child(2) {
    margin-left: 20rem;
    /* Adjust positions as needed */
    margin-top: 3rem;
}

.magneticbtn:nth-child(3) {
    margin-left: 0;
    margin-top: 1rem;
}

.magneticbtn:nth-child(4) {
    margin-left: 30rem;
    margin-top: 2rem;
}

.magneticbtn:nth-child(5) {
    margin-left: 6rem;
    margin-top: 0rem;
}

.magnetic-container {
    padding-bottom: 10rem;
}

.mail-contact {
    display: flex;
    justify-content: center;
    /* Horizontally center the content */
    align-items: center;
    /* Vertically center the content */
    text-align: center;
    /* Ensure text inside is centered */
}

.mail-container {
    display: flex;
    justify-content: center;
    /* Center the button horizontally */
    align-items: center;
    /* Center the button vertically */
    padding-bottom: 5rem;
}







.mail-contact .magneticbtn.mailbtn a {
    background-color: transparent;
    margin-top: 1rem;
    border: black;
    width: 30rem;
    /* Adjusted width for rectangle */
    height: 10rem;
    /* Adjusted height for rectangle */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10%;
    /* No rounding for rectangle */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover effect for mail button */

.mail-contact .magneticbtn.mailbtn .hovercolor {
    position: absolute;
    z-index: 1;
    background-color: black;
    border-radius: 10%;
    width: 100%;
    height: 0%;
    bottom: 0;
    transition: height 0.3s ease-in-out;
}

.mail-contact .magneticbtn.mailbtn a:hover .hovercolor {
    height: 100%;
    box-shadow: black;
}

.mail-contact .magneticbtn.mailbtn a:hover span {
    color: white;
    border-bottom: 3px solid rgb(0, 255, 0);
}

.mail-contact .magneticbtn.mailbtn a:hover {
    box-shadow: none;
}



























@media (max-width: 1000px) {
    .home {
        gap: 4rem;
    }
}

@media(max-width:995px) {
    .home {
        flex-direction: column;
        max-width: 100vw;
        margin: 5rem 4rem;
    }

    .hamburger {
        display: flex;
        /* Show hamburger icon on mobile */
        flex-direction: column;
        cursor: pointer;
        margin-left: auto;
        /* Align to the right */
    }

    .line {
        width: 3rem;
        height: 0.3rem;
        background-color: white;
        margin: 3px 0;
    }

    nav {
        display: none;
        /* Hide nav by default */
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 6rem;
        /* Adjust based on header height */
        right: 0;
        width: 100%;
        max-width: 100%;
        background-color: rgba(22, 22, 22, 0.9);
        z-index: 10;
        /* Ensure it appears above other content */
    }

    nav.active {
        display: flex;
        /* Show nav when active */
    }

    nav a {
        margin: 1.5rem 0;
        padding: 0.5rem 1rem;
    }

    nav a:hover {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid rgb(0, 255, 0);
    }


    .contact-container {
        margin-top: 0;
    }

    .contact-title {
        padding-top: 20rem;
    }

    .contact {
        flex-direction: column;
    }

    .magneticbtn:nth-child(1) {
        margin-top: 10rem;
    }

    .magneticbtn:nth-child(2) {
        margin-left: 20rem;
        /* Adjust positions as needed */
        margin-top: 3rem;
    }

    .magneticbtn:nth-child(3) {
        margin-left: 0;
        margin-top: 1rem;
    }

    .magneticbtn:nth-child(4) {
        margin-left: 30rem;
        margin-top: 2rem;
    }

    .magneticbtn:nth-child(5) {
        margin-left: 6rem;
        margin-top: 0rem;
    }


}

@media (min-width:996px) {
    .hamburger {
        display: none;
    }
}


@media (max-width:450px) {
    .contact-container h1 {
        font-size: 5rem;
    }


    .contact {
        flex-direction: column;
    }

    .magneticbtn:nth-child(1) {
        margin-top: 20%;
    }

    .magneticbtn:nth-child(2) {
        margin-left: 45%;
        /* Adjust positions as needed */
        margin-top: 5%;
    }

    .magneticbtn:nth-child(3) {
        margin-left: 0;
        margin-top: 5%;
    }

    .magneticbtn:nth-child(4) {
        margin-left: 50%;
        margin-top: 10%;
    }

    .magneticbtn:nth-child(5) {
        margin-left: 0;
        margin-top: 5%;
    }

    .magneticbtn .btn>span {
        font-size: 1.3rem;
        font-weight: 200;
    }

    .magneticbtn .mailbtn .btn>span {
        font-size: 1rem;
        font-weight: 200;
    }

}

/* Hamburger Animation */
.hamburger .line {
    transition: all 0.3s ease-in-out;
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}