/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background: linear-gradient(135deg, #ffeef8 0%, #f0e6ff 50%, #ffe6f0 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #d63384;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.1);
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(221, 160, 221, 0.3));
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="20" fill="%23ff69b4" opacity="0.1">❤️</text></svg>') repeat;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.title {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(214, 51, 132, 0.2);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.2rem;
    color: #8e44ad;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* ===== MAIN CONTENT ===== */
.main {
    padding: 2rem 0;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
}

.carousel-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.polaroid {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.9) rotateY(20deg);
    transition: all 0.6s ease;
}

.polaroid.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.polaroid-photo {
    background: white;
    padding: 20px 20px 60px 20px;
    border-radius: 10px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.polaroid:nth-child(even) .polaroid-photo {
    transform: rotate(2deg);
}

.polaroid-photo:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.9);
}

.polaroid-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.polaroid-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #d63384;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

/* Carousel Navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d63384;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: #d63384;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -25px;
}

.carousel-btn-next {
    right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(214, 51, 132, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: #d63384;
    transform: scale(1.2);
}

/* ===== TIME COUNTER SECTION ===== */
.counter-section {
    padding: 4rem 0;
    text-align: center;
}

.counter-subtitle {
    font-size: 1.1rem;
    color: #8e44ad;
    margin-bottom: 3rem;
    font-weight: 300;
}

.time-counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.time-unit {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #d63384, #8e44ad);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.time-unit:hover::before {
    transform: scaleX(1);
}

.time-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2);
}

.time-number {
    display: block;
    font-size: 3rem;
    font-weight: 600;
    color: #d63384;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.time-label {
    font-size: 0.9rem;
    color: #8e44ad;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== ROMANTIC TEXT SECTION ===== */
.text-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    border-radius: 20px;
}

.romantic-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a5a5a;
}

.text-content p {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.text-content p:nth-child(1) { animation-delay: 0.1s; }
.text-content p:nth-child(2) { animation-delay: 0.2s; }
.text-content p:nth-child(3) { animation-delay: 0.3s; }
.text-content p:nth-child(4) { animation-delay: 0.4s; }
.text-content p:nth-child(5) { animation-delay: 0.5s; }

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

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #d63384;
    font-weight: 600;
    margin-top: 2rem;
}

/* ===== SPOTIFY SECTION ===== */
.spotify-section {
    padding: 4rem 0;
    text-align: center;
}

.spotify-player {
    background: linear-gradient(135deg, #1db954 0%, #1ed760 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(29, 185, 84, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.spotify-player::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: sparkle 10s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spotify-cover {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotify-cover:hover {
    transform: scale(1.05);
}

.spotify-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotify-cover:hover .play-overlay {
    opacity: 1;
}

.spotify-info {
    position: relative;
    z-index: 1;
}

.playlist-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.playlist-artist {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.playlist-description {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.spotify-btn {
    background: white;
    color: #1db954;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.spotify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: #8e44ad;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: -20px;
    }
    
    .carousel-btn-next {
        right: -20px;
    }
    
    .time-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .time-number {
        font-size: 2.5rem;
    }
    
    .spotify-player {
        margin: 0 1rem;
    }
    
    .spotify-cover {
        width: 150px;
        height: 150px;
    }
    
    .text-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .time-counter {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .time-unit {
        padding: 1.5rem 1rem;
    }
    
    .time-number {
        font-size: 2rem;
    }
    
    .polaroid-photo {
        padding: 15px 15px 45px 15px;
    }
    
    .polaroid-photo img {
        height: 250px;
    }
    
    .carousel-btn {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.time-number {
    animation: heartbeat 2s ease-in-out infinite;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus,
.indicator:focus {
    outline: 2px solid #d63384;
    outline-offset: 2px;
}

