/* ===== Google Fonts - Optimized Loading ===== */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Poppins:wght@400;600&family=Great+Vibes&display=swap');

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 64, 129, 0.2);
    transition: padding 0.3s ease, background 0.3s ease;
    will-change: padding;
}

.navbar.scrolled {
    padding: 10px 50px;
    background: rgba(0, 0, 0, 0.97);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-heart {
    font-size: 1.4rem;
    animation: heartBeat 2s ease-in-out infinite;
    display: inline-block;
    will-change: transform;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

.logo-text {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #ff4081;
}

/* ===== Nav Links ===== */
.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 25px;
    transition: color 0.2s ease, background 0.2s ease;
    display: inline-block;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff4081;
    background: rgba(255, 64, 129, 0.1);
}

/* ===== Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: #ff4081;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.heart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.heart-divider .line {
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff4081, transparent);
}

.heart-divider .heart {
    font-size: 1.3rem;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.6rem;
    color: #ff80ab;
}

/* ===== Color Variants ===== */
.blue-line {
    background: linear-gradient(90deg, transparent, #4a90d9, transparent) !important;
}

.pink-line {
    background: linear-gradient(90deg, transparent, #ff4081, transparent) !important;
}

.purple-line {
    background: linear-gradient(90deg, transparent, #9c27b0, transparent) !important;
}

.blue-title   { color: #64b5f6 !important; }
.pink-title   { color: #ff80ab !important; }
.purple-title { color: #ce93d8 !important; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(45deg, #ff4081, #e040fb);
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(255, 64, 129, 0.5);
}

.btn-secondary {
    background: linear-gradient(45deg, #e040fb, #7b68ee);
    box-shadow: 0 4px 15px rgba(224, 64, 251, 0.35);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(224, 64, 251, 0.5);
}

.btn-tertiary {
    background: linear-gradient(45deg, #7b68ee, #4a90d9);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.35);
}

.btn-tertiary:hover {
    box-shadow: 0 6px 25px rgba(123, 104, 238, 0.5);
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 64, 129, 0.15);
    position: relative;
    z-index: 1;
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-hearts span:nth-child(odd) {
    animation: heartBeat 2s ease-in-out infinite;
}

.footer-hearts span:nth-child(even) {
    animation: heartBeat 2s ease-in-out 0.5s infinite;
}

.footer-text {
    color: #ff80ab;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.footer-sub {
    color: #666;
    font-size: 0.82rem;
    margin-bottom: 5px;
}

.footer-copy {
    color: #555;
    font-size: 0.78rem;
}

/* ===== Fade Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0000; }
::-webkit-scrollbar-thumb {
    background: #ff4081;
    border-radius: 10px;
}

/* ===== Text Selection ===== */
::selection {
    background: rgba(255, 64, 129, 0.3);
    color: #fff;
}

/* ============================================ */
/* ===== SCROLL TO TOP - COMMON ===== */
/* ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    /* ✅ Default pink - overridden per page */
    background: linear-gradient(45deg, #ff4081, #e040fb);
    box-shadow: 0 5px 20px rgba(255, 64, 129, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-3px);
}

/* ============================================ */
/* ===== MUSIC PLAYER - COMMON STYLES ===== */
/* ============================================ */

/* ===== CSS Variables - Default Pink Theme ===== */
:root {
    --music-color:    rgba(255, 64, 129, 0.25);
    --music-text:     #ff80ab;
    --music-gradient: linear-gradient(45deg, #ff4081, #e040fb);
    --music-progress: linear-gradient(90deg, #ff4081, #e040fb);
    --music-shadow:   rgba(255, 64, 129, 0.4);
    --music-thumb:    #ff4081;
    --music-hover:    #ff4081;
}

/* ===== Base Player ===== */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid var(--music-color);
    border-radius: 20px;
    padding: 15px 20px;
    z-index: 998;
    min-width: 300px;
    max-width: 360px;
    width: calc(100% - 40px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.music-player.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.music-player.hidden {
    transform: translateX(-50%) translateY(120px);
    opacity: 0;
    pointer-events: none;
}

/* ===== Music Info ===== */
.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.music-icon {
    font-size: 1.8rem;
    min-width: 35px;
    text-align: center;
    display: inline-block;
}

.music-icon.playing {
    animation: musicBounce 0.5s ease-in-out infinite;
}

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

.music-details {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.music-title {
    color: var(--music-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Dancing Script', cursive;
    font-size: 1rem;
    margin: 0;
}

.music-artist {
    color: #777;
    font-size: 0.7rem;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* ===== Music Controls ===== */
.music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.music-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #ccc;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.music-btn:hover {
    color: var(--music-hover);
    transform: scale(1.1);
}

.play-btn {
    background: var(--music-gradient);
    color: #fff !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--music-shadow);
}

.play-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 18px var(--music-shadow);
}

/* ===== Progress Bar ===== */
.music-progress-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.music-time {
    color: #666;
    font-size: 0.65rem;
    min-width: 28px;
    font-family: monospace;
    text-align: center;
}

.music-progress {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: height 0.2s ease;
}

.music-progress:hover {
    height: 5px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--music-progress);
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* ===== Volume Slider ===== */
.music-volume {
    display: flex;
    align-items: center;
    gap: 6px;
}

.music-volume span {
    font-size: 0.8rem;
    color: #666;
    user-select: none;
}

.volume-slider {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    background: var(--music-thumb);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: var(--music-thumb);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-slider::-moz-range-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: none;
}

/* ===== Old Music Toggle - Hidden ===== */
.music-toggle {
    display: none;
}

/* ============================================ */
/* ===== RESPONSIVE ===== */
/* ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .navbar.scrolled {
        padding: 8px 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 35px;
    }

    .hamburger {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
    }

    .heart-divider .line {
        width: 40px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    /* ✅ Music Player Mobile */
    .music-player {
        min-width: 280px;
        max-width: calc(100% - 30px);
        padding: 12px 15px;
        bottom: 10px;
    }

    /* ✅ Scroll Top above music player */
    .scroll-top {
        bottom: 90px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    /* ✅ Music Player Small Mobile */
    .music-player {
        min-width: 260px;
        padding: 10px 12px;
    }

    .play-btn {
        width: 36px;
        height: 36px;
    }

    .music-controls {
        gap: 8px;
    }

    .music-volume span {
        font-size: 0.7rem;
    }
}