/* COLORS:
Dark Grey: #737373
Light Grey: #BFBFBF
Blue: #092B59 */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

a {
    color: #092B59;
}

img {
    display: block;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

/* MAIN TEXT */

h1 {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 45px;
    color: #092B59;
}

h2 {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 35px;
    color: #092B59;
}

h3 {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    color: #737373;
}

h4 {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    color: #737373;
}

h5 {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    color: #737373;
}

h6 {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    color: #737373;
}

/* STICKY MENU  */

.sticky-menu {
    position: fixed;
    top: 46%;
    right: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #BFBFBF;
    border-radius: 10px 0px 0px 10px;
    background-color: white;

    transform: translateY(-50%);
    z-index: 999;
}

.sticky-menu a {
    margin: 10px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sticky-menu img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    cursor: pointer;
}

.sticky-menu a:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* MAIN */

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 12px 0px;
    margin-bottom: 8vh;
}

.inner_div {
    width: 62.5%;
    max-width: 1200px;
}

/* NAVIGATION */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8vh;
}

.logo {
    width: 3vw;
    min-width: 50px;
    max-width: 100px;
    height: auto;

    z-index: 99;
}

.nav-links {
    display: flex;
    justify-content: space-around;
    width: 20%;
    min-width:300px;
    background: white;
    height:8vh;
    display:flex;
    align-items: center;

    z-index: 9;
}

.nav-links li{
    list-style-type: none;
}

.nav-links a {
    color: #737373;
    text-decoration: none;
    font-size: 12px;
}

.burger {
    display: none;
}

.burger div{
    background-color: #737373;
    width: 24px;
    height: 3px;
    margin: 4px;
    border-radius: 1px;

    transition: all 0.3s ease;
}

/* LANDING */

.landing-container {
    padding: 0px;
}

.landing {
    height: 92vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.landing-content, .landing-visuals {
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.landing-content-inner {
    transform: translateY(-8vh);
}

.landing-text3 {
    margin-top: 12px;
    margin-bottom: 12px;
}


.landing-visuals {
    position: relative;
    height: 80%;
}

.landing-visuals img {
    position: absolute;
    max-width: 500px;
}

.landing-img {
    width: 80%;
    z-index: 1;
    right: 10px;
}

.twist {
    top: -8vh;
    height: 100vh;
    left: 0px; 
}

.scroll-icon {
    position: absolute;
    bottom: 0px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;

    animation: scroll_bounce 1s ease-in-out infinite;
}

.scroll-icon img {
    width: 15px;
}

.scroll-icon h6 {
    font-size: 10px;
    margin: 10px;
    text-align: center;
}

/* ABOUT ME */

.about-me {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.about-me-content, .about-me-visuals {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-me-content {
    width: 40%;
}

.about-me-content h6 {
    padding: 12px;
}

.about-me-visuals {
    width: 40%;
}

/* EDUCATION */

.education-container {
    background-color: #092B59;
}

.education-container h2 {
    color: white;
}

/* CREATE ITEM */

.item-container {
    padding: 12px;
}

.item {
    display: flex;
    justify-content: space-between;
    border: 2px solid #BFBFBF;
    background-color: white;
    padding: 12px;
}

.item-content {
    width:60%;
}

.item-content h4 {
    margin: 12px 0px;
}

.item-link {
    margin: 12px 0px;
}

.item-visuals {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 20%;
    min-width: 150px;
}

.item-visuals img {
    width:100%;
}

/* ITEM ANIMATIONS */

.education-item, .project-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transition */
}

.education-item:hover { 
    transform: translate(-3px, -3px); /* Move the box up */
    box-shadow: 10px 10px 10px rgba(255, 255, 255, 0.4); /* Stronger shadow below */
}

.project-item:hover { 
    transform: translate(-3px, -3px); /* Move the box up */
    box-shadow: 10px 10px 10px rgba(115, 115, 115, 0.8); /* Stronger shadow below */
}

/* FOOTER  */

.footer-container {
    margin: 0px;
}

.footer-nav {
    justify-content: center;
}

/* STOP THE TWIST FROM OVERLAPPING */
@media screen and (max-width:1600px){
    .twist {
        top: 0px;
        height: 100%;
    }
}

/* SWITCH FROM HORIZONTAL TO VERTICAL LAYOUT */
@media screen and (max-width:1024px){

    /* LANDING */

    .landing {
        flex-direction: column-reverse;
        justify-content: flex-end;
    }

    .landing-content, .landing-visuals {
        width: 100%;
        height: 50%;
    }

    .landing-content {
        max-height: 250px;
    }

    .landing-content-inner {
        transform: translateY(0px);
    }

    .landing-content-inner * {
        text-align: center;
    }

    .landing-img {
        width:70%;
        /* transform: translateY(0); */
    }

    /* ABOUT ME */

    .about-me {
        flex-direction: column-reverse;
        justify-content: flex-end;
        padding: 0px 0px 8vh 0px;
    }

    .about-me-content, .about-me-visuals {
        width: 100%;
        height: 50%;
    }

    .about-me-content {
        max-height: 250px;
        padding-top: 12px;
    }

    .about-me-content-inner * {
        text-align: center;
    }

    .about-me-visuals {
        display: flex;
        align-items: center;
    }

    .about-me-img {
        width: 70%;
    }

}

/* TABLET */
@media screen and (max-width:768px){
    .inner_div {
        width: 90%;
    }
}

/* MOBILE */
@media screen and (max-width:480px){

    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 15px;
    }
    
    h4 {
        font-size: 8px;
    }
    
    h5 {
        font-size: 14px;
    }
    
    h6 {
        font-size: 10px;
    }

    /* STICKY MENU  */

    .sticky-menu {
        padding: 8px;
        border: 2px solid #BFBFBF;
        border-radius: 5px 0px 0px 5px;
        background-color: white;
    }

    .sticky-menu a {
        margin: 8px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .sticky-menu img {
        width: 25px;
        height: 25px;
        opacity: 0.7;
        cursor: pointer;
    }

    .sticky-menu a:hover {
        transform: scale(1.1);
        opacity: 1;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        top: 0px;
        height: 60%;
        width: 100%;
        flex-direction: column;
        justify-content: space-around;
        padding-top: 8vh;
        background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
        backdrop-filter: blur(10px); /* Blur the background */
        -webkit-backdrop-filter: blur(10px); /* Safari compatibility */
        transform: translateY(-100%);

        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        text-align: center;
        opacity: 0;
        transform: translateY(-25px);

        transition: transform 0.5s ease-in;
    }

    .burger {
        display: block;

        z-index: 99;
    }

    .landing {
        height: 80vh;
    }

    .landing-text3 {
        padding: 0px 35px;
    }

    .scroll-icon {
        display: none;
    }

    /* ITEM */

    .item {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }
    
    .item-content {
        width:100%;
    }

    .item-content h3 {
        margin-top: 12px;
        text-align: center;
    }
    
    .item-content h4 {
        margin: 12px 0px;
        text-align: center;
    }
    
    .item-visuals {
        width: 50%;
    }
    
}

/* ALLOW FOR USE ON MOBILE HORIZONTAl */
/* THE IDEA IS TO SWITCH BACK TO "DESKTOP VIEW" */
@media screen and (max-height:448px){

    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 15px;
    }
    
    h4 {
        font-size: 8px;
    }
    
    h5 {
        font-size: 14px;
    }
    
    h6 {
        font-size: 10px;
    }
    

    /* LANDING */
    .scroll-icon {
        display: none;
    }

    .landing {
        flex-direction: row;
        align-items: center;
    }

    .landing-content, .landing-visuals{
        width: 50%;
        height: 100%;
    }

    .landing-content {
        max-height: 250px;
    }

    .landing-content-inner {
        transform: translateY(-8vh);
    }

    .landing-content-inner * {
        text-align: left;
    }

    .landing-img {
        width:60%;
        margin-bottom: 12vh;
    }

    /* ABOUT ME */

    .about-me {
        flex-direction: row;
        align-items: center;
    }

    .about-me-content, .about-me-visuals {
        width: 50%;
        height: 100%;
    }

    .about-me-content {
        max-height: 250px;
    }

    .about-me-content-inner * {
        text-align: left;
    }

    .about-me-visuals {
        align-items: end;
    }

    .about-me-img {
        width: 70%;
    }
}


/* KEYFRAMES */

/* NAV ANIMATION */
.nav-active {
    transform: translateY(0%);
} 

.fade-in {
    animation: navLinkFadeIn 0.5s ease forwards;
}

.fade-out {
    animation: navLinkFadeOut 0.5s ease forwards;
}

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

@keyframes navLinkFadeOut {
    from{
        opacity: 1;

    }
    to{
        opacity: 0;
    }
}

/* BURGER ANIMATION */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px,5px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px,-5px);
}

/* SCROLL BOUNCE ANIMATION */
@keyframes scroll_bounce {
    0% {
        transform: translate(-50%, -5px);
    }
    50% {
        transform: translate(-50%, -10px);
    }
    100% {
        transform: translate(-50%, -5px);
    }
}