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

/* Remove Scroll Bar */

* ::-webkit-scrollbar {
    display: none;
}

body {
    min-height: 100vh;
    background-color: #fdeff3; 
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding-top: 80px;
}

/* Top Nav Bar CSS Styling */
nav{
    opacity: 75%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    top: 0;
    width: 100%;
    position: fixed;
    z-index: 9999;
   
  
}
nav ul{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-top: 25px;
    position: relative;
    
}
nav li {
    height: 50px;
    
}

nav a{
    padding: 10px;
    border-radius: 20px;
    margin-right: 20px ;
    text-align: center;
    height: 100%;
    vertical-align: middle;
    text-decoration: none;
    color: black;
    

}
nav a:hover {
    background-color: #ff3773;
    color: white;
}
.active {
    background-color: #ff3773;
    color: white;
}
.menu{
    display: none;
}
.sideNav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: black 0.5;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px black;
    display: none; /*flex*/
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.sideNav li{
    width: 100%;

}

#Welcome,
#Education,
#Specializations,
#Projects {
  scroll-margin-top: 120px;
}

#heading{
    color: black;
    font-size: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
    display: flex;
}

#heading img{
    margin-right: 30px;
    transform-origin: 70% 70%;
    will-change: transform;
}

#heading img.wave-on-load{
    animation: handWave 2s ease-in-out 1;
}

#heading img:hover{
    animation: handWave 2s ease-in-out 1;
}

@media (prefers-reduced-motion: reduce) {
    #heading img,
    #heading img.wave-on-load,
    #heading img:hover {
        animation: none;
    }
}

#heading p{
    align-self: center;
}

@keyframes typing {
    from{
        width: 0;
    }

    to{
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes handWave{
    0% {transform: rotate(-0.05turn); }
    15% {transform: rotate(0turn); }
    30% {transform: rotate(-0.08turn); }
    45% {transform: rotate(0turn); }
    60% {transform: rotate(-0.08turn); }
    75% {transform: rotate(0turn); }
    90% {transform: rotate(-0.05turn); }
    100% {transform: rotate(0turn);}
}
/* Main page two-column layout */
.mainPage {
    display: flex;
    flex-direction: column;
}

.bodyContainer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    
    
    max-width: 95%;
    position: relative;
}
.content {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-left: 20px;
}
.headshotContainer {
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky; /* follow scroll */
    top: 100px;
    margin: 0;
    max-width: 400px;
}

.headshotItem {
    flex: 0 0 20%;
    flex-direction: column;
    top: 100px;
    bottom: 50px;
        
    justify-content: flex-start;
    border-radius: 20px;
    
    font-size: 15px;
    padding-top: 1em;
    padding-left: 1em;
    padding-right: 1em;
    
    width: auto;
    height: auto;

    
    
}

.underSide {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    
}


.headshotItem img {
    display: block;
    border-radius: 16px; /* Rounded corners */
    
}

.linkText{
    color: black;
}

.contactList{
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.contactList a{
    /* Equal-sized clickable area so all icons center evenly */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contactList a:hover{
    transform: translateY(-1px);
}


.contactList img {
    display: block;
    margin: 0;
    margin-bottom: 20px;
    
    /* Subtle glow under icons */
    filter: drop-shadow(0 6px 10px rgba(255, 55, 115, 0.20));
    transition: filter 0.2s ease;
}

/* Slightly stronger glow on hover */
.contactList a:hover img {
    filter: drop-shadow(0 8px 14px rgba(255, 55, 115, 0.30));
}

.aboutMe{
    color: black;

}

.aboutMe h2{
    text-align: center;
}

.rightContent {
    color: black;
    flex: 1 1 80%;
    max-width: 60%;
    padding-left: 20px;
    position: static;
    
    
}

.sideText{
    margin: 10px;
    padding: 20px;
    font-size: 25px;
    color: black;
}

#headshot{
    border-radius: 100px;
}

/*Centered Headings */
.headings{
    display: inline-block;
    font-size: 50px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.headings span{
    color: pink;
}
/*Main Body of Website*/
.wrapper{
    display: flex;
    height: 200px;
    padding-top: 50px;
    justify-content: center;
}
.wrapper .staticText{
    font-size: 30px;
    font-weight: 600;
    margin-left: 20px;
}
.wrapper .dynamicText{
    line-height: 40px;
    height: 40px;
    overflow: hidden;
}

.dynamicText li::after{
    content: "";
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #ffebf1;
    border-left: 2px solid #ff6090;
    animation: typeTitles 5s steps(19) infinite;
}
@keyframes typeTitles {
    40%,
    60%{
        left: calc(100% + 30px);
    }
    100%{
        left: 0;
    }
}

.dynamicText li{
    list-style: none;
    color: #ff6090;
    font-size: 30px;
    font-weight: 400;
    position: relative;
    top: 0;
    animation: slideTitles 25s steps(5) infinite;
}

@keyframes slideTitles{
    100%{  
        top: -200px
    }
}
.centeredText{
    justify-content: center;
    align-items: center;
    width: 100%;
}
/* education container 2 elements */
.education {
    display: grid;
    grid-template-columns: 45%, 45%;
    grid-template-rows: 70%, 30%;
    column-gap: 5px;
    margin-top: 50px;
    margin-bottom: 30px;
    margin-left: 15px;
    margin-right: 15px;
    width: 100%;
    height: 150px;
}

.educationTitles {
    text-align: center;
    font-size: 25px;
    margin: 10px;
}

.educationItem1{
    grid-column: 1;
    padding-left: 20px;
    grid-row: 1;
}
.educationItem2{
    grid-column: 2;
    padding-left: 20px;
    grid-row: 1;
}

.educationItem3{
    grid-column: span;
    grid-row: 2;
}

.education li{
    list-style: none;
    text-align: center;
}


/* achievements container 6 elements */
.achievements{
    display: grid;
    grid-template-columns: 30%, 30%, 30%;
    grid-template-rows: 20%, 20%;
    column-gap: 20px;
    width: 100%;
    height: 600px;
    margin-left: 40px;
    margin-top: 20px;
    justify-content: center;
    

}

.achievements ul{
    display: grid;
    list-style: none;
    align-items: center;
   
}

.achievements li{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 90%;
    height: 50%;
    font-size: 1.5rem;
}
/* Specializations */
/* 3 Switchable Tabs -> JS */
.specializations {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 2px 8 px rgba(255, 255, 255, 0.2);
    padding: 20px;
    width: 80%;
    margin: 40px auto;
    text-align: center;
    min-height: 200px;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;   
}

.tabButton{
    background-color: #ffb6c1;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.tabButton:hover {
    background-color: #ff3773;
    color: white;
}

.tabButton.active {
    background-color: #ff3773;
    color: white;
}

.tabContent {
  display: none; /* hide all tab content by default */
  animation: fadeIn 0.4s ease-in-out;
}

.tabContent.active {
  display: block; /* only show the active tab */
  color: black;
  background-color: rgba(255, 255, 255, 0.15);
}

.tabContent ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.tabContent li {
    flex: 1 11 15%;
    text-align: center;
    align-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}


/*Personal Projects */
.includeArrows {
    position: relative;
    --arrowW: clamp(36px, 6vw, 80px);
}
.projectContainer {
    display: flex;
    position: relative;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 200px;
    padding-left: 30px;
    padding-bottom: 20px;

    /* Scroll */
    scroll-behavior: smooth;
    scrollbar-width: none;
}


.arrow {
    position: absolute;
    z-index: 20;
    top: 0;
    width: 50px;
    height: 100%;
    bottom: 0;
    border: none;
    border-radius: 0;
    font-size: 10px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background: linear-gradient(
        to right,
        rgba(255, 55, 115, 0.10),
        rgba(254, 254, 254, 0.05)
    );
    color: white;
    font-size: clamp(20px, 3vw, 32px);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}
.arrow.right {
    right: 0px;

    background: linear-gradient(
        to left,
         rgba(255, 55, 115, 0.10),
        rgba(255, 255, 255, 0.05)
    );
}

.arrow:hover{
    background: linear-gradient(
        to right,
        rgba(255, 55, 115, 0.35),
        rgba(255, 55, 115, 0.10)
    );
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.25);
}
.arrow.left.includeArrows {
    left:0%
}





.projectCard {
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 10px;
    width: 450px;
    height: 550px;
    background-color: lightgray;
    border-radius: 8px;
    padding: 1rem;
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease;
    
}

.projectCard:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.50),
    0 10px 20px rgba(255, 55, 115, 0.5);
}

.projectCard img {
    height: 300px;
    width: 100%;
    border-radius: 2%;
}

.projectCard li {
    background-color: rgb(255, 55, 115);
    display: inline-block;
    color: white;
    border-radius: 30px;
    line-height: 25px;
    padding: 5px;
    min-width: 50px;
    text-align: center;
    margin-top: 20px;
}

.projectCard li:hover{
    background-color: rgb(255, 182, 193);
    color: black;
}
/* Liquid Glass CSS */

.liquid-glass-element {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent background */
    backdrop-filter: blur(8px) saturate(180%); /* Frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 2px 8px rgba(255, 255, 255, 0.2); /* Depth and inner glow */
    
}

.liquid-glass-element::after {
    position:relative ;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1); /* Subtle highlight */
    border-radius: 16px;
    opacity: 0.7;
    filter: blur(1px) drop-shadow(5px 2px 3px black) brightness(120%); /* Shine and subtle shadow */
    z-index: -1; /* Position behind the main element content */
}


/*Mobile Devices*/
@media (max-width: 800px){
    body {
        margin-top: 40px;
        padding-top: 60px;
    }

    .bodyContainer {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-right: 0;
        gap: 30px;
    }

    .aboutMe p{
        padding-top: 20px;
        text-align: center;
    }
    .headshotContainer {
        position: static;
        top: auto;
        max-width: 90%;
    }

    #profileIcon img{
        width: 50px;
        height: 50px;
    }
    .headshotContainer.shrink .headshotItem img {
        transform: scale(0.50);
    }

    .headshotItem img {
        transition: transform 0.3s ease;
    }

    .rightContent {
        max-width: 100%;
        padding-left: 0;
    }

    .specializations{
        width: 90%;
        margin-top: 40px auto;
        align-self: center;
    }

    .headings {
        font-size: 32px;
        margin-top: 40px;
        text-align: center;
    }

    .sideText {
        font-size: 18px;
        padding: 10px;
    }

    .education {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .achievements {
        display: flex;
        flex-direction: column;
        height: 350px;
        margin-left: 25px;
        gap: 30px;
    }
    


    .achievements li {
        font-size: 1.15rem;
        height: 125px;
        margin: 5px;
    }

    .projectContainer {
        margin-bottom: 100px;
    }

    .arrow {
        display: none;
    }
}

@media(max-width: 400px){
    .sideNav{
        width: 100%;
    }
    
    .typewriter {
        font-size: 36px;
    }

    .wrapper .staticText,
    .dynamicText li {
        font-size: 20px;
    }

    .projectCard {
        width: 260px;
        height: auto;
    }
}
