/* Colour Pallette
Raisen Black - rgb(23, 27, 43);
Jordy Blue - rgb(142, 184, 229);
Tea Green - rgb(207, 224, 195);
Rose Taupe - rgb(139, 87, 92);
Old Rose - rgb(201, 137, 134);


 Eggshell - rgb(250, 243, 221);
 Cordovan - rgb(152, 68, 71);

 Desert Sand - rgb(247, 212, 188);
 Myrtle Green - rgb(50, 116, 109);
 Jade - rgb(68, 175, 105);
*/


@font-face
{
    src: url(fonts/Roboto-VariableFont_wdth,wght.ttf);
    font-family: Roboto;
}
@font-face
{
    src: url(fonts/SourceSerif4-Italic-VariableFont_opsz,wght.ttf);
    font-family: SourceSerif;
}
@font-face
{
    src: url(fonts/PlayfairDisplay-VariableFont_wght.ttf);
    font-family: Playfair;
}


*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    background-color: rgb(255, 255, 255);
    overflow-x: hidden;
}

header{
    display:flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 #navbar{
    background-color: rgb(255, 255, 255);
}

#navbarName{
    margin-right: auto;
    margin-left: 1.15rem;
    font-family: "SourceSerif";
    font-style: italic;
    font-weight: 500;
    font-size: 27px;
    color:rgb(0, 0, 0);
    /*
          text-shadow: 5px 5px 6px rgb(0, 0, 0);
    */
}

li, a {
    font-family: "SourceSerif", "Roboto";
    font-weight: 500;
    font-size: 1rem;
    color:rgb(1, 1, 1);
    text-decoration: none;
}

.nav-links{
    list-style: none;
    /*
          text-shadow: 5px 5px 6px rgb(0, 0, 0);
    */
}

.nav-links li{
    display:inline-block;
    padding: 0 20px;
}

.nav-links li a {
    transition: all 0.3s ease 0s;
}

.nav-links li a:hover {
    color: rgb(108, 165, 226);
}

button:hover{
    background-color:rgba(32, 32, 34, 0.634);
}

#open-sidebar-button,
#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 0.5em;
    cursor: pointer;
    z-index: 1001;
}

#open-sidebar-button {
    margin-left: auto;
}

#overlay{
    background: rgba(128, 128, 128, 0.95);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 0;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: width 300ms ease-out, opacity 300ms ease-out, visibility 0s linear 300ms;
    z-index: 9;
}

p {
    font-size: 2rem;
}

section{
    padding-top: clamp(80px, 12vh, 4vh);
    height: auto;
    margin: 0 clamp(1rem, 6vw, 10rem);
    min-height: fit-content;
    overflow-x: hidden;
}
.section-title{
    margin: clamp(2rem, 6vw, 6rem);
    text-align: center;
    font-family: Playfair;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

/* -----------------  Profile Section  ----------------- */

.profile-picture-container{
    display: flex;
}

#profile{
    display: flex;
    margin-top: clamp(2rem, 6vw, 5rem);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    padding-top: clamp(2rem, 6vw, 5rem);
    flex-direction: column;
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
    height: auto;
    border-radius: 3rem;
}

.profile-content {
    display: flex;
    justify-content: center;
    gap: 5rem;
    width: 100%;
}

.profile-picture-container{
    height: clamp(220px, 35vw, 350px);
    width: clamp(220px, 35vw, 350px);
    margin: auto 0;
}

.profile-picture-container img{
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.profile-text{
    align-self: center;
    padding: 6rem 4rem 1rem 4rem;
    margin-top: 2rem;
}
.profile-greeting{
    display: flex;
    gap: 2rem;
}

.profile-text p{
    font-weight: 500;
}

#profile-text-L1{
    text-align: left;
    font-style: italic;
    padding-left: 0.7rem;
}
#location-text{
    margin-left: 7rem;
    text-align: right;
    font-size: 1.3rem;
    border: 3px solid black;
    border-radius: 20px;
    padding: 0.65rem;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-color: rgb(204, 231, 184);
}

#profile-text-L2{
    font-size: 1.75rem;
    font-weight: 550;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: right;
    color: rgb(142, 184, 229);
    padding-right: 0.5rem;

}

#profile-name{
    font-size: clamp(2.5rem, 7vw, 5rem);
    text-align: center;
    margin-bottom: 0.75rem;
}

.buttons-container{
    text-align: center;
    width: 100%;
}

#icons-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}
.icon{
    cursor: pointer;
    height: 3rem;
}

#contact-profile-button{
    background-color: rgb(255, 255, 255);
    border: 5px, solid rgb(142, 184, 229);
    color: rgb(142, 184, 229);
    padding: 1rem;
    width: 8rem;
    font-weight: 600;
    transition: all 300ms ease;
    cursor: pointer;
}
#contact-profile-button:hover{
    background-color: rgb(236, 236, 236);
    border: 5px, solid rgb(108, 165, 226);
    color: rgb(47, 58, 70);
}
#icon-linkedin{
    
}

/* -----------------  Profile Section  ----------------- */

#projects .section-title{
    margin-top: 2rem;
}

.project3 .button-container{
    visibility: hidden;
}

.project-collection{
    border: 3px solid black;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.project1, .project2, .project3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.project-image-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.project-img {
    width: clamp(220px, 32vw, 300px);
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.project-title{
    text-align: center;
    font-size: 1.5rem;
    color: rgb(76, 197, 118);
}



.button-container, .project-button-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.project-github-button, .project-demo-button {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    border: 4px, solid rgb(142, 184, 229);
    color: rgb(49, 49, 49);
    font-weight: 550;
    transition: all 300ms ease;
    cursor: pointer;
}

.project-github-button:hover, .project-demo-button:hover {
    background-color: rgb(142, 184, 229);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-details-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1rem, 3vw, 2rem);
}

/* Video Pop-up Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    background-color: rgb(255, 255, 255);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgb(142, 184, 229);
    background: linear-gradient(140deg, rgb(250, 243, 221), rgb(247, 212, 188));
    border-radius: 15px 15px 0 0;
}

#video-modal-title {
    font-family: "Playfair";
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    color: rgb(23, 27, 43);
    margin: 0;
}

.close-video-button {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: rgb(139, 87, 92);
    cursor: pointer;
    padding: 0.17rem 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-video-button:hover {
    background-color: rgb(139, 87, 92);
    color: white;
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    background-color: rgb(23, 27, 43);
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 0;
    object-fit: contain;
    display: block;
}

.video-modal-footer {
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(140deg, rgb(250, 243, 221), rgb(247, 212, 188));
    border-radius: 0 0 15px 15px;
}

.github-modal-button {
    background-color: rgb(143, 185, 230);
    border: 2px solid black;
    color: black;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "SourceSerif";
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.github-modal-button:hover {
    background-color: rgb(143, 185, 230);
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.github-modal-button img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.github-modal-button:hover img {
    filter: none;
}

/* -----------------  About Me Section  ----------------- */
#aboutMe{
    margin-top: 10rem;
    margin-bottom: 7rem;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.aboutMe-title-container{
    justify-content: center;
    align-items: center;
}

.aboutMe-section-title{
    margin: 4rem;
    text-align: center;
    font-family: Playfair;
    font-weight: 500;
    font-style: italic;
    font-size: 4rem;
}

#aboutMe-title-container{

}

#aboutMe-details-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 2px solid black;
}

.aboutMe-details-title {
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-family: Playfair;
    font-weight: 500;
    font-style: italic;
    font-size: 2.5rem;
    color: rgb(142, 184, 229);
}

.experience-job-title{
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.experience-job-company{
    margin-bottom: 1rem;
    font-family: SourceSerif;
    font-size: 1.2rem;
    font-weight: 600;
    color:rgb(76, 197, 118);
}

.experience-job-description {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.experience-job-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 1.1rem;
}

.education-details-collection{
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.education-course-title {
    font-family: Playfair;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;

}

.education-course-college{
    font-family: SourceSerif;
    font-size: 1.2rem;
    font-weight: 600;
    color:rgb(76, 197, 118);
    margin-left: 1rem;
}

/* -----------------  Contact Section  ----------------- */
#contact{
    padding-bottom: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(1rem, 4vw, 3rem);
}

.contact-box{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-bottom: 0;
}

.contact-title{
    font-family: SourceSerif;
    font-weight: 600;
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-title hr{
    border: none;
    height: 5px;
    background-color: rgb(108, 165, 226);
    border-radius: 5px;
    margin: 15px auto;
    width: 80%;
}

.contact-inputs{
    width: clamp(280px, 90vw, 400px);
    height:50px;
    border: 2px solid;
    outline: none;
    padding: 1rem;
    font-weight: 500;
    border-radius: 15px;
    background-color:rgb(223, 245, 255);
}

.contact-inputs:focus{
    border: 3px solid rgb(105, 205, 140);
}

.contact-inputs::placeholder{
    color: rgb(165, 165, 165);
}

#contact textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 12px;
}

#contact button{
    padding: 15px 30px;
    font-size: 16px;
    border: 1px solid black;
    border-radius: 10px;
    background:linear-gradient(140deg, rgb(209, 238, 255), rgb(119, 198, 255))
}

#contact button:hover{
    cursor: pointer;
    border: 3px solid rgb(105, 205, 140);;
    background:linear-gradient(140deg, rgb(194, 222, 238), rgb(111, 184, 237));
    color: rgb(255, 255, 255);
}

/* -----------------  Footer Section  ----------------- */
footer {
    text-align: center;
    padding: 1rem 0;
    background-color: rgb(230, 230, 230);
    margin: 0;
    height: auto;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

#footer-nav li {
    padding: 0;
}

footer p {
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    padding: .75rem;
}


/* -----------------  Screen Size Changes  ----------------- */

/* Hamburger menu for mobile screens */
@media screen and (max-width:650px)
{
    #open-sidebar-button,
    #close-sidebar-button {
        display: block;
    }
    
    header{
        padding: 0px;
    }

    #navbarName{
        display: none;
    }
    
    nav{
        position:fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(15em,100%);
        z-index: 10;
        border-left: 1px solid;
        transition: right 300ms ease-out;
        display: flex;
        flex-direction: column;
    }
    
    #close-sidebar-button {
        align-self: flex-end;
        padding: 1em;
    }
    
    nav.show{
        right: 0;
    }

    nav.show ~ #overlay{
        width: min(15em, 100vw);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition: width 300ms ease-out, opacity 300ms ease-out;
    }
    
    nav ul{
        width: 100%;
        flex-direction: column;
        margin-top: 1em;
    }
    
    nav a{
        width: 100%;
        padding-left: 2.5em;
    }

    nav li, nav a {
        font-family: "SourceSerif", "Roboto";
        font-weight: 500;
        font-size: 19px;
        color:white;
        text-decoration: none;
    }

    .profile-content {
        gap: 1rem;
    }
    
}

/* Stacking About Me Section title above other content on narrower screens */
@media screen and (max-width: 1024px){
    #aboutMe{
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }
    .profile-picture-container{
        margin: 0 auto;
    }
    .aboutMe-section-title{
        margin: 2rem 0 0 0;
        font-size: clamp(2rem, 6vw, 3rem);
    }
    #aboutMe-details-container{
        border-left: none;
        border-top: 2px solid black;
        padding-top: 1.5rem;
    }
}

/* Stack projects vertically before smaller screens splits the grouping in weird numbers */
@media screen and (max-width: 1200px){
    .project-details-container{
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1024px){
    .profile-content{
        flex-direction: column;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px){
    .nav-links li{
        padding: 0 12px;
    }
    .project-img{
        width: clamp(200px, 45vw, 260px);
        height: clamp(200px, 45vw, 260px);
    }
}

@media screen and (max-width: 480px){
    .button-container, .project-button-container{
        gap: 0.75rem;
    }

    #profile{
        margin: 0.3rem;
    }
    #contact{
        margin: 0.3rem;
    }
}

/* Video pop up screen size */
@media screen and (max-width: 768px) 
{
    .video-modal-content {
        width: 95%;
        margin: 5% auto;
        max-width: none;
    }
    
    #video-modal-title {
        font-size: 1.2rem;
    }
    
    .video-modal-header {
        padding: 0.75rem 1rem;
    }
    
    .video-modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .github-modal-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .github-modal-button img {
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 480px) {
    .video-modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 10px;
    }
    
    #modal-video {
        max-height: 60vh;
    }
}