* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #2d2a5e 100%);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
    transition: all 0.5s ease;
}

/* Floating Background */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    bottom: -60px;
    animation: floatUp linear infinite;
    font-size: 1.2rem;
    opacity: 0.4;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* Container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    width: 90%;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 56px;
    padding: 35px 25px;
    box-shadow: 0 25px 45px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,215,0,0.2);
    transition: all 0.4s;
}

/* Countdown Section */
.pre-birthday {
    transition: opacity 0.5s;
}

.countdown-title {
    text-align: center;
    font-size: 1.4rem;
    color: #ffdfbf;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.countdown-big {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.time-card {
    background: rgba(0,0,0,0.5);
    border-radius: 30px;
    padding: 15px 20px;
    min-width: 100px;
    text-align: center;
    border-bottom: 3px solid #ffb7c5;
}

.time-number {
    font-size: 3rem;
    font-weight: 800;
    color: #ffd966;
    font-family: monospace;
}

.time-label {
    font-size: 0.8rem;
    color: #ffe0b5;
    text-transform: uppercase;
}

.motivation-area {
    background: rgba(255,215,180,0.12);
    border-radius: 40px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.motivation-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #fef3e2;
    line-height: 1.6;
}

.next-quote-btn {
    background: rgba(255,215,0,0.3);
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    color: #ffefcf;
    font-size: 0.9rem;
    transition: 0.2s;
}

.next-quote-btn:hover {
    background: rgba(255,215,0,0.5);
}

/* Birthday Section */
.birthday-section {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.birthday-section.active {
    display: block;
    opacity: 1;
}

.birthday-header {
    text-align: center;
    margin-bottom: 25px;
}

.birthday-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #FFE6F0, #FFB7C5, #FFD966);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.birthday-date {
    font-size: 1rem;
    color: #ffdfbf;
    margin-top: 8px;
}

/* Gallery */
.gallery-title {
    text-align: center;
    font-size: 1.3rem;
    color: #ffd966;
    margin: 20px 0 15px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.memory-photo {
    background: rgba(255,255,240,0.12);
    border-radius: 24px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.memory-photo img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}

.memory-photo i {
    font-size: 3rem;
    color: #ffb7c5;
    margin-bottom: 10px;
}

.memory-photo p {
    font-size: 0.85rem;
    color: #ffefcf;
    font-weight: 500;
}

.memory-photo .photo-caption {
    font-size: 0.7rem;
    color: #ffd9b5;
    margin-top: 5px;
}

.memory-photo:hover {
    transform: scale(1.02);
    background: rgba(255,140,150,0.3);
}

/* Video */
.video-container {
    margin: 30px 0;
    background: rgba(0,0,0,0.4);
    border-radius: 32px;
    padding: 20px;
    text-align: center;
}

.video-container h3 {
    color: #ffd966;
    margin-bottom: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 24px;
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: none;
}

.video-caption {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #ffdfbf;
}

/* Proposal */
.proposal-final {
    background: linear-gradient(135deg, rgba(107,140,66,0.3), rgba(255,105,130,0.2));
    border-radius: 48px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    border: 2px solid #ffb7c5;
}

.proposal-final h2 {
    color: #fff0d0;
    font-size: 1.4rem;
}

.proposal-question {
    margin: 15px 0;
    font-size: 1.6rem !important;
}

.accept-btn {
    background: linear-gradient(135deg, #6b8c42, #4c6a2c);
    border: none;
    padding: 14px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 60px;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.2s;
}

.accept-btn:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #7fa351, #5e8036);
}

.response-message {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #ffd966;
}

/* Footer */
footer, .birthday-footer {
    text-align: center;
    margin-top: 35px;
    font-size: 0.7rem;
    color: rgba(255,240,210,0.6);
}

/* Spark Effect */
.spark {
    position: fixed;
    pointer-events: none;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, gold, hotpink);
    border-radius: 50%;
    animation: sparkAnim 0.6s forwards;
    z-index: 9999;
}

@keyframes sparkAnim {
    0% { transform: scale(0.2); opacity: 0.9; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Responsive */
@media (max-width: 550px) {
    .container { padding: 20px 15px; width: 95%; }
    .time-number { font-size: 2rem; }
    .time-card { min-width: 70px; padding: 10px; }
    .birthday-header h1 { font-size: 1.8rem; }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .memory-photo img { height: 100px; }
    .proposal-question { font-size: 1.2rem !important; }
    .accept-btn { padding: 10px 25px; font-size: 1rem; }
}