/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #0a1929;
    --blue-mid: #1e3a5f;
    --blue-light: #2d4a6b;
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941f;
    --white: #ffffff;
    --black: #000000;
    --gray-light: rgba(255, 255, 255, 0.1);
    --gray-mid: rgba(255, 255, 255, 0.5);
    --gray-dark: rgba(0, 0, 0, 0.8);
    
    --font-primary: 'Gloock', serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (Default) */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --panel-bg: rgba(0, 0, 0, 0.98);
    --modal-bg: rgba(0, 0, 0, 0.98);
    --nav-bg: rgba(0, 0, 0, 0.95);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-on-gold: #000000;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: rgba(0, 0, 0, 0.03);
    --panel-bg: rgba(255, 255, 255, 0.98);
    --modal-bg: rgba(255, 255, 255, 0.98);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --text-on-gold: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Kintsugi Elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assets/bgassets/Kintsugi-Gradient-04.jpg?v=1.0.0'),
        url('assets/bgassets/Kintsugi-Gradient-12.jpg?v=1.0.0'),
        url('assets/bgassets/Kintsugi-Gradient-17.jpg?v=1.0.0');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-attachment: fixed, fixed, fixed;
    background-blend-mode: overlay;
    opacity: 0.08;
    z-index: -2;
    pointer-events: none;
}

[data-theme="light"] body::before {
    opacity: 0.04;
    filter: invert(1) brightness(0.8);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: -3;
    pointer-events: none;
}

/* Kintsugi Gold Lines Overlay */
.kintsugi-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
    mix-blend-mode: screen;
}

[data-theme="light"] .kintsugi-lines {
    opacity: 0.08;
    filter: invert(1) brightness(0.7);
}

/* Landing Page */
.landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    background: var(--bg-primary);
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

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

.landing-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.logo-container {
    margin-bottom: 40px;
}

.landing-logo {
    height: 200px;
    width: auto;
    max-width: 90vw;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.landing-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.landing-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.contact-link:hover {
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.2rem;
    color: var(--text-primary);
    filter: grayscale(100%) brightness(1);
    transition: var(--transition);
}

[data-theme="dark"] .contact-icon {
    filter: grayscale(100%) brightness(0) invert(1);
}

[data-theme="light"] .contact-icon {
    filter: grayscale(100%) brightness(0);
}

.contact-text {
    font-family: var(--font-primary);
}

.enter-btn {
    padding: 18px 50px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    min-height: 44px; /* Minimum touch target size */
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
    z-index: -1;
}

/* Removed ::after to eliminate weird line effect */

.enter-btn:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.5);
}

.enter-btn:hover::before {
    left: 0;
}

/* Removed hover ::after effect */

/* Removed landing-scroll and scroll-indicator */

.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('assets/bgassets/Gold-Lines-01.png?v=1.0.0'),
        url('assets/bgassets/Gold-Lines-03.png?v=1.0.0');
    background-size: 60% auto, 50% auto;
    background-position: 20% center, 80% center;
    background-repeat: no-repeat;
    opacity: 0.08;
    animation: backgroundFloat 20s ease-in-out infinite;
}

[data-theme="light"] .landing-background {
    opacity: 0.04;
    filter: invert(1) brightness(0.6);
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* App Container */
.app {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in;
}

.app:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.app.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    padding: 12px 0; /* Better touch target */
    display: inline-block; /* Better touch target */
    min-height: 44px; /* Minimum touch target */
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .nav-link {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gold);
}

/* Hide mobile contact menu on desktop */
.nav-contact-mobile {
    display: none;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px; /* Minimum touch target */
    height: 44px; /* Minimum touch target */
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.theme-toggle:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.theme-icon {
    filter: grayscale(100%) brightness(1);
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

[data-theme="dark"] .theme-icon {
    filter: grayscale(100%) brightness(0) invert(1);
}

[data-theme="light"] .theme-icon {
    filter: grayscale(100%) brightness(0);
}

/* Music Player */
.music-player {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-toggle,
.music-switch {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.music-toggle:hover,
.music-switch:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.music-icon,
.music-switch-icon {
    display: block;
    transition: var(--transition);
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
    fill: none;
}

.music-icon-muted {
    display: none;
}

[data-theme="dark"] .music-icon,
[data-theme="dark"] .music-icon-muted,
[data-theme="dark"] .music-switch-icon {
    stroke: var(--text-primary);
}

[data-theme="light"] .music-icon,
[data-theme="light"] .music-icon-muted,
[data-theme="light"] .music-switch-icon {
    stroke: var(--text-primary);
}

.music-toggle:active,
.music-switch:active {
    transform: scale(0.95);
}

/* Two-tone sun icon effect */
.theme-icon.sun-icon {
    position: relative;
    filter: none;
    font-size: 22px;
    display: inline-block;
    /* Create two-tone effect with multiple shadows */
    filter: 
        drop-shadow(0 0 2px rgba(255, 140, 0, 1))
        drop-shadow(0 0 4px rgba(255, 215, 0, 0.8))
        drop-shadow(0 0 6px rgba(255, 165, 0, 0.6));
    text-shadow: 
        1px 1px 0 rgba(255, 140, 0, 0.8),
        -1px -1px 0 rgba(255, 215, 0, 0.9),
        0 0 8px rgba(255, 215, 0, 0.7);
}

/* Create layered two-tone effect with pseudo-element */
.theme-icon.sun-icon::before {
    content: '☀';
    position: absolute;
    top: 0;
    left: 0;
    color: #ff8c00;
    opacity: 0.5;
    mix-blend-mode: multiply;
    transform: translate(0.5px, 0.5px);
    z-index: -1;
}

[data-theme="light"] .theme-icon.sun-icon {
    filter: 
        drop-shadow(0 0 3px rgba(255, 215, 0, 1))
        drop-shadow(0 0 5px rgba(255, 140, 0, 0.9))
        drop-shadow(0 0 8px rgba(255, 165, 0, 0.7));
    text-shadow: 
        1px 1px 0 rgba(255, 215, 0, 0.9),
        -1px -1px 0 rgba(255, 140, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 5px rgba(255, 140, 0, 0.6);
}

[data-theme="light"] .theme-icon.sun-icon::before {
    color: #ffd700;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Toast Notifications */
.nav-toast {
    position: fixed;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    letter-spacing: 0.3px;
    font-family: var(--font-primary);
    font-weight: 400;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
    z-index: 3000;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.nav-toast::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--gold);
}

.nav-toast::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg-primary);
}

.nav-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px; /* Minimum touch target */
    height: 44px; /* Minimum touch target */
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .menu-toggle span {
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Canvas Container */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#threejs-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.photo-info {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    /* Frosted glass (glassmorphism) effect */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    min-width: 400px;
    max-width: 90vw; /* Mobile-friendly max width */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: auto;
}

[data-theme="light"] .photo-info {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 40px rgba(212, 175, 55, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.photo-info.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.photo-info-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--gold);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    z-index: 10;
}

.photo-info-close:hover {
    background: rgba(212, 175, 55, 0.4);
    transform: rotate(90deg);
}

.photo-info-close:active {
    transform: rotate(90deg) scale(0.9);
}

.photo-info h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.photo-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.photo-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.canvas-contact {
    position: absolute;
    bottom: 150px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.canvas-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    opacity: 0.9;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.canvas-contact-link:hover {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-5px);
}

.contact-text-small {
    font-size: 0.85rem;
    font-family: var(--font-primary);
}

.controls-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
}

.hint-primary {
    color: var(--text-primary);
    font-size: 13px;
    letter-spacing: 0.8px;
    font-weight: 400;
    margin-bottom: 6px;
    opacity: 0.9;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

.hint-secondary {
    color: var(--text-secondary);
    font-size: 11px;
    letter-spacing: 0.4px;
    font-weight: 300;
    opacity: 0.6;
    margin: 0;
}

[data-theme="light"] .hint-primary {
    opacity: 0.85;
}

[data-theme="light"] .hint-secondary {
    opacity: 0.55;
}

/* Info Panels */
.info-panel {
    position: fixed;
    top: 0;
    width: 400px;
    height: 100%;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 40px 40px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

.info-panel::-webkit-scrollbar {
    width: 8px;
}

.info-panel::-webkit-scrollbar-track {
    background: transparent;
}

.info-panel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.info-panel-left {
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border-color);
    transform: translateX(-100%);
}

.info-panel-left.active {
    transform: translateX(0);
}

.info-panel-right {
    right: 0;
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
}

.info-panel-right.active {
    transform: translateX(0);
}

.panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 30px;
    cursor: pointer;
    width: 44px; /* Minimum touch target */
    height: 44px; /* Minimum touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.panel-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.panel-content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-text,
.condition-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px; /* Increased for mobile readability */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    min-height: 44px; /* Minimum touch target size */
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--text-on-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--text-on-gold);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    padding: 40px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox Modal Styles */
.lightbox-modal {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: rotate(90deg);
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: var(--text-primary);
}

.lightbox-info h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    color: var(--text-primary);
}

.modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.15);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: url('assets/bgassets/Gold-Lines-03.png?v=1.0.0') no-repeat;
    background-size: contain;
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 30px;
    cursor: pointer;
    width: 44px; /* Minimum touch target */
    height: 44px; /* Minimum touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: var(--text-primary);
}

/* Prints View Specific */
.prints-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
}

.prints-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: url('assets/bgassets/Gold-Lines-01.png?v=1.0.0') no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.prints-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gold);
    position: relative;
}

.prints-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.prints-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.prints-intro-text {
    text-align: center;
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.prints-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
    padding: 20px;
    padding-right: 10px;
}

.prints-grid-view::-webkit-scrollbar {
    width: 8px;
}

.prints-grid-view::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.prints-grid-view::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.prints-grid-view::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.print-item {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .print-item {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.print-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: var(--transition);
}

.print-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .print-item:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.print-item:hover::before {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.print-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.print-item img:hover {
    transform: scale(1.02);
    opacity: 0.9;
    border-bottom-color: var(--gold);
}

.print-item-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.print-item-info h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.print-item-price {
    color: var(--gold);
    font-size: 1.3rem;
    margin: 5px 0;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.print-item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 5px 0;
    font-weight: 300;
}

.print-item .btn-primary {
    width: 100%;
    min-width: auto;
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 15px;
    letter-spacing: 0.08em;
}

/* Forms */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px; /* Prevents iOS zoom on focus */
    transition: var(--transition);
    min-height: 44px; /* Minimum touch target */
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

.amount-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 14px;
    min-height: 44px; /* Minimum touch target */
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--text-on-gold);
}

.donate-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Photo Details Modal */
.photo-details-content {
    max-width: 700px;
}

.photo-details-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gold);
    position: relative;
}

.photo-details-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.photo-details-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 100px;
    height: 100px;
    background: url('assets/bgassets/Gold-Lines-01.png?v=1.0.0') no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
}

.detail-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 8px;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.kintsugi-accent {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-left: 3px solid var(--gold);
    padding: 25px;
    margin-top: 10px;
    position: relative;
    overflow: visible;
}

.kintsugi-accent::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: url('assets/bgassets/Gold-Lines-03.png?v=1.0.0') no-repeat;
    background-size: contain;
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
}

.kintsugi-line-top,
.kintsugi-line-bottom {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 15px auto;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.kintsugi-quote {
    margin-top: 30px;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--gold);
    border-radius: 8px;
    position: relative;
}

.kintsugi-quote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.kintsugi-signature {
    text-align: right;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 10px;
    display: block;
    letter-spacing: 0.05em;
}

.info-panel::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: url('assets/bgassets/Gold-Lines-01.png?v=1.0.0') no-repeat;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-contact {
        gap: 12px;
        margin: 20px 0;
    }
    
    .contact-link {
        font-size: 0.9rem;
        padding: 10px 18px;
        gap: 10px;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .contact-icon {
        font-size: 1.1rem;
    }
    
    .canvas-contact {
        right: 20px;
        bottom: 130px;
        gap: 12px;
    }
    
    .canvas-contact-link {
        font-size: 0.85rem;
        padding: 9px 14px;
        gap: 9px;
    }
    
    .contact-text-small {
        font-size: 0.8rem;
    }
    
    .nav-content {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px 20px;
        gap: 15px;
        transform: translateX(-100%);
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-link {
        font-size: 16px; /* Larger for mobile */
        padding: 16px 0; /* Better touch target */
        min-height: 48px; /* Better touch target */
    }

    [data-theme="light"] .nav-links {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
    }

    .modal {
        padding: 20px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .modal-content {
        padding: 30px 20px;
        max-width: 100%;
        margin: 0;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .amount-buttons {
        gap: 10px;
    }

    .amount-btn {
        padding: 12px 16px;
        font-size: 16px; /* Larger for mobile */
        flex: 1;
        min-width: 80px;
        min-height: 44px; /* Minimum touch target */
    }

    .donate-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .print-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .print-item img {
        width: 100%;
        height: 200px;
    }

    .print-item .btn-primary {
        width: 100%;
        min-width: auto;
    }

    .photo-info {
        min-width: auto;
        width: 95%;
        padding: 25px 20px;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .photo-info-close {
        top: 10px;
        right: 10px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .photo-info h2 {
        font-size: 1.5rem; /* Smaller on mobile */
        padding-right: 30px; /* Space for close button */
    }
    
    .photo-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .photo-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .photo-actions .btn-primary,
    .photo-actions .btn-secondary {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    #lightbox-image {
        max-height: 80vh;
    }
    
    .lightbox-info h3 {
        font-size: 1.2rem;
    }
    
    .controls-hint {
        bottom: 20px;
        font-size: 12px;
    }
    
    .hint-primary {
        font-size: 12px;
    }
    
    .hint-secondary {
        font-size: 10px;
    }

    .info-panel {
        width: 100%;
    }

    .canvas-contact {
        display: none; /* Hide on mobile - moved to menu */
    }
    
    /* Show contact info in mobile menu */
    .nav-contact-mobile {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-contact-link {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 0.9rem;
        padding: 10px 15px;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        transition: var(--transition);
    }
    
    .nav-contact-link:hover {
        border-color: var(--gold);
        background: rgba(212, 175, 55, 0.1);
        color: var(--gold);
    }
    
    .nav-contact-link .contact-icon {
        font-size: 1.1rem;
    }

    .canvas-contact-link {
        font-size: 0.75rem;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .contact-text-small {
        font-size: 0.7rem;
    }
    
    .contact-icon {
        font-size: 1rem;
    }
    
    .landing-contact {
        gap: 15px;
        margin: 20px 0;
    }
    
    .contact-link {
        font-size: 0.85rem;
        padding: 8px 16px;
        gap: 10px;
    }
    
    .contact-text {
        font-size: 0.85rem;
        word-break: break-all;
    }
}

/* Story End Actions */
.story-end-actions {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.story-end-actions.visible {
    opacity: 1;
    pointer-events: all;
}

.story-end-content {
    background: var(--bg-primary);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.story-end-actions.visible .story-end-content {
    transform: scale(1);
}

.story-end-content h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.story-end-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.story-end-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.story-btn {
    min-width: 250px;
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    cursor: pointer;
    border-radius: 6px;
    min-height: 48px; /* Minimum touch target */
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    tap-highlight-color: rgba(212, 175, 55, 0.2);
}

.story-btn.btn-text {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.story-btn.btn-text:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@media (max-width: 768px) {
    .story-end-content {
        padding: 40px 30px;
        width: 95%;
    }
    
    .story-end-content h2 {
        font-size: 1.6rem;
    }
    
    .story-end-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .story-btn {
        min-width: auto;
        width: 100%;
        padding: 16px 28px;
        min-height: 48px;
        font-size: 16px; /* Larger for mobile */
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 10px;
        padding-top: 10px;
    }

    .modal-content {
        padding: 20px 15px;
        max-height: calc(100vh - 20px);
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .amount-buttons {
        gap: 8px;
    }

    .amount-btn {
        padding: 12px 16px;
        font-size: 14px; /* Larger for mobile */
        min-height: 44px; /* Minimum touch target */
    }

    .btn-primary {
        padding: 16px;
        font-size: 16px;
        min-height: 48px; /* Better touch target on small screens */
    }
    
    .amount-btn {
        min-height: 44px; /* Better touch target */
        padding: 12px 16px;
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .enter-btn {
        padding: 16px 40px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .controls-hint {
        display: none; /* Hide on very small screens to save space */
    }
}

