/* --- DOUBLE-TAP HEART ANIMATION --- */
.double-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    color: #ff3040;
    pointer-events: none;
    animation: heartPop .6s ease forwards;
    z-index: 3;
}

@keyframes heartPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    40% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* --- HEROFRAME SPIN ANIMATION --- */
@keyframes spinSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cframe.spinning {
    animation: spinSlow 6s linear infinite;
    transition: none !important;
}

:root {
    --bg: #050405;
    --muted: #bdbdbd;
    --accent: #ff2b2b;
    --card: #121212;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255, 43, 43, 0.02), transparent),
        linear-gradient(180deg, var(--bg) 0%, #090409 100%);
    color: #eee;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', 'Noto Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow: hidden;
    /* main handles scrolling */
}

/* hide native scrollbar UI but allow scrolling */
body::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #050405 0%, #0a0309 50%, #0d0202 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.loading-logo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
}

.logo-circle {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 43, 43, 0.1), rgba(196, 18, 18, 0.05));
    border: 3px solid rgba(255, 43, 43, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 2s ease-in-out infinite;
    box-shadow:
        0 0 40px rgba(255, 43, 43, 0.3),
        inset 0 0 40px rgba(255, 43, 43, 0.1);
}

.logo-circle img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 43, 43, 0.4));
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 40px rgba(255, 43, 43, 0.3),
            inset 0 0 40px rgba(255, 43, 43, 0.1);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 60px rgba(255, 43, 43, 0.5),
            inset 0 0 60px rgba(255, 43, 43, 0.2);
    }
}

.loading-rings {
    position: absolute;
    inset: -20px;
}

.ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: ringRotate 3s linear infinite;
}

.ring:nth-child(2) {
    inset: -15px;
    border-top-color: rgba(255, 43, 43, 0.6);
    border-right-color: rgba(255, 43, 43, 0.6);
    animation-duration: 2s;
    animation-direction: reverse;
}

.ring:nth-child(3) {
    inset: -30px;
    border-top-color: rgba(255, 43, 43, 0.3);
    border-right-color: rgba(255, 43, 43, 0.3);
    animation-duration: 4s;
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff2b2b, #ff5555, #ff2b2b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 32px;
    letter-spacing: 1px;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg,
            var(--accent) 0%,
            #ff5555 50%,
            var(--accent) 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShimmer 2s ease-in-out infinite;
    box-shadow:
        0 0 20px rgba(255, 43, 43, 0.6),
        0 0 40px rgba(255, 43, 43, 0.3);
}

@keyframes progressShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.loading-text {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile loading adjustments */
@media (max-width: 600px) {
    .loading-logo {
        width: 160px;
        height: 160px;
        margin-bottom: 32px;
    }

    .loading-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .loading-content {
        padding: 20px;
    }
}

/* hide native scrollbar UI but allow scrolling */
body::-webkit-scrollbar {
    display: none;
}

* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.55));
    backdrop-filter: blur(6px);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 0, 0, 0.07);
    transition: transform .42s ease, opacity .42s ease;
}

nav.scrolled {
    box-shadow: 0 4px 20px rgba(255, 43, 43, 0.1);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85), rgba(10, 10, 10, 0.7));
}

nav.hidden {
    transform: translateY(-120%);
    opacity: 0;
    display: none;
    pointer-events: none;
}

.logo {
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color .3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.user-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 43, 43, 0.2), rgba(196, 18, 18, 0.1));
    border: 2px solid rgba(255, 43, 43, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-profile:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(255, 43, 43, 0.3);
}

.user-profile::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* Scroll snap settings - main is the scroller */
main {
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    overflow-y: auto;
    height: 100vh;
}

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - 72px);
    display: block;
    padding-top: 72px;
    /* space for fixed nav */
}


#hero {
    padding-top: 0;
}

header {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    width: 100%;
    padding: 48px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    max-width: var(--max-width);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 36px;
    align-items: center;
    margin: 0 auto;
}



@media (max-width:900px) {
    .hero-inner {
        grid-template-columns: 1fr 360px;
    }

    .main-title {
        font-size: 2.8rem;
        align-items: center;
        text-align: center;
    }

    .lead {
        text-align: center;
        margin: 0 auto;
    }

    .cta-row {
        justify-content: center;
    }

    /* Tablet modal adjustments */
    .modal-card {
        grid-template-columns: 1fr 320px;
        height: min(90vh, 700px);
    }

    .modal-right {
        max-height: 90vh;
    }

    /* Tablet nav */
    .nav-links {
        gap: 14px;
    }

    .nav-links a::after {
        height: 1.5px;
    }
}

@media (max-width:680px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-right {
        order: -1;
    }

    .cframe {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .cframe img {
        width: auto;
        height: auto;
    }

    /* Mobile nav improvements */
    nav {
        height: 64px;
        padding: 0 16px;
    }

    .logo {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .nav-links {
        gap: 12px;
        font-size: 0.9rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-links a::after {
        bottom: -2px;
        height: 1.5px;
    }

    .user-profile {
        width: 32px;
        height: 32px;
    }

    /* Mobile title adjustments */
    .main-title {
        font-size: 2rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    /* Mobile modal improvements */
    .modal-card {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .hero-frame-overlay img {
        max-width: 95vw;
        max-height: 85vh;
    }

    /* Prevent animation issues on small screens */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

.main-title {
    font-size: 3.2rem;
    color: var(--accent);
    font-weight: 900;
    line-height: 1.02;
    margin-bottom: 14px;
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 56ch;
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    background: var(--accent);
    color: #111;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.cframe {
    width: 460px;
    height: 460px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(120, 10, 10, 0.35);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
    transition: transform .72s cubic-bezier(.2, .9, .2, 1), filter .42s;
    cursor: pointer;
}

.cframe:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
    box-shadow: 0 40px 90px rgba(255, 43, 43, 0.3);
}

.cframe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(.06) contrast(1.05);
}

.hero.animated .main-title {
    transform: translateY(-18px) scale(.98);
    opacity: .98;
}

.hero.animated .cframe {
    transform: scale(1.06) rotate(-2deg) translateY(-8px);
    filter: brightness(1.06);
}

/* Hero frame fullscreen overlay */
.hero-frame-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 99998;
    cursor: pointer;
}

.hero-frame-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.hero-frame-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.category-section {
    width: 100%;
    padding: 20px 12px;
    background: transparent;
}

.category-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: #0b0b0b;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.tab.active {
    background: linear-gradient(90deg, rgba(255, 43, 43, 0.16), rgba(196, 18, 18, 0.08));
    color: var(--accent);
    transform: translateY(-6px);
}

.featured {
    width: 100%;
    padding: 24px 20px 88px;
}

.featured-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 12px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #fff;
    border-left: 6px solid var(--accent);
    padding-left: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    align-items: start;
    justify-items: center;
}

.card {
    background: linear-gradient(180deg, var(--card), #121212);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    height: 420px;
    max-width: 380px;
    width: 100%;
    transition: transform .38s ease, box-shadow .38s ease, opacity .32s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 0, 0, 0.08);
}

.thumb {
    height: 56%;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.card:hover .thumb img {
    transform: scale(1.06);
}

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.title {
    font-weight: 800;
    font-size: 1.06rem;
}

.desc {
    position: relative;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.35;
    max-height: calc(1.35em * 4);
    /* 4 lines guaranteed */
    overflow: scroll;
    display: block;
    padding-right: 4px;
    word-break: break-word;
}

.desc::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 1.35em;
    pointer-events: none;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--card));
}

.meta {
    display: flex;
    gap: 12px;
    color: var(--accent);
    font-weight: 700;
    font-size: .88rem;
    align-items: center;
    margin-top: auto;
}

.artist-name {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.card.hidden-by-filter {
    opacity: 0;
    transform: scale(.98) translateY(18px);
    pointer-events: none;
    visibility: hidden;
}

/* ------------ MODAL & COMMENTS (V3 integrated) ------------ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s;
    z-index: 99999;
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: min(1024px, 96%);
    height: min(820px, 92vh);
    background: linear-gradient(180deg, #0d0d0d, #141414);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 380px;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn .4s cubic-bezier(.2, .9, .3, 1) forwards;
    opacity: 0;
}

.modal.open .modal-card {
    animation: modalSlideIn .4s cubic-bezier(.2, .9, .3, 1) forwards;
    opacity: 1;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-left {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.modal-left img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-right {
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.modal-close {
    align-self: flex-end;
    background: var(--accent);
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    color: #111;
    cursor: pointer;
    font-weight: 700;
}

.modal-description {
    flex-shrink: 0;
    transition: transform .4s cubic-bezier(.2, .9, .3, 1), margin-bottom .4s cubic-bezier(.2, .9, .3, 1);
    transform: translateY(40px);
    margin-bottom: 40px;
}

.modal-description.active {
    transform: translateY(0);
    margin-bottom: 0;
}

.modal-title {
    font-weight: 900;
    font-size: 1.2rem;
    margin-top: 6px;
}

.modal-desc {
    color: var(--muted);
    font-size: .95rem;
    padding-right: 8px;
    margin-top: 8px;
    line-height: 1.4;
}

.modal-desc:not(.expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.4em * 3);
}

.modal-desc.expanded {
    display: block;
    max-height: 140px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-desc.pushed-down {
    transform: translateY(20px);
    margin-bottom: 20px;
}

.art-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #111;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 10;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* For card "more..." */
.card-more {
    white-space: nowrap;
    /* <-- KEY FIX: never wraps to new line */
    display: inline-block;
    /* makes it layout properly */
    color: var(--accent);
    font-weight: 600;
    margin-left: 4px;
    /* spacing after dots */
    background: transparent;
    position: relative;
    z-index: 5;
}

.desc .dots-and-more {
    white-space: nowrap;
}

/* For modal: show-more / show-less */
.modal-more {
    color: var(--accent);
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
}

/* Scrollable modal body after expansion */

.modal-artist {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 4px;
}

.modal-actions {
    margin-top: 12px;
    margin-left: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
    transition: all .24s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.icon-btn.active {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

.insta-btn {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform .15s ease;
}

.insta-btn:active {
    transform: scale(.92);
}

#likeBtn.liked svg {
    stroke: #ff3040;
    fill: #ff3040;
}

.add-comment {
    flex-shrink: 0;
    display: none;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s cubic-bezier(.2, .9, .3, 1) .1s, transform .3s cubic-bezier(.2, .9, .3, 1) .1s;
}

.add-comment.active {
    display: flex;
    opacity: 1;
    margin-top: 12px;
    transform: translateY(0);
}

.modal-right-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

@media(min-width: 701px) {
    .modal-right-content {
        overflow: visible;
        /* Allow content to extend beyond for smooth scrolling */
    }
}

.add-comment input {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.95rem
}

.add-comment button {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: #111;
    border: none;
    font-weight: 800
}

/* Comments container adapted to V3 */
.comments {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: opacity .4s cubic-bezier(.2, .9, .3, 1), transform .4s cubic-bezier(.2, .9, .3, 1);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.comments.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.comment-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp .34s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none
    }
}

.comment-body {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.icon-comment.active path {
    fill: #b3b3b3 !important;
    stroke: #b3b3b3 !important;
}

.icon-share.active path {
    fill: currentColor !important;
}

.comment-meta {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-meta .u {
    font-weight: 800;
    color: #fff;
    font-size: 0.8rem
}

.comment-meta .time {
    color: var(--muted);
    font-size: 0.55rem;
    margin-left: auto;
}

.comment-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* smaller screens adjustments */
@media(max-width:700px) {
    .modalLikeCount {
        margin-left: 12px !important;
    }

    .modal-card {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-left {
        order: 1;
        min-height: 50vh;
        position: relative;
    }

    .art-category-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 0.65rem;
        border-radius: 14px;
    }

    .modal-right {
        order: 2;
        max-height: 50vh;
        overflow: visible;
        padding: 0;
        position: relative;
        background: linear-gradient(180deg, #0d0d0d, #141414);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s cubic-bezier(.2, .9, .3, 1);
        touch-action: none;
    }

    .modal-right.dragging {
        transition: none;
    }

    .modal-close {
        display: none;
    }

    /* Drag handle bar */
    .modal-right::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 5px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
        cursor: grab;
        z-index: 10;
    }

    .modal-right.dragging::before {
        cursor: grabbing;
        background: rgba(255, 255, 255, 0.5);
    }

    /* Content wrapper for proper spacing */
    .modal-right-content {
        padding: 28px 20px 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 50vh;
        overflow: hidden;
        /* Changed from overflow-y: auto */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        position: relative;
        background: linear-gradient(180deg, #0d0d0d, #141414);
        /* Ensure background fills */
    }

    .modal-description {
        margin-top: 0;
        transform: translateY(0) !important;
        margin-bottom: 0 !important;
    }

    .modal-title {
        font-size: 1.1rem;
        margin-top: 0;
    }

    .modal-desc {
        font-size: 0.9rem;
        max-height: 80px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .modal-actions {
        margin-top: 8px;
    }

    .insta-btn svg {
        width: 26px;
        height: 26px;
    }

    .double-heart {
        font-size: 70px !important;
    }

    #modalLikeCount {
        font-size: 0.85rem;
    }

    /* When comments are active, expand modal-right */
    .modal-card.comments-active .modal-left {
        min-height: 20vh;
    }

    .modal-card.comments-active .modal-right {
        max-height: 80vh;
    }

    .modal-card.comments-active .modal-right-content {
        max-height: 90vh;
        min-height: 80vh;
    }

    /* Comments section in mobile */
    .comments {
        flex: 1;
        min-height: 200px;
        max-height: 500px;
    }

    /* Mobile backdrop blur optimization */
    .modal,
    .hero-frame-overlay {
        backdrop-filter: blur(4px);
    }

    .modal.open,
    .hero-frame-overlay.open {
        backdrop-filter: blur(6px);
    }

    /* Reduce animations on mobile for performance */
    @media (max-width: 480px) {
        .cframe.spinning {
            animation-duration: 8s;
        }

        body::before {
            animation-duration: 12s;
        }

        .modalSlideIn {
            animation-duration: 0.3s;
        }

        .imageZoomIn {
            animation-duration: 0.3s;
        }
    }
}

/* Ultra-small screens (< 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    nav {
        height: 56px;
        padding: 0 12px;
    }

    .logo {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .nav-links {
        gap: 8px;
        font-size: 0.8rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .hero-inner {
        gap: 12px;
        padding: 24px 12px;
    }

    .main-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .lead {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .cta-row {
        gap: 8px;
        margin-top: 12px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .cframe {
        width: 160px;
        height: 160px;
    }

    .snap-section {
        min-height: 100vh;
        padding-top: 56px;
    }

    #hero {
        padding-top: 0;
    }

    header {
        min-height: calc(100vh - 56px);
    }

    .category-section {
        padding: 12px 8px;
    }

    .tabs {
        gap: 8px;
        flex-wrap: wrap;
    }

    .tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* Touch-friendly button sizing */
    button {
        min-height: 44px;
        min-width: 44px;
    }

    .modal-card {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .insta-btn {
        padding: 8px;
    }

    .insta-btn svg {
        width: 24px;
        height: 24px;
    }

    .modal-right-content {
        padding: 20px 16px;
    }
}

/* target your real button id / class so styles actually apply */
#likeBtn.liked,
.insta-btn.liked {
    transition: transform .25s ease, filter .25s ease;
}

/* shake animation for unlike attempts */
#likeBtn.shake,
.insta-btn.shake {
    animation: heartShake .36s ease;
}

@keyframes heartShake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }

    100% {
        transform: translateX(0);
    }
}

/* popup base (hidden by default) */
/* popup base (hidden by default) */

/* toggled state – will retrigger if class is re-added */
/* Modern Popup Redesign */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.98));
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 28px 40px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    pointer-events: none;
    opacity: 0;
    transition: all .4s cubic-bezier(.2, .9, .3, 1);
    z-index: 999999;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 20px rgba(255, 43, 43, 0.3);
    max-width: 420px;
    min-width: 280px;
    border: 1px solid rgba(255, 43, 43, 0.2);
    text-align: center;
}

.custom-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    animation: smoothPopIn 0.5s cubic-bezier(.2, .9, .3, 1);
}

@keyframes smoothPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }

    60% {
        transform: translate(-50%, -50%) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Add icon support to popup */
.custom-popup::before {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-popup.liked::before {
    content: '❤️';
    font-size: 24px;
}

/* ============================================
   UPDATED USER SETUP STYLES
   ============================================ */
/* User Setup Modal - FIXED */
.user-setup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.user-setup-modal:not(.hidden) {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.user-setup-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a1f 0%, #0f0f12 100%);
    border: 2px solid rgba(255, 43, 43, 0.3);
    border-radius: 28px;
    padding: 48px 40px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    z-index: 1;
    animation: modalPopIn 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.user-setup-card h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.user-setup-card>p {
    color: var(--muted);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.name-input-section {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.name-input-section input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.name-input-section input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 43, 43, 0.2);
}

.avatar-selection p {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.profile-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.2, .9, .3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.profile-option-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.profile-option-btn:hover::before {
    opacity: 0.3;
}

.profile-option-btn:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(255, 43, 43, 0.3);
    background: rgba(255, 43, 43, 0.08);
}

.profile-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 43, 43, 0.15), rgba(196, 18, 18, 0.08));
    border: 2px solid rgba(255, 43, 43, 0.3);
    transition: all 0.4s cubic-bezier(.2, .9, .3, 1);
}

.profile-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent);
    filter: drop-shadow(0 2px 8px rgba(255, 43, 43, 0.4));
    transition: all 0.3s ease;
}

.profile-option-btn:hover .profile-icon {
    transform: scale(1.15) rotate(-5deg);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(255, 43, 43, 0.5);
}

.profile-option-btn:hover .profile-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 16px rgba(255, 43, 43, 0.6));
}

.profile-option-btn span {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Stay Anonymous Link */
.stay-anonymous-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stay-anonymous-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: translateY(-2px);
}

.stay-anonymous-link:active {
    transform: translateY(0);
}

/* Avatar Grid Updated */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    justify-items: center;
}

.avatar-option {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(.2, .9, .3, 1);
    position: relative;
}

.avatar-option svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.avatar-option::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.35s cubic-bezier(.2, .9, .3, 1);
}

.avatar-option:hover {
    background: rgba(255, 43, 43, 0.12);
    border-color: rgba(255, 43, 43, 0.4);
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(255, 43, 43, 0.3);
}

.avatar-option:hover svg {
    color: var(--accent);
    transform: scale(1.15);
}

.avatar-option.selected {
    background: linear-gradient(135deg, rgba(255, 43, 43, 0.25), rgba(196, 18, 18, 0.15));
    border-color: var(--accent);
    transform: scale(1.15);
}

.avatar-option.selected::after {
    opacity: 1;
    transform: scale(1);
    animation: selectedPulseRing 2s ease-in-out infinite;
}

.avatar-option.selected svg {
    color: var(--accent);
}

@keyframes selectedPulseRing {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.08);
    }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .user-setup-card {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .user-setup-card h2 {
        font-size: 1.6rem;
    }

    .profile-option-btn {
        padding: 28px 20px;
    }

    .profile-icon {
        width: 70px;
        height: 70px;
    }

    .profile-icon svg {
        width: 36px;
        height: 36px;
    }

    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .avatar-option {
        width: 64px;
        height: 64px;
    }

    .avatar-option svg {
        width: 28px;
        height: 28px;
    }

    .stay-anonymous-link {
        font-size: 0.9rem;
    }
}

/* Video Support Styles */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.card:hover .video-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay svg circle {
    transition: all 0.3s ease;
}

.card:hover .video-play-overlay svg circle {
    fill: rgba(255, 43, 43, 0.9);
    stroke: white;
}

/* Video container in modal */
.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.video-container video {
    outline: none;
}

/* Video controls styling */
.video-container video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* Mobile video adjustments */
@media (max-width: 700px) {
    .video-container {
        position: relative;
        padding-top: 56.25%;
        /* 16:9 aspect ratio */
        height: 0;
    }

    .video-container iframe,
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .video-play-overlay svg {
        width: 50px;
        height: 50px;
    }
}

/* Disable tap-to-close on video container */
.modal-left:has(.video-container) {
    cursor: default;
}

/* ABOUT + CONNECT SECTION */
#ac-container,
.ac-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 60px 28px;
    text-align: center;
}

#ac-container h3,
.ac-title {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 900;
}

.ac-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.ac-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.ac-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 0, 0, 0.12);
    padding: 28px;
    border-radius: 16px;
    text-align: left;
    color: var(--muted);
    box-shadow: 0 8px 40px rgba(255, 0, 0, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.ac-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 50px rgba(255, 0, 0, 0.15);
}

.ac-card h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.ac-fb-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1877f2, #0a66c2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ac-fb-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.35);
}

.ac-viewers {
    margin-top: 24px;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 900;
}

/* Responsive */
@media (max-width: 760px) {
    .ac-grid {
        grid-template-columns: 1fr;
    }

    .ac-card {
        text-align: center;
    }
}

/* Dramatic stats block */
.ac-stats {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    flex-wrap: wrap;
}

.ac-stat-block {
    flex: 1 1 360px;
    text-align: left;
}

.stat-label {
    font-weight: 800;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
    letter-spacing: 0.6px;
}

.stat-big {
    font-weight: 900;
    color: var(--accent);
    font-size: 2.6rem;
    line-height: 1;
    text-shadow: 0 6px 28px rgba(255, 43, 43, 0.08);
    background: linear-gradient(90deg, rgba(255, 43, 43, 0.08), rgba(255, 80, 80, 0.02));
    padding: 12px 18px;
    border-radius: 12px;
    display: inline-block;
    min-width: 170px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 43, 43, 0.06);
    transition: transform .45s cubic-bezier(.2, .9, .2, 1), box-shadow .45s;
}

/* pulse when number increases */
.stat-big.pulse {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 60px rgba(255, 43, 43, 0.18);
}

.ac-stat-smalls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 0 1 240px;
    justify-content: flex-end;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255, 0, 0, 0.06);
}

.mini-label {
    font-weight: 800;
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.mini-number {
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
}

/* Mobile stacking */
@media (max-width:760px) {
    .ac-stat-smalls {
        justify-content: center;
    }

    .ac-stats {
        gap: 12px;
    }

    .stat-big {
        font-size: 2.1rem;
    }
}

/* INLINE STATS - Clean minimal design with icons */
.stats-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 6px;
    margin-top: 48px;
    text-align: center;
}

.stats-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 1rem;
    text-align: center;
}

.inline-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    align-items: center;
    padding: 20px 0 32px;
    border-bottom: 1px solid rgba(255, 43, 43, 0.1);
}

.inline-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inline-stat-icon {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.inline-stat-icon svg {
    color: var(--accent);
    filter: drop-shadow(0 4px 12px rgba(255, 43, 43, 0.3));
}

.inline-stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    transition: transform 0.3s ease;
}

.inline-stat-number.pulse {
    transform: scale(1.1);
}

.inline-stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile stats stacking */
@media (max-width: 760px) {
    .stats-title {
        font-size: 1.7rem;
        margin-top: 36px;
    }

    .stats-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .inline-stats {
        gap: 40px;
        padding: 16px 0 24px;
    }

    .inline-stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .inline-stat-number {
        font-size: 2rem;
    }

    .inline-stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .inline-stats {
        gap: 28px;
    }
}

/* Fix for mobile drag - add this to your CSS */
#modal {
    will-change: transform;
}

@media (max-width: 700px) {
    #modal {
        transform-origin: center top;
    }
}

/* ============================================
   FLOATING PARTICLES ANIMATION
   ============================================ */
.particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles-bg::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 25%;
    /* small & low */

    background: linear-gradient(to top,
            rgba(255, 50, 50, 0.08),
            /* VERY faint red */
            rgba(255, 50, 50, 0.04),
            rgba(255, 50, 50, 0.02),
            rgba(255, 50, 50, 0));

    filter: blur(35px);
    /* blur more so it's extremely soft */
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 600px) {
    .modal {
        margin-bottom: 30px !important;
    }
}

.particles-bg,
.particle {
    pointer-events: none !important;
}


.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;

    /* stronger soft red glow */
    box-shadow:
        0 0 6px rgba(255, 60, 60, 0.8),
        0 0 12px rgba(255, 60, 60, 0.6),
        0 0 18px rgba(255, 60, 60, 0.4);

    animation: floatUp 8s ease-in infinite;
}


.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1.5s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 50%;
    animation-delay: 0.5s;
    animation-duration: 7.5s;
}

.particle:nth-child(5) {
    left: 60%;
    animation-delay: 2s;
    animation-duration: 8.5s;
}

.particle:nth-child(6) {
    left: 75%;
    animation-delay: 1s;
    animation-duration: 9.5s;
}

.particle:nth-child(7) {
    left: 85%;
    animation-delay: 2.5s;
    animation-duration: 8s;
}

.particle:nth-child(8) {
    left: 95%;
    animation-delay: 0.8s;
    animation-duration: 7.8s;
}

@keyframes floatUp {
    0% {
        bottom: -10px;
        opacity: 0;
        filter: brightness(0.6) saturate(1.2);
        transform: translateX(0) scale(0);
    }

    20% {
        opacity: 0.8;
        filter: brightness(1.3) saturate(1.8);
        /* red pop boost */
    }

    50% {
        opacity: 1;
        filter: brightness(1.6) saturate(2.4);
        /* strongest red glow */
        transform: translateX(-15px) scale(1.3);
    }

    80% {
        opacity: 0.5;
        filter: brightness(1.1) saturate(1.3);
    }

    100% {
        bottom: 110%;
        opacity: 0;
        filter: brightness(0.5) saturate(0.8);
        /* fades to darker red */
        transform: translateX(0) scale(0.6);
    }
}



/* ============================================
   NEW ANIMATIONS - ADD AT END OF CSS FILE
   ============================================ */

/* Hero Section Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gentleBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Apply hero animations */
.hero-left {
    animation: slideInLeft 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    opacity: 0;
}

.hero-right {
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.main-title {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.lead {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.cta-row {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

#discoverBtn {
    animation: gentleBounce 2s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Navigation slide down */
nav {
    animation: slideDown 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gallery Card Animations */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    animation: cardFadeIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    opacity: 0;
}

/* Staggered delays for cards */
.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.15s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

.card:nth-child(4) {
    animation-delay: 0.25s;
}

.card:nth-child(5) {
    animation-delay: 0.3s;
}

.card:nth-child(6) {
    animation-delay: 0.35s;
}

.card:nth-child(7) {
    animation-delay: 0.4s;
}

.card:nth-child(8) {
    animation-delay: 0.45s;
}

.card:nth-child(9) {
    animation-delay: 0.5s;
}

.card:nth-child(10) {
    animation-delay: 0.55s;
}

.card:nth-child(11) {
    animation-delay: 0.6s;
}

.card:nth-child(12) {
    animation-delay: 0.65s;
}

/* Enhanced card hover with glow */
.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(255, 0, 0, 0.15),
        0 0 40px rgba(255, 43, 43, 0.2);
}

/* Filter Tab Animations */
.tab {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 43, 43, 0.2), rgba(196, 18, 18, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab:hover::before {
    opacity: 1;
}

.tab:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 43, 43, 0.2);
}

.tab.active {
    box-shadow: 0 12px 32px rgba(255, 43, 43, 0.3);
}

/* Modal Action Button Animations */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.insta-btn {
    position: relative;
    overflow: hidden;
}

.insta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    opacity: 0;
}

.insta-btn:active::after {
    animation: ripple 0.5s ease-out;
}

.insta-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(255, 43, 43, 0.4));
}

/* Stats & About Section Animations */
.ac-container {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ac-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.ac-title {
    animation: slideInFromLeft 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    opacity: 0;
}

.ac-container.animate-in .ac-title {
    animation: slideInFromLeft 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ac-subtitle {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.ac-container.animate-in .ac-subtitle {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.ac-card {
    opacity: 0;
    transform: translateY(30px);
}

.ac-container.animate-in .ac-card:nth-child(1) {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.ac-container.animate-in .ac-card:nth-child(2) {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}

/* Stats animations */
.inline-stats {
    opacity: 0;
    transform: translateY(30px);
}

.ac-container.animate-in .inline-stats {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.inline-stat {
    opacity: 0;
    transform: scale(0.8);
}

.ac-container.animate-in .inline-stat:nth-child(1) {
    animation: scaleIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    animation-delay: 1s;
}

.ac-container.animate-in .inline-stat:nth-child(2) {
    animation: scaleIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

.ac-container.animate-in .inline-stat:nth-child(3) {
    animation: scaleIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    animation-delay: 1.4s;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 43, 43, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--accent);
}

/* Section Header Animation */
.section-header h2 {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

/* Smooth filter transitions */
.card[style*="display: none"] {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Mobile optimization - reduce animations */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 700px) {

    /* Simplify animations on mobile for performance */
    .card {
        animation-duration: 0.3s;
    }

    #discoverBtn {
        animation: none;
    }

    .hero-left,
    .hero-right {
        animation-duration: 0.5s;
    }
}

/* Circle Popup for Unlike Attempts - Like Loading Screen */
.circle-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.circle-popup.show {
    opacity: 1;
}

.circle-popup-content {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-popup-rings {
    position: absolute;
    inset: 0;
}

.popup-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    border-radius: 50%;
    animation: popupRingRotate 3s linear infinite;
}

.popup-ring:nth-child(2) {
    inset: -20px;
    border-top-color: rgba(255, 43, 43, 0.6);
    border-right-color: rgba(255, 43, 43, 0.6);
    border-width: 2px;
    animation-duration: 2s;
    animation-direction: reverse;
}

.popup-ring:nth-child(3) {
    inset: -40px;
    border-top-color: rgba(255, 43, 43, 0.3);
    border-right-color: rgba(255, 43, 43, 0.3);
    border-width: 2px;
    animation-duration: 4s;
}

@keyframes popupRingRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.circle-popup-text {
    position: relative;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    max-width: 220px;
    line-height: 1.4;
    padding: 24px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(255, 43, 43, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: textPulseIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes textPulseIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .circle-popup-content {
        width: 240px;
        height: 240px;
    }

    .circle-popup-text {
        font-size: 1rem;
        max-width: 180px;
        padding: 20px;
    }
}
