/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    position: relative;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff79c6, #bd93f9);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ff79c6, #8be9fd);
}

/* Memory Card Flip Animation */
.memory-card {
    perspective: 1000px;
    height: 250px;
    margin-bottom: 20px;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.memory-card:hover .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.memory-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Countdown Boxes */
.countdown-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff79c6, #bd93f9);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Love Letter Animation */
.love-letter {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.love-letter:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, #ff79c6, #bd93f9, #8be9fd, #50fa7b, #ffb86c) 1;
    opacity: 0;
    transition: all 0.5s ease;
}

.love-letter:hover:before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
}

/* Birthday Cake */
.birthday-cake {
    position: relative;
    width: 120px;
    height: 80px;
    background: linear-gradient(to right, #ffb86c, #ff79c6);
    border-radius: 10px 10px 0 0;
    margin-top: 20px;
}

.birthday-cake:before {
    content: '';
    position: absolute;
    width: 140px;
    height: 20px;
    background: #f8f8f2;
    border-radius: 10px;
    top: -10px;
    left: -10px;
}

.birthday-cake:after {
    content: '';
    position: absolute;
    width: 5px;
    height: 20px;
    background: #f1fa8c;
    top: -30px;
    left: 60px;
    animation: candle 1s infinite alternate;
}

@keyframes candle {
    0% {
        box-shadow: 0 0 5px 1px rgba(255, 207, 72, 0.5);
    }
    100% {
        box-shadow: 0 0 10px 2px rgba(255, 207, 72, 0.8);
    }
}

/* Floating Hearts Animation */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6b81"><path 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"/></svg>') no-repeat center center;
    background-size: contain;
    opacity: 0.7;
    animation: float-up 10s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0.5) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) scale(1.2) rotate(360deg);
        opacity: 0;
    }
}

/* Gift Box Animation */
.gift-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 100;
}

.gift-box-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #ff79c6, #bd93f9);
    border-radius: 5px;
    animation: box-bounce 2s ease-in-out infinite;
}

.gift-box-lid {
    position: absolute;
    top: 0;
    width: 110%;
    height: 30%;
    left: -5%;
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    border-radius: 5px;
    transform-origin: bottom;
    animation: lid-bounce 2s ease-in-out infinite;
}

.gift-box-ribbon {
    position: absolute;
    width: 10px;
    height: 100%;
    background: #f1fa8c;
    left: 50%;
    transform: translateX(-50%);
}

.gift-box-ribbon:before, .gift-box-ribbon:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 10px;
    background: #f1fa8c;
    top: 10%;
    border-radius: 5px;
}

.gift-box-ribbon:before {
    left: -10px;
    transform: rotate(45deg);
}

.gift-box-ribbon:after {
    right: -10px;
    transform: rotate(-45deg);
}

@keyframes box-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes lid-bounce {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }
    50% {
        transform: translateY(-8px) rotateX(10deg);
    }
}

/* Balloons Animation */
.balloons-container {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.balloon {
    position: absolute;
    width: 40px;
    height: 50px;
    border-radius: 50%;
    animation: float-balloon 15s ease-in-out infinite;
}

.balloon:before {
    content: '';
    position: absolute;
    width: 2px;
    height: 50px;
    background: rgba(0, 0, 0, 0.2);
    bottom: -50px;
    left: 50%;
}

@keyframes float-balloon {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(20px);
    }
    100% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .countdown-box {
        width: 60px;
        height: 60px;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .gift-box {
        width: 50px;
        height: 50px;
    }
}

/* Shimmering Text Effect */
@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

h1.text-pink-600 {
    background: linear-gradient(90deg, #ff79c6, #bd93f9, #ff79c6);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Photo Gallery */
.photo-gallery-container {
    height: 400px;
    max-width: 900px;
    margin: 0 auto;
}

.photo-gallery-slider {
    height: 100%;
    width: 100%;
}

.photo-slide {
    position: relative;
    height: 100%;
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Timeline Styles */
.timeline-container {
    padding: 20px 0;
    margin-top: 50px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    min-height: 80px;
}

.timeline-content {
    position: absolute;
    width: 45%;
}

.timeline-content.left {
    left: 0;
}

.timeline-content.right {
    right: 0;
}

.timeline-date {
    font-weight: bold;
    color: #bd93f9;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff79c6, #bd93f9);
    z-index: 2;
}

.timeline-content.left .timeline-card:after {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.timeline-content.right .timeline-card:after {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

/* 3D Gift Box */
#gift-3d-container {
    perspective: 1000px;
}

/* Animated Background */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Elements Animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Photo Collage */
.photo-collage-item {
    position: relative;
    overflow: hidden;
    height: 200px;
    transition: all 0.3s ease;
}

.photo-collage-item.col-span-2.row-span-2 {
    height: 400px;
}

.photo-collage-item img {
    transition: transform 0.5s ease;
}

.photo-collage-item:hover img {
    transform: scale(1.05);
}

.photo-collage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-collage-item:hover::after {
    opacity: 1;
}

/* Interactive Message Generator */
.message-option {
    transition: all 0.3s ease;
}

.message-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#generated-message {
    transition: all 0.3s ease;
}

#generated-message.active {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* Quiz Styles */
.quiz-question {
    transition: all 0.5s ease;
}

.quiz-option {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    transform: translateY(-2px);
}

.quiz-option:active {
    transform: scale(0.98);
}

.quiz-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.quiz-option:hover::after {
    transform: translateX(100%);
}

#quiz-result {
    transition: all 0.5s ease;
} 