/* ============================================
   ROMANTIC WEBSITE - STYLE SHEET
   Color Palette: Pink & White Tones
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --pink-50: #fff0f5;
    --pink-100: #ffe4ef;
    --pink-200: #ffc2d9;
    --pink-300: #ff9abc;
    --pink-400: #ff6b9d;
    --pink-500: #ff3d7f;
    --pink-600: #e8266a;
    --pink-700: #c41854;
    --pink-800: #9e1543;
    --pink-900: #7a133a;

    --white: #ffffff;
    --off-white: #fdf8fa;
    --cream: #fff5f8;

    --text-dark: #4a1942;
    --text-medium: #7a3b6e;
    --text-light: #b06ea3;

    --shadow-soft: 0 4px 20px rgba(255, 105, 157, 0.15);
    --shadow-medium: 0 8px 30px rgba(255, 105, 157, 0.2);
    --shadow-glow: 0 0 40px rgba(255, 61, 127, 0.3);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--pink-50);
}
::-webkit-scrollbar-thumb {
    background: var(--pink-300);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pink-400);
}

/* ============================================
   FLOATING HEARTS
   ============================================ */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation-timing-function: ease-in-out;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 105, 157, 0.4));
}

@keyframes floatLeftToRight {
    0% {
        transform: translateX(-60px) translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
        transform: translateX(20px) translateY(-30px) rotate(15deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(100px) translateY(-80px) rotate(-10deg) scale(0.9);
    }
    85% {
        opacity: 0.4;
        transform: translateX(160px) translateY(-140px) rotate(20deg) scale(0.7);
    }
    100% {
        transform: translateX(200px) translateY(-200px) rotate(30deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes floatRightToLeft {
    0% {
        transform: translateX(60px) translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    15% {
        opacity: 0.9;
        transform: translateX(-20px) translateY(-30px) rotate(-15deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-100px) translateY(-80px) rotate(10deg) scale(0.9);
    }
    85% {
        opacity: 0.4;
        transform: translateX(-160px) translateY(-140px) rotate(-20deg) scale(0.7);
    }
    100% {
        transform: translateX(-200px) translateY(-200px) rotate(-30deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
        transform: translateY(-40px) rotate(10deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-120px) rotate(-15deg) scale(0.85);
    }
    100% {
        transform: translateY(-250px) rotate(25deg) scale(0.3);
        opacity: 0;
    }
}

/* ============================================
   SECTION 1: HERO
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        175deg,
        var(--pink-100) 0%,
        var(--white) 30%,
        var(--pink-50) 60%,
        var(--pink-200) 100%
    );
    overflow: hidden;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 154, 188, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 61, 127, 0.08) 0%, transparent 40%);
    animation: bgShift 15s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, -20px) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
}

.flower-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flower-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 105, 157, 0.3));
    animation: flowerPulse 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.flower-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 154, 188, 0.3) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes flowerPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.03) rotate(1deg); }
    50% { transform: scale(1.06) rotate(0deg); }
    75% { transform: scale(1.03) rotate(-1deg); }
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    color: var(--pink-600);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(255, 61, 127, 0.15);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-medium);
    max-width: 400px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

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

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1.2s ease-out 0.9s both;
}

.scroll-indicator span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pink-400);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-arrow {
    color: var(--pink-400);
    animation: bounceDown 2s ease-in-out infinite;
}

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

/* ============================================
   SECTION 2: PHOTOS
   ============================================ */
.photos-section {
    position: relative;
    padding: 80px 20px 60px;
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        var(--pink-50) 50%,
        var(--cream) 100%
    );
    z-index: 2;
}

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

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--pink-700);
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.photo-gallery {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.photo-card {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-card.slide-from-left {
    transform: translateX(-100px);
}

.photo-card.slide-from-right {
    transform: translateX(100px);
}

.photo-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.photo-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    padding: 10px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--pink-100);
    transition: var(--transition-smooth);
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--pink-200), var(--pink-400), var(--pink-200)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.photo-card:hover .photo-frame::before {
    opacity: 1;
}

.photo-card:hover .photo-frame {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.photo-frame img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 6px);
    display: block;
    transition: transform 0.6s ease;
}

.photo-card:hover .photo-frame img {
    transform: scale(1.03);
}

.photo-caption {
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--pink-600);
    margin-top: 14px;
    font-weight: 600;
}

/* Corner Decorations */
.photo-frame::after {
    content: '♡';
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 1.2rem;
    color: var(--pink-300);
    z-index: 3;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.photo-card:hover .photo-frame::after {
    color: var(--pink-500);
    opacity: 1;
    transform: scale(1.2);
}

/* ============================================
   SECTION 3: TOGETHER TIMER
   ============================================ */
.together-section {
    position: relative;
    padding: 70px 20px;
    background: linear-gradient(
        180deg,
        var(--cream) 0%,
        var(--white) 40%,
        var(--pink-50) 100%
    );
    text-align: center;
    z-index: 2;
}

.together-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.heart-icon {
    font-size: 1.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.15); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    56% { transform: scale(1); }
}

.together-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pink-600);
}

.together-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto 30px;
}

.timer-unit {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 14px 12px;
    min-width: 70px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--pink-100);
    transition: var(--transition-smooth);
}

.timer-unit.highlight {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    border: none;
}

.timer-unit.highlight .timer-value,
.timer-unit.highlight .timer-label {
    color: var(--white);
}

.timer-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.timer-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.together-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SECTION 4: COUNTDOWN CARDS
   ============================================ */
.countdowns-section {
    position: relative;
    padding: 70px 20px 80px;
    background: linear-gradient(
        180deg,
        var(--pink-50) 0%,
        var(--pink-100) 30%,
        var(--pink-200) 70%,
        var(--pink-300) 100%
    );
    z-index: 2;
}

.countdowns-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--pink-800);
}

.countdowns-section .section-subtitle {
    color: var(--text-medium);
    font-style: normal;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    max-width: 420px;
}

.countdown-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 420px;
    margin: 0 auto;
}

.countdown-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.95));
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 194, 217, 0.4);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.countdown-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.card-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink-100), var(--pink-200));
    opacity: 0.5;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--pink-600);
    margin-bottom: 8px;
}

.card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.card-unit {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--pink-300), var(--pink-500));
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.site-footer p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.footer-hearts {
    font-size: 1.4rem;
    letter-spacing: 6px;
    animation: heartBeat 2s ease-in-out infinite;
}

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

/* Mobile First - Small Phones */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .flower-wrapper {
        width: 180px;
        height: 180px;
    }

    .flower-img {
        width: 150px;
        height: 150px;
    }

    .flower-glow {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .timer-unit {
        min-width: 55px;
        padding: 10px 8px;
    }

    .timer-value {
        font-size: 1.5rem;
    }

    .card-value {
        font-size: 3rem;
    }
}

/* Standard Phones */
@media (min-width: 361px) and (max-width: 480px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .timer-unit {
        min-width: 60px;
        padding: 12px 10px;
    }

    .timer-value {
        font-size: 1.7rem;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .photo-frame img {
        height: 350px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .flower-wrapper {
        width: 300px;
        height: 300px;
    }

    .flower-img {
        width: 250px;
        height: 250px;
    }

    .photo-gallery {
        max-width: 700px;
    }

    .photo-frame img {
        height: 400px;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .timer-unit {
        min-width: 90px;
        padding: 20px 16px;
    }

    .timer-value {
        font-size: 2.5rem;
    }

    .card-value {
        font-size: 5rem;
    }

    .countdown-cards {
        max-width: 500px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .photo-gallery {
        max-width: 800px;
    }

    .photo-frame img {
        height: 450px;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Sparkle particles for photo section */
.photos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, var(--pink-200) 1px, transparent 1px),
        radial-gradient(circle, var(--pink-300) 1px, transparent 1px);
    background-size: 80px 80px, 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}
