/* ===== ROMANTIC WEBSITE STYLES ===== */

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b9d 0%, #feca57 50%, #ff6b9d 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --white: #ffffff;
    --love-red: #ff6b9d;
    --love-pink: #ffeaa7;
    --love-purple: #a29bfe;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.heart-loader {
    display: flex;
    gap: 10px;
}

.heart-loader .heart {
    width: 30px;
    height: 30px;
    background: var(--love-red);
    position: relative;
    transform: rotate(-45deg);
    animation: heartbeat 1.2s infinite;
}

.heart-loader .heart:nth-child(2) {
    animation-delay: 0.2s;
}

.heart-loader .heart:nth-child(3) {
    animation-delay: 0.4s;
}

.heart::before,
.heart::after {
    content: '';
    width: 30px;
    height: 30px;
    position: absolute;
    background: var(--love-red);
    border-radius: 50%;
}

.heart::before {
    top: -15px;
    left: 0;
}

.heart::after {
    left: 15px;
    top: 0;
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.3); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    animation: slideUp 1s ease 2.5s both;
}

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

/* Sections */
section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

section::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%);
    animation: rotate 30s linear infinite;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 40px;
}

.glowing-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 40px;
    position: relative;
}

.glowing-title .word {
    display: inline-block;
    animation: wordFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--word-index) * 0.1s);
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glowing-title .word:nth-child(1) { --word-index: 1; }
.glowing-title .word:nth-child(2) { --word-index: 2; }
.glowing-title .word:nth-child(3) { --word-index: 3; }
.glowing-title .word:nth-child(4) { --word-index: 4; }
.glowing-title .word:nth-child(6) { --word-index: 5; }
.glowing-title .word:nth-child(7) { --word-index: 6; }

.heart-icon {
    display: inline-block;
    font-size: 0.8em;
    animation: heartPulse 1s ease infinite;
}

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

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

/* Love Meter */
.love-meter-container {
    margin: 40px auto;
    max-width: 500px;
}

.love-meter {
    height: 60px;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 5px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);
}

.love-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 25px;
    width: 0%;
    animation: fillLove 3s ease-out 3s forwards;
    position: relative;
    overflow: hidden;
}

.love-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes fillLove {
    to { width: 100%; }
}

@keyframes shimmer {
    to { left: 100%; }
}

.love-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    z-index: 1;
}

.love-status {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: var(--love-red);
    font-weight: 600;
    animation: glow 2s ease infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 107, 157, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 107, 157, 0.8); }
}

/* Love Calculator */
.love-calculator {
    text-align: center;
}

.love-calculator h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--love-purple);
    margin-bottom: 30px;
}

.calculator-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.calc-result {
    font-size: 5rem;
    font-weight: bold;
    color: var(--love-red);
    position: relative;
    animation: numberPulse 2s ease infinite;
}

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

.calculate-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.calculate-btn .sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    opacity: 0;
    animation: sparkle 1s ease;
}

.calculate-btn:active .sparkles {
    animation: sparkle 1s ease;
}

@keyframes sparkle {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

/* Reasons Carousel */
.reasons-section {
    position: relative;
}

.reasons-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--love-purple);
    margin-bottom: 30px;
    text-align: center;
}

.reasons-carousel {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-card {
    position: absolute;
    background: linear-gradient(135deg, #ffeaa7, #ffcccc);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    transition: all 0.5s ease;
}

.reason-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.reason-card.prev {
    transform: translateX(-100%) scale(0.8);
}

.reason-number {
    width: 40px;
    height: 40px;
    background: var(--love-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.carousel-controls button {
    background: var(--love-purple);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.carousel-controls button:hover {
    transform: scale(1.1);
    background: var(--love-red);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--love-red);
    transform: scale(1.3);
}

/* Countdown Section */
.countdown-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--love-purple);
    margin-bottom: 30px;
    text-align: center;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.countdown-item {
    background: linear-gradient(135deg, #ffeaa7, #ffcccc);
    border-radius: 20px;
    padding: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--love-red);
}

.countdown-label {
    margin-top: 10px;
    color: var(--text-secondary);
}

/* Quotes Section */
.quotes-section {
    background: var(--secondary-gradient);
    color: white;
}

.quote-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.quote-container blockquote {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-container cite {
    font-size: 1rem;
    opacity: 0.8;
}

/* Gallery */
.gallery-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--love-purple);
    margin-bottom: 30px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 157, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Love Letter */
.love-letter-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--love-purple);
    margin-bottom: 30px;
    text-align: center;
}

.letter-container {
    max-width: 600px;
    margin: 0 auto;
}

.letter-paper {
    background: linear-gradient(to bottom, #fff 95%, #f0f0f0 100%);
    background-size: 100% 30px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    line-height: 30px;
    color: #333;
}

.letter-date {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.letter-signature {
    text-align: right;
    margin-top: 30px;
}

.generate-letter-btn {
    display: block;
    margin: 30px auto 0;
    background: var(--love-red);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-letter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

/* Timeline */
.timeline-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--love-purple);
    margin-bottom: 30px;
    text-align: center;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--love-red);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 20px;
    margin: 20px 0;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
}

.timeline-date {
    background: var(--love-red);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--love-purple);
    margin-bottom: 10px;
}

/* Music Player */
.music-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.music-player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
}

.music-icon {
    font-size: 2rem;
    animation: musicNote 2s ease infinite;
}

@keyframes musicNote {
    0%, 100% { transform: translateY(0) rotate(0); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.song-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.song-artist {
    opacity: 0.8;
}

.play-btn {
    background: white;
    color: var(--love-purple);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Floating Hearts */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 10s linear infinite;
    opacity: 0.7;
}

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

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.theme-switcher button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.theme-switcher button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Confetti Button */
.confetti-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: var(--love-red);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
}

.confetti-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

/* Install Button */
.install-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.install-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Theme Variations */
body.sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

body.moonlight {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

body.rose {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body.ocean {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .glowing-title {
        font-size: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 20px;
        text-align: left;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .countdown-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 20px;
        margin: 15px 0;
    }
}