﻿:root {
    --bg-color: #070709;
    --text-main: #f8f8f8;
    --text-sec: #8f8f9d;
    --nav-bg: rgba(28, 28, 33, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    
    --card-primary: #3b82f6;
    --card-warning: #eab308;
    --card-info: #0ea5e9;
    --card-purple: #a855f7;
    --card-success: #22c55e;
    --card-orange: #f97316;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.15s ease-out, height 0.15s ease-out, background-color 0.15s ease-out, border 0.15s ease-out;
}
.custom-cursor.hover-link {
    width: 35px; height: 35px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hide default pointer on links to preserve the custom cursor illusion */
a, button, .btn {
    cursor: none !important;
}

/* Background Decorations */
.bg-decor {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow {
    position: absolute;
    width: 600px; height: 600px;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
}
.glow.red {
    top: -200px; left: -100px;
    background: var(--accent-pink);
}
.glow.blue {
    top: -100px; right: -200px;
    background: var(--accent-blue);
}
.dots-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.section-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-heading.centered {
    text-align: center;
}
.section-desc {
    color: var(--text-sec);
    max-width: 600px;
    margin-bottom: 3rem;
}
.section-desc.centered {
    margin: 0 auto 3rem auto;
    text-align: center;
}
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 100;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-circle {
    width: 24px; height: 24px;
    background: linear-gradient(135deg, #e02424, #9b1c1c);
    border-radius: 50%;
}
.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-blue);
}
.nav-contact {
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}
.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-sec);
}
.status-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: center top;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Bright, larger dots for hover */
    background-image: radial-gradient(rgba(255, 255, 255, 0.9) 2.5px, transparent 2.5px);
    background-size: 30px 30px;
    background-position: center top;
    z-index: -1;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 120px at var(--mouse-x, -100%) var(--mouse-y, -100%), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle 120px at var(--mouse-x, -100%) var(--mouse-y, -100%), rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
    transition: opacity 0.3s ease;
}
@keyframes titleReveal {
    0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes gradientPan {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: titleReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientPan 3s linear infinite;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    background: linear-gradient(to right, #4f46e5, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    opacity: 0;
    animation: titleReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}
.hero-exp {
    color: var(--text-sec);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-item p {
    color: var(--text-sec);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-primary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.btn-secondary {
    color: var(--text-sec);
}
.btn-secondary:hover {
    color: var(--text-main);
}

/* Brands Marquee */
.brands {
    padding: 2rem 0 6rem 0;
    width: 100%;
    overflow: hidden;
}
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0; width: 150px; height: 100%;
    z-index: 2;
}
.marquee::before {
    left: 0; background: linear-gradient(to right, var(--bg-color), transparent);
}
.marquee::after {
    right: 0; background: linear-gradient(to left, var(--bg-color), transparent);
}
.marquee-content {
    display: inline-block;
    animation: scroll 30s linear infinite;
}
.brand-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #444; /* default gray for logos */
    margin: 0 3rem;
    display: inline-block;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Experience */
.experience {
    margin-bottom: 8rem;
}
.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.exp-left {
    position: sticky;
    top: 140px;
}
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.exp-card {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111116;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.7);
}
.exp-card:nth-child(1) { top: 120px; z-index: 10; }
.exp-card:nth-child(2) { top: 136px; z-index: 11; }
.exp-card:nth-child(3) { top: 152px; z-index: 12; }
.exp-card:nth-child(4) { top: 168px; z-index: 13; }
.exp-card:nth-child(5) { top: 184px; z-index: 14; }
.exp-card:hover {
    background: rgba(22, 22, 26, 0.9);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.exp-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.exp-card-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.exp-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exp-card-info h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.1rem;
}
.exp-card-info p {
    color: var(--text-sec);
    font-size: 0.85rem;
}
.exp-card-date {
    color: var(--text-main);
    font-size: 0.85rem;
}

/* Tools Tags */
.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.tools-tags span {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: default;
}
.tools-tags span:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Design Gallery */
.gallery {
    margin-bottom: 8rem;
}
.gallery-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
    margin-top: 3rem;
    perspective: 1600px;
    cursor: grab;
}
.gallery-spinner {
    position: relative;
    width: 260px;
    height: 360px;
    transform-style: preserve-3d;
    transform: rotateX(-5deg) rotateY(0deg);
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
    -webkit-user-drag: none;
    transform: rotateY(calc(var(--i) * 72deg)) translateZ(280px);
    transition: filter 0.3s ease;
}
.mockup img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Projects */
.projects {
    margin-bottom: 8rem;
}
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.projects-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}
.projects-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Webkit */
}
.projects-slider .project-card {
    width: calc((100% - 4rem) / 3); /* exactly 3 cards visible with two 2rem gaps */
    min-width: calc((100% - 4rem) / 3);
    scroll-snap-align: start;
    flex-shrink: 0;
}
.project-card {
    background: #111;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.project-img-wrapper {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.style-primary .project-img-wrapper { background: var(--card-primary); }
.style-warning .project-img-wrapper { background: var(--card-warning); }
.style-info    .project-img-wrapper { background: var(--card-info); }
.style-purple  .project-img-wrapper { background: var(--card-purple); }
.style-success .project-img-wrapper { background: var(--card-success); }
.style-orange  .project-img-wrapper { background: var(--card-orange); }
.project-img-wrapper img {
    width: 80%; height: 80%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: transform 0.4s ease;
}
.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}
.project-info h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}
.project-info p {
    color: var(--text-sec);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}


/* Other Projects */
.other-projects {
    margin-bottom: 8rem;
}
.other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.other-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
}
.other-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
}
.other-img {
    width: 100%; height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.other-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.other-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.other-info p {
    color: var(--text-sec);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.other-info .tag {
    font-size: 0.8rem;
    color: var(--text-sec);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Contact */
.contact {
    margin-bottom: 4rem;
}
.contact-box {
    display: flex;
    background: #111;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.contact-left {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-options {
    margin-bottom: 2rem;
}
.contact-option {
    margin-bottom: 2rem;
}
.contact-option:last-child {
    margin-bottom: 0;
}
.contact-option h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.contact-option p {
    color: var(--text-sec);
    font-size: 0.95rem;
}
.btn-full {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
}
.contact-right {
    flex: 1;
    position: relative;
    min-height: 400px;
}
.contact-right img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left p {
    color: var(--text-sec);
    font-size: 0.9rem;
}
.footer-social {
    display: flex;
    gap: 1.5rem;
}
.footer-social a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 900px) {
    .exp-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    .exp-left {
        position: static;
    }
    .other-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-box {
        flex-direction: column;
    }
    .nav-links {
        display: none; /* Hide on mobile for simplicity, could add hamburger */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
}
@media (max-width: 600px) {
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
        border-top: none;
    }
    .exp-list {
        gap: 1rem;
    }
    .exp-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .other-grid {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .gallery-showcase {
        height: 380px;
        perspective: 1200px;
    }
    .gallery-spinner {
        width: 180px;
        height: 260px;
    }
    .mockup {
        transform: rotateY(calc(var(--i) * 72deg)) translateZ(180px);
    }
    .contact-left {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }
    a, button, .btn, .project-card, .slot {
        cursor: pointer !important;
    }
    .custom-cursor {
        display: none !important;
    }
    .projects-slider {
        gap: 1rem;
    }
    .projects-slider .project-card {
        width: calc((100% - 2rem) / 3); /* 3 in a row on tablet with 1rem gaps */
        min-width: calc((100% - 2rem) / 3);
    }
    .images-slider .slot {
        min-width: calc((100% - 1.5rem) / 2);
    }
}
@media (max-width: 600px) {
    .projects-slider {
        gap: 1rem;
    }
    .projects-slider .project-card {
        width: calc((100% - 1rem) / 2); /* 2 in a row on mobile landscape */
        min-width: calc((100% - 1rem) / 2);
    }
    .images-slider .slot {
        min-width: calc(100% - 1rem);
    }
}
@media (max-width: 480px) {
    .projects-slider .project-card {
        width: 82%; /* Show 1 full card and a preview of the next one on mobile portrait */
        min-width: 82%;
    }
}

/* Horizontal slide for 65 images */
.images-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.images-slider::-webkit-scrollbar {
    display: none;
}
.images-slider .slot {
    min-width: calc((100% - 3rem) / 3); /* exactly 3 items with two 1.5rem gaps */
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-bottom: 0; /* Reset masonry bottom margin */
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.slider-arrow:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.slider-prev {
    left: 1%;
}
.slider-next {
    right: 1%;
}
@media (max-width: 768px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .slider-prev { left: 2%; }
    .slider-next { right: 2%; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SELECTED PROJECTS â€” 3D PERSPECTIVE CAROUSEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.projects-fan-section {
    padding: 4rem 0 7rem;
    position: relative;
}
.projects-fan-section .projects-header {
    padding: 0 5%;
    margin-bottom: 3rem;
}

/* Outer wrapper clips the overflow cleanly */
.fan-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0 4rem;
}

/* Green glow behind center */
.fan-viewport::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle,
        rgba(74,222,128,0.30) 0%,
        rgba(74,222,128,0.08) 40%,
        transparent 70%
    );
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: fanGlow 3s ease-in-out infinite;
}
@keyframes fanGlow {
    0%, 100% { transform: translate(-50%, -55%) scale(1);   opacity: 0.85; }
    50%       { transform: translate(-50%, -55%) scale(1.1); opacity: 1;    }
}

/* Left / right edge fade masks */
.fan-viewport::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--bg-color) 0%, transparent 12%),
        linear-gradient(to left,  var(--bg-color) 0%, transparent 12%);
    pointer-events: none;
    z-index: 10;
}

/* The perspective container â€” DO NOT use preserve-3d here */
.fan-stage {
    position: relative;
    height: 460px;
    perspective: 900px;
    perspective-origin: 50% 50%;
}

/* Track â€” just a positioning anchor */
.fan-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Every card */
.fan-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 300px;
    margin-top: -150px;   /* half of height */
    margin-left: -100px;  /* half of width  */
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    /* JS sets transform directly â€” no CSS custom-prop conflict */
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.5s ease,
                box-shadow 0.5s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    filter: brightness(0.5) saturate(0.5);
    border: 1px solid rgba(255,255,255,0.07);
    will-change: transform, filter;
}

.fan-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.5s ease;
}

/* Info overlay */
.fan-card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fan-card-info h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    letter-spacing: 0.02em;
}
.fan-card-info p {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Active center card */
.fan-card--active {
    filter: brightness(1) saturate(1) !important;
    box-shadow:
        0 0 0 1.5px rgba(74,222,128,0.55),
        0 0  35px rgba(74,222,128,0.18),
        0 25px 70px rgba(0,0,0,0.75) !important;
    border-color: rgba(74,222,128,0.3) !important;
}
.fan-card--active .fan-card-info {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.fan-card--active img {
    transform: scale(1.04);
}

/* "Tap to open" pill on center card */
.fan-card--active .fan-open-hint {
    display: flex;
}
.fan-open-hint {
    display: none;
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(74,222,128,0.9);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(74,222,128,0.28);
    pointer-events: none;
}

/* Hover (non-active) */
.fan-card:not(.fan-card--active):hover {
    filter: brightness(0.78) saturate(0.75);
}
.fan-card:hover .fan-card-info {
    opacity: 1;
    transform: translateY(0);
}

/* â”€â”€ Bottom nav â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fan-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
}
.fan-nav-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.fan-nav-btn:hover {
    background: rgba(74,222,128,0.14);
    border-color: rgba(74,222,128,0.5);
    box-shadow: 0 0 14px rgba(74,222,128,0.2);
}
.fan-nav-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}
.fan-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.fan-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    border: none; padding: 0;
    transition: all 0.35s ease;
}
.fan-dot.active {
    background: #4ade80;
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(74,222,128,0.5);
}

/* â”€â”€ Mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
    .fan-viewport {
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        padding: 1rem 5% 2.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .fan-viewport::-webkit-scrollbar { display: none; }
    .fan-viewport::before,
    .fan-viewport::after  { display: none; }

    .fan-stage {
        height: auto;
        perspective: none;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        width: max-content;
    }
    .fan-track {
        display: contents;
    }
    .fan-card {
        position: static;
        width: 180px;
        height: 260px;
        margin: 0;
        flex-shrink: 0;
        scroll-snap-align: center;
        transform: none !important;
        filter: brightness(1) saturate(1) !important;
        border-color: rgba(255,255,255,0.1) !important;
    }
    .fan-card-info {
        opacity: 1 !important;
        transform: none !important;
    }
    .fan-open-hint { display: none !important; }
}
