/* Passionate Dark Purple Theme - RESPONSIVE */
:root {
    --deep-purple: #3a1b4a;
    --royal-purple: #5d2d79;
    --passion-pink: #ff2d75;
    --soft-glow: #e39ff6;
    --gold-accent: #ffd700;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--deep-purple) 0%, #1a0a22 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: white;
}

/* Starry Night Background */
.starry-night {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, var(--soft-glow), transparent),
        radial-gradient(ellipse at bottom, var(--royal-purple), transparent);
    z-index: 0;
    opacity: 0.7;
}

.starry-night::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80px 40px, white, rgba(0,0,0,0));
    background-size: 100px 100px;
    animation: twinkle 5s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Floating Hearts Animation */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-hearts::before {
    content: '💖';
    position: absolute;
    font-size: 30px;
    top: 10%;
    left: 15%;
    animation: floatHeart 8s ease-in-out infinite;
}

.floating-hearts::after {
    content: '💝';
    position: absolute;
    font-size: 40px;
    top: 70%;
    left: 80%;
    animation: floatHeart 10s ease-in-out infinite reverse;
}

@keyframes floatHeart {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(10deg); }
    50% { transform: translate(0, -60px) rotate(0deg); }
    75% { transform: translate(-50px, -30px) rotate(-10deg); }
}

/* Romantic Container */
.romantic-container {
    background: rgba(58, 27, 74, 0.7);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 
        0 0 25px rgba(255, 45, 117, 0.3),
        0 0 50px rgba(93, 45, 121, 0.3);
    z-index: 2;
    max-width: 450px;
    width: 90%;
    backdrop-filter: blur(8px);
    border: 1px solid var(--passion-pink);
    transform: perspective(500px) rotateX(10deg);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    margin: 1rem;
}

.romantic-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,45,117,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

/* Love Letter Styling */
.love-letter {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.love-letter h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--gold-accent);
    margin-bottom: 0.625rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1.2;
}

.love-letter p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--soft-glow);
    font-style: italic;
    line-height: 1.4;
}

.wax-seal {
    width: 60px;
    height: 60px;
    background: var(--passion-pink);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    position: relative;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.3),
        0 0 20px rgba(255,45,117,0.5);
}

.wax-seal::after {
    content: '❤';
    position: absolute;
    font-size: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold-accent);
}

/* Secret Form Styling */
.secret-form {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 0.9375rem 0 0.3125rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--soft-glow);
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-bottom-color: var(--passion-pink);
}

.input-group label {
    position: absolute;
    top: 0.9375rem;
    left: 0;
    color: var(--soft-glow);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -0.625rem;
    font-size: 0.9rem;
    color: var(--passion-pink);
}

.romantic-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--passion-pink);
    transition: all 0.3s ease;
}

.input-group input:focus ~ .romantic-border {
    width: 100%;
}

/* Passion Button */
.passion-btn {
    background: linear-gradient(45deg, var(--passion-pink), #ff6b9e);
    color: white;
    border: none;
    padding: 0.9375rem 1.875rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Dancing Script', cursive;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 5px 15px rgba(255, 45, 117, 0.4),
        0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.passion-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 45, 117, 0.6),
        0 0 15px rgba(255, 255, 255, 0.3);
}

.passion-btn:active {
    transform: translateY(1px);
}

.pulse-heart {
    margin-left: 0.625rem;
    animation: heartbeat 1.5s infinite;
    transform-origin: center;
}

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

/* Hidden Treasure (Secret Message) */
.hidden-treasure {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: all 1s ease;
}

.hidden-treasure.show {
    opacity: 1;
    pointer-events: all;
}

.treasure-content {
    background: linear-gradient(135deg, #2a0d36 0%, #4a1b61 100%);
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 1px solid var(--passion-pink);
    box-shadow: 
        0 0 30px rgba(255, 45, 117, 0.5),
        inset 0 0 20px rgba(255, 45, 117, 0.2);
    margin: 1rem;
}

.treasure-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--gold-accent);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.love-note p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 0.9375rem;
    color: var(--soft-glow);
}

.eternal-love {
    font-size: clamp(2rem, 6vw, 3rem);
    margin: 1.25rem 0;
    color: var(--passion-pink);
    animation: pulse 2s infinite;
}

.close-treasure {
    background: transparent;
    color: var(--soft-glow);
    border: 1px solid var(--passion-pink);
    padding: 0.625rem 1.5625rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.close-treasure:hover {
    background: rgba(255, 45, 117, 0.2);
    transform: translateY(-2px);
}

/* Celebration Button */
.celebration-btn {
    background: linear-gradient(45deg, #ff2d75, #ff6b9e);
    color: white;
    border: none;
    padding: 0.75rem 1.5625rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    margin-top: 1.5625rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 45, 117, 0.4);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.celebration-btn::after {
    content: '→';
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.celebration-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 45, 117, 0.6);
    background: linear-gradient(45deg, #ff6b9e, #ff2d75);
}

.celebration-btn:hover::after {
    transform: translateX(5px);
}

/* Sparkles Animation */
.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite;
}

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

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .romantic-container {
        padding: 1.5rem;
        transform: perspective(500px) rotateX(5deg);
    }
    
    .floating-hearts::before {
        font-size: 24px;
        left: 10%;
    }
    
    .floating-hearts::after {
        font-size: 30px;
        left: 75%;
    }
    
    .love-letter {
        margin-bottom: 1.5rem;
    }
    
    .secret-form {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .romantic-container {
        padding: 1.25rem;
        width: 95%;
        transform: none;
    }
    
    .floating-hearts::before,
    .floating-hearts::after {
        display: none;
    }
    
    .love-letter h1 {
        font-size: 2rem;
    }
    
    .wax-seal {
        width: 50px;
        height: 50px;
    }
    
    .wax-seal::after {
        font-size: 24px;
    }
    
    .input-group input {
        font-size: 1rem;
        padding: 0.75rem 0 0.25rem 0;
    }
    
    .input-group label {
        top: 0.75rem;
        font-size: 0.9rem;
    }
    
    .passion-btn,
    .celebration-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .treasure-content {
        padding: 1.5rem;
    }
    
    .treasure-content h2 {
        font-size: 1.75rem;
    }
}