:root {
    --night: #100b1f;
    --night-deep: #080714;
    --lavender: #cdbdff;
    --lavender-soft: #f7d7ff;
    --cream: #fff7df;
    --blush: #f2728e;
}

h1 {
    font-family: "Edu NSW ACT Cursive", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: italic;
    color:#f2728e ;
    text-align: center;
    font-size: 7em;
    margin-top: 0px;
}

.cursor-dot {
    position: fixed;
    top: 100px;
    left: 100px;
    z-index: 9999;
    width: 20px;
    height: 20px;
    background-color: #f89cb0;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, background-color 0.3s ease-out;
    align-items: center;
    box-shadow: 0px 0px 15px #f7adbd;
}

.cursor-ring {
    position: fixed;
    top: 100px;
    left: 100px;
    z-index: 9997;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(205, 189, 255, 0.65);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 18px rgba(205, 189, 255, 0.2);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.grain-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px;
    animation: grain-drift 0.35s steps(1) infinite;
}

@keyframes grain-drift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-1px, 3px); }
    100% { transform: translate(0, 0); }
}
:root {
    cursor: none;
}
.sparkly-trail {
    position: fixed;
    z-index: 9998;
    width: 20px;
    height: 20px;
    background-color: #ffd4dd;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    
    box-shadow: 0px 0px 15px #FFFFC5;
}
.toggle {
    border-radius: 30%;
    position: fixed;
    top: 25px;
    right: 25px;
    width:60px;
    border-color: gray;
    background-color: #fffdf8;
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    height:40px;
    z-index: 10;
}

.contact-widget {
    position: fixed;
    top: 25px;
    right: 105px;
    z-index: 10;
}

.contact-button {
    width: 44px;
    height: 44px;
    border: 1px solid #cdbdff;
    border-radius: 50%;
    background-color: rgba(16, 11, 31, 0.58);
    color: #f7d7ff;
    font-size: 1.3rem;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.22),
        0px 0px 20px rgba(188, 166, 255, 0.18);
    cursor: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 212, 221, 0.12);
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 28px rgba(188, 166, 255, 0.35);
}

.contact-widget::before {
    content: "Contact";
    position: absolute;
    top: 54px;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    padding: 6px 10px;
    border: 1px solid #cdbdff;
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.82);
    color: #f7d7ff;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0px 0px 18px rgba(188, 166, 255, 0.25);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-widget:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.contact-card {
    position: absolute;
    top: 58px;
    right: 0;
    width: 330px;
    padding: 22px;
    border: 1px solid #cdbdff;
    border-radius: 8px;
    background-color: rgba(255, 247, 250, 0.96);
    color: #120817;
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 30px rgba(188, 166, 255, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-widget.open .contact-card {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-card h3 {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.7rem;
    margin: 0 0 10px;
}

.contact-card p {
    margin: 0 0 10px;
    line-height: 1.4;
}

.email-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.email-text {
    flex: 1;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.copy-email {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #ffc5d2;
    border-radius: 8px;
    background-color: #fffdf8;
    color: #f2728e;
    cursor: none;
}

.contact-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.contact-links a {
    color: #f2728e;
    font-weight: 700;
    text-decoration: none;
}

.contact-links a:hover {
    text-decoration: underline;
}

.letter-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(242, 114, 142, 0.35);
}

.letter-label {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.15rem;
}

.letter-input,
.letter-message {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1.5px solid rgba(242, 114, 142, 0.35);
    background-color: transparent;
    color: #120817;
    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    outline: none;
    padding: 8px 0;
    margin-bottom: 8px;
}

.letter-message {
    resize: none;
    line-height: 1.5;
}

.letter-input:focus,
.letter-message:focus {
    border-bottom-color: #f2728e;
}

.send-letter {
    margin-top: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #ffc5d2;
    border-radius: 999px;
    background-color: #fffdf8;
    color: #f2728e;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1rem;
    cursor: none;
}

.letter-status {
    margin: 10px 0 0;
    color: #8f7ad2;
    font-size: 0.84rem;
}

.ai-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 12;
}

.ai-widget::before {
    content: "Ask AI";
    position: absolute;
    right: 66px;
    bottom: 13px;
    padding: 7px 12px;
    border: 1px solid rgba(205, 189, 255, 0.42);
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.86);
    color: #f7d7ff;
    font-size: 0.84rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(8px);
    box-shadow: 0px 0px 18px rgba(188, 166, 255, 0.22);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ai-widget:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.ai-button {
    width: 54px;
    height: 54px;
    border: 1px solid #cdbdff;
    border-radius: 50%;
    background:
        radial-gradient(circle at 70% 30%, rgba(242, 114, 142, 0.34), transparent 35%),
        rgba(16, 11, 31, 0.86);
    color: #f7d7ff;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.3),
        0px 0px 26px rgba(188, 166, 255, 0.35);
    cursor: none;
}

.ai-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(360px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(205, 189, 255, 0.62);
    border-radius: 8px;
    background:
        radial-gradient(circle at 80% 12%, rgba(242, 114, 142, 0.16), transparent 26%),
        rgba(16, 11, 31, 0.96);
    color: #fff7df;
    box-shadow:
        0px 18px 44px rgba(0, 0, 0, 0.36),
        0px 0px 30px rgba(188, 166, 255, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ai-widget.open .ai-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(205, 189, 255, 0.3);
}

.ai-header p {
    margin: 0 0 4px;
    color: rgba(205, 189, 255, 0.76);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ai-header h3 {
    margin: 0;
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.45rem;
}

.ai-close {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(205, 189, 255, 0.36);
    border-radius: 50%;
    background-color: transparent;
    color: #f7d7ff;
    cursor: none;
}

.ai-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 14px 0;
}

.ai-message {
    width: fit-content;
    max-width: 88%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.45;
    font-size: 0.92rem;
}

.bot-message {
    background-color: rgba(205, 189, 255, 0.13);
    border: 1px solid rgba(205, 189, 255, 0.2);
}

.user-message {
    margin-left: auto;
    background-color: rgba(242, 114, 142, 0.18);
    border: 1px solid rgba(242, 114, 142, 0.28);
}

.ai-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-suggestions button,
.ai-send {
    border: 1px solid rgba(205, 189, 255, 0.38);
    border-radius: 999px;
    background-color: rgba(255, 247, 250, 0.08);
    color: #f7d7ff;
    padding: 8px 12px;
    cursor: none;
}

.ai-send:disabled {
    opacity: 0.45;
}

.ai-form {
    display: flex;
    gap: 8px;
}

.ai-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(205, 189, 255, 0.28);
    border-radius: 999px;
    background-color: rgba(255, 247, 250, 0.08);
    color: #fff7df;
    padding: 10px 14px;
    outline: none;
}

.ai-input::placeholder {
    color: rgba(255, 247, 223, 0.5);
}
.toggle-knob {
    display:block;
    background-color: black;
    border-radius: 50%;
    width: 10px;
    height:10px;
    top:5px;
    left:5px;
    position:absolute;
    transition: left 0.3s ease;
}
html {
    background-color: #100b1f;
}

body.dark-mode {
  background-color: #120817;
  color: white;
}
body {
    background-color: #100b1f;
    color:#120817;
    margin: 0;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    scroll-behavior: smooth;
    --star-x: 0px;
    --star-y: 0px;
    font-family: "DM Sans", sans-serif;
}
body.open-curtain,
body.paper-pulled {
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        #100b1f;
}

body.dark-mode .toggle-knob {
    left:42px;
}
button {
    border-radius: 30%;
}
.intro-page {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1), box-shadow 1s ease-in-out;
    transform-origin: top center;
    background:
        radial-gradient(circle at 70% 45%, rgba(242, 114, 142, 0.22), transparent 28%),
        radial-gradient(circle at 25% 30%, rgba(188, 166, 255, 0.2), transparent 24%),
        #100b1f;
}

body.paper-pulled .intro-page {
    transform: translateY(-115vh) rotate(-2deg);
    box-shadow: 0px 20px 40px rgba(242, 114, 142, 0.25);
}

#main-title {
    position: absolute;
    z-index: 4;
    cursor: none;
    display: flex;
    gap: 25px;
    top: 43%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-style: italic;
    font-weight: 700;
    background: linear-gradient(135deg, #fff7df 0%, #cdbdff 45%, #f2728e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 0px 22px rgba(247, 215, 255, 0.35);
}


#main-title:hover {
    transform: translate(-50%, -50%) scale(1.05);
    text-shadow: 0px 0px 25px #ffd4dd;
}

.intro-label {
    position: absolute;
    z-index: 4;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: #bca6ff;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1.3rem;
    letter-spacing: 0;
    text-shadow: 0px 0px 12px rgba(188, 166, 255, 0.75);
}

.role-line {
    position: absolute;
    z-index: 4;
    top: 54%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: #fff7df;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.12em;
}

.open-book-button {
    position: absolute;
    z-index: 4;
    top: 66%;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 62px;
    border: 1px solid #cdbdff;
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.35);
    color: #d8caff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    box-shadow: 0px 0px 24px rgba(188, 166, 255, 0.2);
    cursor: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.side-dots {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    display: flex;
    flex-direction: column;
    gap: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.open-curtain .side-dots {
    opacity: 1;
    pointer-events: auto;
}

.side-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(205, 189, 255, 0.28);
    cursor: none;
    position: relative;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.side-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 9px;
    border: 1px solid rgba(205, 189, 255, 0.22);
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.82);
    color: #f7d7ff;
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.side-dot:hover,
.side-dot.active-dot {
    background-color: #cdbdff;
    transform: scale(1.6);
}

.side-dot:hover::after {
    opacity: 1;
}

.open-book-button:hover {
    transform: translateX(-50%) translateY(-4px);
    background-color: rgba(255, 212, 221, 0.12);
    box-shadow: 0px 0px 32px rgba(188, 166, 255, 0.45);
}

.curtain {
    
    position: absolute;
    top: 0;
    width: calc(50% + 1px);
    height: 100vh;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 60% 45%, rgba(242, 114, 142, 0.2), transparent 35%),
        linear-gradient(135deg, #100b1f, #171229);
    background-size: 150px 150px, 230px 230px, 100% 100%, 100% 100%;
    background-position:
        calc(20px + var(--star-x)) calc(35px + var(--star-y)),
        calc(90px - var(--star-x)) calc(110px - var(--star-y)),
        center,
        center;
    z-index: 2;
    transition: transform 1.5s ease-in-out;
}


.curtain-left {
    left: 0;
}

.curtain-right {
    right: 0;
}
.title-left,
.title-right {
    display: inline-block;
    transition: transform 1.5s ease-in-out, opacity 1s ease;
}

body.open-curtain .title-left {
    transform: translateX(-120vw);
    opacity: 0;
}

body.open-curtain .title-right {
    transform: translateX(120vw);
    opacity: 0;
}

body.open-curtain #main-title {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

body.open-curtain .intro-label,
body.open-curtain .role-line,
body.open-curtain .open-book-button {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

body.open-curtain .curtain-left {
    transform: translateX(-100%);
}

body.open-curtain .curtain-right {
    transform: translateX(100%);
}

.polaroid-page {
    min-height: 100vh;
    width: 100%;
    padding: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        #100b1f;

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.back-to-cover {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 5;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #cdbdff;
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.58);
    color: #f7d7ff;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1rem;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.22),
        0px 0px 20px rgba(188, 166, 255, 0.18);
    cursor: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s ease, background-color 0.3s ease;
}

body.open-curtain .back-to-cover {
    opacity: 1;
    pointer-events: auto;
}

.back-to-cover:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 212, 221, 0.12);
}

.polaroid-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle, #fff7c8 0 2px, transparent 3px),
        radial-gradient(circle, #ffd4dd 0 1px, transparent 2px),
        radial-gradient(circle, #ffffff 0 1.5px, transparent 2.5px),
        radial-gradient(circle, #fff7c8 0 1px, transparent 2px);
    background-size: 180px 180px, 130px 130px, 220px 220px, 95px 95px;
    background-position:
        calc(20px + var(--star-x)) calc(35px + var(--star-y)),
        calc(70px - var(--star-x)) calc(95px - var(--star-y)),
        calc(120px + var(--star-y)) calc(20px - var(--star-x)),
        calc(35px - var(--star-y)) calc(145px + var(--star-x));
    animation: stars-twinkle 3s ease-in-out infinite alternate;
}

body.dark-mode .polaroid-page::before {
    opacity: 1;
}

.polaroid {
    width: 320px;
    background-color: #fffdf8;
    padding: 18px 18px 45px;
    border: 2px solid #ffd4dd;
    box-shadow:
        0px 12px 25px rgba(242, 114, 142, 0.25),
        0px 0px 22px rgba(255, 212, 221, 0.8);
    transform: rotate(-4deg);
    text-align: center;
    position: relative;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.polaroid:hover {
    transform: rotate(-2deg) scale(1.03);
    box-shadow:
        0px 16px 32px rgba(242, 114, 142, 0.32),
        0px 0px 30px rgba(255, 212, 221, 0.95);
}

.polaroid p {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.4rem;
    margin: 14px 0 0;
}

.branch {
    position: absolute;
    width: 138px;
    height: 54px;
    border-top: 4px solid #8a6246;
    border-radius: 50%;
    background: none;
    z-index: 3;
    filter: drop-shadow(0px 2px 1px rgba(96, 60, 39, 0.18));
}

.branch::before,
.branch::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 24px;
    border-top: 3px solid #8a6246;
    border-radius: 50%;
}

.branch-top {
    top: -25px;
    left: -39px;
    transform: rotate(-16deg);
}

.branch-top::before {
    top: 8px;
    left: 26px;
    transform: rotate(42deg);
}

.branch-top::after {
    top: 13px;
    left: 68px;
    transform: rotate(-32deg);
}

.branch-bottom {
    right: -50px;
    bottom: 14px;
    transform: rotate(160deg);
}

.branch-bottom::before {
    top: 9px;
    left: 24px;
    transform: rotate(42deg);
}

.branch-bottom::after {
    top: 12px;
    left: 73px;
    transform: rotate(-30deg);
}

.leaf {
    position: absolute;
    width: 25px;
    height: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%),
        linear-gradient(135deg, #b5d58c, #5f9d66);
    border-radius: 100% 0 100% 0;
    z-index: 4;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.32);
}

.leaf::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 1px;
    background-color: rgba(62, 109, 66, 0.48);
    top: 7px;
    left: 3px;
    transform: rotate(28deg);
}

.leaf-one {
    top: -31px;
    left: 16px;
    transform: rotate(-18deg);
}

.leaf-two {
    top: -2px;
    left: -17px;
    transform: rotate(68deg) scale(0.92);
}

.leaf-three {
    right: -22px;
    bottom: 42px;
    transform: rotate(150deg);
}

.leaf-four {
    right: 28px;
    bottom: 8px;
    transform: rotate(205deg) scale(0.9);
}

.flower {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #ffe18f;
    z-index: 5;
    box-shadow:
        0px -12px 0 2px #f8a5b8,
        11px -4px 0 2px #ffc1d0,
        7px 10px 0 2px #f48aa3,
        -7px 10px 0 2px #ffc1d0,
        -11px -4px 0 2px #f48aa3,
        0px 0px 12px rgba(255, 212, 221, 0.85);
}

.flower::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #9b6f4e;
    top: 5px;
    left: 5px;
    z-index: 6;
}

.flower-one {
    top: -31px;
    left: -24px;
    transform: scale(0.7) rotate(-12deg);
}

.flower-two {
    top: -18px;
    left: 76px;
    transform: scale(0.58) rotate(18deg);
}

.flower-three {
    right: -28px;
    bottom: 31px;
    transform: scale(0.68) rotate(12deg);
}

.photo-placeholder {
    height: 280px;
    background-color: #ffd4dd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f2728e;
}

.intro-text {
    max-width: 560px;
    color: #fff7df;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    text-shadow: 0px 0px 12px rgba(255, 247, 223, 0.18);
    font-size: 1.2rem;
    line-height: 1.85;
    padding-top: 20px;
}

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    margin: 0;
    color: rgba(247, 215, 255, 0.42);
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1.25rem;
    letter-spacing: 0;
    z-index: 3;
    text-shadow: 0px 0px 16px rgba(247, 215, 255, 0.25);
    animation: scroll-hint-float 1.8s ease-in-out infinite alternate;
}

.scroll-hint::before {
    content: "";
    display: block;
    width: 1px;
    height: 46px;
    margin: 0 auto 8px;
    background: linear-gradient(to bottom, rgba(205, 189, 255, 0.75), transparent);
}

@keyframes scroll-hint-float {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 0.35;
    }

    to {
        transform: translateX(-50%) translateY(-8px);
        opacity: 0.7;
    }
}

body.dark-mode .intro-text {
    color: #fff7fa;
}

.intro-text h2 {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 3em;
}
.polaroid-img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    border: 1px solid #ffe3ea;
}

.scrapbook-menu {
    min-height: 100vh;
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px),
        #100b1f;
    background-size: 100% 100%, 100% 100%, 150px 150px, 230px 230px;
    background-position:
        center,
        center,
        calc(20px + var(--star-x)) calc(35px + var(--star-y)),
        calc(90px - var(--star-x)) calc(110px - var(--star-y));
    padding: 90px 80px;
    text-align: center;
    transform: translateY(65vh) scale(0.96);
    opacity: 0.2;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.8s ease;
    position: relative;
    z-index: 2;
}

.back-to-polaroid {
    position: absolute;
    top: 28px;
    left: 28px;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #cdbdff;
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.58);
    color: #f7d7ff;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1rem;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.22),
        0px 0px 20px rgba(188, 166, 255, 0.18);
    cursor: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.back-to-polaroid:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 212, 221, 0.12);
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 28px rgba(188, 166, 255, 0.35);
}

.section-back-button {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 8;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #cdbdff;
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.58);
    color: #f7d7ff;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1rem;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.22),
        0px 0px 20px rgba(188, 166, 255, 0.18);
    cursor: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.section-back-button:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 212, 221, 0.12);
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 28px rgba(188, 166, 255, 0.35);
}

.page-turn-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 8;
    display: flex;
    gap: 12px;
    transform: translateX(-50%);
}

.page-turn-button {
    min-width: 132px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(205, 189, 255, 0.78);
    border-radius: 999px;
    background-color: rgba(16, 11, 31, 0.66);
    color: #f7d7ff;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 0.98rem;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.22),
        0px 0px 20px rgba(188, 166, 255, 0.18);
    cursor: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-turn-button:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 212, 221, 0.13);
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 28px rgba(188, 166, 255, 0.35);
}

body.open-curtain .scrapbook-menu,
body.paper-pulled .scrapbook-menu {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.scrapbook-menu h2 {
    font-family: "Playfair Display", serif;
    color: #f7d7ff;
    font-size: 3.8em;
    font-weight: 900;
    margin: 0 0 50px;
    text-shadow: 0px 0px 22px rgba(247, 215, 255, 0.35);
}

.scrapbook-menu h2::before {
    content: "Chapter Index";
    display: block;
    margin-bottom: 8px;
    color: rgba(205, 189, 255, 0.62);
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.menu-boxes {
    display: grid;
    grid-template-columns: repeat(3, 220px);
    gap: 30px;
    justify-content: center;
}

.menu-boxes button {
    height: 110px;
    background-color: rgba(16, 11, 31, 0.58);
    border: 1px solid #cdbdff;
    border-radius: 8px;
    color: #f7d7ff;
    font-family: "Edu NSW ACT Cursive", cursive;
    font-size: 1.4rem;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.22),
        0px 0px 20px rgba(188, 166, 255, 0.18);
    cursor: none;
    text-shadow: 0px 0px 12px rgba(247, 215, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.menu-boxes button:hover {
    transform: translateY(-8px) rotate(-1deg);
    background-color: rgba(255, 212, 221, 0.12);
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 28px rgba(188, 166, 255, 0.35);
}

.scrapbook-section {
    min-height: 100vh;
    padding: 90px 80px;
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px),
        #100b1f;
    background-size: 100% 100%, 100% 100%, 150px 150px, 230px 230px;
    background-position:
        center,
        center,
        calc(20px + var(--star-x)) calc(35px + var(--star-y)),
        calc(90px - var(--star-x)) calc(110px - var(--star-y));
    display: none;
}

.scrapbook-section.active-section {
    display: block;
}

.scrapbook-section:nth-of-type(odd) {
    background-color: #100b1f;
}

.scrapbook-section h2 {
    font-family: "Playfair Display", serif;
    color: #f7d7ff;
    font-size: 3.4em;
    font-weight: 900;
    margin: 0 0 40px;
    text-align: center;
    text-shadow: 0px 0px 22px rgba(247, 215, 255, 0.35);
}

.scrapbook-section h2::before {
    content: "Open Page";
    display: block;
    margin-bottom: 8px;
    color: rgba(205, 189, 255, 0.62);
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.scrapbook-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 950px;
    margin: 0 auto;
}

.scrapbook-card {
    min-height: 150px;
    background-color: rgba(255, 247, 250, 0.94);
    border: 1px solid #cdbdff;
    border-radius: 8px;
    padding: 24px;
    box-shadow:
        0px 10px 22px rgba(0, 0, 0, 0.24),
        0px 0px 22px rgba(188, 166, 255, 0.18);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scrapbook-card::before {
    content: "";
    width: 52px;
    height: 16px;
    background-color: rgba(255, 212, 221, 0.85);
    position: absolute;
    top: -9px;
    left: 24px;
    transform: rotate(-4deg);
}

.scrapbook-card:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow:
        0px 16px 30px rgba(0, 0, 0, 0.28),
        0px 0px 30px rgba(188, 166, 255, 0.28);
}

.scrapbook-card.clickable-card {
    cursor: none;
}

.scrapbook-card.project-case-trigger {
    cursor: none;
}

.scrapbook-card h3 {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.7rem;
    margin: 0 0 14px;
}

.scrapbook-card p {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.scrapbook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(242, 114, 142, 0.3);
    border-radius: 999px;
    background-color: rgba(255, 212, 221, 0.28);
    color: #f2728e;
    font-family: "DM Sans", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

button.scrapbook-link {
    cursor: none;
}

.scrapbook-link:hover {
    background-color: rgba(255, 212, 221, 0.45);
}

.featured-case-study,
.skills-board {
    width: min(1040px, 100%);
    margin: 0 auto 32px;
}

.featured-case-study {
    margin-top: 32px;
    padding: 32px;
    border: 1px solid rgba(205, 189, 255, 0.74);
    border-radius: 8px;
    background:
        linear-gradient(rgba(188, 166, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 80% 18%, rgba(242, 114, 142, 0.16), transparent 28%),
        rgba(255, 247, 250, 0.96);
    background-size: 100% 34px, 100% 100%, 100% 100%;
    color: #120817;
    box-shadow:
        0px 16px 36px rgba(0, 0, 0, 0.28),
        0px 0px 28px rgba(188, 166, 255, 0.22);
    position: relative;
}

.featured-case-study.is-hidden {
    display: none;
}

.case-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0 0 18px;
    padding: 0 13px;
    border: 1px solid rgba(143, 122, 210, 0.42);
    border-radius: 999px;
    background-color: rgba(188, 166, 255, 0.14);
    color: #5a315f;
    cursor: none;
    font-family: "DM Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
}

.case-back-button:hover {
    background-color: rgba(188, 166, 255, 0.24);
}

.featured-case-study::before {
    content: "";
    width: 88px;
    height: 22px;
    background-color: rgba(255, 212, 221, 0.88);
    position: absolute;
    top: -12px;
    left: 34px;
    transform: rotate(-3deg);
    box-shadow: 0px 5px 12px rgba(242, 114, 142, 0.16);
}

.case-label,
.skill-label {
    margin: 0 0 10px;
    color: #8f7ad2;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.featured-case-study h3,
.skill-note h3 {
    margin: 0 0 14px;
    color: #f2728e;
    font-family: "Edu NSW ACT Cursive", cursive;
}

.featured-case-study h3 {
    font-size: 2.35rem;
}

.case-summary {
    max-width: 760px;
    margin: 0 0 24px;
    color: #2d2338;
    font-size: 1.06rem;
    line-height: 1.65;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.case-grid div,
.skill-note {
    border: 1px solid rgba(205, 189, 255, 0.42);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.54);
}

.case-grid div {
    padding: 18px;
}

.case-grid span {
    display: block;
    margin-bottom: 8px;
    color: #f2728e;
    font-weight: 700;
}

.case-grid p {
    margin: 0;
    color: #382d45;
    line-height: 1.55;
}

.case-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.case-highlights li {
    padding-left: 18px;
    color: #2d2338;
    line-height: 1.45;
    position: relative;
}

.case-highlights li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #f2728e;
    position: absolute;
    left: 0;
    top: 0.55em;
    box-shadow: 0px 0px 10px rgba(242, 114, 142, 0.4);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.case-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.case-tags span,
.skill-list li {
    border: 1px solid rgba(242, 114, 142, 0.26);
    border-radius: 999px;
    background-color: rgba(255, 212, 221, 0.34);
    color: #5a315f;
}

.case-tags span {
    padding: 7px 11px;
    font-size: 0.84rem;
}

.skills-board {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    gap: 24px;
}

.skill-note {
    padding: 24px;
    color: #120817;
    background:
        radial-gradient(circle at 78% 16%, rgba(242, 114, 142, 0.13), transparent 30%),
        rgba(255, 247, 250, 0.95);
    box-shadow:
        0px 12px 28px rgba(0, 0, 0, 0.22),
        0px 0px 22px rgba(188, 166, 255, 0.16);
}

.skill-summary {
    min-height: 100%;
}

.skill-note h3 {
    font-size: 1.8rem;
    line-height: 1.15;
}

.skill-note p:last-child {
    margin: 0;
    color: #2d2338;
    line-height: 1.7;
}

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

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill-list li {
    padding: 8px 11px;
    font-size: 0.88rem;
    line-height: 1.25;
}

.resume-link[hidden] {
    display: none;
}


.goals-planner {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
    gap: 28px;
    align-items: stretch;
}

.goals-list,
.goal-note {
    position: relative;
    background:
        linear-gradient(rgba(188, 166, 255, 0.14) 1px, transparent 1px),
        rgba(255, 247, 250, 0.95);
    background-size: 100% 34px;
    border: 1px solid rgba(205, 189, 255, 0.95);
    border-radius: 8px;
    box-shadow:
        0px 12px 28px rgba(0, 0, 0, 0.22),
        0px 0px 24px rgba(188, 166, 255, 0.18);
}

.goals-list {
    padding: 28px;
}

.goals-list::before,
.goal-note::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 28px;
    width: 70px;
    height: 20px;
    background-color: rgba(255, 212, 221, 0.86);
    transform: rotate(-3deg);
    box-shadow: 0px 4px 10px rgba(242, 114, 142, 0.16);
}

.goal-task {
    width: 100%;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 14px 14px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background-color: transparent;
    color: #120817;
    text-align: left;
    cursor: none;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.goal-task:last-child {
    margin-bottom: 0;
}

.goal-task:hover,
.goal-task.active-goal {
    transform: translateX(8px);
    background-color: rgba(255, 212, 221, 0.48);
    border-color: rgba(242, 114, 142, 0.35);
}

.goal-check {
    width: 22px;
    height: 22px;
    border: 2px solid #cdbdff;
    border-radius: 6px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.76);
}

.goal-task.active-goal .goal-check {
    background-color: #f2728e;
    border-color: #f2728e;
    box-shadow: 0px 0px 14px rgba(242, 114, 142, 0.45);
}

.goal-task.active-goal .goal-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(42deg);
}

.goal-task strong {
    display: block;
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.28rem;
    line-height: 1.15;
}

.goal-task small {
    display: block;
    margin-top: 5px;
    color: #5f5570;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.goal-note {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 330px;
}

.goal-note-label {
    margin: 0 0 12px;
    color: #8f7ad2;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
}

.goal-note h3 {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 2.25rem;
    margin: 0 0 18px;
}

.goal-note p:last-child {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.7;
    color: #2d2338;
}

#achievements {
    justify-content: center;
    padding: 0;
}

#achievements > h2 {
    display: none;
}

.achievement-constellation {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    position: relative;
    border: none;
    border-radius: 0;
    background:
        radial-gradient(circle at 39% 36%, rgba(245, 181, 68, 0.16), transparent 18%),
        radial-gradient(circle at 18% 28%, rgba(188, 166, 255, 0.16), transparent 20%),
        radial-gradient(circle at 88% 72%, rgba(240, 127, 154, 0.12), transparent 24%),
        radial-gradient(circle at 62% 58%, rgba(168, 217, 176, 0.08), transparent 20%),
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(205, 189, 255, 0.78) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.75) 0 1px, transparent 2px),
        linear-gradient(145deg, #060611 0%, #0b0a18 42%, #17102c 100%);
    background-size:
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        86px 86px,
        132px 132px,
        210px 210px,
        100% 100%;
    background-position:
        center,
        center,
        center,
        center,
        calc(12px + var(--star-x)) calc(22px + var(--star-y)),
        calc(46px - var(--star-x)) calc(72px + var(--star-y)),
        calc(64px - var(--star-x)) calc(88px - var(--star-y)),
        center;
    overflow: hidden;
    box-shadow:
        inset 0px 0px 110px rgba(4, 4, 13, 0.88),
        inset 0px -60px 120px rgba(242, 114, 142, 0.08);
}

.achievement-constellation::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, transparent 0 42%, rgba(188, 166, 255, 0.08) 50%, transparent 58%),
        radial-gradient(circle at 6% 8%, rgba(188, 166, 255, 0.34), transparent 2.7%),
        radial-gradient(circle at 98% 7%, rgba(247, 215, 255, 0.2), transparent 2%);
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

.achievement-constellation::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 72%, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px),
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.86) 0 1px, transparent 2px),
        radial-gradient(circle at 66% 16%, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 35% 82%, rgba(205, 189, 255, 0.86) 0 1px, transparent 2px);
    opacity: 0.8;
    animation: stars-twinkle 2.8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 2;
}

.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.constellation-lines polyline {
    fill: none;
    stroke: rgba(205, 189, 255, 0.16);
    stroke-width: 0.34;
    stroke-dasharray: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter:
        drop-shadow(0px 0px 4px rgba(205, 189, 255, 0.26))
        drop-shadow(0px 0px 14px rgba(242, 114, 142, 0.12));
}

.constellation-title {
    position: absolute;
    left: 50%;
    top: 49%;
    width: min(660px, 88vw);
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.constellation-title p {
    margin: 0 0 16px;
    color: rgba(205, 189, 255, 0.58);
    font-size: 0.82rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.constellation-title h3 {
    margin: 0;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.25rem, 4.8vw, 4.45rem);
    line-height: 0.98;
    color: #fff7df;
    text-shadow:
        0px 0px 18px rgba(247, 215, 255, 0.3),
        0px 0px 46px rgba(188, 166, 255, 0.16);
}

.constellation-title h3::first-letter {
    color: #cdbdff;
    font-style: italic;
}

.constellation-title span {
    display: inline-block;
    margin-top: 24px;
    font-family: "Edu NSW ACT Cursive", cursive;
    color: rgba(205, 189, 255, 0.55);
    font-size: 1rem;
}

.shooting-star {
    position: absolute;
    width: 150px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(247, 215, 255, 0.7), transparent);
    filter: drop-shadow(0px 0px 8px rgba(247, 215, 255, 0.85));
    opacity: 0;
    transform: rotate(-23deg);
    z-index: 4;
    pointer-events: none;
}

.shooting-star::after {
    content: "";
    position: absolute;
    right: 28px;
    top: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #fff7df;
    box-shadow: 0px 0px 14px rgba(255, 247, 223, 0.95);
}

.shooting-star-one {
    left: -12%;
    top: 18%;
    animation: shooting-star-move 5.8s ease-in-out infinite;
}

.shooting-star-two {
    left: 36%;
    top: 8%;
    width: 110px;
    animation: shooting-star-move 7s ease-in-out 2.2s infinite;
}

.shooting-star-three {
    left: 58%;
    top: 76%;
    width: 120px;
    animation: shooting-star-move 8.6s ease-in-out 4s infinite;
}

.ambient-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color);
    box-shadow:
        0px 0px 24px var(--glow),
        0px 0px 70px var(--glow);
    transform: translate(-50%, -50%);
    z-index: 4;
    animation: stars-twinkle 2.5s ease-in-out infinite alternate;
}

.achievement-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: none;
    z-index: 6;
}

.achievement-star span {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    margin: 18px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #ffffff 0 12%, var(--color) 18% 100%);
    box-shadow:
        0px 0px 16px rgba(255, 255, 255, 0.95),
        0px 0px 42px var(--glow),
        0px 0px 110px var(--glow);
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    animation: star-invite 1.8s ease-in-out infinite alternate;
}

.achievement-star span::before {
    content: "";
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow), rgba(255, 255, 255, 0.12) 34%, transparent 68%);
    opacity: 0.95;
    z-index: -1;
}

.achievement-star::before,
.achievement-star::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 215, 255, 0.92), transparent);
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.achievement-star::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.achievement-star:hover span,
.achievement-star.active-achievement span {
    transform: scale(2.05);
    box-shadow:
        0px 0px 20px rgba(255, 255, 255, 1),
        0px 0px 58px var(--glow),
        0px 0px 138px var(--glow);
}

.achievement-star:hover::before,
.achievement-star:hover::after,
.achievement-star.active-achievement::before,
.achievement-star.active-achievement::after {
    opacity: 1;
}

.small-star span {
    width: 18px;
    height: 18px;
    margin: 20px;
}

.achievement-detail {
    width: min(310px, 82vw);
    margin: 0;
    padding: 20px 22px;
    position: absolute;
    left: 40%;
    top: 30%;
    z-index: 7;
    border: 1px solid rgba(205, 189, 255, 0.84);
    border-radius: 8px;
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 181, 68, 0.16), transparent 26%),
        rgba(11, 9, 26, 0.92);
    color: #fff7df;
    backdrop-filter: blur(10px);
    box-shadow:
        0px 18px 42px rgba(0, 0, 0, 0.34),
        0px 0px 28px rgba(188, 166, 255, 0.22);
    transform: translate(-50%, -50%);
}

.achievement-detail-label {
    margin: 0 0 8px;
    color: rgba(247, 215, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.achievement-detail h3 {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 1.45rem;
    margin: 0 0 8px;
}

.achievement-detail p {
    line-height: 1.55;
    margin: 0;
    color: rgba(255, 247, 223, 0.8);
    font-size: 0.95rem;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 18px;
    max-width: 1050px;
    margin: 0 auto 28px;
}

.hobby-tile {
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(205, 189, 255, 0.35);
    border-radius: 8px;
    background:
        radial-gradient(circle at 70% 20%, rgba(242, 114, 142, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(16, 11, 31, 0.78), rgba(32, 20, 58, 0.62));
    color: #f7d7ff;
    cursor: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow:
        0px 18px 40px rgba(0, 0, 0, 0.28),
        0px 0px 22px rgba(188, 166, 255, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hobby-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px);
    background-size: 90px 90px, 140px 140px;
    background-position:
        calc(10px + var(--star-x)) calc(30px + var(--star-y)),
        calc(50px - var(--star-x)) calc(80px - var(--star-y));
    opacity: 0.35;
}

.hobby-tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #cdbdff, #f2728e);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.hobby-tile:hover,
.hobby-tile.active-hobby {
    transform: translateY(-8px);
    border-color: rgba(247, 215, 255, 0.75);
    box-shadow:
        0px 22px 52px rgba(0, 0, 0, 0.34),
        0px 0px 34px rgba(188, 166, 255, 0.26);
}

.hobby-tile:hover::after,
.hobby-tile.active-hobby::after {
    transform: scaleX(1);
}

.hobby-symbol {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: "Playfair Display", serif;
    font-size: 5.2rem;
    line-height: 1;
    color: rgba(247, 215, 255, 0.16);
    transition: transform 0.35s ease, color 0.35s ease;
}

.hobby-tile:hover .hobby-symbol,
.hobby-tile.active-hobby .hobby-symbol {
    transform: scale(1.12) rotate(4deg);
    color: rgba(242, 114, 142, 0.32);
}

.hobby-name {
    position: relative;
    z-index: 1;
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f7d7ff;
    font-size: 1.55rem;
    margin-bottom: 8px;
    text-align: left;
}

.hobby-short {
    position: relative;
    z-index: 1;
    color: rgba(255, 247, 223, 0.72);
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: left;
}

.hobby-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    border: 1px solid rgba(205, 189, 255, 0.32);
    border-radius: 8px;
    background-color: rgba(255, 247, 250, 0.94);
    color: #120817;
    box-shadow:
        0px 14px 34px rgba(0, 0, 0, 0.24),
        0px 0px 26px rgba(188, 166, 255, 0.18);
}

.hobby-photo-frame {
    margin: 0;
    padding: 12px 12px 34px;
    min-height: 255px;
    background-color: #fff7fa;
    border: 1px solid rgba(205, 189, 255, 0.36);
    border-radius: 8px;
    box-shadow:
        0px 14px 26px rgba(0, 0, 0, 0.18),
        0px 0px 20px rgba(242, 114, 142, 0.18);
    transform: rotate(-3deg);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hobby-photo-frame.hidden-photo {
    display: none;
}

.hobby-photo {
    width: 100%;
    height: 185px;
    display: block;
    object-fit: cover;
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 36%, rgba(242, 114, 142, 0.26), transparent 32%),
        #17102c;
}

.hobby-photo-frame figcaption {
    margin-top: 12px;
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    text-align: center;
    font-size: 1.1rem;
}

.hobby-copy {
    min-width: 0;
}

.hobby-detail-label {
    margin: 0 0 8px;
    color: rgba(242, 114, 142, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hobby-detail h3 {
    font-family: "Edu NSW ACT Cursive", cursive;
    color: #f2728e;
    font-size: 2rem;
    margin: 0 0 12px;
}

.hobby-detail p {
    line-height: 1.65;
    margin: 0;
}

body.dark-mode .scrapbook-menu {
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px),
        #100b1f;
    background-size: 100% 100%, 100% 100%, 150px 150px, 230px 230px;
    background-position:
        center,
        center,
        calc(20px + var(--star-x)) calc(35px + var(--star-y)),
        calc(90px - var(--star-x)) calc(110px - var(--star-y));
}

body.dark-mode .menu-boxes button {
    background:
        radial-gradient(circle at 72% 44%, rgba(242, 114, 142, 0.2), transparent 28%),
        radial-gradient(circle at 26% 32%, rgba(188, 166, 255, 0.17), transparent 24%),
        #100b1f;
    box-shadow:
        0px 10px 22px rgba(255, 212, 221, 0.18),
        0px 0px 16px rgba(255, 247, 200, 0.25);
}

body.dark-mode .scrapbook-section {
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 247, 200, 0.7) 0 1px, transparent 2px),
        #100b1f;
    background-size: 100% 100%, 100% 100%, 150px 150px, 230px 230px;
    background-position:
        center,
        center,
        calc(20px + var(--star-x)) calc(35px + var(--star-y)),
        calc(90px - var(--star-x)) calc(110px - var(--star-y));
}


body.dark-mode .featured-case-study,
body.dark-mode .skill-note {
    background:
        radial-gradient(circle at 76% 18%, rgba(242, 114, 142, 0.18), transparent 30%),
        rgba(16, 11, 31, 0.96);
    color: #fff7df;
    border-color: rgba(205, 189, 255, 0.38);
}

body.dark-mode .case-summary,
body.dark-mode .case-grid p,
body.dark-mode .case-highlights li,
body.dark-mode .skill-note p:last-child {
    color: rgba(255, 247, 223, 0.78);
}

body.dark-mode .case-grid div {
    background-color: rgba(255, 247, 250, 0.06);
    border-color: rgba(205, 189, 255, 0.28);
}

body.dark-mode .case-tags span,
body.dark-mode .skill-list li {
    background-color: rgba(205, 189, 255, 0.12);
    border-color: rgba(205, 189, 255, 0.28);
    color: #f7d7ff;
}

body.dark-mode .scrapbook-card {
    background:
        radial-gradient(circle at 70% 42%, rgba(242, 114, 142, 0.18), transparent 28%),
        radial-gradient(circle at 28% 35%, rgba(188, 166, 255, 0.18), transparent 24%),
        #100b1f;
    color: #120817;
    box-shadow:
        0px 10px 22px rgba(255, 212, 221, 0.18),
        0px 0px 16px rgba(255, 247, 200, 0.2);
}

body.dark-mode .goals-list,
body.dark-mode .goal-note {
    background:
        linear-gradient(rgba(205, 189, 255, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 74% 34%, rgba(242, 114, 142, 0.2), transparent 28%),
        radial-gradient(circle at 22% 72%, rgba(188, 166, 255, 0.18), transparent 26%),
        rgba(16, 11, 31, 0.96);
    background-size: 100% 34px, 100% 100%, 100% 100%, 100% 100%;
    border-color: rgba(205, 189, 255, 0.35);
    color: #fff7df;
    box-shadow:
        0px 14px 32px rgba(0, 0, 0, 0.34),
        0px 0px 22px rgba(188, 166, 255, 0.18);
}

body.dark-mode .goal-task {
    color: #fff7df;
}

body.dark-mode .goal-task:hover,
body.dark-mode .goal-task.active-goal {
    background-color: rgba(205, 189, 255, 0.12);
    border-color: rgba(247, 215, 255, 0.35);
}

body.dark-mode .goal-check {
    background-color: rgba(255, 247, 250, 0.08);
    border-color: rgba(247, 215, 255, 0.58);
}

body.dark-mode .goal-task small,
body.dark-mode .goal-note p:last-child {
    color: rgba(255, 247, 223, 0.78);
}

@keyframes star-invite {
    from {
        opacity: 0.76;
        filter: drop-shadow(0px 0px 8px rgba(255, 247, 223, 0.72));
    }

    to {
        opacity: 1;
        filter: drop-shadow(0px 0px 18px rgba(255, 247, 223, 0.98));
    }
}

@keyframes stars-twinkle {
    from {
        opacity: 0.45;
        filter: drop-shadow(0px 0px 4px #fff7c8);
    }

    to {
        opacity: 1;
        filter: drop-shadow(0px 0px 9px #fff7c8);
    }
}

@keyframes shooting-star-move {
    0% {
        opacity: 0;
        transform: translate3d(-160px, -20px, 0) rotate(-23deg);
    }

    8% {
        opacity: 1;
    }

    18% {
        opacity: 0.9;
    }

    34% {
        opacity: 0;
        transform: translate3d(760px, 230px, 0) rotate(-23deg);
    }

    100% {
        opacity: 0;
        transform: translate3d(760px, 230px, 0) rotate(-23deg);
    }
}

@media (max-width: 760px) {
    .goals-planner {
        grid-template-columns: 1fr;
    }

    .goal-note {
        min-height: auto;
        padding: 30px;
    }

    .goal-note h3 {
        font-size: 1.85rem;
    }

    .constellation-title h3 {
        font-size: 2.45rem;
    }

    .achievement-detail {
        left: 50% !important;
        top: 72% !important;
    }

    .hobby-detail {
        grid-template-columns: 1fr;
    }

    .hobby-photo-frame {
        width: min(260px, 100%);
        margin: 0 auto;
    }
}
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
    scroll-behavior: auto;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
    line-height: 1.05;
  }

  #main-title {
    width: calc(100% - 30px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .intro-label,
  .role-line {
    width: calc(100% - 36px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .open-book-button {
    width: min(250px, calc(100% - 44px));
  }

  .toggle {
    top: 16px;
    right: 16px;
    transform: scale(0.9);
    transform-origin: top right;
  }

  .contact-widget {
    top: 16px;
    right: 82px;
  }

  .contact-card {
    right: -82px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100svh - 90px);
    overflow-y: auto;
  }

  .polaroid-page {
    min-height: 100svh;
    padding: 78px 18px 48px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 26px;
  }

  .polaroid {
    width: min(280px, calc(100vw - 58px));
    transform: rotate(-2deg);
  }

  .polaroid-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
  }

  .intro-text {
    max-width: 100%;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .scrapbook-menu,
  .scrapbook-section {
    min-height: 100svh;
    padding: 86px 18px 104px;
    scroll-margin-top: 0;
  }

  body.paper-pulled .scrapbook-section {
    display: block;
  }

  .scrapbook-menu h2,
  .scrapbook-section h2 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
    text-align: center;
  }

  .menu-boxes,
  .scrapbook-cards,
  .goals-planner,
  .hobby-grid,
  .hobby-detail,
  .skills-board,
  .skills-columns,
  .case-grid,
  .case-highlights {
    grid-template-columns: 1fr;
  }

  .menu-boxes {
    max-width: 330px;
    margin: 0 auto;
  }

  .menu-boxes button {
    min-height: 74px;
    font-size: 1.2rem;
  }

  .page-turn-controls {
    width: calc(100% - 36px);
    justify-content: center;
    bottom: 22px;
  }

  .page-turn-button {
    min-width: 0;
    flex: 1;
    max-width: 170px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .scrapbook-card,
  .featured-case-study,
  .skill-note,
  .goal-note,
  .goals-list,
  .hobby-detail {
    padding: 22px;
  }

  .constellation-title {
    width: calc(100% - 36px);
  }

  .constellation-title h3 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .achievement-detail {
    width: min(285px, calc(100vw - 42px));
    left: 50% !important;
    top: 75% !important;
  }

  .ai-widget {
    right: 16px;
    bottom: 16px;
  }

  .ai-panel {
    box-sizing: border-box;
    width: calc(100vw - 28px);
    max-height: calc(100svh - 112px);
  }
}

@media (hover: none), (pointer: coarse) {
  :root {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring,
  .sparkly-trail {
    display: none;
  }

  button,
  a {
    cursor: pointer;
  }
}
