:root {
    /* Premium Color Palette */
    --bg-color: #FDFCF8;
    --card-bg: #FFFFFF;
    --primary-red: #E63946;
    --primary-hover: #D62839;
    --soft-pink-bg: #FFF0F3;
    --soft-pink-text: #C92A42;
    --text-main: #2D2D2D;
    --text-muted: #888888;
    --shadow-soft: 0 20px 60px -10px rgba(230, 57, 70, 0.1);
    --radius-card: 32px;
    --radius-btn: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

.section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== SECTION 1: MODERN WELCOME WITH VIDEO HIGHLIGHT ========== */
#rose-section {
    background: linear-gradient(135deg, #FAF9F6 0%, #FFF5F7 50%, #FFF0F3 100%);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #FAF9F6 0%, #FFF5F7 50%, #FFF0F3 100%);
    overflow: hidden;
}

.modern-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 100px;
    gap: 60px;
}

/* Animation Sides */
.animation-side,
.decoration-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 350px;
}

.lottie-animation {
    width: 280px !important;
    height: 280px !important;
    filter: drop-shadow(0 10px 40px rgba(255, 107, 157, 0.15));
    opacity: 0.9;
    z-index: 10;
}

.side-text {
    text-align: center;
}

.accent-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #E63946 0%, #FF6B9D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Video Highlight - Main Feature */
.video-highlight {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 10;
}

.video-frame {
    position: relative;
    width: 340px;
    height: 600px;
    background: #FFFFFF;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 50px 100px -20px rgba(230, 57, 70, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 0 1px rgba(230, 57, 70, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotate(-3deg);
}

.video-frame:hover {
    transform: translateY(-8px) scale(1.02) rotate(0deg);
    box-shadow:
        0 60px 120px -20px rgba(230, 57, 70, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 0 0 1px rgba(230, 57, 70, 0.15);
}

.vertical-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 32px;
}

.video-caption {
    text-align: center;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.main-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-red);
    z-index: 15;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-hint:hover {
    opacity: 1;
}

.scroll-hint p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arrow-down {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========== SECTION 2: PREMIUM VALENTINE FORM ========== */
#form-section {
    background: linear-gradient(135deg, #FAF9F6 0%, #FFF5F7 50%, #FFF0F3 100%);
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #FAF9F6 0%, #FFF5F7 50%, #FFF0F3 100%);
    position: relative;
    overflow: hidden;
}

.form-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    perspective: 1000px;
    z-index: 10;
}

.card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 4rem 3rem;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow:
        0 30px 60px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card .lottie-animation {
    margin: 0 auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF9A9E 0%, #FECFEF 100%);
    opacity: 0.8;
}

.icon-wrapper {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    animation: pulse-heart 2s infinite ease-in-out;
}

.icon-wrapper.success-icon {
    animation: none;
    font-size: 5rem;
}

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

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Button Layout */
.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.primary-actions {
    display: flex;
    justify-content: center;
}

.secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tertiary-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

/* Button Styles */
button {
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.btn-yes {
    background-color: var(--primary-red);
    color: white;
    padding: 18px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    width: 100%;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-yes:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-soft {
    background-color: #FFE0E6;
    color: var(--soft-pink-text);
    padding: 14px 20px;
    font-weight: 700;
    border-radius: var(--radius-btn);
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.1);
}

.btn-soft:hover {
    background-color: #FFD1DC;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.2);
    border-color: rgba(230, 57, 70, 0.2);
}

.btn-ghost {
    background: #000000;
    color: #FFFFFF;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-ghost:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Success State */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.success-message.show {
    display: flex;
}

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

/* Confetti animation */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 1000;
    pointer-events: none;
}

/* Particle animations */
@keyframes heart-float {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1);
        opacity: 0;
    }
}

/* Floating Background Elements */
.floating-emoji {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: float-bg 10s infinite ease-in-out;
}

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

/* Mobile Warning Overlay */
#mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FAF9F6 0%, #FFF5F7 50%, #FFF0F3 100%);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.warning-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(230, 57, 70, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 90%;
}

.warning-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    font-size: 1.8rem;
    margin: 0;
}

.warning-content p {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Custom Video Controls */
.custom-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to video for play/pause */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.control-btn {
    background: rgba(230, 57, 70, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto; /* Re-enable clicks for buttons */
    backdrop-filter: blur(4px);
}

.control-btn:hover {
    background: rgba(230, 57, 70, 1);
    transform: scale(1.1);
}

#playPauseBtn {
    width: 80px;
    height: 80px;
    font-size: 32px;
    padding-left: 5px; /* Optical center for play icon */
}

#muteBtn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5);
}

#muteBtn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Hide play button when video is playing */
.video-frame.playing #playPauseBtn {
    opacity: 0;
    pointer-events: none;
}

/* Show controls on hover even if playing */
.video-frame:hover #playPauseBtn {
    opacity: 1;
    pointer-events: auto;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    #mobile-warning {
        display: flex;
    }
    
    /* Hide main content when warning is shown to prevent scrolling */
    .section {
        display: none;
    }
}

@media (max-width: 1200px) {
    .modern-container {
        gap: 40px;
    }
    
    .lottie-animation {
        width: 220px !important;
        height: 220px !important;
    }
    
    .video-frame {
        width: 300px;
        height: 533px;
    }
    
    .accent-title {
        font-size: 1.7rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) {
    .modern-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .animation-side {
        order: 1;
    }
    
    .video-highlight {
        order: 2;
    }
    
    .decoration-side {
        display: none;
    }
    
    .lottie-animation {
        width: 200px !important;
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .video-frame {
        width: 280px;
        height: 497px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .main-subtitle {
        font-size: 1.1rem;
    }
    
    .accent-title {
        font-size: 1.5rem;
    }
    
    .lottie-animation {
        width: 180px !important;
        height: 180px !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 600px) {
    .modern-container {
        padding: 30px 15px;
        gap: 25px;
    }
    
    .video-frame {
        width: 260px;
        height: 462px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .main-subtitle {
        font-size: 1rem;
    }
    
    .accent-title {
        font-size: 1.3rem;
    }
    
    .accent-subtitle {
        font-size: 0.9rem;
    }
    
    .lottie-animation {
        width: 150px !important;
        height: 150px !important;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .secondary-actions {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 2.5rem 1.5rem;
    }
    
    .btn-yes {
        font-size: 1.1rem;
        padding: 16px 28px;
    }
}

@media (max-width: 480px) {
    .video-frame {
        width: 240px;
        height: 427px;
    }
    
    .upload-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .animation-side {
        gap: 15px;
    }
}
