:root
{
    --bg-main: #f7f5fb;
    --bg-soft: rgba(245, 238, 255, 0.18);
    --panel: linear-gradient(180deg, rgba(246, 241, 255, 0.82), rgba(232, 224, 251, 0.76));
    --panel-strong: linear-gradient(180deg, rgba(241, 234, 255, 0.92), rgba(225, 217, 248, 0.88));
    --text-main: rgb(59, 41, 64);
    --text-soft: rgb(92, 77, 117);
    --accent-purple: #b99cff;
    --accent-blue: #92b8ff;
    --accent-pink: #d7b2ff;
    --button-bg: rgba(232, 220, 255, 0.78);
    --button-hover: rgba(214, 198, 255, 0.92);
    --shadow-soft: 0 14px 35px rgba(90, 75, 132, 0.12);
    --shadow-glow: 0 0 30px rgba(155, 132, 255, 0.22);
    --border-soft: rgba(255, 255, 255, 0.42);
    --overlay: rgba(25, 19, 44, 0.48);
    --pill-bg: rgba(243, 243, 243, 0.92);
}

body.theme-dark
{
    --bg-main: #171321;
    --bg-soft: rgba(22, 18, 38, 0.26);
    --panel: linear-gradient(180deg, rgba(45, 37, 71, 0.86), rgba(31, 28, 58, 0.82));
    --panel-strong: linear-gradient(180deg, rgba(49, 40, 86, 0.94), rgba(35, 41, 79, 0.90));
    --text-main: rgb(233, 228, 241);
    --text-soft: rgb(208, 196, 232);
    --accent-purple: #b896ff;
    --accent-blue: #8fb7ff;
    --accent-pink: #e1b7ff;
    --button-bg: rgba(75, 61, 120, 0.72);
    --button-hover: rgba(96, 80, 152, 0.92);
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.24);
    --shadow-glow: 0 0 34px rgba(143, 183, 255, 0.24);
    --border-soft: rgba(255, 255, 255, 0.10);
    --overlay: rgba(10, 8, 21, 0.60);
    --pill-bg: rgba(107, 90, 176, 0.88);
}

html
{
    scroll-behavior: smooth;
}

*
{
    box-sizing: border-box;
}

body
{
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(246, 239, 255, 0.28), rgba(246, 239, 255, 0.28)),
        url("photos/background.png") center center / cover no-repeat fixed;
    color: var(--text-main);
    transition: color 0.35s ease, background 0.35s ease;
}

body.theme-dark
{
    background:
        linear-gradient(rgba(16, 12, 29, 0.42), rgba(16, 12, 29, 0.42)),
        url("photos/background.png") center center / cover no-repeat fixed;
}

.container
{
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* header */

.site-header
{
    position: relative;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 28px;
    background: var(--bg-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: none;
}

.header-left
{
    min-width: 0;
}

.title-name
{
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-family: "Limelight", serif;
    color: var(--text-main);
}

.title-sub
{
    margin: 8px 0 0;
    font-size: 1rem;
    font-family: "Mogra", serif;
    color: var(--text-soft);
    line-height: 1.4;
}

.header-right
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-btn
{
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    font-family: "Mogra", serif;
    font-size: 0.96rem;
    color: var(--text-main);
    background: var(--button-bg);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 18px rgba(104, 83, 150, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-btn:hover
{
    transform: translateY(-2px);
    background: var(--button-hover);
    box-shadow:
        0 0 18px rgba(174, 148, 255, 0.24),
        0 10px 22px rgba(104, 83, 150, 0.18);
}

.menu-btn
{
    font-size: 1.15rem;
}

body.theme-dark .site-header
{
    background: var(--bg-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

body.theme-dark .nav-btn
{
    background: rgba(255, 255, 255, 0.10);
    color: rgb(239, 234, 249);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

body.theme-dark .nav-btn:hover
{
    background: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 0 18px rgba(174, 148, 255, 0.16),
        0 10px 22px rgba(0, 0, 0, 0.20);
}

/* dark side menu */

body.theme-dark .side-menu
{
    background: linear-gradient(180deg, rgba(43, 37, 74, 0.94), rgba(31, 28, 58, 0.92));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(143, 183, 255, 0.08);
}

body.theme-dark .control-group,
body.theme-dark .toggle-row
{
    background: rgba(255,255,255,0.06);
}

body.theme-dark .mini-toggle,
body.theme-dark .view-toggle,
body.theme-dark .toggle-btn
{
    background: rgba(255,255,255,0.10);
    color: rgb(239, 234, 249);
}

body.theme-dark .mini-toggle:hover,
body.theme-dark .view-toggle:hover,
body.theme-dark .toggle-btn:hover
{
    background: rgba(255,255,255,0.16);
}

body.theme-dark .close-btn
{
    background: rgba(255,255,255,0.10);
    color: rgb(239, 234, 249);
}

body.theme-dark .close-btn:hover
{
    background: rgba(255,255,255,0.18);
}

body.theme-dark .modal-close
{
    background: rgba(255,255,255,0.10);
    color: rgb(239, 234, 249);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.20);
}

body.theme-dark .modal-close:hover
{
    background: rgba(255,255,255,0.18);
}

body.theme-dark .active-toggle
{
    background: linear-gradient(
        90deg,
        rgba(137, 112, 214, 0.92),
        rgba(96, 132, 214, 0.90)
    );
    color: rgb(245, 241, 252);
    box-shadow: 0 0 18px rgba(133, 180, 255, 0.18);
}

/* main */

.main-area
{
    position: relative;
    padding: 16px;
    background: transparent;
}

/* view helpers */

.view-message
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(125, 119, 161, 0.16);
    backdrop-filter: blur(10px);
    font-family: "Mogra", serif;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    animation: hintFade 5s ease forwards;
}

.view-message-note
{
    color: var(--text-soft);
}

@keyframes hintFade
{
    0% { opacity: 0; transform: translateY(-8px); }
    10% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0.12; transform: translateY(0); }
}

.view-panel
{
    display: none;
}

.active-view-panel
{
    display: block;
}

/* room */

.room-shell
{
    position: relative;
    min-height: 620px;
    height: calc(100vh - 132px);
    max-height: 860px;
    overflow: visible;
    background: transparent;
}

.room-glow
{
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
}

.room-glow-1
{
    width: 260px;
    height: 260px;
    top: 30px;
    left: 40px;
    background: rgba(180, 144, 255, 0.22);
}

.room-glow-2
{
    width: 280px;
    height: 280px;
    bottom: 20px;
    right: 40px;
    background: rgba(143, 183, 255, 0.20);
}

.room-card
{
    position: relative;
    z-index: 2;
    min-height: 540px;
    padding: 34px;
}

.room-card h3
{
    margin: 0 0 10px;
    font-family: "Italiana", serif;
    font-size: 2rem;
}

.room-card p
{
    margin: 0;
    font-family: "Inria Serif", serif;
    color: var(--text-soft);
}

.room-stage
{
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(96vw, 1080px);
    aspect-ratio: 1450 / 1000;
    z-index: 2;
    filter: drop-shadow(0 20px 36px rgba(56, 32, 92, 0.16));
}

.room-hitbox-area
{
    position: absolute;
    inset: 0;
    z-index: 10;
    margin: 0;
    height: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
}

.room-object
{
    position: absolute;
    border: none;
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.22s ease;
}

.room-object:hover
{
    transform: scale(1.03);
}

.room-art,
.room-overlay
{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
}

.room-phone
{
    position: absolute;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100%;
    z-index: 8;
    object-fit: contain;
    pointer-events: none;
}

.nebula-bg
{
    display: none;
}

.window-day,
.window-night
{
    z-index: 3;
}

.lamp-off
{
    z-index: 4;
}

.dark-overlay
{
    z-index: 5;
    background: rgba(14, 10, 28, 0.34);
}

.object-pill
{
    position: absolute;
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: "Mogra", serif;
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--pill-bg);
    box-shadow: var(--shadow-glow);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.room-object:hover .object-pill
{
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

.dog-bubble
{
    position: absolute;
    left: 50%;
    bottom: 110%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    background: rgb(255, 245, 252);
    color: rgb(59, 41, 64);
    border-radius: 18px;
    padding: 10px 14px;
    font-family: "Mogra", serif;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(67, 17, 129, 0.18);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 20;
}

.dog-bubble::after
{
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgb(255, 245, 252);
}

.dog-bubble.show
{
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* room object placement */

.object-projects
{
    left: 48.5%;
    top: 28%;
    width: 10%;
    height: 14%;
}

.object-skills
{
    left: 24%;
    top: 30%;
    width: 8%;
    height: 34%;
}

.object-contact
{
    right: 12%;
    top: 30%;
    width: 16%;
    height: 22%;
}

.object-about
{
    left: 56%;
    bottom: 22%;
    width: 10%;
    height: 30%;
}

.object-blog
{
    left: 62%;
    top: 20%;
    width: 12%;
    height: 15%;
}

.object-art
{
    left: 8%;
    top: 34%;
    width: 14%;
    height: 18%;
}

.object-photos
{
    left: 56%;
    bottom: 78%;
    width: 4%;
    height: 7%;
}

.object-plants
{
    right: 8%;
    bottom: 10%;
    width: 14%;
    height: 18%;
}

.object-lamp-toggle
{
    right: 24%;
    top: 16%;
    width: 9%;
    height: 18%;
}

.object-window-toggle
{
    left: 31%;
    top: 7%;
    width: 24%;
    height: 21%;
}

/* tile view */

.tiles-grid
{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    animation: tilesEnter 0.8s ease;
    position: relative;
    z-index: 2;
}

@keyframes tilesEnter
{
    0%
    {
        opacity: 0;
        transform: translateY(18px);
    }
    100%
    {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card
{
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 30px;
    background: var(--panel);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 14px 32px rgba(72, 43, 92, 0.10),
        inset 1px 1px 0 rgba(255, 255, 255, 0.45),
        0 0 0 rgba(0,0,0,0);
    border: 1px solid rgba(255, 255, 255, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    animation: tileFloat 4.5s ease-in-out infinite;
}

.info-card:hover
{
    transform: translateY(-4px);
    box-shadow:
        0 18px 38px rgba(72, 43, 92, 0.16),
        0 0 25px rgba(155, 132, 255, 0.18),
        0 0 38px rgba(143, 183, 255, 0.10);
}

@keyframes tileFloat
{
    0% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.info-card:nth-child(1) { animation-delay: 0s; }
.info-card:nth-child(2) { animation-delay: 0.3s; }
.info-card:nth-child(3) { animation-delay: 0.6s; }
.info-card:nth-child(4) { animation-delay: 0.9s; }

.card-inner
{
    padding: 28px;
}

.info-card h3
{
    margin: 0 0 12px;
    font-family: "Italiana", serif;
    font-size: 1.5rem;
    color: var(--text-main);
}

.info-card p,
.info-card li,
.info-card a
{
    font-family: "Inria Serif", serif;
    color: var(--text-main);
    line-height: 1.6;
}

.info-card ul
{
    margin: 0;
    padding-left: 20px;
}

.tile-button
{
    cursor: pointer;
}

.tile-hint
{
    display: inline-block;
    margin-top: 14px;
    font-family: "Mogra", serif;
    color: #8d6bb6;
}

.card-third
{
    grid-column: span 3;
    min-height: 200px;
}

.card-two-thirds
{
    grid-column: span 6;
    min-height: 200px;
}

/* cover images */

.image-card .card-inner
{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tile-cover-wrap
{
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0 4px;
}

.tile-cover-bubble
{
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tile-cover-bubble-art
{
    width: 120px;
    height: 140px;
    border-radius: 24px;
}

.tile-cover
{
    max-width: 110px;
    max-height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(92, 67, 130, 0.15));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.tile-cover-character
{
    max-width: 205px;
    max-height: 205px;
}

.tile-cover-art
{
    max-width: 70px;
    max-height: 110px;
    border-radius: 14px;
}

.image-card:hover .tile-cover
{
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 12px 20px rgba(112, 82, 154, 0.20));
}

/* menu */

.menu-overlay
{
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    justify-content: flex-end;
    padding: 18px;
    background: rgba(18, 14, 34, 0.14);
}

.side-menu
{
    position: relative;
    width: min(340px, 94vw);
    height: fit-content;
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 24px 20px 20px;
    border-radius: 30px;
    background: var(--panel-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    box-shadow:
        0 20px 40px rgba(38, 25, 67, 0.18),
        0 0 30px rgba(143, 183, 255, 0.12);
    animation: menuPop 0.25s ease;
}

@keyframes menuPop
{
    0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.close-btn
{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    background: rgba(255,255,255,0.68);
    color: var(--text-main);
}

.menu-profile
{
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
    padding-right: 34px;
}

.profile-pic
{
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(196, 176, 255, 0.75);
    box-shadow: 0 0 20px rgba(185, 156, 255, 0.24);
}

.profile-text h2
{
    margin: 0 0 6px;
    font-family: "Mogra", serif;
    font-size: 1.1rem;
}

.profile-text p
{
    margin: 0 0 6px;
    font-family: "Inria Serif", serif;
    color: var(--text-soft);
}

.mini-note
{
    font-size: 0.95rem;
}

.menu-controls
{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.control-group
{
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.30);
}

.control-label
{
    display: inline-block;
    margin-bottom: 10px;
    font-family: "Mogra", serif;
}

.toggle-bar
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-toggle,
.view-toggle
{
    border: none;
    border-radius: 999px;
    padding: 11px 14px;
    font-family: "Mogra", serif;
    color: var(--text-main);
    background: rgba(255,255,255,0.72);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mini-toggle:hover,
.view-toggle:hover
{
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(185, 156, 255, 0.2);
}

.active-toggle
{
    background: linear-gradient(90deg, rgba(204, 190, 255, 0.95), rgba(181, 209, 255, 0.92));
    box-shadow: 0 0 18px rgba(162, 173, 255, 0.22);
}

.menu-help
{
    margin: 10px 2px 0;
    font-family: "Inria Serif", serif;
    color: var(--text-soft);
}

.toggle-row
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.30);
    font-family: "Mogra", serif;
}

.toggle-btn
{
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.72);
}

/* modal */

.modal-overlay
{
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--overlay);
    padding: 20px;
}

.modal-box
{
    position: relative;
    width: min(820px, 92vw);
    max-height: 82vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 30px;
    background: var(--panel-strong);
    border: 1px solid var(--border-soft);
    box-shadow:
        0 24px 50px rgba(0,0,0,0.18),
        0 0 32px rgba(143, 183, 255, 0.12);
    animation: modalOpen 0.28s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

@keyframes modalOpen
{
    0% { opacity: 0; transform: translateY(14px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close
{
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    font-size: 1.5rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.76);
    cursor: pointer;
}

#modalContent h2
{
    margin-top: 0;
    font-family: "Italiana", serif;
    font-size: 2rem;
    color: var(--text-main);
}

#modalContent p,
#modalContent li,
#modalContent a
{
    font-family: "Inria Serif", serif;
    line-height: 1.65;
    color: var(--text-main);
}

#modalContent a
{
    color: #7a63c8;
}

.contact-intro
{
    margin-top: -4px;
    margin-bottom: 22px;
    color: var(--text-soft);
}

.contact-links
{
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.contact-link-card
{
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 22px;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(247, 242, 255, 0.92), rgba(231, 223, 250, 0.86));
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow:
        0 12px 24px rgba(88, 64, 129, 0.10),
        inset 1px 1px 0 rgba(255,255,255,0.55);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.contact-link-card:hover
{
    transform: translateY(-3px);
    box-shadow:
        0 18px 34px rgba(88, 64, 129, 0.16),
        0 0 22px rgba(185, 156, 255, 0.18);
    background: linear-gradient(180deg, rgba(243, 236, 255, 0.96), rgba(227, 217, 250, 0.90));
}

.contact-link-label
{
    font-family: "Mogra", serif;
    font-size: 1rem;
    color: var(--text-main);
}

.contact-link-sub
{
    font-family: "Inria Serif", serif;
    font-size: 0.95rem;
    color: var(--text-soft);
}

body.theme-dark .contact-link-card
{
    background: linear-gradient(180deg, rgba(56, 47, 92, 0.92), rgba(43, 37, 74, 0.88));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.24),
        inset 1px 1px 0 rgba(255,255,255,0.05);
}

body.theme-dark .contact-link-card:hover
{
    background: linear-gradient(180deg, rgba(66, 55, 108, 0.96), rgba(49, 42, 84, 0.92));
}

body.theme-dark .contact-link-label
{
    color: rgb(237, 232, 248);
}

body.theme-dark .contact-link-sub
{
    color: rgb(210, 201, 232);
}

/* helpers */

.hidden
{
    display: none;
}

.hidden-storage
{
    display: none;
}

/* plant */

.plant-scene
{
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 20px auto 0;
    min-height: 360px;
}

.plant-img
{
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 220px;
    height: auto;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.plant-small
{
    z-index: 2;
    opacity: 1;
}

.plant-grown
{
    z-index: 2;
    opacity: 1;
}

.hidden-plant
{
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
    pointer-events: none;
}

.water-can
{
    position: absolute;
    right: -5px;
    top: 1px;
    width: 220px;
    height: auto;
    opacity: 0;
    transform: translateY(-30px) rotate(-12deg);
    transition: transform 0.8s ease, opacity 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.water-can.show
{
    opacity: 1;
}

.water-can.pour
{
    transform: translate(-82px, 20px) rotate(-35deg);
}

.plant-water-btn
{
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--button-bg);
    color: var(--text-main);
    font-family: "Mogra", serif;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(104, 83, 150, 0.12);
}

.plant-water-btn:hover
{
    background: var(--button-hover);
}

/* photos */

.photo-intro
{
    margin-top: -4px;
    margin-bottom: 18px;
    color: var(--text-soft);
}

.photo-gallery
{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.photo-feature-frame
{
    padding: 14px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(247, 242, 255, 0.90), rgba(230, 222, 249, 0.84));
    box-shadow:
        0 14px 30px rgba(88, 64, 129, 0.12),
        inset 1px 1px 0 rgba(255,255,255,0.50);
    backdrop-filter: blur(10px);
}

.photo-feature
{
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 20px;
}

.photo-thumb-grid
{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.photo-thumb-btn
{
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 18px;
    transition: transform 0.18s ease;
}

.photo-thumb-btn:hover
{
    transform: translateY(-2px);
}

.photo-thumb
{
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(88, 64, 129, 0.10);
}

/* projects */

.project-stack
{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 18px;
}

.project-card
{
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(247, 242, 255, 0.90), rgba(232, 224, 251, 0.84));
    border: 1px solid rgba(255,255,255,0.40);
    box-shadow:
        0 14px 28px rgba(89, 64, 132, 0.10),
        inset 1px 1px 0 rgba(255,255,255,0.50);
    backdrop-filter: blur(10px);
}

.project-card-soft
{
    background: linear-gradient(180deg, rgba(243, 237, 255, 0.86), rgba(226, 233, 255, 0.82));
}

.project-top
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.project-top h3
{
    margin: 0;
    font-family: "Italiana", serif;
    font-size: 1.6rem;
    color: var(--text-main);
}

.project-sub
{
    margin: 4px 0 0;
    font-family: "Mogra", serif;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.project-status
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: "Mogra", serif;
    font-size: 0.82rem;
    white-space: nowrap;
}

.status-live
{
    background: rgba(103, 164, 124, 0.95);
    color: rgb(32, 54, 40);
}

.status-progress
{
    background: rgba(103, 114, 164, 0.95);
    color: rgb(32, 32, 54);
}

.status-building
{
    background: rgba(142, 103, 164, 0.95);
    color: rgb(48, 32, 54);
}

.status-ideas
{
    background: rgba(164, 125, 103, 0.95);
    color: rgb(47, 54, 32);
}

.project-pills
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.project-pill
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    font-family: "Mogra", serif;
    font-size: 0.82rem;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(89, 64, 132, 0.06);
}

.project-progress-block
{
    margin-top: 10px;
}

.project-progress-label
{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-family: "Mogra", serif;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.project-progress-bar
{
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    overflow: hidden;
}

.project-progress-fill
{
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(187, 156, 255, 0.98), rgba(150, 194, 255, 0.95));
}

.project-links
{
    margin-top: 18px;
}

.project-link-btn
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--button-bg);
    color: var(--text-main);
    font-family: "Mogra", serif;
    transition: transform 0.18s ease, background 0.18s ease;
}

.project-link-btn:hover
{
    transform: translateY(-2px);
    background: var(--button-hover);
}

.concept-list
{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.concept-item
{
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.58);
}

.concept-name
{
    font-family: "Inria Serif", serif;
    color: var(--text-main);
}

.concept-stage
{
    font-family: "Mogra", serif;
    font-size: 0.8rem;
    color: var(--text-soft);
    white-space: nowrap;
}

/* art */

.art-intro
{
    margin-top: -4px;
    margin-bottom: 18px;
    color: var(--text-soft);
}

.art-gallery
{
    display: grid;
    gap: 18px;
}

.art-feature
{
    padding: 18px;
    border-radius: 30px;
    background: linear-gradient(
        180deg,
        rgba(247, 242, 255, 0.90),
        rgba(230, 222, 249, 0.84)
    );
    box-shadow:
        0 16px 32px rgba(88, 64, 129, 0.12),
        inset 1px 1px 0 rgba(255,255,255,0.50);
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.art-feature-img
{
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 520px;
    margin: 0 auto;
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 12px 24px rgba(72, 43, 92, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.art-feature-img:hover
{
    transform: scale(1.02);
    box-shadow:
        0 18px 36px rgba(72, 43, 92, 0.22),
        0 0 28px rgba(185, 156, 255, 0.18);
}

/* skills */

.skills-columns
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 54px;
    row-gap: 34px;
    margin-top: 22px;
    align-items: start;
}

.skills-block
{
    position: relative;
    padding-top: 4px;
}

.skills-block h4
{
    margin: 0 0 16px;
    font-family: "Mogra", serif;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--text-main);
}

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

.skill-tags li
{
    padding: 4px 16px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(230, 216, 250, 0.96),
        rgba(219, 203, 244, 0.92)
    );
    font-family: "Inria Serif", serif;
    font-size: 0.98rem;
    color: var(--text-main);
    line-height: 1.15;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.65),
        0 6px 14px rgba(106, 83, 148, 0.08);
}

.skills-block ul:not(.skill-tags)
{
    margin: 0;
    padding-left: 24px;
}

.skills-block ul:not(.skill-tags) li
{
    margin-bottom: 10px;
    font-family: "Inria Serif", serif;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-main);
}

.skills-full
{
    grid-column: span 2;
}

#skills-content h2
{
    margin: 0 0 24px;
    font-family: "Italiana", serif;
    font-size: 2.15rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

#skills-content
{
    padding-right: 6px;
}

@media (min-width: 901px)
{
    .skills-columns
    {
        position: relative;
    }

    .skills-columns::before
    {
        content: "";
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: 50%;
        width: 1px;
        background: linear-gradient(
            180deg,
            transparent,
            rgba(180, 162, 216, 0.38),
            transparent
        );
        transform: translateX(-27px);
        pointer-events: none;
    }
}

/* hobbies */

.hobby-intro
{
    margin: 0 0 20px;
    font-family: "Inria Serif", serif;
    color: var(--text-soft);
    line-height: 1.6;
}

.hobby-tags
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hobby-tags span
{
    padding: 10px 16px;
    border-radius: 999px;
    font-family: "Inria Serif", serif;
    font-size: 0.95rem;
    background: linear-gradient(
        180deg,
        rgba(226, 209, 255, 0.95),
        rgba(212, 198, 255, 0.90)
    );
    color: var(--text-main);
    box-shadow:
        0 6px 14px rgba(120, 90, 170, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hobby-tags span:hover
{
    transform: translateY(-2px);
    box-shadow:
        0 10px 22px rgba(120, 90, 170, 0.18),
        0 0 20px rgba(170, 145, 255, 0.22);
}

/* dark modal + content */

body.theme-dark .modal-box
{
    background: linear-gradient(180deg, rgba(37, 31, 63, 0.96), rgba(28, 25, 52, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 50px rgba(0,0,0,0.34),
        0 0 32px rgba(143, 183, 255, 0.10);
}

body.theme-dark #modalContent h2,
body.theme-dark #modalContent h3,
body.theme-dark #modalContent h4,
body.theme-dark #modalContent p,
body.theme-dark #modalContent li,
body.theme-dark #modalContent span,
body.theme-dark #modalContent a
{
    color: rgb(237, 232, 248);
}

body.theme-dark .project-card,
body.theme-dark .project-card-soft
{
    background: linear-gradient(
        180deg,
        rgba(56, 47, 92, 0.92),
        rgba(43, 37, 74, 0.88)
    );
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.24),
        inset 1px 1px 0 rgba(255,255,255,0.04);
}

body.theme-dark .project-sub,
body.theme-dark .project-progress-label,
body.theme-dark .concept-stage,
body.theme-dark .photo-intro,
body.theme-dark .art-intro,
body.theme-dark .menu-help,
body.theme-dark .hobby-intro
{
    color: rgb(210, 201, 232);
}

body.theme-dark .project-pill
{
    background: rgba(255,255,255,0.08);
    color: rgb(238, 233, 248);
    box-shadow: none;
}

body.theme-dark .project-progress-bar
{
    background: rgba(255,255,255,0.10);
}

body.theme-dark .project-progress-fill
{
    background: linear-gradient(
        90deg,
        rgba(186, 149, 255, 0.98),
        rgba(133, 180, 255, 0.95)
    );
}

body.theme-dark .concept-item
{
    background: rgba(255,255,255,0.06);
}

body.theme-dark .project-link-btn
{
    background: rgba(255,255,255,0.10);
    color: rgb(239, 234, 249);
}

body.theme-dark .project-link-btn:hover
{
    background: rgba(255,255,255,0.16);
}

body.theme-dark .skill-tags li
{
    background: linear-gradient(
        180deg,
        rgba(90, 74, 143, 0.95),
        rgba(72, 60, 120, 0.92)
    );
    color: rgb(239, 234, 249);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 6px 14px rgba(0,0,0,0.16);
}

body.theme-dark .skills-columns::before
{
    background: linear-gradient(
        180deg,
        transparent,
        rgba(162, 146, 214, 0.22),
        transparent
    );
}

body.theme-dark .art-feature,
body.theme-dark .photo-feature-frame
{
    background: linear-gradient(
        180deg,
        rgba(56, 47, 92, 0.92),
        rgba(43, 37, 74, 0.88)
    );
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.22),
        inset 1px 1px 0 rgba(255,255,255,0.05);
}

body.theme-dark .photo-thumb
{
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.theme-dark .info-card
{
    background: linear-gradient(180deg, rgba(48, 40, 79, 0.84), rgba(34, 30, 60, 0.80));
    border: 1px solid rgba(255,255,255,0.08);
}

body.theme-dark .tile-hint
{
    color: rgb(216, 198, 248);
}




.interactive-guide
{
     position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.interactive-guide.hidden-guide
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.interactive-guide::before
{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 18, 42, 0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.interactive-guide-box
{
    position: relative;
    z-index: 2;
    max-width: 560px;
    width: min(560px, 92vw);
    padding: 22px 28px;
    border-radius: 28px;
    background: rgba(250, 245, 255, 0.94);
    color: rgb(59, 41, 64);
    text-align: center;
    font-family: "Mogra", serif;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow:
        0 0 24px rgba(170, 145, 255, 0.24),
        0 12px 28px rgba(72, 43, 92, 0.16);
    transition: opacity 0.35s ease, transform 0.35s ease;
    cursor: pointer;
}

.interactive-guide-box.fade-swap
{
    opacity: 0;
    transform: translateY(8px);
}

#guideText
{
    margin: 0;
}

body.theme-dark .interactive-guide::before
{
    background: rgba(8, 6, 18, 0.26);
}

body.theme-dark .interactive-guide-box
{
    background: rgba(39, 32, 64, 0.95);
    color: rgb(239, 234, 249);
    box-shadow:
        0 0 24px rgba(133, 180, 255, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.28);
}






/* responsive */

@media (max-width: 1100px)
{
    .room-stage
    {
        width: min(98vw, 980px);
    }
}

@media (max-width: 900px)
{
    .skills-columns
    {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .skills-full
    {
        grid-column: span 1;
    }

    .card-third,
    .card-two-thirds
    {
        grid-column: span 12;
        min-height: auto;
    }

    .room-shell
    {
        min-height: 470px;
        height: auto;
        padding-top: 8px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .room-stage
    {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: min(100%, 900px);
        margin: 0 auto;
    }
}

@media (max-width: 700px)
{
    body
    {
        background:
            linear-gradient(rgba(246, 239, 255, 0.38), rgba(246, 239, 255, 0.38)),
            url("photos/background.png") center top / cover no-repeat fixed;
    }

    body.theme-dark
    {
        background:
            linear-gradient(rgba(16, 12, 29, 0.50), rgba(16, 12, 29, 0.50)),
            url("photos/background.png") center top / cover no-repeat fixed;
    }

    .site-header
    {
        padding: 18px 16px;
        gap: 14px;
    }

    .main-area
    {
        padding: 14px;
    }

    .header-right
    {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-btn
    {
        width: 100%;
    }

    .title-name
    {
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1.1;
    }

    .title-sub
    {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .interactive-guide
    {
        inset: 12px;
        align-items: flex-start;
        padding-top: 6px;
    }

    .interactive-guide-box
    {
        max-width: 100%;
        padding: 14px 16px;
        font-size: 0.92rem;
        border-radius: 22px;
    }

    .tiles-grid
    {
        gap: 16px;
    }

    .card-inner
    {
        padding: 22px;
    }

    .photo-thumb-grid
    {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-top
    {
        flex-direction: column;
        align-items: flex-start;
    }

    .concept-item
    {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-overlay
    {
        padding: 10px;
    }

    .side-menu
    {
        width: min(100%, 380px);
        border-radius: 24px;
    }

    .modal-overlay
    {
        padding: 12px;
    }

    .modal-box
    {
        width: 100%;
        max-height: 86vh;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .modal-close
    {
        top: 10px;
        right: 10px;
    }

    .plant-scene
    {
        min-height: 320px;
    }

    .plant-img
    {
        width: 180px;
    }

    .water-can
    {
        width: 170px;
        right: -8px;
        top: 18px;
    }
}

@media (max-width: 520px)
{
    .header-right
    {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav-btn
    {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .room-shell
    {
        min-height: 340px;
    }

    

@media (max-width: 700px)
{
    .interactive-guide
    {
        padding: 16px;
    }

    .interactive-guide-box
    {
        width: 100%;
        padding: 18px 18px;
        border-radius: 22px;
        font-size: 0.94rem;
    }
}

    .tile-cover-character
    {
        max-width: 160px;
        max-height: 160px;
    }

    .tile-cover
    {
        max-width: 90px;
        max-height: 90px;
    }

    .photo-thumb-grid
    {
        gap: 10px;
    }

    .skills-block ul:not(.skill-tags) li
    {
        font-size: 0.98rem;
    }
}

@media (hover: none)
{
    .info-card:hover,
    .nav-btn:hover,
    .project-link-btn:hover,
    .mini-toggle:hover,
    .view-toggle:hover,
    .toggle-btn:hover,
    .room-object:hover
    {
        transform: none;
    }
}