:root {
    /* Updated Palette based on 3D Rainbow K Logo */
    --color-bg: #050511;
    /* Darker black/navy for contrast */
    --color-bg-alt: #0F0F23;

    /* Rainbow Gradient Colors */
    --color-gradient-start: #FF00CC;
    /* Pink/Magenta */
    --color-gradient-mid: #FF9900;
    /* Orange/Gold */
    --color-gradient-end: #00FFFF;
    /* Cyan/Blue */

    --color-primary: #FF00CC;
    --color-accent: #00FFFF;

    --color-text: #F8FAFC;
    --color-text-muted: #94A3B8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Tech Vector Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #050511;
    /* Grid Pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
}

.vector-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-ring 60s linear infinite;
}

.ring-1 {
    width: 600px;
    height: 600px;
    border-color: rgba(255, 0, 204, 0.2);
    border-width: 1px;
    animation-duration: 40s;
}

.ring-2 {
    width: 800px;
    height: 800px;
    border-color: rgba(0, 255, 255, 0.15);
    border-width: 1px;
    animation-direction: reverse;
    animation-duration: 50s;
    border-style: dashed;
}

.ring-3 {
    width: 1100px;
    height: 1100px;
    border-color: rgba(255, 153, 0, 0.1);
    border-width: 2px;
    animation-duration: 80s;
}

@keyframes rotate-ring {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-glow {
    text-shadow: 0 0 15px rgba(255, 0, 204, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
}

/* Button Groups & Variants */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-max {
    background: linear-gradient(135deg, var(--color-gradient-mid), var(--color-gradient-start));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    border: none;
}

.btn-max:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 204, 0.4);
}

@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-group .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Header */
header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    overflow: hidden;
    /* Prevent logo/nav from pushing width */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    /* Small viewport height — accounts for mobile browser chrome */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 5rem;
    padding-bottom: 3rem;
    overflow: hidden;
    /* CRITICAL: Clips the 600px glow effect on mobile */
    width: 100%;
}

.hero>.container {
    margin-top: auto;
    margin-bottom: auto;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    opacity: 0.4;
    z-index: -1;
    filter: blur(80px);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-visual {
    margin-top: 3rem;
    position: relative;
}

/* Real 3D Logo */
.logo-3d-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: block;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    animation: float-logo 6s ease-in-out infinite;
    /* Neon border glow */
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.logo-3d-img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 10px 60px rgba(255, 0, 204, 0.4);
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Features Section (Bento Grid) */
.features {
    padding: 6rem 0;
    background: var(--color-bg-alt);
    overflow: hidden;
    /* Clip bento grid overflow */
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
}

.bento-card p {
    color: var(--color-text-muted);
}

.bento-span-2 {
    grid-column: span 2;
}

/* Showcase Section */
/* Gallery Section */
.gallery {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Clip gallery overflow */
    width: 100%;
}

.scrolling-wrapper {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.showcase-card {
    min-width: 300px;
    height: 400px;
    background: #1e1e2f;
    border-radius: 1rem;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    overflow: hidden;
    /* Clip footer overflow */
    width: 100%;
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .logo-3d-img {
        width: 140px;
        height: 140px;
        margin-bottom: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        margin-bottom: 1.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-span-2,
    .bento-span-3 {
        grid-column: span 1;
    }
}

/* Short mobile screens (iPhone SE, older devices) */
@media (max-width: 768px) and (max-height: 700px) {
    .hero {
        padding-top: 3.5rem;
        padding-bottom: 1.5rem;
    }

    .logo-3d-img {
        width: 100px;
        height: 100px;
        margin-bottom: 0.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Short desktop viewports (laptops with toolbars, etc.) */
@media (min-width: 769px) and (max-height: 800px) {
    .hero {
        padding-top: 3.5rem;
        padding-bottom: 1.5rem;
    }

    .logo-3d-img {
        width: 110px;
        height: 110px;
        margin-bottom: 0.75rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
}

/* Very short desktop viewports */
@media (min-width: 769px) and (max-height: 650px) {
    .hero {
        padding-top: 3rem;
        padding-bottom: 1rem;
    }

    .logo-3d-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* ========================
   Gallery (Vanilla Filter)
   ======================== */

/* Filter Buttons */
.iso-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.iso-filter {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.iso-filter:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-text);
}

.iso-filter:focus-visible {
    box-shadow: 0 0 0 2px var(--color-primary);
}

.iso-filter.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Gallery Grid */
.iso-grid {
    margin: 0 -6px;
    font-size: 0;
    position: relative;
}

/* Grid Item */
.mix {
    display: inline-block;
    vertical-align: top;
    width: calc(20% - 12px);
    margin: 6px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1a1a2e;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.mix.mix-in {
    opacity: 1;
}

.mix.mix-crossfade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mix.mix-out {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    visibility: hidden;
}

.mix.mix-hidden {
    display: none;
}

.mix img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

/* Overlay removed — no individual image names in data */

@media (hover: hover) {
    .mix:hover img {
        transform: scale(1.03);
    }
}

/* Responsive Grid */
@media (max-width: 1200px) {

    .mix {
        width: calc(25% - 12px);
    }
}

@media (max-width: 900px) {

    .mix {
        width: calc(33.333% - 12px);
    }

    .iso-filters {
        gap: 0.4rem;
    }

    .iso-filter {
        font-size: 0.78rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 600px) {

    .mix {
        width: calc(50% - 8px);
        margin: 4px;
        border-radius: 8px;
    }

    .iso-grid {
        margin: 0 -4px;
    }

    .iso-filters {
        gap: 0.35rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .iso-filter {
        font-size: 0.72rem;
        padding: 0.35rem 0.75rem;
    }
}

/* Load More */
.iso-load-more {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.iso-load-btn {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #fff;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 204, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.iso-load-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.4);
}




/* Video Feature Styles */
.bento-span-3 {
    grid-column: span 3;
}

.badge-new {
    background: var(--color-accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    text-shadow: none;
}

.video-feature {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-color: rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
    .bento-span-3 {
        grid-column: span 1;
    }

    .gallery-item {
        width: 200px;
        height: 300px;
    }
}

/* Video Gallery Styles */
.video-gallery {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    /* Clip video grid overflow */
    width: 100%;
}

.video-slider {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 0;
    width: 100%;
    flex-wrap: wrap;
    /* Ensure they can wrap if needed, though we hide overflow by count */
}

/* Remove scrollbar styles as no longer needed for grid */
.video-slider::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .video-slider {
        gap: 0.5rem;
        /* Reduce gap on mobile to prevent overflow */
    }
}

.video-card {
    flex: 1 1 200px;
    /* Grow, shrink, basis */
    max-width: 280px;
    aspect-ratio: 9 / 16;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Transition removed per user request */
    cursor: default;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card.paused .video-overlay {
    opacity: 1;
}

/* Responsive Hiding (Quantity decreases) */
/* Tablet: Hide 4th video */
@media (max-width: 1024px) {

    /* Hide the last item of 4 */
    .video-card:nth-child(4) {
        display: none;
    }

    .video-card {
        max-width: 30%;
        /* Ensure 3 fit */
    }
}

/* Mobile: Hide 3rd and 4th video (Show 2) */
/* Mobile: Hide 3rd and 4th video (Show 2) */
@media (max-width: 768px) {

    .video-card:nth-child(3),
    .video-card:nth-child(4) {
        display: none;
    }

    .video-card {
        max-width: 48%;
    }
}

/* Legacy Mode Adjustments */
.legacy-mode .video-slider {
    display: block;
    overflow-x: scroll;
    white-space: nowrap;
}

.legacy-mode .video-card {
    display: inline-block;
    vertical-align: top;
    width: 250px;
    margin-right: 20px;
}