html {
    scroll-behavior: smooth !important;
}

::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.font-esthetic {
    font-family: 'Great Vibes', cursive !important;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.font-elegant {
    font-family: 'Cormorant Garamond', serif !important;
}


section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 2rem !important;
    padding-bottom: 5rem !important;
    box-sizing: border-box;
}

.img-center-crop {
    width: 9rem;
    height: 9rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
}

html[data-bs-theme="dark"] .btn-transparent {
    color: rgb(255, 255, 255);
    background-color: transparent !important;
}

html[data-bs-theme="light"] .btn-transparent {
    color: rgb(0, 0, 0);
    background-color: transparent !important;
}

.loading-page {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    z-index: 1056;
    background: radial-gradient(circle at center, #ffffff 0%, #fdfbf7 50%, #fcf6bd 100%) !important;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease-in-out, filter 1s ease;
}

.portal-open {
    transform: scale(3) rotate(5deg) !important;
    opacity: 0 !important;
    filter: blur(20px) !important;
    pointer-events: none !important;
}

.bg-light-dark,
.bg-white-black {
    background-color: transparent !important;
}

.bg-theme-auto {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.bg-cover-home {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.width-loading {
    width: 25rem;
}

@media (max-width: 575.98px) {
    .bg-cover-home {
        width: 100vw;
    }

    .width-loading {
        width: 15rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .bg-cover-home {
        width: 58.33vw;
    }

    .width-loading {
        width: 20rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .bg-cover-home {
        width: 50vw;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .bg-cover-home {
        width: 41.67vw;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .bg-cover-home {
        width: 33.33vw;
    }
}

@media (min-width: 1400px) {
    .bg-cover-home {
        width: 25vw;
    }
}

.no-gap-bottom {
    margin-bottom: -1rem;
}

svg {
    transform: translateY(1px) !important;
}

/* ===== Romantic Moments Grid ===== */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 1.25rem;
    padding: 0.5rem;
}

.moment-card {
    cursor: pointer;
    perspective: 1000px;
}

.moment-polaroid {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 8px 8px 48px 8px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    overflow: hidden;
}

.moment-polaroid img {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.6s ease;
}

/* Subtle rotation for playful feel */
.moment-card:nth-child(1) .moment-polaroid { transform: rotate(-1.5deg); }
.moment-card:nth-child(2) .moment-polaroid { transform: rotate(2deg); }
.moment-card:nth-child(3) .moment-polaroid { transform: rotate(1deg); }
.moment-card:nth-child(4) .moment-polaroid { transform: rotate(-2deg); }
.moment-card:nth-child(5) .moment-polaroid {
    transform: rotate(0.5deg);
    border: 2px solid rgba(212, 175, 55, 0.3);
}
.moment-card:nth-child(6) .moment-polaroid { transform: rotate(-1deg); }

/* Hover: straighten + lift + shadow */
.moment-card:hover .moment-polaroid {
    transform: rotate(0deg) translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.1);
    z-index: 10;
}

.moment-card:hover .moment-polaroid img {
    transform: scale(1.05);
}

/* Caption */
.moment-caption {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.moment-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--velvet-dark);
    letter-spacing: 0.5px;
}

.moment-date {
    font-family: 'Great Vibes', cursive;
    font-size: 0.85rem;
    color: var(--gold-primary);
    opacity: 0.9;
    margin-top: -2px;
}

/* Landscape = 2 columns wide */
.moment-landscape {
    grid-column: span 2;
}

/* Portrait = 1 column, taller */
.moment-portrait {
    grid-row: span 2;
}

/* Mobile: 2 columns, simpler */
@media (max-width: 767.98px) {
    .moments-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 0.75rem;
        padding: 0.25rem;
    }

    .moment-landscape {
        grid-column: span 2;
    }

    .moment-portrait {
        grid-row: span 2;
    }

    .moment-polaroid {
        padding: 6px 6px 40px 6px;
    }

    .moment-polaroid img {
        height: calc(100% - 34px);
    }

    .moment-label {
        font-size: 0.85rem;
    }

    .moment-date {
        font-size: 0.75rem;
    }

    /* Reduce rotation on mobile for cleaner look */
    .moment-card:nth-child(1) .moment-polaroid { transform: rotate(-0.5deg); }
    .moment-card:nth-child(2) .moment-polaroid { transform: rotate(1deg); }
    .moment-card:nth-child(3) .moment-polaroid { transform: rotate(0.5deg); }
    .moment-card:nth-child(4) .moment-polaroid { transform: rotate(-1deg); }
    .moment-card:nth-child(5) .moment-polaroid { transform: rotate(0deg); }
    .moment-card:nth-child(6) .moment-polaroid { transform: rotate(-0.5deg); }
}

/* Very small screens */
@media (max-width: 400px) {
    .moments-grid {
        grid-auto-rows: 150px;
        gap: 0.5rem;
    }
}

.svg-wrapper {
    display: block !important;
    overflow: hidden !important;
    transform: translateZ(0) !important;
    margin-bottom: -1px;
}
