/* ==============================================
   BIRTHDAY WEBSITE - MAIN STYLESHEET
   ============================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #ff69b4;
    --secondary-pink: #ffc0cb;
    --primary-purple: #9370db;
    --secondary-purple: #dda0dd;
    --gold: #ffd700;
    --light-gold: #ffed4e;
    --white: #ffffff;
    --dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
}

/* ============================================
   MUSIC BUTTON
   ============================================ */

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.music-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 105, 180, 0.2);
    box-shadow: 0 8px 32px 0 rgba(255, 105, 180, 0.5);
}

.music-btn.playing {
    animation: musicPulse 1s infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   LANDING SECTION
   ============================================ */

.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.stars-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, #fff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, #fff, rgba(0,0,0,0));
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.landing-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 80px;
    color: var(--white);
    margin-bottom: 40px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 48px;
    }
}

.quote-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-text {
    color: var(--white);
    font-size: 20px;
    line-height: 1.8;
    font-weight: 500;
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '❤️';
    position: absolute;
    font-size: 30px;
    animation: float-animation 4s infinite ease-in-out;
}

.floating-hearts::before {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.floating-hearts::after {
    right: 15%;
    top: 60%;
    animation-delay: 1s;
}

@keyframes float-animation {
    0%, 100% { transform: translateY(0) rotateZ(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotateZ(360deg); opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(-45deg);
    margin-top: 10px;
    animation: scrollArrowMove 1.5s infinite;
}

@keyframes scrollArrowMove {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */

.countdown-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #764ba2 0%, #9319a0 100%);
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 50px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-pink);
    font-family: 'Dancing Script', cursive;
}

.countdown-label {
    color: var(--white);
    font-size: 14px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Celebration Message */
.celebration-message {
    animation: popIn 0.5s ease-out;
    text-align: center;
}

.celebration-message h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 60px;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 105, 180, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.about-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    border-radius: 30px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 20px rgba(255, 215, 0, 0.3);
    animation: slideInScale 0.8s ease-out;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-title {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    color: var(--white);
    margin-bottom: 30px;
}

.about-content {
    color: var(--white);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
}

.highlight-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.highlight-item p {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   FRIENDS SECTION
   ============================================ */

.friends-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #764ba2 0%, #f5576c 100%);
}

.friends-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.friend-card {
    perspective: 1000px;
    cursor: pointer;
    height: 400px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.friend-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-front {
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-purple));
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-back {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    transform: rotateY(180deg);
    padding: 30px;
    text-align: center;
}

.card-back h3 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 20px;
}

.card-back p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */

.timeline-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-pink), var(--gold));
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-center {
        left: 30px;
    }
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item.left {
    margin-left: 0;
    text-align: right;
    padding-right: calc(50% + 20px);
}

.timeline-item.right {
    margin-left: calc(50% + 20px);
    text-align: left;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .timeline-item.left,
    .timeline-item.right {
        margin-left: 100px;
        padding: 0;
        text-align: left;
        padding-left: 20px;
    }
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    animation: slideInTimeline 0.8s ease-out both;
}

.timeline-item:nth-child(odd) .timeline-content {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(even) .timeline-content {
    animation-delay: 0.2s;
}

@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-content h3 {
    color: var(--primary-pink);
    font-size: 22px;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

/* ============================================
   MEMORY BOOK SECTION
   ============================================ */

.memory-book-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.memory-card {
    border-radius: 15px;
    animation: memoryFloat 1s ease-out both;
}

.memory-card.polaroid {
    background: var(--white);
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
}

.memory-card.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

.memory-card.polaroid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.memory-note {
    color: var(--dark);
    font-size: 14px;
    text-align: center;
    font-family: 'Dancing Script', cursive;
}

.sticky-note {
    padding: 30px;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
    font-family: 'Comic Sans MS', cursive;
}

.sticky-note.pink {
    background: #ffb6c1;
    color: #8b0000;
}

.sticky-note.yellow {
    background: #ffffe0;
    color: #333;
}

.sticky-note.blue {
    background: #add8e6;
    color: #000080;
}

.sticky-note:nth-child(even) {
    transform: rotate(3deg);
}

@keyframes memoryFloat {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   GIFT SECTION
   ============================================ */

.gift-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    text-align: center;
}

.gift-container {
    max-width: 600px;
    margin: 0 auto;
}

.gift-box {
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
    position: relative;
    cursor: pointer;
    animation: giftFloat 2s ease-in-out infinite;
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.gift-body {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-purple));
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 105, 180, 0.5);
    position: relative;
}

.gift-body::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100px;
    background: var(--primary-pink);
    border-radius: 5px;
}

.gift-top {
    width: 250px;
    height: 60px;
    margin: 0 auto -10px;
    position: relative;
}

.gift-ribbon {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--light-gold));
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.gift-instruction {
    color: var(--white);
    font-size: 18px;
    margin-top: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.gift-content {
    animation: slideInUp 0.8s ease-out;
}

.gift-message-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.gift-message-box h3 {
    color: var(--primary-pink);
    font-size: 24px;
    margin-bottom: 20px;
}

.gift-message-box p {
    color: var(--white);
    font-size: 18px;
    line-height: 1.8;
}

.gift-photo {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    animation: zoomIn 0.8s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   WISHES SECTION
   ============================================ */

.wishes-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #f5576c 100%);
    text-align: center;
}

.wishes-container {
    max-width: 700px;
    margin: 0 auto;
}

.wish-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.wish-text {
    color: var(--white);
    font-size: 28px;
    font-family: 'Great Vibes', cursive;
    min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--white);
    font-size: 16px;
    border-top: 2px solid var(--glass-border);
}

.footer p {
    margin: 10px 0;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.float-item {
    position: absolute;
    font-size: 30px;
    animation: floatingAnimation 8s infinite ease-in;
    opacity: 0.7;
}

.float-item:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.float-item:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.float-item:nth-child(4) {
    left: 50%;
    animation-delay: 3s;
}

.float-item:nth-child(5) {
    left: 70%;
    animation-delay: 4s;
}

@keyframes floatingAnimation {
    0% {
        bottom: -50px;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ============================================
   CONFETTI ANIMATION
   ============================================ */

.confetti-animation {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.confetti-animation::before,
.confetti-animation::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-pink);
    animation: confetti-fall 3s infinite ease-in;
}

.confetti-animation::before {
    left: 20%;
    animation-delay: 0s;
}

.confetti-animation::after {
    left: 80%;
    animation-delay: 1s;
}

@keyframes confetti-fall {
    0% {
        top: -20px;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotateZ(360deg);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .countdown-box {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }

    .countdown-number {
        font-size: 36px;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .friends-container {
        grid-template-columns: 1fr;
    }

    .friend-card {
        height: 300px;
    }

    .about-card {
        padding: 30px;
    }

    .gift-box {
        width: 200px;
        height: 200px;
    }

    .gift-body {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 36px;
    }

    .quote-text {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .countdown-box {
        padding: 15px;
        gap: 10px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .about-title {
        font-size: 36px;
    }

    .wish-text {
        font-size: 20px;
    }
}

/* Smooth Loading */
body {
    animation: pageLoad 0.5s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}