/* General Site Styles */
:root {
    --blue: #51B3F0;
    --green: #82A63E;
    --red: #EA6D72;
    --purple: #926FB9;
    --orange: #B75F27;
    --turquoise: #7EDEC0;
    --background: #010307ff
}

.green {
    background-color: var(--green);
}

.purple {
    background-color: var(--purple);
}

.orange {
    background-color: var(--orange);
}

.container {
    margin: 0 auto;
    max-width: 1440px;
    padding: 2rem 2rem 2rem 2rem;
}

body {
    background-color: var(--background);
    font-family: "Ubuntu Mono", monospace;
    color: #fff;
    font-size: 1.5rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 2px solid white;
    padding: 2rem 0 2rem 0;
    margin-top: 5rem;
}

.accent {
    color: #B75F27;
    font-weight: bold;
    text-decoration: none;
}

@font-face {
    font-family: "UbuntuMono";
    src:
        local("UbuntuMono"),
        url("fonts/Ubuntu_Mono/UbuntuMono-Bold.ttf") format("truetype"),
        url("fonts/Ubuntu_Mono/UbuntuMono-BoldItalic.ttf") format("truetype"),
        url("fonts/Ubuntu_Mono/UbuntuMono-Italic.ttf") format("truetype"),
        url("fonts/Ubuntu_Mono/UbuntuMono-Regular.ttf") format("truetype");
}

h1,
h2,
h3,
h4 {
    color: var(--blue);

}

/* Landing page Stlyes */
.header-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
    aspect-ratio: 6 / 9;
    overflow: hidden;
}

#hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.billboard {
    position: absolute;
    width: 80%;
    aspect-ratio: 4 / 5;
    /* Billboard svg native ratio */
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.billboard img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.billboard-content {
    position: absolute;
    top: 10%;
    left: 5%;
    gap: 1vw;
    font-size: 4vw;
    color: white;

    h2 {
        color: var(--green);
    }
}

.billboard-content>div {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}


.light {
    position: absolute;
    width: 10vw;
    height: 25vh;
    border-radius: 50% / 50%;
    background: radial-gradient(ellipse at top,
            rgba(255, 255, 200, 0.5) 0%,
            rgba(255, 255, 200, 0) 80%);
    filter: blur(30px);
    pointer-events: none;
    transform: rotate(0deg);
}

#light1 {
    left: 8%;
    top: 8%;
}

#light2 {
    left: 42%;
    top: 8%;
}

#light3 {
    left: 77%;
    top: 8%;
}

/* About me styles */
.about-me>main {
    margin-top: 24rem;
}

body.about-me {
    background-image: url('../img/about-me.svg');
    background-size: cover;
    margin: 0;

}

.about-content {
    max-width: 65ch;
    padding: 2rem;
    border-radius: 30px;
    font-weight: 600;
}

div.about-content:first-of-type {
    background-color: #926FB9;
}

main>.container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.about-header img {
    border-radius: 50%;
    max-width: 60%;
}

.morphing-background {
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 3rem;
    box-sizing: border-box;
    text-align: center;
    animation: morphShape 8s infinite alternate ease-in-out;
}

.morphing-background p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    max-width: 700px;
}

.blob-one {
    animation-duration: 8s;
}

.blob-two {
    animation-duration: 10s;
}

.blob-three {
    animation-duration: 12s;
}

@keyframes morphShape {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        /* Initial blob shape */
    }

    50% {
        border-radius: 30% 70% 60% 40% / 70% 40% 60% 30%;
        /* Mid-point shape */
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        /* Return to initial shape */
    }
}

/* Project styles */
.projects {
    background-image: url('../img/projects-header.svg');
    background-size: contain;
    height: 27.3rem;
    margin-bottom: 4rem;
}

.projects-page h1 {
    margin-bottom: 4rem;
}

.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--blue);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 0, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(81, 179, 240, 0.4);
}

.project-card h2 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.project-card p {
    color: #fff;
    margin-bottom: 1.5rem;
}

.project-card button,
.modal-content a {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.project-card button:hover,
.modal-content a:hover {
    background: var(--orange);
    transform: scale(1.05);
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--green);
    padding: 1rem;
    border-radius: 10px;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #111;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--blue);
    width: 90%;
    max-width: 700px;
    color: #fff;
    box-shadow: 0 0 20px rgba(81, 179, 240, 0.4);
    position: relative;
}

.modal-content h2 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.close {
    position: absolute;
    top: 0;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

.close:hover {
    color: var(--blue);
}

/* Contact me styles */
body.contact-me {
    background-image: url('../img/mountain-peak.webp');
    background-size: fill;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    margin-top: 25rem;
}

form {
    width: 80%;
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* Top Navigation other pages */
.top-nav {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.top-nav ul {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0 0 1rem 0;
    flex-wrap: wrap;
}

/* Bottom Navigation home page */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.bottom-nav ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0 0 1rem 0;
    min-width: 10rem;
}

.bottom-nav a,
.top-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    position: relative;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    text-wrap: nowrap;
}

.bottom-nav a::before,
.top-nav a::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 6px white;
    transition: opacity 0.3s, transform 0.3s;
}

.bottom-nav a:hover::before,
.top-nav a:hover::before {
    transform: translateX(-50%) translateY(-4px) scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px white;
}

.bottom-nav a:hover,
.top-nav a:hover {
    text-shadow: 0 0 8px white;
    transform: scale(1.05);
}


/* MEDIA QUERIES */

/* 515px+ */
@media (min-width: 515px) {
    .header-hero {
        padding-top: 20%;
    }

    .billboard {
        width: 70%;
        top: 15%;
    }

}

/* 640px+ */
@media (min-width: 640px) {
    .header-hero {
        padding-top: 20%;
    }

    .billboard {
        width: 60%;
        top: 3%;
    }

    .billboard-content {
        font-size: 3vw;
    }

    .about-me>main {
        margin-top: 20rem;
    }

    .about-header {
        flex-direction: unset;
    }

    .about-header img {
        max-width: 50%;
    }

    .contact-form {
        margin-top: 20rem;
    }


}

/* 768px+ */
@media (min-width: 768px) {
    .billboard {
        width: 50%;
    }

    #light1 {
        left: 5%;
    }

    #light2 {
        left: 40%;
    }

    #light3 {
        left: 75%;
    }

    .about-me>main {
        margin-top: 15rem;
    }

    .contact-form {
        margin-top: 15rem;
    }

}

/* 1024px+ */
@media (min-width: 1024px) {
    .light {
        height: 30vh;
    }

    .bottom-nav ul {
        display: flex;
        flex-direction: unset;
        text-align: unset;
        gap: 2rem;
        list-style: none;
        margin: 0;
        padding: 0 0 1rem 0;
        min-width: unset;
    }

    .top-nav ul {
        justify-content: unset;
        flex-wrap: nowrap;
    }

    .projects {
        height: 7.3rem;
    }

    .contact-form {
        margin-top: 10rem;
    }

    .project-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin: 0 auto;
        padding: 2rem;
    }

}

/* 1280px+ */
@media (min-width: 1280px) {
    .header-hero {
        padding-top: 30%;
    }

    #light1 {
        left: 5%;
    }

    #light2 {
        left: 39%;
    }

    #light3 {
        left: 73%;
    }

    .light {
        height: 35vh;
    }
}

/* 1536px+ */
@media (min-width: 1536px) {}

/* 1700px+ */
@media (min-width: 1536px) {
    .light {
        height: 45vh;
    }

    #light3 {
        left: 74%;
    }
}