html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #cdedf8;
    text-align: center;
    margin: 0px;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 97.5%;
    margin: 20px auto;
    padding: 15px 30px;

    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);

    border: 1px solid #ddd;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 12.5px;
}

.site-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: #182e58;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #415b8b;
    font-weight: 500;
}

.navbar a:hover {
    font-weight: 900;
}

.nav-links a {
    text-decoration: none;
    color: #415b8b;
    font-weight: 500;
    transition: color 0.2s ease;
}


.hero-section {
    color: #182e58;
    display: flex;
    align-items: center;
    justify-content: center;
    /*aligns content horizontally (justify content) and vertically (align items)*/
    gap: 40px;
    padding: 10px 5%;
    padding-right: 15%;
    padding-left: 15%;
}

.hero-image img {
    width: 250px;
    height: 350px;
    object-fit: cover;
}

.hero-text {
    max-width: 800px;
    text-align: left;
    text-wrap: wrap;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.social-icons {
    margin-top: 25px;
    padding: 0px 30px;
    display: flex;
    gap: 11%;
    align-items: center;
    justify-content: center;

    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    

    background-color: #ffffff;
    border: 10px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.social-icons a {
    display: flex;
    align-items: center;   
    text-align: center;
    flex-direction: column;

    text-decoration: none;
    color: #415b8b;
    font-weight: 500;
}
.social-icons img {
    width: 35px;
    height: 35px;
    transition: 0.2s ease;
    fill: #415b8b;
}

.social-icons img:hover {
    opacity: 1;
    transform: translateY(-2px);
    backdrop-filter: blur(10px);
    fill: #182e58;
}

@font-face {
    font-family: 'Montserrat';
    src: url('https://fonts.gstatic.com/s/montserrat/v14/JTURjI8o_hmNpXlReB7JdZQ.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.folder-stack {
    padding-top: 25px;
    text-align: left;
    width: 100%;
    margin: 30px 0px 100px 0;
    position: relative;
}

.folder {
    height: fit-content;
    border-radius: 15px 15px 0px 0px;
    padding: 1px 40px 70px 40px;
    position: relative;

    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;

    width: 100%;
    box-sizing: border-box;

    margin-left: 0px;
    margin-top: -50px;

    transition: 
        transform 0.2s ease, 
        box-shadow 0.2s ease;
}

.folder:first-child {
    margin-top: -10px;
}

.folder li {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 25px;
    letter-spacing: 0.5px;
}

.folder h2 {
    font-size: 2rem;
    margin-top: -10px;
    margin-bottom: 0px;
    font-weight: 500;
    transform: translateY(-20px);
}

.folder-tab {
    position: absolute;
    top: -20px;

    padding: 10px 10px;
    width: fit-content;
    height: fit-content;

    border-radius: 15px 15px 0 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    font-size: 1.1rem;
}

.tab-left {
    left: 40px;
}

.tab-center {
    max-width: 90%;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

.tab-right {
    right: 40px;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
}

.folder:hover {
    transform: translateY(-12px);

    box-shadow:
        0 -30px 60px rgba(0,0,0,0.12),
        0 -10px 20px rgba(0,0,0,0.12);
} 

.folder h2 {
    font-size: 2.5rem;
    margin-top: 40px;
}

/* colors */

.folder-green,
.folder-green .folder-tab {
    background: #182e58;
    color: white;
}

.folder-white,
.folder-white .folder-tab {
    background: white;
    color: #415b8b;
}

.folder-dark,
.folder-dark .folder-tab {
    background: #415b8b;
    color: white;
}

.folder-dark {
    min-height: 10px;
    padding-bottom: 20px;
}

.selected-work-section h1 {
    font-size: 3rem;
    text-align: left;
    color: #182e58;
    padding-left: 40px;
    margin-bottom: 40px;
}

.skills-section {
    margin-top: -50px;
    color: #182e58;
    font-size: 1.2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0px 40px;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 20px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.skill-card:hover {
    animation: jiggle 0.4s ease-in-out;
}

@keyframes jiggle {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-1.5deg);
    }

    40% {
        transform: rotate(1.5deg);
    }

    60% {
        transform: rotate(-1deg);
    }

    80% {
        transform: rotate(1deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.skills-section h1 {
    font-size: 3rem;
    text-align: left;
    color: #182e58;
    padding-left: 40px;
    margin-bottom: 40px;
}

.skill-card h3 {
    color: #415b8b;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.skill-card ul {
    list-style: none;
    padding: 0;
}

.skill-card li {
    margin-bottom: 10px;
}

/* research page */

.research-page {
    padding: 80px 40px;
    color: #182e58;
}

.research-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.research-hero h1 {
    font-size: 4rem;
    margin-bottom: 0px;
    margin-top: -20px;
}

.research-hero p {
    font-size: 1.3rem;
}

.hero-buttons {
    margin-top: 30px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-buttons a {
    padding: 12px 20px;
    border-radius: 999px;
    background: white;
    color: #415b8b;
    text-decoration: none;
    font-weight: 600;

    transition: 0.25s ease;
}

.hero-buttons a:hover {
    padding: 10px 24px;
    transform: translateY(-3px);
}

.research-focus,
.research-experience,
.interests-section,
.skills-section,
.future-questions,
.research-cta {
    max-width: 1100px;
    margin: 0 auto 80px;
}

.research-page h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.research-focus p,
.research-card p,
.interest-card p,
.future-questions li {
    font-size: 1.1rem;
    line-height: 1.7;
}

.research-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.research-card h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    margin-top: 0px;
}

#sdbri, #uchs, #boz {
    scroll-margin-top: 100px;
}

.role {
    font-weight: 700;
    color: #415b8b;
    margin-bottom: 20px;
}

.date {
    font-weight: 500;
    color: #415b8b;
    margin-bottom: 20px;
    font-style: italic;
    margin: -20px 0px 20px 0px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.skill-badges span {
    background: #ffffff;
    color: #182e58;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.25s ease;
}

.skill-badges span:hover {
    padding: 10px 24px;
    transform: translateY(-3px);
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;

    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.interest-card {
    background: white;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.interest-card h3 {
    margin-bottom: 10px;
}

.skills-category {
    margin-bottom: 35px;
}

.skills-category h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.future-questions ul {
    padding-left: 25px;
}

.future-questions li {
    margin-bottom: 12px;
}

.question-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.typewriter-question {
    min-height: 2em;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.research-cta {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 25px;
}

@media (max-width: 800px) {
    .research-page {
        padding: 50px 20px;
    }

    .research-hero h1 {
        font-size: 3rem;
    }

    .interest-grid {
        grid-template-columns: 1fr;
    }
}

section {
    scroll-margin-top: 100px;
}

/* life page */

.life-hero {
    color: #182e58;
    align-items: center;
    justify-content: center;
    /*aligns content horizontally (justify content) and vertically (align items)*/
    padding: 10px 5% 0px;
    padding-right: 10%;
    padding-left: 10%;

    max-width: 95%;
    text-align: center;
    text-wrap: wrap;
}

.life-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    margin-top: 20px;
}

.life-hero p {
    font-size: 1.3rem;
    line-height: 1.6;
}

.life-section{
    top: 0;
    z-index: 1000;

    width: 95%;
    margin: 50px auto;
    padding: 15px 30px;

    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.life-section h1 {
    color: #182e58;
    font-size: 2.5rem;
    padding: 0px;
    margin: 15px auto;
}

.life-section {
    font-size: 1.3rem;
    color:#182e58;
}
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;

    padding: 0px;

    max-width: 1600px;
    margin: 0 auto;
    color: #cdedf8
}

@media (max-width: 1000px) {
    .interest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.music-card {
    align-content: center;
    background-color: #415b8b;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: visible;
}

.music-timeline {
    font-style: italic;
    padding-bottom: 10px;
}

.music-card h2 {
    margin-bottom: -10px;
    margin-top: 10px;
}

.music-card p{
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.3rem;
}

.music-card:hover {
    animation: jiggle 0.4s ease-in-out;
}

@media (max-width: 800px) {

    .music-grid {
        grid-template-columns: 1fr;
    }
}

.music-card::before,
.music-card::after {
    position: absolute;
    z-index: 2;
    opacity: 0;
    font-size: 2rem;
    color: #ffffff;
    pointer-events: none;
}

.music-card::before {
    content: "♪";
    top: 40%;
    left: 10%;
}

.music-card::after {
    content: "♫";
    top: 55%;
    right: 10%;
}

.music-card:hover::before {
    animation: note-float-left 0.9s ease forwards;
}

.music-card:hover::after {
    animation: note-float-right 0.9s ease forwards;
}

@keyframes music-jiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-1.5deg); }
    50% { transform: rotate(1.5deg); }
    75% { transform: rotate(-0.8deg); }
    100% { transform: rotate(0deg); }
}

@keyframes note-float-left {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-35px, -80px) rotate(-15deg);
    }
}

@keyframes note-float-right {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(35px, -90px) rotate(15deg);
    }
}

.music-card-image {
    align-content: center;
    background-color: #415b8b;
    border-radius: 18px;

    max-width: 100%;
}

/*contact page*/

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    padding: 18px; 

    max-width: 1600px;
    margin: 0 auto;
    color: #182e58;
}

@media (max-width: 1000px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.contact-card {
    align-content: center;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: visible;
}

.contact-card h3 {
    margin: 10px;
}

.contact-card:hover {
    transform: translateY(-3px);
}

@media (max-width: 800px) {

    .contact-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

.contact-card a{
    padding: 12px 20px;
    border-radius: 999px;
    background: white;
    color: #182e58;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;

    transition: 0.25s ease;
}