/* ========================================
   ETHEREAL GLASS DESIGN
   Web Personal - Anyelo Yosuke
   ======================================== */

:root {
    /* Ethereal Palette */
    --sky-50: #F0F9FF;
    --sky-100: #E0F2FE;
    --sky-200: #BAE6FD;
    --sky-300: #7DD3FC;
    --sky-400: #38BDF8;
    
    --rose-50: #FFF1F2;
    --rose-100: #FFE4E6;
    --rose-200: #FECDD3;
    --rose-300: #FDA4AF;
    --rose-400: #FB7185;
    
    --cream: #FFFBEB;
    --ivory: #FEFCE8;
    
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-accent: #BE185D;
    
    /* Glass Properties */
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-hover: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --glass-blur: 20px;
    --glass-saturate: 180%;
    
    /* Fonts */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Quicksand', 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--sky-50) 0%, #FFFFFF 50%, var(--rose-50) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--sky-100) 0%, #FFFFFF 50%, var(--rose-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-heart {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.heart-svg {
    width: 100%;
    height: 100%;
}

.heart-path {
    fill: var(--rose-300);
    animation: heartPulse 1.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--rose-300), var(--sky-300));
    width: 0%;
    transition: width 0.3s ease;
}

/* ========================================
   PASSWORD GATE - Liquid Glass
   ======================================== */

.password-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--sky-100) 0%, #FFFFFF 50%, var(--rose-100) 100%);
}

.password-gate.hidden {
    display: none;
}

.gate-content {
    position: relative;
    max-width: 380px;
    width: 100%;
    padding: 48px 32px;
    text-align: center;
}

.gate-heart {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--rose-400);
    animation: heartBeat 1.5s ease-in-out infinite;
}

.gate-heart svg {
    width: 100%;
    height: 100%;
}

.gate-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gate-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.date-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.date-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.date-field label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.date-field select {
    width: 72px;
    padding: 12px 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    text-align-last: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%2364748B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
}

.date-field select:focus {
    outline: none;
    border-color: var(--rose-300);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.date-separator {
    font-size: 1.4rem;
    color: var(--rose-300);
    font-weight: 300;
    margin-top: 18px;
}

.gate-btn {
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gate-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0px 6px 24px rgba(0, 0, 0, 0.15);
}

.gate-btn:active {
    transform: scale(0.97);
}

.gate-error {
    font-size: 0.8rem;
    color: #EF4444;
    margin-top: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gate-error.visible {
    opacity: 1;
}

.gate-error.shake {
    animation: gateShake 0.4s ease;
}

@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ========================================
   AUDIO PLAYER - Floating Capsule Style
   ======================================== */

/* ========================================
   AUDIO PLAYER - Floating Capsule Style
   ======================================== */

.audio-player {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    min-width: 280px;
    max-width: 360px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.audio-player::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.0) 0%,
        rgba(255, 255, 255, 0.15) 33%,
        rgba(255, 255, 255, 0.4) 66%,
        rgba(255, 255, 255, 0.0) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.audio-player:hover {
    box-shadow: 0px 16px 60px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%) translateY(-2px);
}

@media (min-width: 1024px) {
    .audio-player {
        bottom: 32px;
        padding: 12px 20px;
        min-width: 320px;
        max-width: 400px;
        gap: 14px;
        box-shadow: 0px 16px 70px rgba(0, 0, 0, 0.75);
    }
}

.audio-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.2);
}

.audio-btn:active {
    transform: scale(0.92);
}

.audio-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 24px;
    padding: 0 4px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.audio-visualizer span {
    display: block;
    width: 3px;
    min-height: 4px;
    height: 4px;
    background: linear-gradient(180deg, var(--rose-400) 0%, var(--sky-400) 100%);
    border-radius: 2px;
    animation: audioWave 0.6s ease-in-out infinite;
}

.audio-visualizer span:nth-child(1) { animation-delay: 0s; }
.audio-visualizer span:nth-child(2) { animation-delay: 0.03s; }
.audio-visualizer span:nth-child(3) { animation-delay: 0.06s; }
.audio-visualizer span:nth-child(4) { animation-delay: 0.09s; }
.audio-visualizer span:nth-child(5) { animation-delay: 0.12s; }
.audio-visualizer span:nth-child(6) { animation-delay: 0.15s; }
.audio-visualizer span:nth-child(7) { animation-delay: 0.18s; }
.audio-visualizer span:nth-child(8) { animation-delay: 0.21s; }
.audio-visualizer span:nth-child(9) { animation-delay: 0.24s; }
.audio-visualizer span:nth-child(10) { animation-delay: 0.27s; }
.audio-visualizer span:nth-child(11) { animation-delay: 0.3s; }
.audio-visualizer span:nth-child(12) { animation-delay: 0.33s; }
.audio-visualizer span:nth-child(13) { animation-delay: 0.36s; }
.audio-visualizer span:nth-child(14) { animation-delay: 0.39s; }
.audio-visualizer span:nth-child(15) { animation-delay: 0.42s; }

.audio-visualizer.paused span {
    animation-play-state: paused;
    height: 4px;
    opacity: 0.4;
}

@keyframes audioWave {
    0%, 100% { height: 5px; }
    50% { height: 22px; }
}

/* ========================================
   LIQUID GLASS EFFECTS
   ======================================== */

.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px) saturate(140%);
    -webkit-backdrop-filter: blur(4px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.0) 0%,
        rgba(255, 255, 255, 0.15) 33%,
        rgba(255, 255, 255, 0.4) 66%,
        rgba(255, 255, 255, 0.0) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 
        0 0 0 0.5px rgba(255, 255, 255, 0.5) inset,
        0 1px 3px rgba(255, 255, 255, 0.25) inset,
        0 1px 4px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.4;
    padding: 1.5px;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Desktop Liquid Glass Fallback */
@media (min-width: 1024px) {
    .glass-card {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(6px) saturate(160%);
        -webkit-backdrop-filter: blur(6px) saturate(160%);
        box-shadow: 0px 16px 70px rgba(0, 0, 0, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.35);
        transition: all 0.3s ease;
    }
    
    .glass-card:hover {
        backdrop-filter: blur(8px) saturate(180%);
        -webkit-backdrop-filter: blur(8px) saturate(180%);
        box-shadow: 0px 20px 80px rgba(0, 0, 0, 0.8);
    }
}

/* High-Resolution Desktop Enhancement */
@media (min-width: 1440px) and (min-resolution: 192dpi) {
    .glass-card {
        backdrop-filter: 
            blur(32px) 
            saturate(220%) 
            brightness(110%);
        -webkit-backdrop-filter: 
            blur(32px) 
            saturate(220%) 
            brightness(110%);
    }
}

.glass-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.0) 0%,
        rgba(255, 255, 255, 0.15) 33%,
        rgba(255, 255, 255, 0.4) 66%,
        rgba(255, 255, 255, 0.0) 100%
    );
    pointer-events: none;
    border-radius: 28px 28px 0 0;
    mix-blend-mode: overlay;
}

.glass-border-glow {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 29px;
    background: transparent;
    box-shadow: 
        0 0 0 0.5px rgba(255, 255, 255, 0.5) inset,
        0 1px 3px rgba(255, 255, 255, 0.25) inset,
        0 1px 4px rgba(0, 0, 0, 0.35);
    z-index: -1;
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    z-index: 2;
}

.hero-card {
    position: relative;
    z-index: 3;
    max-width: 440px;
    width: 100%;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 80px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: 2px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.name-line:nth-child(1) {
    animation-delay: 0.5s;
}

.name-line:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.9s forwards;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose-300), transparent);
}

.heart-icon {
    color: var(--rose-400);
    animation: heartBeat 1.5s ease-in-out infinite;
}

.heart-icon svg {
    width: 24px;
    height: 24px;
}

.heart-interactive {
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.hero-tap-hint {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 12px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
    letter-spacing: 1px;
}

/* Heart explosion */
.floating-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.floating-hearts-container span {
    position: absolute;
    font-size: 24px;
    animation: floatUpHeart 2s ease-out forwards;
    opacity: 0;
}

@keyframes floatUpHeart {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50vh) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.3) rotate(360deg);
    }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

/* ========================================
   COUNTERS
   ======================================== */

.counters {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}

.counter-item {
    padding: 12px 8px;
}

.counter-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.counter-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.counter-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}

.counter-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    min-width: 32px;
    text-align: center;
}

.counter-text {
    font-size: 0.55rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.counter-separator {
    font-size: 1rem;
    color: var(--rose-300);
    font-weight: 300;
    margin: 0 1px;
    align-self: flex-start;
    margin-top: 2px;
}

.counter-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 8px auto;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 80px 20px;
    opacity: 1;
    transform: translateY(0);
}

.section.animate-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px) saturate(140%);
    -webkit-backdrop-filter: blur(4px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Gallery Desktop Liquid Glass Fallback */
@media (min-width: 1024px) {
    .gallery-item {
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(4px) saturate(140%);
        -webkit-backdrop-filter: blur(4px) saturate(140%);
        box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.25);
    }
    
    .gallery-item:hover {
        backdrop-filter: blur(6px) saturate(160%);
        -webkit-backdrop-filter: blur(6px) saturate(160%);
        box-shadow: 0px 16px 60px rgba(0, 0, 0, 0.35);
    }
}

.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.gallery-item:active {
    transform: scale(0.98);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-item.video-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item.video-item::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: var(--text-primary);
    z-index: 1;
    pointer-events: none;
}

.gallery-item.video-item:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================
   LETTER
   ======================================== */

.letter-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 28px;
}

.letter-content {
    position: relative;
    z-index: 1;
}

.letter-paragraph {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: justify;
}

.letter-word {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.letter-word.visible {
    opacity: 1;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: 40px 20px 80px;
}

.footer-glass {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.footer-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.floating-heart {
    color: var(--rose-300);
    font-size: 1rem;
    animation: floatHeart 2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) translateX(var(--x)); opacity: 0.7; }
    50% { transform: translateY(-8px) translateX(var(--x)); opacity: 1; }
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 1;
}

.lightbox-video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 480px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .counter-number {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        gap: 16px;
    }
}

@media (max-width: 360px) {
    .hero-card {
        padding: 32px 20px;
    }
    
    .hero-name {
        font-size: 1.8rem;
    }
    
    .counter-number {
        font-size: 1.2rem;
    }
    
    .counter-unit {
        min-width: 28px;
    }
    
    .gate-content {
        padding: 32px 20px;
    }
    
    .date-field select {
        width: 60px;
        font-size: 1rem;
    }
    
    .audio-player {
        min-width: 240px;
        max-width: 300px;
        padding: 8px 12px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .hero-card {
        padding: 56px 40px;
    }
    
    .letter-container {
        padding: 56px 40px;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--rose-200);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rose-300);
}

/* Selection */
::selection {
    background: var(--rose-200);
    color: var(--text-primary);
}

/* ========================================
   GALLERY LINK
   ======================================== */

.gallery-link-container {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.gallery-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gallery-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rose-200), var(--sky-200));
    border-radius: 12px;
}

.gallery-link-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.gallery-link-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
}

.gallery-link-arrow {
    font-size: 1.5rem;
    color: var(--rose-300);
    transition: transform 0.3s ease;
}

.gallery-link:hover .gallery-link-arrow {
    transform: translateX(4px);
}

/* ========================================
   GALLERY PAGE
   ======================================== */

.gallery-page {
    background: linear-gradient(135deg, var(--sky-50) 0%, #FFFFFF 50%, var(--rose-50) 100%);
    min-height: 100vh;
}

.gallery-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gallery Header Desktop Liquid Glass Fallback */
@media (min-width: 1024px) {
    .gallery-header {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(8px) saturate(160%);
        -webkit-backdrop-filter: blur(8px) saturate(160%);
        box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-4px);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
}

.gallery-main {
    padding: 20px;
}

/* ========================================
   LIQUID GLASS WEB COMPONENT STYLES
   ======================================== */

/* Container for glass-element web components */
.glass-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Desktop enhancements for web component */
@media (min-width: 1024px) {
    .glass-container {
        gap: 32px;
    }
    
    glass-element {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    glass-element:hover {
        transform: translateY(-4px) scale(1.02);
    }
}

/* Liquid Glass Animation Classes */
@keyframes liquidShimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes liquidPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Apply shimmer effect on desktop */
@media (min-width: 1024px) {
    .glass-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%
        );
        background-size: 200% 100%;
        animation: liquidShimmer 8s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
        border-radius: inherit;
    }
}

/* High DPI screens enhancement */
@media (min-width: 1024px) and (min-resolution: 192dpi) {
    .glass-card,
    .gallery-item,
    .audio-btn,
    .gallery-header {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
