@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');

:root {
    --cream: #f1e3cf;
    --sand: #d6b99d;
    --brown: #674f4c;
    --brown-light: #80665d;
    --navy: #24283f;
    --text: #f8f4ee;
    --panel-texture: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 240, 218, 0.025) 7px 8px);
    --panel-bg: linear-gradient(125deg, rgba(114, 87, 79, 0.96), rgba(76, 60, 65, 0.95));
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse 60% 18% at 68% 82%, rgba(119, 83, 77, 0.16), transparent 80%),
        linear-gradient(to bottom,
            #9cc5de 0%,
            #85add4 17%,
            #718fc5 33%,
            #616fae 49%,
            #4c558e 64%,
            #333755 81%,
            #1e1c2d 100%);
}

button {
    font: inherit;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.scroll-text {
    font-family: "Marcellus", Georgia, serif;
    font-weight: 400;
    letter-spacing: 6px;
}

.project-skip,
.more-info-btn,
a[download] > button,
.language-switcher,
.nav-tooltip {
    color: var(--text);
    background: var(--panel-texture), var(--panel-bg);
    border: 1px solid rgba(230, 199, 167, 0.58);
    border-radius: 5px;
    box-shadow: inset 2px 2px 0 rgba(255, 242, 220, 0.08), 0 5px 15px rgba(24, 19, 29, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-skip,
.more-info-btn,
a[download] > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 21px;
    font-family: "Marcellus", Georgia, serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.project-skip:hover,
.more-info-btn:hover,
a[download] > button:hover {
    background: var(--panel-texture), linear-gradient(125deg, rgba(137, 106, 91, 0.98), rgba(98, 75, 73, 0.97));
    border-color: var(--cream);
    color: #fff9f0;
    transform: translateY(-2px);
}

.project-skip {
    position: fixed;
    top: 25px;
    left: 35px;
    z-index: 10000;
    padding: 14px 22px;
}

.language-switcher {
    position: fixed;
    top: 25px;
    right: 35px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px;
}

.language-switcher button {
    border: 0;
    border-radius: 3px;
    padding: 9px 16px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 247, 237, 0.76);
    font-family: "Marcellus", Georgia, serif;
    font-size: 13px;
    letter-spacing: 1px;
    transition: background 0.25s ease, color 0.25s ease;
}

.language-switcher button:hover { background: rgba(242, 225, 203, 0.13); color: white; }
.language-switcher button.active,
.language-switcher button.active:hover { background: #e7ceb0; color: #42363d; }

.section {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 90px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.65s ease;
}

.section.show { opacity: 1; }

.section > div {
    width: 80%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(8%);
}

.section h2 {
    margin: 0 0 12px;
    font-family: "Marcellus", Georgia, serif;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-align: center;
}

.section p {
    margin: 0 0 20px;
    font-weight: 300;
    line-height: 1.65;
    text-align: center;
}

#sideNav {
    position: fixed;
    top: 50%;
    left: 65px;
    width: 34px;
    transform: translateY(-50%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#sideNav.visible { opacity: 1; visibility: visible; pointer-events: auto; }

.nav-heading,
.nav-counter {
    position: absolute;
    left: 50%;
    width: 110px;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    font-family: "Marcellus", Georgia, serif;
    font-size: 13px;
    letter-spacing: 1.1px;
    color: var(--cream);
}

.nav-heading { top: -29px; }
.nav-counter { bottom: -29px; }

#navList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    position: relative;
}

#navList::before,
#navList::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    pointer-events: none;
}

#navList::before { bottom: 15px; background: rgba(244, 228, 207, 0.4); }
#navList::after {
    height: var(--progress-height, 0px);
    background: var(--sand);
    transition: height 0.35s ease;
}

#navList li {
    position: relative;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    z-index: 1;
}

#navList li:hover,
#navList li:focus-within { z-index: 5; }

.nav-dot {
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.nav-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #e8e0d5;
    border: 1px solid #f3e6d5;
    transition: transform 0.25s ease, background 0.25s ease;
}

.nav-dot:hover::before { transform: scale(1.45); background: var(--sand); }
.nav-dot.active::before { transform: scale(1.75); background: var(--sand); border-color: white; }

.nav-dot.active::after {
    content: "";
    position: absolute;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(237, 211, 185, 0.75);
    border-radius: 50%;
    pointer-events: none;
}

.nav-tooltip {
    position: absolute;
    top: 50%;
    left: 43px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 15px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-8px, -50%);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-tooltip-number { color: var(--cream); font-size: 11px; font-weight: 600; }
.nav-tooltip-title { color: white; font-family: "Marcellus", Georgia, serif; font-size: 13px; }

.nav-dot:hover .nav-tooltip,
.nav-dot:focus-visible .nav-tooltip,
.nav-dot.active .nav-tooltip { opacity: 1; visibility: visible; transform: translate(0, -50%); }

#sideNav:hover .nav-dot.active:not(:hover):not(:focus-visible) .nav-tooltip {
    opacity: 0;
    visibility: hidden;
}

.nav-dot:focus-visible,
.project-skip:focus-visible,
.more-info-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.image-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.image-link {
    position: relative;
    flex: 1 1 0;
    max-width: 420px;
    min-width: 0;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.image-link img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-sizing: border-box;
    border: 2px solid rgba(227, 198, 166, 0.82);
    border-radius: 5px;
    box-shadow: 0 5px 14px rgba(41, 28, 34, 0.17), inset 0 0 0 1px rgba(255, 243, 221, 0.1);
    transition: border-color 0.3s ease, filter 0.3s ease;
}

.image-link:hover { transform: translateY(-3px); }
.image-link:hover img { filter: brightness(0.58); border-color: var(--cream); }

.image-link span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(51, 37, 43, 0.35);
    border-radius: 5px;
    color: var(--cream);
    font-family: "Marcellus", Georgia, serif;
    font-size: 30px;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.image-link:hover span { opacity: 1; }

.image-link::after {
    content: "✧";
    position: absolute;
    top: -12px;
    right: -8px;
    color: var(--cream);
    font-size: 21px;
    pointer-events: none;
    animation: softSparkle 4.5s ease-in-out infinite;
}

.image-row .image-link:nth-child(2)::after {
    top: auto;
    right: auto;
    bottom: -12px;
    left: -8px;
    animation-delay: 1.8s;
}

@keyframes softSparkle { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.85; } }

.more-info-btn { margin-top: 28px; }
.more-info-btn:hover { transform: translateY(-2px); }

.more-arrow { display: inline-block; font-size: 18px; line-height: 1; transition: transform 0.3s ease; }
.more-info-btn[aria-expanded="true"] .more-arrow { transform: rotate(180deg); }

.project-details {
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 25px;
    border-radius: 5px;
    background: var(--panel-texture), linear-gradient(130deg, rgba(99, 75, 72, 0.94), rgba(61, 49, 56, 0.96));
    border: 1px solid rgba(225, 191, 157, 0.58);
    box-shadow: inset 2px 2px 0 rgba(255, 245, 225, 0.05), 0 6px 20px rgba(27, 19, 29, 0.16);
}

.project-details[hidden] { display: none; }

.project-details h3 {
    margin: 0 0 10px;
    color: var(--cream);
    font-family: "Marcellus", Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    text-align: left;
}

.project-details p { margin: 0 0 24px; color: #f9f0e6; text-align: left; }
.project-details p:last-child { margin-bottom: 0; }

.profile-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid rgba(234, 209, 183, 0.72);
    margin-bottom: 30px;
    box-shadow: 0 5px 18px rgba(39, 34, 43, 0.13);
    transition: transform 0.3s ease;
}

.profile-photo:hover { transform: scale(1.03); }

.bg-effects { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.bubbles span {
    position: absolute;
    bottom: -50px;
    border-radius: 50%;
    background: #f1dfc9;
    animation: rise linear infinite;
}

@keyframes rise { to { transform: translateY(-120vh); } }

.stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #f7ead8;
    opacity: 0.35;
    animation: twinkle 3s ease-in-out infinite alternate;
}

@keyframes twinkle { to { opacity: 0.7; } }

.starfish img {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    object-fit: contain;
    filter: saturate(0.72) sepia(0.16) brightness(0.98);
    transition: opacity 0.8s ease;
    animation: drift ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: translate(-10px, 12px) rotate(-12deg); }
    to { transform: translate(14px, -16px) rotate(15deg); }
}

@media (max-width: 700px) {
    .project-skip { top: 15px; left: 15px; padding: 12px 16px; font-size: 12px; }
    .language-switcher { top: 15px; right: 15px; }
    .language-switcher button { padding: 8px 12px; font-size: 12px; }
    #sideNav { display: none; }
    .section { padding: 90px 0 65px; }
    .section > div { width: 90%; transform: none; }
    .scroll-text { font-size: 48px; letter-spacing: 4px; }
    .section h2 { font-size: 24px; }
    .section p { font-size: 15px; }
    .image-row { flex-direction: column; align-items: center; }
    .image-link { width: 90%; flex: none; }
    .image-link span { font-size: 26px; }
    .project-details { padding: 18px; }
    .project-details h3 { font-size: 18px; }
    .profile-photo { width: 135px; height: 135px; margin-bottom: 25px; }
}

@media (max-height: 700px) and (min-width: 701px) {
    #navList { gap: 8px; }
}

@media (min-width: 701px) {
    .scroll-text { font-size: 72px; }
    .section h2 { font-size: 34px; }
    .section p { font-size: 18px; }
}

@media (min-width: 1601px) {
    .scroll-text { font-size: 110px; }
    .section > div { max-width: 1000px; }
    .section h2 { font-size: 42px; }
    .section p { font-size: 20px; }
}

@media (min-width: 2200px) {
    .scroll-text { font-size: 150px; }
    .section h2 { font-size: 56px; }
    .section p { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

