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

body {
    background: linear-gradient(135deg, #1a0005, #3d0014, #1a0005);
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    font-family: 'Playfair Display', serif;
    color: #fff;
    position: relative;
}

/* --- BACKGROUND PATTERN --- */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff0055' fill-opacity='0.08' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    animation: bgScroll 20s linear infinite;
    z-index: 0;
}

@keyframes bgScroll {
    from { background-position: 0 0; }
    to { background-position: 0 100%; }
}

/* --- INTRO SCREEN --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2c000e;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.gift-btn {
    background: linear-gradient(45deg, #d60045, #ff5e62);
    border: 2px solid #ffd700;
    padding: 20px 50px;
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.6);
    animation: pulse 2s infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.gift-btn:hover {
    transform: scale(1.1);
}

/* --- MAIN LAYOUT --- */
#main-content {
    opacity: 0;
    display: none;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
    min-height: 100vh;
}

/* Left Side: Photo */
.photo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.photo-container {
    width: 320px;
    height: 320px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(45deg, #ffd700, #ff0055, #ffd700);
    background-size: 200% 200%;
    animation: borderFlow 3s ease infinite, tiltShake 6s infinite alternate;
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.4);
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #2c000e;
}

h1.main-header {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #ffd700;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    animation: floatText 4s ease-in-out infinite;
}

/* Right Side: Cards */
.cards-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    perspective: 1000px;
}

/* --- PREMIUM CARD: NEON BOTTOM BORDER --- */
.love-card {
    position: relative;
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* THE NEON BOTTOM ANIMATION */
.love-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff0000 20%, 
        #ffd700 50%, 
        #ff0000 80%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: neonFlow 2.5s linear infinite;
    box-shadow: 0 0 15px #ff0055, 0 0 30px #ff0000;
}

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

.content-wrapper.active .love-card {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered Animation Delays */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

.love-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff8fa3;
    margin-bottom: 8px;
    padding-bottom: 5px;
    display: inline-block;
}

.love-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Verse Card specific tint */
.verse-card {
    background: rgba(120, 0, 40, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 0, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

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

@keyframes tiltShake {
    0% { transform: rotate(-3deg); }
    100% { transform: rotate(3deg); }
}

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

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.falling-item {
    position: fixed;
    top: -10vh;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

/* --- MOBILE OPTIMIZATION --- */
@media screen and (max-width: 900px) {
    
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    #main-content {
        align-items: flex-start;
        min-height: auto;
    }

    .content-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        padding: 40px 20px 60px;
        gap: 30px;
    }
    
    .photo-section {
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .photo-container {
        width: 220px;
        height: 220px;
        margin-bottom: 15px;
    }

    h1.main-header {
        font-size: 2rem;
        margin-top: 5px;
    }

    .cards-section {
        width: 100%;
        gap: 20px;
    }
    
    .love-card {
        transform: translateY(30px);
        padding: 20px;
    }

    .love-card h3 {
        font-size: 1.7rem;
    }

    .love-card p {
        font-size: 1.05rem;
    }
    
    .content-wrapper.active .love-card {
        transform: translateY(0);
    }

    .gift-btn {
        padding: 15px 40px;
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .content-wrapper {
        padding: 30px 15px 50px;
    }

    .photo-container {
        width: 200px;
        height: 200px;
    }

    h1.main-header {
        font-size: 1.7rem;
    }

    .love-card {
        padding: 18px;
    }

    .love-card h3 {
        font-size: 1.5rem;
    }

    .love-card p {
        font-size: 1rem;
    }
}