/* ========================================
   Memory Jar Section (GLASSMORPHIC)
   ======================================== */
.memory-jar-section {
    padding: var(--spacing-xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.jar-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jar-visual {
    position: relative;
    width: 400px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jar-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 32px rgba(78, 205, 196, 0.3));
    animation: jarFloat 4s ease-in-out infinite;
}

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

.memory-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.memory-note {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(233, 30, 99, 0.4));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid var(--glass-border-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: noteFloat 3s ease-in-out infinite;
}

.memory-note:nth-child(odd) {
    animation-delay: 0.5s;
}

.memory-note:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7);
    z-index: 10;
}

@keyframes noteFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.memory-note i {
    width: 24px;
    height: 24px;
    color: white;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* Note positioning inside jar */
.memory-note:nth-child(1) { top: 15%; left: 35%; }
.memory-note:nth-child(2) { top: 12%; left: 55%; }
.memory-note:nth-child(3) { top: 20%; left: 45%; }
.memory-note:nth-child(4) { top: 28%; left: 30%; }
.memory-note:nth-child(5) { top: 25%; left: 60%; }
.memory-note:nth-child(6) { top: 35%; left: 40%; }
.memory-note:nth-child(7) { top: 38%; left: 52%; }
.memory-note:nth-child(8) { top: 45%; left: 35%; }
.memory-note:nth-child(9) { top: 42%; left: 58%; }
.memory-note:nth-child(10) { top: 52%; left: 42%; }
.memory-note:nth-child(11) { top: 55%; left: 55%; }
.memory-note:nth-child(12) { top: 62%; left: 38%; }
.memory-note:nth-child(13) { top: 68%; left: 50%; }
.memory-note:nth-child(14) { top: 72%; left: 40%; }
.memory-note:nth-child(15) { top: 75%; left: 52%; }

/* Memory Modal */
.memory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity var(--transition-normal);
}

.memory-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.memory-modal-content {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    border: 2px solid var(--glass-border-bright);
    border-radius: 30px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close i {
    width: 24px;
    height: 24px;
    color: white;
}

.memory-note-display {
    text-align: center;
}

.note-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(156, 39, 176, 0.3));
    border-radius: 50%;
    border: 2px solid var(--glass-border-bright);
}

.note-icon i {
    width: 40px;
    height: 40px;
    color: var(--accent-teal);
    filter: drop-shadow(0 0 15px rgba(78, 205, 196, 0.8));
}

.memory-text {
    font-family: var(--font-script);
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: textFadeIn 0.6s ease;
}

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

/* ========================================
   Reasons Counter Section (GLASSMORPHIC)
   ======================================== */
.reasons-section {
    padding: var(--spacing-xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.reasons-container {
    padding: 2rem;
}

.reasons-display {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--backdrop-blur-heavy));
    -webkit-backdrop-filter: blur(var(--backdrop-blur-heavy));
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--spacing-lg);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reasons-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.1) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

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

.reason-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.reason-text {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: reasonFadeIn 0.6s ease;
}

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

.next-reason-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose));
    background-size: 200% 200%;
    border: 2px solid var(--glass-border-bright);
    border-radius: 50px;
    color: white;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.4);
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(78, 205, 196, 0.4);
    }
    50% {
        box-shadow: 0 12px 40px rgba(78, 205, 196, 0.6);
    }
}

.next-reason-btn:hover {
    transform: scale(1.05);
    background-position: 100% 0;
    box-shadow: 0 12px 48px rgba(78, 205, 196, 0.7);
}

.next-reason-btn:active {
    transform: scale(0.98);
}

.next-reason-btn i {
    width: 24px;
    height: 24px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.infinity-symbol {
    font-size: 6rem;
    text-align: center;
    margin-top: var(--spacing-lg);
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold), var(--primary-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(78, 205, 196, 0.6));
    animation: infinityRotate 10s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .jar-visual {
        width: 300px;
        height: 400px;
    }

    .memory-note {
        width: 40px;
        height: 40px;
    }

    .memory-note i {
        width: 20px;
        height: 20px;
    }

    .memory-modal-content {
        padding: 2rem;
    }

    .memory-text {
        font-size: 1.2rem;
    }

    .reason-number {
        font-size: 3rem;
    }

    .reason-text {
        font-size: 1.3rem;
    }

    .infinity-symbol {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .jar-visual {
        width: 250px;
        height: 350px;
    }

    .memory-note {
        width: 35px;
        height: 35px;
    }

    .memory-modal-content {
        padding: 1.5rem;
    }

    .memory-text {
        font-size: 1.1rem;
    }

    .reason-number {
        font-size: 2.5rem;
    }

    .reason-text {
        font-size: 1.2rem;
    }

    .next-reason-btn {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }

    .infinity-symbol {
        font-size: 3rem;
    }
}
