/* ============================================
   BIRTHDAY WEBSITE - TATTOO & CIGARETTE THEME
   ============================================ */

/* CSS Custom Properties */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(20, 20, 20, 0.9);
    --text-primary: #e8e8e8;
    --text-secondary: #999;
    --accent-red: #ff2d2d;
    --accent-gold: #d4a736;
    --accent-orange: #ff6b35;
    --accent-ember: #ff4500;
    --accent-smoke: rgba(180, 180, 180, 0.3);
    --accent-ink: #1a1a2e;
    --gradient-fire: linear-gradient(135deg, #ff2d2d, #ff6b35, #d4a736);
    --gradient-dark: linear-gradient(180deg, #0a0a0a, #1a1a1a, #0a0a0a);
    --gradient-card: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.95));
    --font-tattoo: 'Permanent Marker', cursive;
    --font-handwritten: 'Rock Salt', cursive;
    --font-typewriter: 'Special Elite', cursive;
    --font-modern: 'Orbitron', sans-serif;
    --font-decorative: 'Cinzel Decorative', serif;
    --shadow-glow: 0 0 20px rgba(255, 45, 45, 0.3), 0 0 40px rgba(255, 45, 45, 0.1);
    --shadow-gold: 0 0 20px rgba(212, 167, 54, 0.3), 0 0 40px rgba(212, 167, 54, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--bg-primary);
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

html::-webkit-scrollbar-thumb {
    background: var(--accent-red);
    border-radius: 4px;
}

body {
    font-family: var(--font-typewriter);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: url('cigarette.png') 16 16, auto;
    min-height: 100vh;
}

/* Selection Style */
::selection {
    background: var(--accent-red);
    color: #fff;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.skull-loader {
    font-size: 80px;
    animation: skullBounce 1s ease-in-out infinite;
}

@keyframes skullBounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

.loader-text {
    font-family: var(--font-tattoo);
    font-size: 24px;
    color: var(--accent-red);
    margin-top: 20px;
    letter-spacing: 5px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-fire);
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   CANVAS LAYERS
   ============================================ */
#smokeCanvas, #particleCanvas, #emberCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#smokeCanvas { z-index: 2; opacity: 0.6; }
#particleCanvas { z-index: 3; }
#emberCanvas { z-index: 4; }

/* ============================================
   AUDIO BUTTON
   ============================================ */
.audio-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.audio-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   SECTIONS BASE
   ============================================ */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    z-index: 5;
}

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

.section-title {
    font-family: var(--font-tattoo);
    font-size: clamp(28px, 5vw, 48px);
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-handwritten);
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-secondary);
    margin-top: 15px;
    letter-spacing: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: radial-gradient(ellipse at center, rgba(30, 10, 10, 0.8) 0%, var(--bg-primary) 70%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,45,45,0.03) 2px, rgba(255,45,45,0.03) 4px);
    pointer-events: none;
}

.tattoo-border-top, .tattoo-border-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 20px,
        rgba(212, 167, 54, 0.1) 20px,
        rgba(212, 167, 54, 0.1) 22px
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.tattoo-border-top { top: 0; }
.tattoo-border-bottom { bottom: 0; }

.tattoo-border-top::after, .tattoo-border-bottom::after {
    content: '═══════ ☠ ═══════';
    font-size: 16px;
    color: var(--accent-gold);
    letter-spacing: 5px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.cigarette-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-tattoo);
    font-size: clamp(48px, 10vw, 120px);
    line-height: 1.1;
    letter-spacing: 10px;
    position: relative;
    margin-bottom: 30px;
}

.title-line {
    display: block;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.title-line:first-child {
    font-size: 0.6em;
    letter-spacing: 15px;
    opacity: 0;
    animation: slideInTitle 1s ease-out 2.2s forwards, titleGlow 3s ease-in-out 3.2s infinite alternate;
}

.title-line:last-child {
    opacity: 0;
    animation: slideInTitle 1s ease-out 2.5s forwards, titleGlow 3s ease-in-out 3.5s infinite alternate;
}

@keyframes slideInTitle {
    from { opacity: 0; transform: translateY(30px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 45, 45, 0.5)); }
    100% { filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.8)); }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-tattoo);
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-red);
    clip-path: inset(0 0 0 0);
    animation: glitch1 3s infinite linear alternate-reverse;
    -webkit-text-fill-color: transparent;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-gold);
    clip-path: inset(0 0 0 0);
    animation: glitch2 3s infinite linear alternate-reverse;
    -webkit-text-fill-color: transparent;
}

@keyframes glitch1 {
    0%, 95% { clip-path: inset(0 0 100% 0); }
    96% { clip-path: inset(20% 0 60% 0); }
    97% { clip-path: inset(50% 0 20% 0); }
    98% { clip-path: inset(80% 0 5% 0); }
    99% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

@keyframes glitch2 {
    0%, 95% { clip-path: inset(100% 0 0 0); }
    96% { clip-path: inset(30% 0 40% 0); }
    97% { clip-path: inset(60% 0 10% 0); }
    98% { clip-path: inset(5% 0 85% 0); }
    99% { clip-path: inset(40% 0 30% 0); }
    100% { clip-path: inset(100% 0 0 0); }
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 3s forwards;
}

.divider-line {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gradient-fire);
    animation: expandLine 1s ease-out 3.2s forwards;
    transform: scaleX(0);
}

@keyframes expandLine {
    to { transform: scaleX(1); }
}

.divider-icon {
    font-size: 30px;
    animation: spin 10s linear infinite;
}

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

.hero-name {
    font-family: var(--font-decorative);
    font-size: clamp(28px, 5vw, 56px);
    color: var(--accent-gold);
    text-shadow: 0 0 30px rgba(212, 167, 54, 0.5);
    letter-spacing: 5px;
    margin: 20px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3.5s forwards;
}

.hero-date {
    font-family: var(--font-modern);
    font-size: clamp(16px, 3vw, 28px);
    color: var(--text-secondary);
    letter-spacing: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 4s forwards;
}

.date-icon {
    animation: pulse 2s ease-in-out infinite;
}

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

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s ease-out 4.5s forwards;
}

.scroll-indicator span {
    font-family: var(--font-typewriter);
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 3px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--accent-red);
    border-bottom: 2px solid var(--accent-red);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

/* ============================================
   TATTOO / WISHES SECTION
   ============================================ */
.tattoo-section {
    background: var(--gradient-dark);
    position: relative;
}

.tattoo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 45, 45, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 167, 54, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.wish-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 45, 45, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.wish-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.wish-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.wish-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 45, 45, 0.1),
        transparent,
        rgba(212, 167, 54, 0.1),
        transparent
    );
    animation: cardRotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.wish-card:hover::before {
    opacity: 1;
}

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

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(circle at center, rgba(255, 45, 45, 0.1), transparent 70%);
}

.wish-card:hover .card-glow {
    opacity: 1;
}

.wish-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

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

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

.wish-content h3 {
    font-family: var(--font-tattoo);
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.wish-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   COUNTER SECTION
   ============================================ */
.counter-section {
    background: var(--bg-secondary);
    position: relative;
}

.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff2d2d' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    padding: 0 20px;
}

.counter-item {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 45, 45, 0.15);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.counter-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: var(--shadow-glow);
}

.counter-number {
    font-family: var(--font-modern);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    background: var(--gradient-fire);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.counter-label {
    font-family: var(--font-tattoo);
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.counter-smoke {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 45, 45, 0.05), transparent);
    pointer-events: none;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
    background: var(--gradient-dark);
    padding: 100px 20px;
}

.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--accent-red), var(--accent-gold), var(--accent-red), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.right {
    margin-left: 50%;
    transform: translateX(50px);
}

.timeline-item.right.visible {
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item.left .timeline-dot {
    right: -25px;
    top: 30px;
}

.timeline-item.right .timeline-dot {
    left: -25px;
    top: 30px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.timeline-content {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 45, 45, 0.2);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-gold);
}

.timeline-content h3 {
    font-family: var(--font-tattoo);
    font-size: 28px;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ============================================
   CAKE SECTION
   ============================================ */
.cake-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cake-container {
    text-align: center;
}

.cake {
    display: inline-block;
    position: relative;
    margin-bottom: 30px;
}

.candles {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 10px;
}

.candle {
    width: 8px;
    height: 50px;
    background: linear-gradient(to bottom, #fff5cc, var(--accent-gold));
    border-radius: 4px 4px 0 0;
    position: relative;
}

.flame {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: flicker 0.5s ease-in-out infinite alternate;
    transition: all 0.5s ease;
}

.flame.blown {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-5deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(5deg); }
}

.cake-top {
    font-size: 120px;
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.3));
    animation: cakeFloat 3s ease-in-out infinite;
}

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

.cake-body {
    margin-top: 10px;
}

.cake-text {
    font-family: var(--font-handwritten);
    font-size: clamp(16px, 3vw, 24px);
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 167, 54, 0.5);
}

.blow-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--accent-red);
    color: var(--text-primary);
    font-family: var(--font-tattoo);
    font-size: 20px;
    cursor: pointer;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    letter-spacing: 2px;
}

.blow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-fire);
    transition: left 0.4s ease;
    z-index: -1;
}

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

.blow-btn:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.blow-btn.blown {
    border-color: var(--accent-gold);
    background: var(--gradient-fire);
    pointer-events: none;
}

.cake-message {
    margin-top: 30px;
    font-family: var(--font-decorative);
    font-size: clamp(20px, 4vw, 36px);
    color: var(--accent-gold);
    text-shadow: var(--shadow-gold);
    animation: fadeInUp 1s ease-out;
}

.cake-message p {
    animation: celebration 1s ease-in-out infinite;
}

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

.hidden {
    display: none !important;
}

/* ============================================
   FINAL SECTION
   ============================================ */
.final-section {
    background: radial-gradient(ellipse at center, rgba(30, 10, 10, 0.8) 0%, var(--bg-primary) 70%);
    position: relative;
    overflow: hidden;
}

.final-content {
    max-width: 700px;
    width: 100%;
    z-index: 10;
    position: relative;
}

.tattoo-frame {
    position: relative;
    padding: 50px;
    border: 2px solid rgba(212, 167, 54, 0.3);
    border-radius: 20px;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--accent-gold);
}

.frame-corner.top-left {
    top: -2px;
    left: -2px;
    border-top: 3px solid var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.frame-corner.top-right {
    top: -2px;
    right: -2px;
    border-top: 3px solid var(--accent-gold);
    border-right: 3px solid var(--accent-gold);
}

.frame-corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom: 3px solid var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.frame-corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid var(--accent-gold);
    border-right: 3px solid var(--accent-gold);
}

.final-message {
    text-align: center;
}

.msg-icon {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.final-message h2 {
    font-family: var(--font-decorative);
    font-size: clamp(28px, 5vw, 42px);
    color: var(--accent-gold);
    margin-bottom: 25px;
    text-shadow: var(--shadow-gold);
}

.final-text {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.signature {
    font-family: var(--font-handwritten);
    font-size: clamp(14px, 2vw, 18px);
    color: var(--accent-red);
    margin-top: 20px;
    opacity: 0.8;
}

/* Fireworks Container */
.fireworks-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 24px;
    left: var(--x);
    animation: floatUp 15s linear infinite;
    animation-delay: var(--delay);
    opacity: 0.15;
}

@keyframes floatUp {
    0% {
        bottom: -50px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% {
        bottom: 110vh;
        transform: translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   CURSOR TRAIL
   ============================================ */
#cursorTrail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.trail-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    pointer-events: none;
    animation: trailFade 1s ease-out forwards;
    box-shadow: 0 0 10px var(--accent-red), 0 0 20px rgba(255, 45, 45, 0.5);
}

@keyframes trailFade {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

/* ============================================
   INK REVEAL ANIMATION
   ============================================ */
.ink-reveal {
    position: relative;
    overflow: hidden;
}

.ink-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    transform: translateX(-101%);
}

.ink-reveal.revealed::after {
    animation: inkReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes inkReveal {
    0% { transform: translateX(-101%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(101%); }
}

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

/* Tablet */
@media (max-width: 1024px) {
    .wishes-container {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 60px 15px;
    }

    .hero-title {
        letter-spacing: 5px;
    }

    .title-line:first-child {
        letter-spacing: 8px;
    }

    .tattoo-border-top::after,
    .tattoo-border-bottom::after {
        content: '═══ ☠ ═══';
        font-size: 12px;
    }

    .wishes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wish-card {
        padding: 30px 20px;
    }

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

    .counter-item {
        padding: 25px 15px;
    }

    /* Timeline Mobile */
    .timeline::before {
        left: 25px;
    }

    .timeline-item {
        width: 100%;
        padding: 20px 20px 20px 70px;
    }

    .timeline-item.right {
        margin-left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 0;
        right: auto;
    }

    /* Cake */
    .cake-top {
        font-size: 80px;
    }

    .candles {
        gap: 15px;
    }

    .candle {
        height: 35px;
    }

    .flame {
        font-size: 18px;
        top: -22px;
    }

    /* Final */
    .tattoo-frame {
        padding: 30px 20px;
    }

    .msg-icon {
        font-size: 30px;
    }

    /* Floating elements smaller on mobile */
    .float-item {
        font-size: 18px;
        opacity: 0.1;
    }

    .audio-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        top: 15px;
        right: 15px;
    }

    .hero-divider {
        gap: 10px;
    }

    .divider-line {
        width: 40px;
    }

    .hero-date {
        letter-spacing: 4px;
    }

    .scroll-indicator {
        bottom: 70px;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        letter-spacing: 3px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .candles {
        gap: 10px;
    }
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9998;
    animation: confettiFall linear forwards;
}

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

/* Sparkle effect on text */
@keyframes sparkle {
    0%, 100% { opacity: 1; text-shadow: 0 0 5px var(--accent-gold); }
    50% { opacity: 0.8; text-shadow: 0 0 20px var(--accent-gold), 0 0 40px var(--accent-red); }
}

/* ============================================
   TATTOO PATTERN OVERLAY (subtle)
   ============================================ */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 45, 45, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(212, 167, 54, 0.02) 0%, transparent 50%);
}

/* Neon text effect for special elements */
.neon-text {
    color: var(--accent-red);
    text-shadow:
        0 0 7px var(--accent-red),
        0 0 10px var(--accent-red),
        0 0 21px var(--accent-red),
        0 0 42px var(--accent-orange),
        0 0 82px var(--accent-orange),
        0 0 92px var(--accent-orange);
    animation: neonFlicker 1.5s infinite alternate;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow:
            0 0 7px var(--accent-red),
            0 0 10px var(--accent-red),
            0 0 21px var(--accent-red),
            0 0 42px var(--accent-orange),
            0 0 82px var(--accent-orange);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}
