body {
    font-family:'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

.page{
    /* background-color: #f7fbf2; */
    width: 100%;
    top:0px;
    position:absolute;
}

nav {
    background-color: #D8EFD3;
    display: flex;
    align-items: center;
    padding: 10px;
    justify-content: space-between;
    position:fixed;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    top:0px;
}

.nav-left {
    color: black;
    font-size: 24px;
    font-weight: bold;
    padding-left: 50px
}

.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.navbar li {
    margin-left: 10px;
    margin-right:20px;
}

.navbar a {
    text-decoration: none;
    color: black;
    padding: 10px;
    display: block;
}

.navbar a:hover {
    background-color: #c2ddbc;
}

.section {
    background-color: white;
    width: 60%;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    margin-top:20px;
    margin-bottom:10px;
    margin-right: 120px;
}

.section-top{
    margin-top:70px;
}

#about{
    margin-top:70px;
}

.divider {
    width: 50%;
    margin: 0 auto;
    border: 0;
    border-top: 2px solid #ccc;
    margin-bottom: 20px;
}

.about-me-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.about-me-left {
    flex: 1;
    text-align: center;
}

.about-me-picture {
    width: 100%;
    height: auto;
    max-width: 200px;
    border-radius: 0%;
}

.about-me-right {
    flex: 2;
    padding-left:5px;
    text-align: left;
}

.about-me-right p{
    font-size: 20px;
}

.about-me-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}

.publication-entry {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top:5px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    font-size: 1em;
    /* color: #333; */
    line-height: 1.6;
    font-size:16px;
}

.publication-entry p {
    margin: 5px 0;
    line-height: 1.6;
    color: #555;
    display:inline;
}

.publication-entry .authors {
    /* font-weight: bold; */
}

.publication-entry .journal {
    font-style: italic;
}

.publication-entry .note {
    font-size: 0.9em;
    color: #777;
}

.experience-list {
    margin: 20px auto;
    padding: 0;
    max-width: 600px;
    list-style: none;
  }
  
  .experience-item {
    background: #fff;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .class-name {
    font-size: 1.2em;
    font-weight: bold;
  }
  
  .class-time {
    font-size: 0.9em;
    color: #555;
  }

  /* Back to Top Button Styles */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 52px;
    height: 52px;

    border: none;
    border-radius: 50%;

    background: linear-gradient(135deg, #76aee6, #5a8fd8);
    color: white;

    font-size: 12px;
    font-weight: bold;

    cursor: pointer;

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

    box-shadow:
        0 8px 25px rgba(90,143,216,0.35),
        0 3px 8px rgba(0,0,0,0.15);

    transition: all 0.25s ease;

    z-index: 1000;
}

#back-to-top::before {
    content: "↑";
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.08);

    box-shadow:
        0 14px 35px rgba(90,143,216,0.45),
        0 6px 15px rgba(0,0,0,0.2);
}

#back-to-top:active {
    transform: translateY(-1px) scale(1.02);
}


  @keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 1;
    }
    to {
        transform: scale(20) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #e8f3e7;
    overflow: hidden;
}
.background li {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 10px;
    height: 10px;
    border: solid 1px #d0dacf;
    color: transparent;
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    animation: cube 7s ease-in forwards infinite;
}

.background li:nth-child(0) {
    animation-delay: 0s;
    left: 80vw;
    top: 24vh;
    border-color: #fffffe;
}

.background li:nth-child(1) {
    animation-delay: 2s;
    left: 22vw;
    top: 8vh;
    border-color: #fffffe;
}

.background li:nth-child(2) {
    animation-delay: 4s;
    left: 97vw;
    top: 92vh;
    border-color: #fffffe;
}

.background li:nth-child(3) {
    animation-delay: 6s;
    left: 64vw;
    top: 56vh;
}

.background li:nth-child(4) {
    animation-delay: 8s;
    left: 8vw;
    top: 76vh;
    border-color: #fffffe;
}

.background li:nth-child(5) {
    animation-delay: 10s;
    left: 37vw;
    top: 34vh;
}

video {
    display: block;
    margin: 20px auto;
}

.picture{
    width:100%;
    max-width:640px;
    display:block;
    margin:20px auto;
}

.paragraph{
    margin:20px;
    border:5px;
    border-color: #c2ddbc;
    border-style: dotted;
}

/* ==========================
   Mobile / Tablet Responsive
   ========================== */

@media screen and (max-width: 768px) {

    .section {
        width: 90%;
        padding: 15px;
    }

    .about-me-content {
        flex-direction: column;
        text-align: center;
    }

    .about-me-left {
        text-align: center;
    }

    .about-me-right {
        text-align: left;
        padding-left: 0;
        margin-top: 15px;
    }

    .about-me-picture {
        max-width: 150px;
        margin-left: 0;
    }

    .about-me-right p {
        font-size: 16px;
    }

    .picture {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    video {
        width: 100%;
        height: auto;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar li {
        margin: 5px;
    }

    .nav-left {
        padding-left: 10px;
        font-size: 20px;
    }

    .about-me-icons {
        flex-wrap: wrap;
    }

}

/* ====== Custom Page Navigation Sidebar ====== */
.page-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);

    width: 190px;
    padding: 18px;

    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(15px);

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.3);

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    z-index: 1000;
}

.page-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 16px;
    font-weight: bold;
}

.page-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.page-nav ul::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #d8efd3;
}

.page-nav li {
    position: relative;
    margin-bottom: 18px;
}

.page-nav a {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #444;
    text-decoration: none;
    font-size: 15px;

    transition: all .25s ease;
}

.page-nav a:hover {
    color: #2b6cb0;
    transform: translateX(4px);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: white;
    border: 2px solid #76aee6;

    display: inline-block;
    flex-shrink: 0;
    z-index: 2;
}

.page-nav:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,.12);
}

@media screen and (max-width: 1100px) {
    .page-nav {
        display: none;
    }
}

.favorite-quote {
    position: relative;

    margin-top: 40px;
    padding: 30px 35px;

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

    border-left: 5px solid #76aee6;
    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.06);

    overflow: hidden;
}

.quote-mark {
    position: absolute;

    top: -10px;
    left: 15px;

    font-size: 80px;
    line-height: 1;

    color: rgba(118,174,230,0.15);

    user-select: none;
}

.quote-text {
    position: relative;

    font-size: 1.15rem;
    line-height: 1.8;

    font-style: italic;
    color: #333;

    margin: 0;
}

.quote-author {
    margin-top: 18px;

    text-align: right;

    font-size: 0.95rem;
    color: #666;

    letter-spacing: 0.5px;
}