@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #fafafa;
    color: #333;
}

.mobile-menu::-webkit-scrollbar {
    width: 5px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #f472b6;
    border-radius: 10px;
}

/* Smooth transition for hamburger to X */
.hamburger-line {
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu animation */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu-item {
    animation: slideIn 0.3s ease forwards;
}

/* Delay animations for each menu item */
.mobile-menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

.mobile-menu-item:nth-child(4) {
    animation-delay: 0.4s;
}

.vsco-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 2px;
}

.photo-item {

    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.03);
}

.love-card {
    background: linear-gradient(135deg, #fff6f6 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.love-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.music-player {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 16px;
}

.progress-bar {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b8b 0%, #ff8e53 100%);
    border-radius: 2px;
    width: 70%;
}

.diary-entry {
    background-color: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
}

.heart-beat {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #ff6b8b #f0f0f0;
}

.scroll-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #ff6b8b;
    border-radius: 10px;
}

.polaroid {
    background: white;
    padding: 15px 15px 50px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
}

.polaroid:nth-child(2n) {
    transform: rotate(-1deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    background: #e63946;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
}

.envelope:before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-top: 90px solid #d90429;
    transform-origin: top;
    transition: all 0.4s 0.2s ease;
}

.envelope.open:before {
    transform: rotateX(180deg);
    z-index: 0;
}

.envelope:after {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-bottom: 90px solid transparent;
}

.flap {
    position: absolute;
    bottom: -20px;
    width: 140px;
    height: 20px;
    background: #e63946;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.letter {
    position: absolute;
    width: 240px;
    height: 300px;
    background: #fff;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    margin-top: 10px;
    transition: all 0.4s 0.2s ease;
    z-index: 1;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
}

.envelope.open .letter {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -160px);
}

.heart-envelope {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #e63946;
    transform: rotate(45deg);
    left: 50%;
    top: 50px;
    margin-left: -15px;
    z-index: 3;
}

.heart-envelope:before,
.heart-envelope:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #e63946;
    border-radius: 50%;
}

.heart-envelope:before {
    top: -15px;
    left: 0;
}

.heart-envelope:after {
    top: 0;
    left: -15px;
}

@media (min-width: 768px) {
    .envelope {
        width: 400px;
        height: 240px;
    }

    .envelope:before {
        border-left: 200px solid transparent;
        border-right: 200px solid transparent;
        border-top: 130px solid #d90429;
    }

    .flap {
        width: 200px;
    }

    .letter {
        width: 360px;
        height: 200px;
    }

    .envelope.open .letter {
        transform: translate(-50%, -200px);
    }

    .heart-envelope {
        width: 40px;
        height: 40px;
        margin-left: -20px;
    }

    .heart-envelope:before,
    .heart-envelope:after {
        width: 40px;
        height: 40px;
    }

    .heart-envelope:before {
        top: -20px;
    }

    .heart-envelope:after {
        left: -20px;
    }
}