/* ============================================
   SAJEDA & ABDULHALIM - ROMANTIC LOVE STORY
   Cinematic, Animated, Bilingual (AR/EN)
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rose: #ff6987;
    --rose-light: #ffb6c1;
    --rose-dark: #d4456a;
    --rose-gold: #b76e79;
    --gold: #d4af37;
    --gold-light: #f0d68a;
    --cream: #fdf6ee;
    --blush: #fff0f3;
    --purple: #9b59b6;
    --purple-dark: #2d1f4e;
    --twilight: #1a1030;
    --twilight-mid: #2d1f4e;
    --warm-dark: #1e1418;
    --text-light: rgba(255,255,255,0.92);
    --text-soft: rgba(255,255,255,0.65);
    --text-muted: rgba(255,255,255,0.4);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background: #0a0610;
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(ellipse at center, #1a1030 0%, #0a0610 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-heart {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.heart-svg {
    width: 100%;
    height: 100%;
}

.heart-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawHeart 3s ease forwards;
}

@keyframes drawHeart {
    to { stroke-dashoffset: 0; }
}

.preloader-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-soft);
    margin-bottom: 40px;
    animation: fadeInUp 1.5s ease 1s both;
}

.enter-button {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-light);
    background: transparent;
    border: 1px solid rgba(255,182,193,0.4);
    padding: 14px 40px;
    cursor: pointer;
    transition: all 0.5s ease;
    animation: fadeInUp 1.5s ease 1.8s both;
    position: relative;
    overflow: hidden;
}

.enter-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,105,135,0.15), rgba(255,182,193,0.1));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.enter-button:hover {
    border-color: var(--rose);
    color: #fff;
    box-shadow: 0 0 30px rgba(255,105,135,0.2);
}

.enter-button:hover::before {
    transform: translateX(0);
}

/* --- Particles Canvas --- */
#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --- Floating Hearts --- */
#floating-hearts {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -30px;
    opacity: 0;
    animation: floatHeart var(--float-duration, 8s) ease-in var(--float-delay, 0s) forwards;
    font-size: var(--heart-size, 18px);
    color: var(--heart-color, rgba(255,105,135,0.5));
    filter: blur(0.5px);
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: var(--heart-opacity, 0.6);
        transform: translateY(-10vh) translateX(10px) rotate(15deg) scale(1);
    }
    50% {
        opacity: var(--heart-opacity, 0.6);
        transform: translateY(-50vh) translateX(-20px) rotate(-10deg) scale(0.9);
    }
    90% {
        opacity: 0.1;
        transform: translateY(-95vh) translateX(15px) rotate(20deg) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translateY(-105vh) translateX(0) rotate(25deg) scale(0.4);
    }
}

/* --- Language Toggle --- */
.lang-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10001;
    height: 42px;
    padding: 0 18px;
    border-radius: 21px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease 2s both;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
    border-color: rgba(255,182,193,0.3);
}

.lang-text, .lang-text-alt {
    font-family: 'Tajawal', 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.lang-text-alt {
    color: rgba(255,255,255,0.4);
}

.lang-divider {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.lang-btn.ar-active .lang-text {
    color: var(--rose-light);
}

.lang-btn.en-active .lang-text-alt {
    color: var(--rose-light);
}

/* --- Audio Button --- */
.audio-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.audio-btn.visible {
    opacity: 1;
}

.audio-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.08);
}

.audio-btn svg {
    width: 20px;
    height: 20px;
    fill: rgba(255,255,255,0.7);
    position: relative;
    z-index: 2;
}

.audio-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255,105,135,0.4);
    animation: audioPulse 2s ease-in-out infinite;
    opacity: 0;
}

.audio-btn.playing .audio-pulse {
    opacity: 1;
}

@keyframes audioPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0; }
}

/* --- Navigation Dots --- */
#nav-dots {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#nav-dots.visible {
    opacity: 1;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.nav-dot.active {
    background: var(--rose-light);
    box-shadow: 0 0 12px rgba(255,182,193,0.5);
    transform: scale(1.3);
}

.nav-dot span {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-soft);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-dot:hover span {
    opacity: 1;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

.scroll-indicator.fade-out {
    opacity: 0;
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 11px;
    margin: 0 auto 8px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

.scroll-indicator p {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* --- Story Sections --- */
.story-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    width: 100%;
}

/* --- Cinematic Typography --- */
.cinematic-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    line-height: 1.35;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    margin-bottom: 8px;
}

.cinematic-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.cinematic-title.delay-1 { transition-delay: 0.4s; }
.cinematic-title.delay-2 { transition-delay: 0.8s; }

.cinematic-title.highlight {
    color: var(--rose-light);
    font-style: italic;
}

.golden-text {
    color: var(--gold-light) !important;
    text-shadow: 0 0 30px rgba(212,175,55,0.3);
}

.section-heading {
    margin-bottom: 50px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
#section-hero {
    background: radial-gradient(ellipse at 50% 30%, #1a1040 0%, #0a0610 70%);
    min-height: 100vh;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,105,135,0.06) 0%, transparent 70%);
    animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-name {
    font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    color: var(--text-light);
    opacity: 0;
    text-shadow: 0 0 40px rgba(255,182,193,0.3);
}

.name-left {
    animation: nameRevealLeft 1.5s ease 0.5s forwards;
}

.name-right {
    animation: nameRevealRight 1.5s ease 1s forwards;
}

@keyframes nameRevealLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes nameRevealRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: heartAppear 1s ease 1.5s forwards;
}

.hero-heart-svg {
    width: clamp(40px, 8vw, 65px);
    height: auto;
}

.hero-heart-path {
    animation: heroHeartBeat 1.5s ease-in-out infinite;
}

@keyframes heartAppear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes heroHeartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-soft);
    opacity: 0;
    animation: fadeInUp 1.5s ease 2s forwards;
    letter-spacing: 2px;
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid rgba(255,182,193,0.6);
    animation: fadeInUp 1.5s ease 2s forwards, typewriterBlink 0.8s ease-in-out infinite 2s;
    max-width: 0;
}

.typewriter.animate {
    max-width: 100%;
    animation: typewriterExpand 3s steps(40, end) 2.5s forwards, typewriterBlink 0.8s ease-in-out infinite 2s;
    opacity: 1;
}

@keyframes typewriterExpand {
    from { max-width: 0; }
    to { max-width: 600px; }
}

@keyframes typewriterBlink {
    0%, 100% { border-color: rgba(255,182,193,0.6); }
    50% { border-color: transparent; }
}

.hero-scroll-hint {
    margin-top: 60px;
    opacity: 0;
    animation: fadeIn 1s ease 3.5s forwards;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.3);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* Stars */
.stars-container, .stars-container-2 {
    position: absolute;
    inset: 0;
}

.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(100,60,180,0.08) 0%,
        rgba(255,105,135,0.04) 50%,
        transparent 100%);
    animation: auroraShift 12s ease-in-out infinite alternate;
}

@keyframes auroraShift {
    0% { opacity: 0.5; transform: translateX(-5%); }
    100% { opacity: 1; transform: translateX(5%); }
}

/* ============================================
   SECTION 2: THE BEGINNING / MAP
   ============================================ */
#section-beginning {
    background: radial-gradient(ellipse at 50% 30%, #1a1040 0%, #0a0610 70%);
}

.map-container {
    margin-bottom: 40px;
}

.europe-map {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.country {
    fill: rgba(255,255,255,0.04);
    stroke: rgba(255,255,255,0.12);
    stroke-width: 1;
    transition: all 1s ease;
}

.country.germany { animation: countryGlow 4s ease-in-out infinite alternate; }
.country.luxembourg { animation: countryGlow 4s ease-in-out 2s infinite alternate; }

@keyframes countryGlow {
    0% { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.12); }
    100% { fill: rgba(255,105,135,0.08); stroke: rgba(255,182,193,0.3); }
}

.country-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    fill: rgba(255,255,255,0.45);
    text-anchor: middle;
    letter-spacing: 2px;
}

.lux-label { font-size: 11px; }

.city-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 400;
    fill: var(--rose-light);
    text-anchor: middle;
    letter-spacing: 1px;
    opacity: 0.8;
}

.city-dot {
    fill: var(--rose-light);
    opacity: 0.8;
    animation: dotPulse 2s ease-in-out infinite;
}

.lux-dot { animation-delay: 1s; }

@keyframes dotPulse {
    0%, 100% { r: 5; opacity: 0.8; }
    50% { r: 7; opacity: 1; }
}

.connection-line {
    stroke: var(--rose);
    stroke-width: 2;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    filter: drop-shadow(0 0 6px rgba(255,105,135,0.5));
    transition: stroke-dashoffset 3s ease;
}

.connection-line.drawn { stroke-dashoffset: 0; }

.traveling-dot {
    filter: drop-shadow(0 0 4px rgba(255,105,135,0.8));
}

.midpoint-heart {
    opacity: 0;
    transition: opacity 1.5s ease 2.5s;
    filter: drop-shadow(0 0 8px rgba(255,105,135,0.6));
}

.midpoint-heart.visible { opacity: 1; }

.midpoint-heart path {
    animation: heartPulseSmall 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartPulseSmall {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.distance-label {
    margin-top: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: 2px;
}

.distance-arrow {
    color: var(--rose);
    font-size: 1.8rem;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scaleX(1); opacity: 0.6; }
    50% { transform: scaleX(1.3); opacity: 1; }
}

/* ============================================
   SECTION 3: TIMELINE
   ============================================ */
#section-timeline {
    background: radial-gradient(ellipse at 50% 50%, #201520 0%, #0a0610 70%);
    min-height: 100vh;
}

.floating-lights {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-lights::before,
.floating-lights::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatLight 10s ease-in-out infinite alternate;
}

.floating-lights::before {
    background: rgba(255,105,135,0.06);
    top: 20%;
    left: 20%;
}

.floating-lights::after {
    background: rgba(180,130,255,0.05);
    bottom: 20%;
    right: 20%;
    animation-delay: 5s;
    animation-direction: alternate-reverse;
}

@keyframes floatLight {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.2); }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255,105,135,0.3) 10%, rgba(255,105,135,0.3) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(255,105,135,0.15) 10%, rgba(255,105,135,0.15) 90%, transparent);
    width: 6px;
    left: -2px;
    filter: blur(3px);
    animation: timelineGlowPulse 3s ease-in-out infinite;
}

@keyframes timelineGlowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.timeline-item {
    position: relative;
    width: 45%;
    padding: 25px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    margin-right: auto;
    text-align: right;
}

.timeline-item.right {
    margin-left: auto;
    text-align: left;
}

.timeline-heart-icon {
    position: absolute;
    top: 30px;
    width: 30px;
    height: 28px;
    z-index: 3;
    animation: timelineHeartBeat 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,105,135,0.5));
}

.timeline-item.left .timeline-heart-icon {
    right: -40px;
}

.timeline-item.right .timeline-heart-icon {
    left: -40px;
}

.wedding-heart {
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.6)) !important;
}

@keyframes timelineHeartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.2); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

.timeline-content {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,182,193,0.15);
    transform: translateY(-3px);
}

.future-content {
    border-color: rgba(212,175,55,0.2);
}

.future-content:hover {
    border-color: rgba(212,175,55,0.35);
}

.timeline-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--rose-light);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.timeline-date.golden {
    color: var(--gold-light);
}

/* Heartbeat animation for dates */
.heartbeat-date {
    display: inline-block;
    animation: heartbeatDate 2s ease-in-out infinite;
}

@keyframes heartbeatDate {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.05); }
    28% { transform: scale(1); }
    42% { transform: scale(1.03); }
    56% { transform: scale(1); }
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ============================================
   SECTION 4: LONG DISTANCE VISUALIZATION
   ============================================ */
#section-distance {
    background: radial-gradient(ellipse at 50% 50%, #18141e 0%, #0a0610 70%);
}

.road-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(255,105,135,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(180,130,255,0.03) 0%, transparent 50%);
}

.distance-viz {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.distance-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 100px;
}

.person-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,105,135,0.2), rgba(180,130,255,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(255,182,193,0.3);
}

.avatar-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,105,135,0.15) 0%, transparent 70%);
    animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

.avatar-initial {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--rose-light);
    position: relative;
    z-index: 2;
}

.person-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.person-location {
    font-size: 0.7rem;
    color: var(--text-soft);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.distance-connection {
    flex: 1;
    min-width: 150px;
    max-width: 400px;
    height: 60px;
}

.connection-svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   SECTION 5: COUNTDOWN
   ============================================ */
#section-countdown {
    background: radial-gradient(ellipse at 50% 40%, #1a1030 0%, #0a0610 70%);
}

.light-rays-bg {
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 0deg at 50% 30%,
            transparent 0deg,
            rgba(212,175,55,0.02) 10deg,
            transparent 20deg,
            rgba(255,182,193,0.02) 40deg,
            transparent 50deg,
            rgba(212,175,55,0.02) 70deg,
            transparent 80deg,
            rgba(255,182,193,0.02) 100deg,
            transparent 110deg,
            transparent 360deg);
    animation: lightRotate 30s linear infinite;
}

@keyframes lightRotate {
    to { transform: rotate(360deg); }
}

.confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Rings */
.rings-animation {
    margin-bottom: 25px;
}

.rings-svg {
    width: 160px;
    height: 100px;
}

.ring {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.ring.visible { opacity: 1; }

.ring-left.visible {
    animation: ringAppearLeft 1.5s ease both;
}

.ring-right.visible {
    animation: ringAppearRight 1.5s ease 0.5s both;
}

@keyframes ringAppearLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes ringAppearRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.ring-shine {
    animation: ringShine 3s linear infinite;
}

@keyframes ringShine {
    to { stroke-dashoffset: -110; }
}

.countdown-heading {
    margin-bottom: 15px;
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
}

/* Wedding Date Display */
.wedding-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.wedding-date-display.visible {
    opacity: 1;
    transform: translateY(0);
}

.date-part {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 4px;
    animation: dateHeartbeat 2s ease-in-out infinite;
}

@keyframes dateHeartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.03); }
    28% { transform: scale(1); }
}

.date-dot {
    font-size: 2rem;
    color: var(--gold);
}

/* Countdown */
.countdown-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.8s, transform 1s ease 0.8s;
}

.countdown-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number-wrap {
    position: relative;
    padding: 10px 5px;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    text-shadow: 0 0 20px rgba(212,175,55,0.3);
    display: inline-block;
}

.countdown-number.pulse {
    animation: countdownPulse 1s ease;
}

@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: #fff; }
    100% { transform: scale(1); }
}

.countdown-label {
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: 6px;
}

.countdown-separator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: rgba(212,175,55,0.3);
    margin-bottom: 18px;
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.destiny-text {
    font-size: clamp(1rem, 3vw, 1.4rem) !important;
    color: var(--text-soft) !important;
    font-style: italic;
    margin-top: 10px;
}

/* ============================================
   SECTION 6: FOREVER / FINAL
   ============================================ */
#section-forever {
    background: #0a0610;
    min-height: 80vh;
}

.white-fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
}

.ending-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ending-heart {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.ending-heart.visible {
    opacity: 1;
    transform: scale(1);
}

.final-heart-svg {
    width: 100%;
    height: 100%;
}

.final-heart-path {
    animation: heartBeat 2s ease-in-out infinite;
    transform-origin: 50px 45px;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
}

.final-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--rose-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1.2s ease forwards;
}

.final-names.visible {
    opacity: 1;
}

.amp {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-light);
    font-size: 0.8em;
}

.ending-title {
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    margin-bottom: 15px;
}

.ending-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem) !important;
    color: var(--text-soft) !important;
    font-style: italic;
}

/* Letter by letter animation for final message */
.typewriter-final .letter {
    opacity: 0;
    display: inline-block;
    animation: letterAppear 0.1s ease forwards;
}

@keyframes letterAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Star styles */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out var(--delay) infinite alternate;
}

@keyframes twinkle {
    0% { opacity: var(--min-opacity); transform: scale(0.8); }
    100% { opacity: var(--max-opacity); transform: scale(1.2); }
}

/* Confetti */
.confetti-piece {
    position: absolute;
    width: 6px;
    height: 10px;
    top: -20px;
    opacity: 0;
    animation: confettiFall var(--fall-duration) ease-in var(--fall-delay) forwards;
}

@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    #nav-dots {
        right: 12px;
        gap: 12px;
    }

    .nav-dot span {
        display: none;
    }

    .hero-names {
        gap: 12px;
    }

    .hero-name {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }

    .lang-btn {
        top: 15px;
        right: 15px;
        height: 38px;
        padding: 0 14px;
    }

    .audio-btn {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    /* Timeline mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 50px);
        margin-left: 45px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item.left .timeline-heart-icon,
    .timeline-item.right .timeline-heart-icon {
        left: -40px;
        right: auto;
    }

    .distance-viz {
        flex-direction: column;
        gap: 20px;
    }

    .distance-connection {
        width: 80%;
        min-width: 200px;
        transform: rotate(90deg);
        height: 40px;
    }

    .countdown-item {
        min-width: 55px;
    }

    .countdown-separator {
        font-size: 1.8rem;
    }

    .section-content {
        padding: 30px 15px;
    }

    .scroll-indicator {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-names {
        flex-direction: column;
        gap: 5px;
    }

    .hero-heart-svg {
        width: 35px;
    }

    .countdown-container {
        gap: 4px;
    }

    .countdown-item {
        min-width: 42px;
    }

    .date-part {
        letter-spacing: 2px;
    }

    .wedding-date-display {
        gap: 6px;
    }

    .distance-connection {
        transform: rotate(90deg);
        width: 60%;
    }

    .timeline-content {
        padding: 18px;
    }

    .final-names {
        font-size: clamp(1.4rem, 5vw, 2.2rem);
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   RTL / ARABIC SUPPORT
   ============================================ */
html[dir="rtl"] body {
    font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] .cinematic-title,
html[dir="rtl"] .preloader-text,
html[dir="rtl"] .destiny-text,
html[dir="rtl"] .countdown-heading,
html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .timeline-title,
html[dir="rtl"] .ending-title,
html[dir="rtl"] .ending-subtitle {
    font-family: 'Amiri', serif;
}

html[dir="rtl"] .hero-name {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

html[dir="rtl"] .final-names {
    font-family: 'Amiri', serif;
    font-weight: 700;
}

html[dir="rtl"] .enter-button {
    font-family: 'Amiri', serif;
    letter-spacing: 1px;
}

html[dir="rtl"] .timeline-date,
html[dir="rtl"] .timeline-desc,
html[dir="rtl"] .person-name,
html[dir="rtl"] .person-location,
html[dir="rtl"] .countdown-label,
html[dir="rtl"] .scroll-indicator p,
html[dir="rtl"] .nav-dot span,
html[dir="rtl"] .distance-label {
    font-family: 'Tajawal', sans-serif;
}

html[dir="rtl"] #nav-dots {
    right: auto;
    left: 25px;
}

html[dir="rtl"] .nav-dot span {
    right: auto;
    left: 22px;
}

html[dir="rtl"] .lang-btn {
    right: auto;
    left: 25px;
}

html[dir="rtl"] .audio-btn {
    right: auto;
    left: 25px;
}

html[dir="rtl"] .timeline-item.left {
    text-align: left;
}

html[dir="rtl"] .timeline-item.right {
    text-align: right;
}

@media (max-width: 768px) {
    html[dir="rtl"] .lang-btn {
        left: 15px;
    }

    html[dir="rtl"] #nav-dots {
        left: 12px;
    }

    html[dir="rtl"] .audio-btn {
        left: 15px;
    }

    html[dir="rtl"] .timeline-line {
        left: auto;
        right: 20px;
    }

    html[dir="rtl"] .timeline-item {
        margin-left: 0 !important;
        margin-right: 45px !important;
        text-align: right !important;
    }

    html[dir="rtl"] .timeline-item.left .timeline-heart-icon,
    html[dir="rtl"] .timeline-item.right .timeline-heart-icon {
        left: auto;
        right: -40px;
    }
}

/* Touch optimizations for mobile */
@media (hover: none) {
    .enter-button:active {
        border-color: var(--rose);
        color: #fff;
        box-shadow: 0 0 30px rgba(255,105,135,0.2);
    }

    .timeline-content:active {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,182,193,0.15);
    }

    .nav-dot:active {
        transform: scale(1.5);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
