@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --bg-color: #e0e0e0;
    --text-color: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --blob-bg: rgba(30, 30, 30, 0.8);
    --blob-text: #ffffff;

    /* Fonts */
    --font-title: 'Zalando Sans Expanded', sans-serif;
    --font-body: 'Google Sans', sans-serif;
    --font-keyword: 'Playfair Display', serif;

    /* Core Navbar Design Tokens */
    --nav-bg: rgba(26, 26, 26, 0.6);
    --nav-text-color: #ededed;
    --nav-active-text-color: #1a1a1a;
    --nav-blob-color: #ededed;
    --nav-glass-border: rgba(255, 255, 255, 0.1);
    --nav-hover-border: rgba(255, 255, 255, 0.3);
    --nav-scaled-border: rgba(255, 255, 255, 0.4);
    --nav-scaled-glow: rgba(255, 255, 255, 0.2);
    --nav-blur: 12px;
    --nav-font: var(--font-title);

    /* Signature liquid spring/overshoot easing */
    --ease-custom: cubic-bezier(.44, -0.08, 0, 1.38);
    --ease-smooth: ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Noise texture overlay for premium feel */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Scrollbar Helper (Lenis generally handles this, but good to have) */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: #333;
    margin-top: 10px;
    position: relative;
}

.skip-loading-btn {
    margin-top: 20px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.skip-loading-btn.show {
    opacity: 1;
    visibility: visible;
}

.skip-loading-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.progress {
    width: 0%;
    height: 1px;
    /* Thin line */
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.progress-overlay {
    width: 0%;
    height: 4px;
    /* Bolder line overlay */
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hidden {
    display: none !important;
}

/* ================= ANIMATED BACKGROUND BLOBS ================= */

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#blobs-container {
    position: absolute;
    inset: 0;
    filter: blur(80px);
}

.blob-wrapper {
    position: absolute;
    will-change: transform;
    transform: translate(var(--parallax-x, 0px), var(--parallax-y, 0px));
}

.blob-wrapper-1 {
    top: 10%;
    left: 20%;
}

.blob-wrapper-2 {
    bottom: 20%;
    right: 10%;
}

.blob-wrapper-3 {
    top: 40%;
    left: 60%;
}

.blob {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.3;
    animation: drift 20s infinite alternate ease-in-out;
    will-change: transform;
}

.blob-1 {
    background: #b0b0b0;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #9a9a9a;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #c5c5c5;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

/* ================= NAVBAR ================= */

#navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95vw;
    z-index: 1000;
    white-space: nowrap;
    box-sizing: border-box;
    font-family: var(--nav-font);

    /* Glassmorphism */
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border: 1px solid var(--nav-glass-border);
    border-radius: 50px;
    padding: 10px;

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

    transition:
        transform 0.4s var(--ease-custom),
        width 0.4s var(--ease-custom),
        height 0.4s var(--ease-custom),
        padding 0.4s var(--ease-custom),
        border-radius 0.4s var(--ease-custom),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Click "squeeze" flash state */
#navbar.scaled {
    transform: translateX(-50%) scale(1.05);
    border-color: var(--nav-scaled-border);
    box-shadow: 0 0 20px var(--nav-scaled-glow);
}

#navbar:hover {
    border-color: var(--nav-hover-border);
}

/* Liquid scale effect for highlight blob on click */
#navbar.scaled #nav-blob {
    transform: scale(1.1);
    opacity: 1;
    filter: brightness(1.2);
}

/* ================= NAV ITEMS LIST (EXPANDED) ================= */

#nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-custom);
}

/* Hide full item list when collapsed into mini pill (kept in DOM for size measurement) */
#navbar.mini:not(.expanded-hover) #nav-list {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
}

/* Mobile menu elements: hidden on desktop */
.mobile-menu-btn {
    display: none;
}

#mobile-menu {
    display: none;
}

.nav-item {
    cursor: pointer;
    padding: 10px 20px;
    margin: 0;
    box-sizing: border-box;
    color: var(--nav-text-color);
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
    z-index: 2; /* Ensure text sits above #nav-blob */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
    color: var(--nav-active-text-color);
}

/* ================= SLIDING HIGHLIGHT BLOB ================= */

#nav-blob {
    position: absolute;
    background: var(--nav-blob-color);
    border-radius: 40px;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
    transition:
        transform 0.5s var(--ease-custom),
        width 0.5s var(--ease-custom),
        height 0.5s var(--ease-custom),
        top 0.5s var(--ease-custom),
        left 0.5s var(--ease-custom),
        opacity 0.25s ease;
}

#navbar.mini:not(.expanded-hover) #nav-blob {
    opacity: 0;
}

/* ================= RETRACTED MINI PILL STATE ================= */

#navbar.mini {
    padding: 5px 15px;
    border-radius: 30px;
}

#navbar.expanded-hover {
    padding: 10px;
    border-radius: 50px;
}

#nav-mini-text {
    position: absolute;
    color: var(--nav-text-color);
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.9);
    filter: blur(4px);
    user-select: none;
    transition:
        transform 0.3s var(--ease-custom),
        opacity 0.25s ease,
        filter 0.25s ease;
}

#navbar.mini:not(.expanded-hover) #nav-mini-text {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Language toggle (desktop navbar) */
.nav-lang-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-custom);
}

#navbar.mini:not(.expanded-hover) .nav-lang-wrap {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
}

.nav-lang-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.nav-lang-btn {
    background: transparent;
    border: none;
    color: var(--nav-text-color);
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 16px 10px 12px;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-lang-btn:hover {
    color: #fff;
}

/* Home Section */
#home {
    position: relative;
    height: 120vh;
    /* Extra height for scroll effects */
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20vh;
}

#home-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
    filter: blur(5px);
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(8px);
    opacity: 1;
}

.home-content {
    text-align: center;
    z-index: 1;
    pointer-events: none;
    /* Let clicks pass to canvas if needed */
    margin-top: 100px;
}

#home-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: #111;
    mix-blend-mode: overlay;
    /* Stylish blend */
    white-space: pre-wrap;
    /* For \n */
}

#home-desc {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 300;
}

.textArt {
    font-family: var(--font-keyword);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2em;
    /* Slightly larger */
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-title);
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.6;
    animation: fadeBounce 2s infinite;
}

@keyframes fadeBounce {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 0.3;
    }
}

/* Variable Text Section (ALBUMS) */
.boldScroll span {
    display: inline-block;
    font-weight: 100;
    will-change: font-weight;
    transition: font-weight 0.1s linear;
}

.boldScroll .bold-word {
    display: inline-block;
    white-space: nowrap;
}

.variable-text-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
    z-index: 5;
}

.variable-font {
    font-family: var(--font-title);
    font-size: 15vw;
    font-weight: 100;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

/* General Section Styles */
section {
    padding: 100px 5%;
    min-height: 100vh;
    margin-bottom: 50vh;
    width: 100%;
    overflow: hidden;
}

.section-title {
    font-family: var(--font-title);
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

#album .section-title {
    font-size: 15vw;
}


/* Specific sizing for "ABOUT ME" (8 chars + space) -> 90vw / 8 ~= 11.25vw */
#about .section-title {
    font-size: 11vw;
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

/* Specific sizing for "GET IN TOUCH" (12 chars + spaces) -> 90vw / 12 ~= 7.5vw */
#contact .section-title {
    font-size: 7.5vw;
}

/* Album Section */
/* Navbar Hidden State */
#navbar.nav-hidden {
    transform: translateX(-50%) translateY(calc(-100% - 40px));
}

#navbar.nav-hidden.scaled {
    transform: translateX(-50%) translateY(calc(-100% - 40px)) scale(1.05);
}

/* Album Section */
#album {
    background-color: var(--bg-color);
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Start from top */
    min-height: 100vh;
}

#album-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
    padding-left: 10vw;
    padding-bottom: 50px;
    /* REQUEST: More space below */
    padding-top: 20px;
    width: max-content;
    height: 70vh;
    /* Increased height so covers aren't cut off */
    align-items: flex-start;
}

.album-card {
    position: relative;
    background: none;
    border: none;
    border-radius: 0;
    /* REQUEST: Square default */
    padding: 0;
    width: 400px;
    height: 550px;
    /* Taller to fit */
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, border-radius 0.4s ease;
}

.album-card:hover {
    transform: scale(1.02);
    border-radius: 20px;
    /* REQUEST: Round only on hover */
    z-index: 10;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* REQUEST: Square default */
    transition: filter 0.4s ease, border-radius 0.4s ease;
}

.album-card:hover .album-cover {
    filter: blur(8px);
    border-radius: 20px;
    /* REQUEST: Round only on hover */
}

/* Hidden Title Logic */
.album-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-title);
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    width: 90%;
    z-index: 2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.album-card:hover .album-overlay-title {
    opacity: 1;
}

/* Hide original info */
.album-info {
    display: none;
}

/* Album Detail View (Full Screen Overlay) */
#album-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    overflow-x: auto;
    /* Allow native horizontal scroll */
    overflow-y: hidden;
    display: none;
    flex-direction: row;
    align-items: flex-end;
    /* REQUEST: Images touch bottom */
    padding: 0;
    /* Request: Borderless effect */
    opacity: 0;
    transition: opacity 0.5s ease;
}

#album-detail-view.active {
    display: flex;
    opacity: 1;
}

/* Fixed Header in Detail View */
.detail-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding-top: 5px;
    z-index: 2005;
    pointer-events: none;
    /* Let clicks pass */
}

/* Content Wrapper for Detail View */
.detail-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    height: 100%;
    padding-right: 100px;
    padding-left: 5vw;
    /* Intro padding */
    gap: 0;
}

.detail-intro {
    flex-shrink: 0;
    width: 25vw;
    margin-right: 40px;
    padding-bottom: 50px;
    /* Lift text up a bit */
    align-self: center;
}

.detail-nav-btn.back-btn {
    font-size: 1.2rem;
    /* REQUEST: Smaller "back to albums" */
    margin: 0 0 20px 0;
    display: block;
}

.detail-image {
    height: 100%;
    /* REQUEST: Touch bottom */
    width: auto;
    object-fit: cover;
    border-radius: 0;
    /* REQUEST: Not rounded */
    margin-right: 10px;
    /* Small gap */
}

.detail-nav-btn.next-btn {
    font-size: 5rem;
    margin-left: 50px;
    align-self: center;
}

/* Utility to hide standard scrollbar in detail view for cleaner look */
#album-detail-view::-webkit-scrollbar {
    height: 0px;
    background: transparent;
}

.detail-title {
    font-family: var(--font-title);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
}

.detail-desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
}

/* Category Selected State */
.category-card.category-selected .album-cover {
    opacity: 0;
}

.category-card.category-selected .album-overlay-title {
    opacity: 0;
}

.category-back-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3;
    letter-spacing: 2px;
}

/* Category Viewer Overlay */
#category-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 1999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
}

#category-viewer::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.category-viewer-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-color);
    padding: 30px 5vw 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.category-viewer-back {
    font-family: var(--font-title);
    font-size: 1.1rem;
    cursor: pointer;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.category-viewer-back:hover {
    opacity: 1;
}

.category-viewer-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.category-viewer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 5vw 80px;
}

.category-album-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 3/4;
    transition: transform 0.4s ease;
}

.category-album-card:hover {
    transform: scale(1.02);
}

.category-album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.category-album-card:hover .category-album-cover {
    filter: blur(5px) brightness(0.7);
}

.category-album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-album-card:hover .category-album-overlay {
    opacity: 1;
}

.category-album-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-album-date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

@media (max-width: 1400px) {
    .category-viewer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* About Section */
#about {
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding: 0;
    /* Remove default padding to control absolute pos */
}

#about-container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Flex removed for diagonal manual layout via JS/GSAP */
}

.about-item {
    position: absolute;
    width: 70vw;
    /* Adjust width as needed */
    display: flex;
    align-items: center;
    gap: 50px;
    /* Initial position will be set by JS */
}

/* Maintain inner styling */
.about-text {
    flex: 1;
    font-size: 1.8rem;
    font-family: var(--font-keyword);
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(255, 255, 255, 0.4);
    opacity: 0;
}

.flip-card {
    background-color: transparent;
    width: 350px;
    height: 480px;
    perspective: 1000px;
    flex: 0 0 350px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
    /* transition is no longer needed for hover, but might be useful if we use JS to animate rotation value directly, 
       but for GSAP scrubbing, we usually don't want CSS transition fighting it. 
       Let's keep it for now but remove the hover rule. 
    */
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* REMOVED HOVER FLIP
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
*/

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Contact Section */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.contact-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px;
    width: 90%;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.contact-left,
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: left;
}

#inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.platform-link,
.email-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.platform-link:hover,
.email-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.platform-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-login-link {
    color: inherit;
    text-decoration: none;
    margin-left: 10px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: opacity 0.3s;
    pointer-events: auto;
}

.footer-login-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .about-item {
        width: 88vw;
        gap: 30px;
    }

    .flip-card {
        width: 280px;
        height: 390px;
        flex: 0 0 280px;
    }

    .about-text {
        font-size: 1.4rem;
    }

    .detail-intro {
        width: 35vw;
        margin-right: 6vw;
    }

    .detail-title {
        font-size: clamp(2.2rem, 4vw, 3.5rem);
    }
}

@media (max-width: 768px) {

    /* --- GLOBAL MOBILE --- */
    body {
        cursor: auto !important;
        /* Reset any custom cursor */
        overflow-x: hidden;
    }

    section {
        min-height: auto;
        padding: 60px 5%;
        margin-bottom: 12vh;
    }

    #home {
        min-height: 100vh;
        min-height: 100dvh;
    }

    #loading-screen {
        display: flex;
        /* Remove !important so JS can hide it */
    }

    footer {
        padding-bottom: 60px;
        /* Extra space for mobile browser UI */
    }

    /* --- NAVBAR MOBILE: hidden, replaced by burger + fullscreen menu --- */
    #navbar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 56px;
        height: 48px;
        padding: 15px 16px;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1200;
        background: rgba(26, 26, 26, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 30px;
        cursor: pointer;
        transition: border-color 0.3s ease;
    }

    .mobile-menu-btn:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }

    .mobile-menu-btn .line {
        width: 100%;
        height: 2px;
        background: #ededed;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-menu-btn.open .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.open .line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open .line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    #mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 1100;
        background: #000;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    #mobile-menu.open {
        opacity: 1;
        visibility: visible;
    }

    #mobile-nav-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 48px;
        text-align: center;
    }

    .mobile-nav-item {
        color: #ededed;
        font-family: var(--font-title);
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        cursor: pointer;
        opacity: 0;
        transform: translateY(24px);
        transition:
            opacity 0.4s ease,
            transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            text-decoration-color 0.3s ease;
        text-decoration: underline;
        text-decoration-color: transparent;
        text-decoration-thickness: 1px;
        text-underline-offset: 10px;
    }

    #mobile-menu.open .mobile-nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    #mobile-menu.open .mobile-nav-item:nth-child(1) {
        transition-delay: 0.05s;
    }

    #mobile-menu.open .mobile-nav-item:nth-child(2) {
        transition-delay: 0.12s;
    }

    #mobile-menu.open .mobile-nav-item:nth-child(3) {
        transition-delay: 0.19s;
    }

    #mobile-menu.open .mobile-nav-item:nth-child(4) {
        transition-delay: 0.26s;
    }

    .mobile-nav-item.active {
        text-decoration-color: #ededed;
    }

    .mobile-lang-wrap {
        position: absolute;
        bottom: 40px;
        left: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        opacity: 0;
        transition: opacity 0.4s ease 0.3s;
    }

    #mobile-menu.open .mobile-lang-wrap {
        opacity: 1;
    }

    .mobile-lang-label {
        color: rgba(255, 255, 255, 0.5);
        font-family: var(--font-body);
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .mobile-lang-btn {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        font-family: var(--font-title);
        font-size: 0.9rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 10px 18px;
        border-radius: 30px;
        cursor: pointer;
        transition: background 0.3s, border-color 0.3s;
    }

    .mobile-lang-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
    }


    /* --- HOME --- */
    #home-title {
        font-size: clamp(2.2rem, 11vw, 4rem);
        word-break: break-word;
        max-width: 90vw;
    }

    /* --- ALBUMS --- */
    #album {
        height: auto;
        /* Allow natural height */
        min-height: auto;
        overflow: visible;
    }

    #album .section-title {
        font-size: clamp(2.2rem, 11vw, 4rem);
        margin-bottom: 40px;
        white-space: normal;
        word-break: break-word;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    #album-container {
        /* Force Vertical Stack */
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 0 5% 60px 5%;
        gap: 48px;
        transform: none !important;
        /* Kill GSAP transform */
    }

    .album-card {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.2;
        /* Vertical rectangle */
        border-radius: 15px;
        overflow: hidden;
        pointer-events: auto !important;
        position: relative;
        z-index: 1;
        cursor: pointer;
    }

    .album-card:hover {
        transform: none;
    }

    .album-cover {
        border-radius: 15px;
        pointer-events: none;
        /* Let clicks pass to card */
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease, opacity 0.5s ease;
    }

    .album-card:hover .album-cover {
        filter: none;
        opacity: 1;
    }

    .album-overlay-title {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        padding: 40px 24px 24px;
        background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.72) 100%);
        text-align: left;
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        opacity: 0.85;
        transition: opacity 0.4s ease;
    }

    /* Mobile: Scroll-triggered focus state */
    .album-card.mobile-active .album-cover {
        transform: scale(1.04);
        filter: none;
        opacity: 1;
    }

    .album-card.mobile-active .album-overlay-title {
        opacity: 1;
    }

    /* Detail View Mobile */
    #album-detail-view {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 80px;
        /* Space for header */
    }

    .detail-header-fixed {
        top: 0;
        padding: 16px 20px;
        background: rgba(224, 224, 224, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .detail-header-fixed h2 {
        font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    }

    .detail-content-wrapper {
        flex-direction: column;
        width: 100%;
        padding: 20px;
        align-items: center;
    }

    .detail-intro {
        width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
        text-align: left;
    }

    .detail-title {
        font-size: clamp(1.8rem, 7.5vw, 2.6rem);
        word-break: break-word;
    }

    .detail-image {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        margin-right: 0;
    }

    .detail-nav-btn.next-btn {
        margin: 40px 0 100px 0;
        font-size: 2rem;
    }

    /* --- CATEGORY VIEWER MOBILE --- */
    .category-viewer-header {
        padding: 20px 5% 15px;
        gap: 15px;
    }

    .category-viewer-title {
        font-size: 6vw;
    }

    .category-viewer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 10px 5% 100px;
    }

    .category-album-card {
        aspect-ratio: 1/1.2;
    }

    .category-album-overlay {
        opacity: 1;
        background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
    }

    .category-album-cover {
        filter: none;
    }

    #category-viewer {
        left: 100vw;
        opacity: 1;
        height: 100dvh;
        transition: none;
    }

    #category-viewer.mobile-visible {
        left: 0;
    }

    /* --- ABOUT (Option A: Editorial Card Stack + Cross-Fade) --- */
    #about {
        height: auto;
        overflow: visible;
        padding-bottom: 60px;
    }

    #about .section-title {
        font-size: clamp(2.2rem, 11vw, 4rem);
        position: relative;
        margin-bottom: 50px;
        white-space: normal;
        word-break: break-word;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    #about-container {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 80px;
        transform: none !important;
        padding-bottom: 60px;
    }

    .about-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 100%;
        flex-direction: column;
        padding: 0 20px;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .about-text {
        font-size: clamp(1.15rem, 4.5vw, 1.45rem);
        line-height: 1.5;
        opacity: 1 !important;
    }

    .flip-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 7 / 9;
        flex: none;
        perspective: none;
    }

    .flip-card-inner {
        transform: none !important;
        transform-style: flat;
        border-radius: 15px;
        overflow: hidden;
    }

    .flip-card-inner.has-back {
        cursor: pointer;
    }

    .flip-card-front,
    .flip-card-back {
        backface-visibility: visible;
        -webkit-backface-visibility: visible;
        transform: scale(1);
        transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .flip-card-front {
        opacity: 1;
        z-index: 1;
    }

    .flip-card-back {
        opacity: 0;
        transform: scale(1.04);
        z-index: 2;
        pointer-events: none;
    }

    .flip-card-inner.has-back.mobile-flipped .flip-card-front {
        opacity: 0;
        transform: scale(0.97);
    }

    .flip-card-inner.has-back.mobile-flipped .flip-card-back {
        opacity: 1;
        transform: scale(1);
    }

    /* --- CONTACT --- */
    .contact-glass {
        padding: 30px 15px;
        /* Reduced padding to save horizontal space */
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        pointer-events: auto !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-left {
        order: 1;
        /* Inquiry first */
    }

    .contact-right {
        order: 2;
        /* Connections second */
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    #contact .section-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
        /* Consistently scaled for mobile */
        white-space: normal;
        word-break: break-word;
        max-width: 90vw;
        margin: 0 auto 40px auto;
    }

    .platforms-list,
    .emails-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* ================= 404 PAGE ================= */

#notfound {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 0;
}

#notfound-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.3;
    filter: blur(5px);
}

.notfound-content {
    text-align: center;
    z-index: 1;
}

#notfound-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: clamp(5rem, 20vw, 14rem);
    line-height: 0.9;
    text-transform: uppercase;
    color: #111;
    mix-blend-mode: overlay;
}

#notfound-desc {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 300;
}

.notfound-btn {
    display: inline-block;
    margin-top: 40px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notfound-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}