/* ========================================
   BACK BUTTON - Beautiful & Responsive 💖
   ======================================== */
.back-button {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #C9A9E0, #FFB6D9);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(201, 169, 224, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.back-button::before {
    content: '❮';
    font-size: 1.2rem;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.back-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 169, 224, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.back-button:hover::before {
    transform: translateX(-4px);
    animation: slideLeft 0.6s ease infinite;
}

@keyframes slideLeft {

    0%,
    100% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(-8px);
    }
}

.back-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* ========================================
   PAGE SECTIONS
   ======================================== */
.page-section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

/* ========================================
   NAVIGATION BUTTONS (After Countdown)
   ======================================== */
.nav-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.nav-link {
    text-decoration: none;
    display: block;
}


/* ========================================
   MOBILE RESPONSIVE - Complete 📱
   ======================================== */
@media (max-width: 768px) {

    /* Back Button Mobile */
    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .back-button::before {
        font-size: 1rem;
    }

    /* Page Section Mobile */
    .page-section {
        padding: 5rem 1rem 3rem;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .heart-container {
        width: 280px !important;
        height: 280px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        align-items: center;
        padding: 0 1rem;
    }

    .btn-pill {
        width: 90%;
        max-width: 280px;
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }

    /* Navigation Buttons Mobile */
    .nav-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .nav-link {
        width: 100%;
        max-width: 320px;
    }

    .nav-btn {
        width: 100%;
        font-size: 0.95rem !important;
        padding: 0.9rem 1.5rem !important;
    }

    /* Countdown Mobile */
    .countdown {
        gap: 0.5rem !important;
    }

    .time-unit {
        width: 60px !important;
    }

    .time-value {
        font-size: 1.5rem !important;
    }

    .time-label {
        font-size: 0.7rem !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.75rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
    }

    /* Gallery Mobile */
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 1rem !important;
    }

    .polaroid {
        width: 140px !important;
        height: 160px !important;
    }

    /* Timeline Mobile */
    .timeline-container::before {
        left: 20px !important;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 80px) !important;
        margin-left: 70px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-icon {
        left: 20px !important;
        transform: translateX(0) !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: translateX(0) scale(1);
        }

        50% {
            transform: translateX(0) scale(1.1);
        }
    }

    .timeline-title {
        font-size: 1.1rem !important;
    }

    .timeline-description {
        font-size: 0.9rem !important;
    }

    /* Love Notes Mobile */
    .hearts-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .note-heart {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.75rem !important;
    }

    /* Modal Mobile */
    .modal-content {
        width: 90% !important;
        max-width: 350px !important;
        padding: 2rem 1.5rem !important;
    }

    .modal-message {
        font-size: 1.1rem !important;
    }

    /* Minigame Mobile */
    .game-area {
        height: 300px !important;
    }

    .game-heart {
        width: 45px !important;
        height: 45px !important;
        font-size: 2rem !important;
    }

    .game-info {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Surprise Mobile */
    .gift-box {
        width: 160px !important;
        height: 160px !important;
    }

    .gift-body {
        width: 130px !important;
        height: 110px !important;
    }

    .gift-lid {
        width: 150px !important;
        height: 50px !important;
    }

    .surprise-card {
        padding: 2rem 1.5rem !important;
    }

    .surprise-card h3 {
        font-size: 1.5rem !important;
    }

    .surprise-card p {
        font-size: 1.1rem !important;
    }

    /* Buttons Mobile */
    .btn-game,
    .btn-open-gift,
    .btn-modal-close {
        font-size: 0.95rem !important;
        padding: 0.7rem 1.5rem !important;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }

    .heart-container {
        width: 250px !important;
        height: 250px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
    }

    .polaroid {
        width: 120px !important;
        height: 140px !important;
    }

    .back-button {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .btn-pill {
        width: 95%;
        max-width: 260px;
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .hero-buttons {
        padding: 0 0.5rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 1.5rem 1rem !important;
    }

    .heart-container {
        width: 200px !important;
        height: 200px !important;
    }

    .page-section {
        padding: 4rem 1rem 2rem !important;
    }
}