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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #feca57 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

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

/* Floating Hearts Background */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: floatUp 8s ease-in-out infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header .heart-icon {
    font-size: 40px;
    margin-bottom: 10px;
    animation: heartbeat 1.5s infinite, spin 20s linear infinite;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(5deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
}

@keyframes spin {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

.header h1 {
    color: white;
    font-size: 20px;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 2px 2px 4px rgba(0,0,0,0.3); }
    50% { text-shadow: 0 0 30px rgba(255, 107, 157, 1), 2px 2px 4px rgba(0,0,0,0.3); }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: scaleIn 1s ease 0.2s both;
    transition: transform 0.3s ease;
}

.hero:hover {
    transform: scale(1.02);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.hero:hover img {
    filter: brightness(0.85);
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.anniversary-badge {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 35px rgba(255, 107, 157, 0.8);
    }
}

.anniversary-date {
    color: white;
    font-size: 42px;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.8), 3px 3px 6px rgba(0,0,0,0.5);
    animation: slideIn 1s ease 0.5s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Counter Section */
.counter {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: scaleIn 1s ease 0.4s both;
    transition: all 0.3s ease;
}

.counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.counter-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.counter-main {
    margin-bottom: 20px;
}

.counter-years {
    font-size: 70px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.8);
    animation: countUp 2s ease;
    display: inline-block;
}

@keyframes countUp {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.counter-years-label {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b9d, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 10px;
    animation: countUp 2s ease 0.2s both;
}

.counter-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    color: white;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.counter-number {
    font-size: 36px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.6);
}

.counter-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Music Player */
.music-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: scaleIn 1s ease 1s both;
    text-align: center;
}

.music-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
}

.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #f5576c);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.5);
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.8);
}

.music-btn:active {
    transform: scale(0.95);
}

.volume-slider {
    width: 120px;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #f5576c);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.6);
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #f5576c);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.6);
}
/* Calendar Section */
.calendar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(124, 75, 162, 0.8));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: scaleIn 1s ease 0.6s both;
    transition: all 0.3s ease;
}

.calendar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.calendar-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.dot {
    width: 10px;
    height: 35px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    animation: wave 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.1s; }
.dot:nth-child(3) { animation-delay: 0.2s; }
.dot:nth-child(4) { animation-delay: 0.3s; }
.dot:nth-child(5) { animation-delay: 0.4s; }
.dot:nth-child(6) { animation-delay: 0.5s; }

@keyframes wave {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1.3);
        opacity: 1;
    }
}

.calendar-header {
    text-align: center;
    margin-bottom: 25px;
}

.calendar-month {
    color: #feca57;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(254, 202, 87, 0.6);
}

.calendar-year {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 2px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.weekday {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.day::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.day:hover::before {
    opacity: 1;
}

.day:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.day.other-month {
    color: rgba(255, 255, 255, 0.3);
}

.day.anniversary {
    background: linear-gradient(135deg, #ff6b9d, #f5576c);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.8);
    animation: heartbeatDay 1.5s infinite;
}

@keyframes heartbeatDay {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

.day.anniversary:hover {
    transform: scale(1.3) rotate(0deg);
}

/* QR Section */
.qr-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: scaleIn 1s ease 0.8s both;
    transition: all 0.3s ease;
}

.qr-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.qr-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

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

.qr-glow {
    position: absolute;
    inset: -30px;
    background: linear-gradient(135deg, #ff6b9d, #8b5cf6, #feca57);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: rotate 4s linear infinite;
}

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

.qr-box {
    position: relative;
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.qr-container:hover .qr-box {
    transform: scale(1.05);
}

.qr-code {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    transition: all 0.3s ease;
}

.qr-container:hover .qr-code {
    transform: rotate(360deg);
}

.qr-heart {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 35px;
    animation: heartbeat 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.8));
}

.qr-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.6);
}

.qr-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.5;
}

/* Start Overlay */
.start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease;
}

.start-overlay.hidden {
    animation: fadeOut 0.5s ease forwards;
    pointer-events: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.start-content {
    text-align: center;
    animation: scaleIn 0.8s ease;
}

.start-heart {
    font-size: 80px;
    margin-bottom: 30px;
    animation: heartbeat 1.5s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.8));
}

.start-title {
    color: white;
    font-size: 28px;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.6);
}

.start-btn {
    padding: 18px 50px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b9d, #f5576c);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.8);
}

.start-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Footer Hearts */
.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    opacity: 0.5;
}

.footer-hearts span {
    font-size: 20px;
    animation: heartbeat 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.6));
}

.footer-hearts span:nth-child(1) { animation-delay: 0s; }
.footer-hearts span:nth-child(2) { animation-delay: 0.2s; }
.footer-hearts span:nth-child(3) { animation-delay: 0.4s; }
.footer-hearts span:nth-child(4) { animation-delay: 0.6s; }
.footer-hearts span:nth-child(5) { animation-delay: 0.8s; }
.footer-hearts span:nth-child(6) { animation-delay: 1s; }

/* Responsive */
@media (max-width: 480px) {
    .anniversary-date {
        font-size: 32px;
    }
    
    .counter-years {
        font-size: 60px;
    }
    
    .counter-details {
        gap: 30px;
    }
    
    .hero {
        height: 280px;
    }
}