:root {
    --primary-color: #ff4d85;
    --primary-light: #ff7aa5;
    --primary-dark: #cc3a68;
    --bg-color: #fff0f5; /* Light pink/lavender */
    --text-color: #4a1c2f;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
}

.cursive-title {
    font-family: 'Great Vibes', cursive;
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 77, 133, 0.2);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-color) 70%);
    border-bottom: 1px solid var(--glass-border);
}

.hero-content {
    background: var(--glass-bg);
    padding: 3rem 4rem;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #ffffff;
    box-shadow: 0 10px 40px rgba(255, 77, 133, 0.15);
    animation: float 6s ease-in-out infinite;
}

.pre-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.names {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 77, 133, 0.3);
}

.date {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #884b64;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Counter Section */
.counter-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.counter-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.time-box {
    background: var(--glass-bg);
    border: 2px solid #fff;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 77, 133, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 77, 133, 0.25);
    border-color: var(--primary-light);
}

.time-box span {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 77, 133, 0.3);
}

.time-box p {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text-color);
    text-transform: uppercase;
}

.counter-text {
    text-align: center;
    font-size: 1.5rem;
    font-family: 'Great Vibes', cursive;
    color: var(--primary-dark);
}

/* Map Section */
.map-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.map-subtitle {
    text-align: center;
    color: #884b64;
    font-size: 1.2rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

#travel-map {
    height: 400px;
    width: 100%;
    border-radius: 20px;
    border: 2px solid #fff;
    box-shadow: 0 10px 30px rgba(255, 77, 133, 0.15);
    z-index: 1;
}

/* Make Leaflet popups fit the theme */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: #fff !important;
    color: var(--text-color) !important;
    border: 1px solid var(--primary-light);
}
.leaflet-popup-content-wrapper {
    border-radius: 15px !important;
    box-shadow: 0 5px 20px rgba(255, 77, 133, 0.2) !important;
}
.leaflet-popup-content {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    text-align: center;
    margin: 15px !important;
}
.custom-heart-icon {
    background: none;
    border: none;
}

/* Letter Section */
.letter-section {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.letter-container {
    background: var(--glass-bg);
    border: 2px solid #fff;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(255, 77, 133, 0.1);
    position: relative;
    backdrop-filter: blur(15px);
}

.letter-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 300;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem !important;
    color: var(--primary-color) !important;
    text-align: right;
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

/* Spotify Floating Button */
.spotify-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1DB954;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spotify-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.6);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: #884b64;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .names { font-size: 3.5rem; }
    .pre-title { font-size: 1.2rem; }
    .hero-content { padding: 1.5rem; width: 95%; }
    
    .time-box { min-width: 45%; padding: 1rem; }
    .time-box span { font-size: 2rem; }
    .counter-container { gap: 1rem; }
    
    .section-title { font-size: 2rem; }
    .map-section, .letter-section { padding: 4rem 1rem; }
    
    .letter-container { padding: 2rem 1.5rem; }
    .cursive-title { font-size: 2.5rem; }
    .letter-content p { font-size: 1.1rem; }
    .signature { font-size: 2.5rem !important; }
    
    #travel-map { height: 300px; }
    
    .spotify-float-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
