:root {
    /* Romantic Valentine Color Palette */
    --bg-primary: #0f0a0f;
    --bg-secondary: #1a1218;
    --bg-accent: #2d1f2a;
    --text-primary: #fff5f8;
    --text-secondary: #f5d7e3;
    --accent-pink: #ff6b9d;
    --accent-rose: #ff8fab;
    --accent-gold: #ffd700;
    --accent-gold-light: #ffe55c;
    --accent-red: #ff4757;
    --accent-red-light: #ff6b7a;
    --glass-bg: rgba(255, 107, 157, 0.08);
    --glass-border: rgba(255, 107, 157, 0.2);
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-border-light: rgba(255, 255, 255, 0.1);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Vazirmatn', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 139, 171, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Password Gate */
.password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0f0a0f 0%, #1a1218 50%, #2d1f2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.6s ease-in;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.gate-content {
    text-align: center;
    padding: var(--spacing-md);
    max-width: 400px;
    width: 100%;
}

.gate-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-rose) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    animation: slideDown 0.8s ease-out;
    letter-spacing: 2px;
}

.gate-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    animation: slideDown 0.8s ease-out 0.2s both;
    font-weight: 300;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    animation: slideDown 0.8s ease-out 0.4s both;
}

.password-input {
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.2);
    background: rgba(255, 107, 157, 0.12);
}

.password-submit {
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.6);
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-pink) 100%);
}

.password-error {
    color: var(--accent-gold-light);
    font-size: 1rem;
    margin-top: var(--spacing-sm);
    min-height: 1.5rem;
    animation: shake 0.5s ease;
    font-weight: 400;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-sm) 0;
    background: rgba(15, 10, 15, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 107, 157, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(255, 215, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-pink) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 4px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.hero-divider {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-pink), var(--accent-gold), var(--accent-pink), transparent);
    margin: var(--spacing-md) auto;
    border-radius: 2px;
    animation: shimmer 3s ease-in-out infinite;
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: 'â¤ï¸';
    display: block;
    font-size: 0.6em;
    margin-top: var(--spacing-xs);
    opacity: 0.7;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Timeline Section */
.timeline-section {
    background: var(--bg-secondary);
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 157, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.timeline-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transition: left 0.5s ease;
}

.timeline-card:hover::before {
    left: 100%;
}

.timeline-card:nth-child(1) { animation-delay: 0.1s; }
.timeline-card:nth-child(2) { animation-delay: 0.2s; }
.timeline-card:nth-child(3) { animation-delay: 0.3s; }
.timeline-card:nth-child(4) { animation-delay: 0.4s; }

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-pink);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.3);
    background: rgba(255, 107, 157, 0.12);
}

.timeline-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-pink);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.timeline-card-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-primary);
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out both;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
    border-color: var(--accent-pink);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item::after {
    content: 'â¤ï¸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 10, 15, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.5);
}

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

.lightbox-prev {
    left: 20px;
    font-size: 3.5rem;
    line-height: 1;
}

.lightbox-next {
    right: 20px;
    font-size: 3.5rem;
    line-height: 1;
}

/* Video Section - Fresh Clean Design */
.video-section {
    background: var(--bg-secondary);
    position: relative;
    padding: var(--spacing-xl) 0;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.video-display-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.video-frame {
    position: relative;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.12) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 28px;
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 107, 157, 0.25),
        inset 0 0 50px rgba(255, 107, 157, 0.08);
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.4s ease;
    max-width: 950px;
    width: 100%;
}

.video-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-gold), var(--accent-pink));
    border-radius: 28px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.video-frame:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 90px rgba(255, 107, 157, 0.5),
        0 0 0 1px rgba(255, 107, 157, 0.4),
        inset 0 0 70px rgba(255, 107, 157, 0.15);
}

.video-frame:hover::before {
    opacity: 0.4;
}

.video-element {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    background: transparent;
}

/* Video controls - always horizontal at bottom */
.video-element::-webkit-media-controls-enclosure {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    z-index: 100 !important;
}

.video-element::-webkit-media-controls-panel {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 50%, transparent 100%) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
}


/* Letter Section */
.letter-section {
    background: var(--bg-primary);
    position: relative;
}

.letter-card {
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 139, 171, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
}

.letter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.letter-text {
    font-family: var(--font-body);
    font-size: 1.3rem;
    line-height: 2.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.letter-signature {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    margin-top: var(--spacing-md);
    font-weight: 600;
}

/* Surprise Section */
.surprise-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: var(--spacing-xl) 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.surprise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.12) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 5s ease-in-out infinite;
}

.surprise-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.surprise-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    letter-spacing: 2px;
}

.button-container {
    position: relative;
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    min-height: 80px;
    transition: all 0.5s ease;
}

.surprise-btn {
    padding: 1.4rem 3.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.yes-btn {
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-rose) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.5);
}

.yes-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 35px rgba(255, 107, 157, 0.7);
    background: linear-gradient(135deg, var(--accent-rose) 0%, var(--accent-pink) 100%);
}

.yes-btn.glow {
    animation: pulseGlow 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.9);
}

.no-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    transition: all 0.1s ease;
}

.no-btn:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: var(--accent-pink);
}

.no-btn.shrink {
    transform: scale(0.7);
    opacity: 0.7;
}

.no-btn[style*="font-size"] {
    white-space: nowrap;
    padding: 1rem 1.5rem;
    text-align: center;
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.3;
}

.surprise-message {
    margin-top: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
}

.surprise-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.final-message {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 7vw, 4rem);
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-rose) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    animation: messageGlow 3s ease-in-out infinite;
    position: relative;
    padding: var(--spacing-md) var(--spacing-lg);
    letter-spacing: 1px;
}

.final-message::before {
    content: '✨';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.final-message::after {
    content: '✨';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    animation: sparkle 2s ease-in-out infinite 0.5s;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.final-message-persian {
    font-family: var(--font-body);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: var(--spacing-md);
    font-weight: 600;
    text-align: center;
    animation: messageGlow 3s ease-in-out infinite 0.3s;
    padding: var(--spacing-sm);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.final-message-persian::before {
    content: '❤️';
    margin-left: var(--spacing-sm);
    animation: heartbeat 2s ease-in-out infinite;
    display: inline-block;
}

.final-message-persian::after {
    content: '❤️';
    margin-right: var(--spacing-sm);
    animation: heartbeat 2s ease-in-out infinite 0.5s;
    display: inline-block;
}

@keyframes messageGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}

/* Confetti */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3000;
}

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

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 107, 157, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 107, 157, 1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

@keyframes messageGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 15px rgba(255, 107, 157, 0.4));
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    }
    50% {
        filter: brightness(1.4) drop-shadow(0 0 25px rgba(255, 107, 157, 0.7));
        text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.9) rotate(0deg);
    }
    25% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.5) rotate(180deg);
    }
    75% {
        opacity: 0.8;
        transform: translateY(-50%) scale(1.2) rotate(270deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gate-title {
        font-size: 2.5rem;
    }

    .hero {
        min-height: 85vh;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        min-height: 150px;
    }

    .surprise-btn {
        width: 100%;
        max-width: 280px;
    }

    .letter-card {
        padding: var(--spacing-md);
    }

    .letter-text {
        font-size: 1.1rem;
        line-height: 2.2;
    }

    .final-message {
        font-size: clamp(1.8rem, 6vw, 3rem);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .final-message::before,
    .final-message::after {
        font-size: 1.2em;
        left: -20px;
        right: -20px;
    }

    .final-message-persian {
        font-size: clamp(1.1rem, 3.5vw, 1.5rem);
        white-space: nowrap;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 2.5rem;
    }

    .lightbox-close {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) 0;
    }

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

    .gate-title {
        font-size: 2rem;
    }
}
