* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}
*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.heart {
    position: absolute;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}
.heart-animate {
    animation: heartBeat 1.5s infinite;
}
.fade-in {
    animation: fadeIn 1.5s ease-in;
}
.handwriting {
    font-family: 'Dancing Script', cursive;
}
.love-letter {
    font-family: 'Bad Script', cursive;
}
.timeline-font {
    font-family: 'Marck Script', cursive;
}
.bg-lavender {
    background-color: #E6E6FA;
}
.bg-lilac {
    background-color: #C8A2C8;
}
.bg-pale-pink {
    background-color: #FADADD;
}
.text-gold {
    color: #D4AF37;
}
.border-gold {
    border-color: #D4AF37;
}
.custom-gradient {
    background: linear-gradient(135deg, #E6E6FA 0%, #FADADD 50%, #FFF0F5 100%);
}
.photo-frame {
    border: 3px dashed #8b5cf6;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
}
.photo-frame:hover {
    transform: rotate(0deg) scale(1.05);
    transition: all 0.5s ease;
}
#side-menu.translate-x-0 {
    transform: translateX(0);
}
.timeline-container {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0;
    white-space: nowrap;
}

.timeline-container::-webkit-scrollbar {
    display: none;
}

.timeline-track {
    display: inline-flex;
    position: relative;
}

.timeline-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, #4ade80, #3b82f6, #8b5cf6);
    z-index: 1;
    transition: width 0.5s ease;
}

.timeline-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
    z-index: 2;
    transition: all 0.3s ease;
    width: 250px;
    white-space: normal;
    margin: 64px 20px 0;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-date {
    position: absolute;
    left: 50%;
    bottom: -16px; /* Половина высоты круга */
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 3px solid #8b5cf6;
    border-radius: 50%;
    color: #6b46c1;
    font-size: 16px;
    z-index: 10;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.2);
}

.timeline-date i {
    transition: all 0.3s ease;
    font-size: 14px;
}

.date-text {
    opacity: 0;
    width: 0;
    margin-left: 0;
    font-family: 'Marck Script', cursive;
    font-size: 18px;
    white-space: nowrap;
    transition: all 0.4s ease;
    transform: translateX(-10px);
}

/* Анимация при наведении */
.timeline-item:hover .timeline-date {
    width: 120px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
}

.timeline-item:hover .timeline-date i {
    margin-right: 8px;
    font-size: 16px;
}

.timeline-item:hover .date-text {
    opacity: 1;
    width: auto;
    margin-left: 4px;
    transform: translateX(0);
}

/* Дополнительные эффекты */
.timeline-item:hover .timeline-date::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    border-radius: inherit;
}

.dream-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.gallery-item {
    transition: all 0.3s ease;
}
.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    margin: 0 auto;
    max-width: 80%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.lightbox-nav {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-nav:hover {
    opacity: 1;
}

/* Audio Player Styles */
.pulse-animation {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#visualizer {
    --bar-color: rgba(255, 255, 255, 0.8);
}

.visualizer-bar {
    width: 4px;
    background: var(--bar-color);
    border-radius: 2px;
    transition: height 0.1s ease-out;
}

#progress-circle {
    transition: stroke-dashoffset 0.1s linear;
}

.align-center {
    text-align: center;
}

.none {
    display: none !important;
}

/* --- Timeline Card Fixes --- */
.timeline-item {
    margin-top: 64px;
}
.timeline-item .timeline-date-icon {
    position: absolute;
    top: -64px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    width: 120px;
    pointer-events: none;
}
.timeline-item .timeline-date-icon .icon {
    width: 56px;
    height: 56px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.timeline-item .timeline-date-icon .date {
    margin-top: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 4px 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    letter-spacing: 1px;
}
@media (max-width: 640px) {
    .timeline-item .timeline-date-icon {
        width: 90px;
        top: -48px;
    }
    .timeline-item .timeline-date-icon .icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .timeline-item .timeline-date-icon .date {
        font-size: 0.95rem;
        padding: 2px 10px;
    }
}
.timeline-item .card-content {
    padding-top: 48px !important;
}

/* Preloader styles */
#preloader {
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loader-heart {
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23A855F7"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') center center no-repeat;
    background-size: contain;
    animation: heartbeat 3s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}
