:root {
    --bg-color: #06050a;
    --text-main: #fcfcfc;
    --text-muted: #a8a0b0;
    --accent: #e8c4a0;
    --accent-glow: rgba(232, 196, 160, 0.4);
    --accent-deep: #c9956a;
    --rose: #e8a0b8;
    --rose-glow: rgba(232, 160, 184, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-accent: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body, a, button, input {
    cursor: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--rose));
    z-index: 10002;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0.4;
}

body.cursor-hover #custom-cursor {
    width: 50px;
    height: 50px;
    background: rgba(232, 196, 160, 0.15);
    border: 1px solid var(--accent);
    mix-blend-mode: normal;
    backdrop-filter: blur(2px);
}

body.cursor-hover #cursor-trail {
    opacity: 0;
    width: 70px;
    height: 70px;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: auroraShift 12s ease-in-out infinite alternate;
}

.aurora-1 {
    width: 60vw;
    height: 60vw;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(232, 160, 184, 0.5) 0%, transparent 70%);
    animation-delay: 0s;
}

.aurora-2 {
    width: 50vw;
    height: 50vw;
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(232, 196, 160, 0.4) 0%, transparent 70%);
    animation-delay: -4s;
}

.aurora-3 {
    width: 40vw;
    height: 40vw;
    top: 40%;
    left: 30%;
    background: radial-gradient(circle, rgba(180, 140, 220, 0.25) 0%, transparent 70%);
    animation-delay: -8s;
}

@keyframes auroraShift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5vw, 3vh) scale(1.1); }
    100% { transform: translate(-3vw, -2vh) scale(0.95); }
}

/* Starfield */
#starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: var(--opacity, 0.5);
}

@keyframes twinkle {
    0%, 100% { opacity: var(--opacity, 0.3); transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Fireflies */
#firefly-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.firefly {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--accent), 0 0 20px 5px var(--accent-glow);
    opacity: 0;
    animation: drift linear infinite;
}

@keyframes drift {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-50vh) translateX(30px) scale(1.5); opacity: 0.8; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) translateX(-30px) scale(0.5); opacity: 0; }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='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)'/%3E%3C/svg%3E");
}

#main-content {
    position: relative;
    z-index: 2;
}

.hidden {
    display: none !important;
}

/* Floating Nav */
.floating-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 1s 2s forwards;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(232, 196, 160, 0.4);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::after {
    content: attr(aria-label);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-dot:hover::after,
.nav-dot.active::after {
    opacity: 1;
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: scale(1.3);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(232, 160, 184, 0.15);
    top: 20%;
    left: 10%;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(232, 196, 160, 0.12);
    bottom: 15%;
    right: 10%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInDown 1s 0.3s forwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--rose);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 160, 184, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(232, 160, 184, 0); }
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInDown 1s 0.5s forwards;
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.title-line:nth-child(1) {
    animation: fadeInDown 1.2s 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    font-style: normal;
    color: var(--text-main);
}

.title-line:nth-child(2) {
    animation: fadeInDown 1.2s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    font-style: italic;
    background: linear-gradient(135deg, var(--accent) 0%, var(--rose) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInDown 1.2s 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, shimmer 4s linear infinite;
}

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

.description {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    min-height: 3em;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.hero-hearts {
    font-size: 1.2rem;
    letter-spacing: 12px;
    opacity: 0;
    animation: fadeIn 1s 2s forwards, floatHearts 3s ease-in-out infinite 2s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 1s 2.5s forwards;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.arrow {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent) 0%, transparent 100%);
    animation: pulseArrow 2s infinite;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 6px 16px;
    border: 1px solid rgba(232, 196, 160, 0.2);
    border-radius: 20px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
}

/* Counter Section */
.counter-section {
    padding: 8rem 2rem;
    position: relative;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.counter-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.counter-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 196, 160, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--accent-glow);
}

.counter-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.counter-subtext {
    text-align: center;
    margin-top: 3rem;
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Timeline */
.timeline-section {
    padding: 6rem 2rem 8rem;
    position: relative;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--rose), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -60px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--rose));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1018;
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(8px);
    border-color: rgba(232, 196, 160, 0.25);
}

.timeline-year {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Gallery */
.gallery-section {
    padding: 4rem 0 6rem;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 420px;
    perspective: 1500px;
    -webkit-perspective: 1500px;
    opacity: 0;
    transition: opacity 1s ease-out;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.flip-card.is-flipped {
    z-index: 20;
}

.flip-card.visible {
    opacity: 1;
}

.flip-card:nth-child(3n+2) {
    height: 460px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
}

.flip-card-front {
    background: linear-gradient(145deg, #fff 0%, #f5f0eb 100%);
    padding: 14px 14px 55px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    z-index: 2;
}

.flip-card-front::after {
    content: '♡ tap to read';
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-style: italic;
    color: #999;
    letter-spacing: 1px;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.02);
}

.flip-card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background: linear-gradient(160deg, #1a1525 0%, #0d0b12 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid rgba(232, 196, 160, 0.25);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
    overflow: auto;
    z-index: 1;
}

.flip-card-back::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 0;
    margin-bottom: 1rem;
}

.flip-card-back p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1.8;
}

.card-expand-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
}

.card-expand-btn:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.1);
}

/* Letter Section */
.letter-section {
    padding: 6rem 2rem 8rem;
    display: flex;
    justify-content: center;
}

.letter-wrapper {
    max-width: 600px;
    width: 100%;
    min-height: 400px;
    position: relative;
}

.letter-envelope {
    background: linear-gradient(145deg, #2a2035 0%, #1a1525 100%);
    border: 1px solid rgba(232, 196, 160, 0.2);
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.letter-envelope.hidden-envelope {
    transform: scale(0.8) translateY(-30px);
    opacity: 0;
    pointer-events: none;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(232, 196, 160, 0.15) 0%, transparent 100%);
    clip-path: polygon(0 0, 50% 70%, 100% 0);
}

.envelope-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--accent);
    display: block;
    margin-bottom: 2rem;
}

.open-letter-btn,
.close-letter-btn {
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.open-letter-btn:hover,
.close-letter-btn:hover {
    background: var(--accent);
    color: #1a1018;
    box-shadow: 0 10px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.letter-paper {
    background: linear-gradient(180deg, #faf6f0 0%, #f0ebe3 100%);
    border-radius: 4px;
    padding: 3rem 2.5rem;
    color: #2a2035;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform-origin: top center;
    animation: unfoldLetter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.letter-paper.hidden {
    display: none;
}

@keyframes unfoldLetter {
    from {
        opacity: 0;
        transform: rotateX(-15deg) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: rotateX(0) translateY(0);
    }
}

.letter-wax-seal {
    position: absolute;
    top: -20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, var(--rose) 0%, #c4708a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(196, 112, 138, 0.5);
}

.letter-date {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.letter-paper h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #2a2035;
}

.letter-paper p {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: #444;
}

.letter-signoff {
    margin-top: 2rem !important;
    font-size: 1.2rem !important;
}

.close-letter-btn {
    margin-top: 2rem;
    border-color: #c9956a;
    color: #c9956a;
}

.close-letter-btn:hover {
    background: #c9956a;
    color: white;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6, 5, 10, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

#lightbox-caption {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent);
    margin-top: 1.5rem;
    max-width: 600px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-prev {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    color: #1a1018;
    border-color: var(--accent);
}

/* Confetti */
#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 30000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* Login Screen */
.login-screen {
    position: fixed;
    inset: 0;
    background: #040308;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.5s;
}

.login-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
}

.login-card {
    background: rgba(15, 13, 20, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 3rem;
    border-radius: 28px;
    text-align: center;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 2;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.login-ring {
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    background: conic-gradient(from 0deg, transparent, var(--accent), var(--rose), transparent);
    z-index: -1;
    animation: spinRing 6s linear infinite;
    opacity: 0.4;
}

.login-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 26px;
    background: rgba(15, 13, 20, 0.95);
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.login-badge {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.login-card h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-style: italic;
}

.login-card > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px var(--accent-glow);
}

.login-card button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #f0cba1 100%);
    color: #1a1018;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: var(--font-body);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-card button:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px var(--accent-glow);
}

.error-message {
    color: #ff6b8a !important;
    font-size: 0.85rem !important;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem !important;
    display: none;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
    40%, 60% { transform: translate3d(6px, 0, 0); }
}

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

.floating-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -20px;
    font-size: 1.5rem;
    color: rgba(232, 196, 160, 0.35);
    animation: floatHeart linear infinite;
}

@keyframes floatHeart {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5) rotate(360deg); opacity: 0; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 4rem 2rem 5rem;
    position: relative;
    z-index: 2;
}

.footer-hearts {
    font-size: 0.8rem;
    letter-spacing: 16px;
    color: var(--rose);
    opacity: 0.6;
    margin-bottom: 1rem;
    animation: floatHearts 4s ease-in-out infinite;
}

.footer p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(168, 160, 176, 0.6);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInDown {
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseArrow {
    0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.5; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* Mobile */
@media (max-width: 768px) {
    .floating-nav {
        right: 12px;
        gap: 10px;
    }

    .nav-dot::after {
        display: none;
    }

    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .counter-card {
        padding: 1.5rem 1rem;
    }

    .timeline {
        padding-left: 50px;
    }

    .timeline-marker {
        left: -50px;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flip-card,
    .flip-card:nth-child(3n+2) {
        height: 380px;
    }

    .login-card {
        padding: 2.5rem 1.5rem;
    }

    .login-card h2 {
        font-size: 2rem;
    }

    .letter-paper {
        padding: 2rem 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    #custom-cursor, #cursor-trail {
        display: none !important;
    }

    body, a, button, input {
        cursor: auto !important;
    }
}
