@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

/*Main*/

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Rubik", serif;
    /*background: rgb(251,227,63);
background: radial-gradient(circle, rgba(251,227,63,1) 0%, rgba(246,18,18,1) 100%);
*/
background-image: repeating-linear-gradient(216deg, rgb(0,0,0) 0px, rgb(0,0,0) 19px,transparent 19px, transparent 22px),repeating-linear-gradient(135deg, rgb(0,0,0) 0px, rgb(0,0,0) 19px,transparent 19px, transparent 22px),repeating-linear-gradient(338deg, rgb(0,0,0) 0px, rgb(0,0,0) 19px,transparent 19px, transparent 22px),linear-gradient(90deg, rgb(255,84,6),rgb(255,227,0));
}

html {
    scroll-behavior: smooth;
}


p {
    color: rgb(0, 0, 0);
}

p .section__text__p1 {
    color: white;
}

.section_text .section__text__p1, .section_text .section__text__p2 {
    color: white;
}

/*Transitions*/

a, .btn {
    transition: all 350ms ease-in-out;
}

/*Desktop Navigation */

#desktop-nav {
    z-index: 1000;
}

.logo-header {
    display: flex;
    justify-content: center;
    padding-bottom: 2.5rem;
}

nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 15vh;
}

header {
    position: fixed;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-radius: 3rem;
    border: 1rem;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
    background-color: #000000d1;
    padding: 2rem 2rem;
    border-radius: 3rem;
    color: blanchedalmond;
    align-items: center;
}

.nav-name {
    text-wrap: nowrap;
    
}

.nav-links-header {
    color: rgb(255, 255, 255);
}

a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    text-decoration-color: white;
}

.nav-links li .nav-links-header {
    position: relative;
    color: white;
    font-weight: 450;
}

.nav-links li .nav-links-header::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.2s ease-in-out;
    background: linear-gradient(to right, rgb(250, 105, 1), rgb(255, 200, 0));
}

.nav-links li .nav-links-header:hover::before {
    width: 100%;
}

/*a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: .75rem;
    text-decoration-color: rgb(181, 181, 181);
    
}*/

.logo {
    font-size: 2rem;
}

.logo:hover {
    cursor: default;
}

/*Scroll Bar */

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: rgb(219, 219, 219);
} 

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgb(250, 105, 1), rgb(255, 200, 0));
}

/*Burger Menu*/

li .nav-links-burger {
    position: relative;
    color: white;
    font-weight: 450;
}

li .nav-links-burger::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    transform: translateY(10px);
    height: 5px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.2s ease-in-out;
    background: linear-gradient(to right, rgb(250, 105, 1), rgb(255, 200, 0));
}

li .nav-links-burger:hover::before {
    width: 100%;
}

#hamburger-nav {
    display: none;
    position: fixed;
    height: 100px;
    border-radius: 3rem;
    top: 0;
    width: 100%;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.023);
    color: rgb(255, 255, 255);
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(to right, rgb(250, 88, 1), rgb(255, 238, 0));
    border: black .1rem solid;
    border-radius: 10rem;
}


.menu-links {
    position: fixed; /* Fixes it to the viewport */
    top: 50% ; /* Starts centering vertically */
    left: 50% ; /* Starts centering horizontally */
    transform: translate(-50%, 50%) ; /* Fully centers the element */
    width: 75%; /* Adjusts to the content */
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 3rem;
    
}

.menu-links.open {
    display: flex; /* Ensures children align properly */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed; /* Keeps it in the center of the viewport */
    top: 50%; /* Centers vertically */
    left: 50%; /* Centers horizontally */
    transform: translate(-50%, 50%); /* Centers the element based on its size */
    width: 75%; /* Set a width for responsive behavior */
    max-height: 300px; /* Expand to show items */
    margin: 0;
    padding: 20px; /* Add spacing inside the menu */
    background-color: rgb(255, 255, 255); /* Semi-transparent background */
    backdrop-filter: blur(8px); /* Blurs the background */
    border-radius: 3rem; /* Rounded corners for aesthetics */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Optional shadow */
    z-index: 1001; /* Ensures it is above other elements */
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.menu-links li {
    list-style: none;
}


.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* Sections */

section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;

}

/* Profile */

#profile {
    display: flex;
    align-self: center;
    justify-content: center;
    gap: 5rem;
    height: 85vh;
    padding: 1rem;
    transform: translateX(-35px);
}

.profile-pic {
    border-radius: 50%;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
    border-radius: 2rem;
}

.section_text {
    align-self: center;
    text-align: center;
}

.section_text p {
    font-weight: 600;
}

.section__text__p1 {
    text-align: center;
    color: white;
}

.section-blurb {
    display: flex;
    justify-content: center;
    flex-direction: row;
    padding: .5rem;
    border: rgb(255, 253, 253) .5rem solid;
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    border-radius: 1rem;
    overflow: hidden;
    line-height: 1.6;
    position: relative;
    transition: 0.7s ease-in;
    transition: 0.2s ease-out;
    max-width: 300px; /* Ensures it doesn’t grow too large */
    min-width: 100px; /* Ensures it doesn’t shrink too small */
    height: auto; /* Allow height to adapt based on content */
}

.section-blurb:hover{
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    transform: scale(1.05);
    transform: translateY(-10px);
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    color: white;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* Icons */

.icon {
    cursor: pointer;
    height: 2rem;
    color: white;
    transition: 0.5s ease-in ;
    transition: 0.1s ease-out;
}

.icon:hover{
    transform: scale(2);
    transform: translateY(10px);
}

.article-container .icon {
    height: 2rem;
}


/*Buttons */

.btn-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

}

.color-container .btn-container {
    
    
}

.btn {
    font-weight: 775;
    transition: all 350ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;

}

.btn-color-3 {
    background: linear-gradient(to right, rgb(250, 105, 1), rgb(255, 200, 0));
    color: white;
    transition: 0.1s ease-in-out;
    text-wrap: nowrap;
}

.btn-color-3:hover {
    transform: scale(1.05);
}

.btn-color-1, .btn-color-3 {
    border: rgb(2, 2, 2) 0.1rem solid
}

.btn-color-1:hover, .btn-color-2:hover, .btn-color-3:hover {
    cursor: pointer;
}


.btn-color-1, .btn-color-2:hover {
    background: rgb(243, 243, 243);
    color: rgb(0, 0, 0);
}

.btn-color-1:hover {
    background: rgb(0,0,0);
}

.btn-color-2 {
    background: rgb(0, 0, 0);
    color: white;
    border: white 0.1rem solid;
}

.btn-color-2:hover {
    border: rgb(255,255,255) 0.1rem solid;
}

.btn-container {
    gap: 1rem;
}

/*About */

#about {
    position: relative;
    gap: 5rem;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    justify-content: right;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
}

.about-containers, .about-details-container{
    display: flex;
}

.about-pic {
    border-radius: 2rem;
    border: .5rem rgb(255, 255, 255) solid;
    
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.p-container {
    padding: 1.5rem;
    flex: 1;
    background: rgb(0, 0, 0);
    color: white;
    border-radius: 2rem;
    border: rgb(255, 255, 255) .5rem solid;
    text-align: center;
    transition: .7s ease-in;
    transition: .2s ease-out;
}

.p-container:hover {
    background: rgb(255, 255, 255);
    transform: translateY(10px)scale(1.05);
    color: rgb(0, 0, 0);
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: black;
    color: white;
    border-radius: 2rem;
    border: rgb(255, 255, 255) .5rem solid;
    text-align: center;
    transition: .7s ease-in;
    transition: .2s ease-out;
}

.details-container:hover {
    background: white;
    transform: scale(1.05);
    p, i, .project-title {color: rgb(0, 0, 0);
    }
    h3, .experience-sub-title {
        background: linear-gradient(to right, rgb(250, 105, 1), rgb(251, 255, 0));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.details-container p {
    color: white;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/*Job History */

.journey__grid {
    max-width: 900px;
    margin-inline: auto;
    margin-top: 5rem;
    margin-bottom: 5rem;
    display: grid;
    gap: 2rem;
}

.journey__grid > div {
    display: grid;
    gap: 3rem;
}

.journey__grid__header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
}

.journey__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}


.journey__card > span {
    position: relative;
    isolation: isolate;
    padding-inline: 2px;
    height: 100%;
    font-size: 1.2rem;
    transform: translateY(3.5px);
}

.journey__card > span::before {
    position: absolute;
    content: "";
    height: 100%;
    width: 2px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(255, 255, 255);
}

.journey__card h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.journey__card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgb(255, 255, 255);
}

.journey__card p {
    color: rgb(255, 255, 255);
}

.journey_div {
    border: rgb(255, 255, 255) .5rem solid;
    border-radius: 2rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    transition: 0.7s ease-in;
    transition: 0.2s ease-out;
    background: rgb(0, 0, 0);
}

.journey_div h2 {
    color: white;
}

.fa-circle {
    color: white;
}

.journey_div:hover {
    background-color: rgb(255, 255, 255);
    transform: scale(1.05);
    color: white;
    .fa-circle{
        color: black;
    }
    .journey__grid__header, h2  {
        background: linear-gradient(to right, rgb(250, 105, 1), rgb(251, 255, 0));
        background-clip: text;
        color: transparent;
    }
    h3, p {
        color: rgb(0, 0, 0);
    }
    .journey__card > span::before {
        background-color: rgb(0, 0, 0);
    }
}

/* Coding Lang Experience */

#experience {
    position: relative;
}

.experience-sub-title {
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: space-around;
    gap: 0.5rem;
}

article .icon {
    cursor: default;
}

/* Personal Projects */

#projects {
    height: 100vh;
    position: relative;
}

.color-container {
    border-color: rgb(255, 255, 255);
}

.color-container:hover {
    .project-btn {
        border-color: white;
        color: white;
        background-color: black;
    }
}

.color-container:hover .project-btn:hover {
    background: linear-gradient(to right, rgb(250, 105, 1), rgb(255, 200, 0));
    border-color: black;
    cursor: pointer;
}

.color-container:hover {
    .project-btn{
        color: black;
        background-color: white;
        border-color: black;
    }
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: rgb(255, 255, 255);

}

.project-btn {
    transition: 0.2s ease-in-out;
    border-color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    color: white;
}



/* Contact */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 100vh;

}

form {
    display: grid;
    gap: 1rem;
}
#contact h1 {
    margin-bottom: 3rem;
}

#contact .btn {
    max-width: fit-content;
    margin-inline: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

#contact :is(input, textarea){
    padding: 1rem 0.75rem;
    outline: none;
    border: 1px solid black;
    font-size: 1rem;
    border-radius: 2rem;
    font-family: "Rubik", serif;
}


.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250,250,250);
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* Footer */

footer {
    height: 26vh;
    margin: 0 1rem;

}

footer p {
    text-align: center;
}

/* Background */

