/* =========================================
   STUDIO KASHI - Works Page Styles
   Premium Portfolio Gallery Design
   ========================================= */

/* === Floating Orbs Background === */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.4) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 50px) scale(0.95); }
    75% { transform: translate(30px, 30px) scale(1.05); }
}

/* === Hero Section === */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 107, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 100% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 80% at 0% 100%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s backwards;
}

.badge-icon {
    color: var(--color-primary);
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.hero-title {
    margin-bottom: 24px;
    animation: fadeInUp 1s var(--ease-out-expo) 0.4s backwards;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent em {
    font-family: var(--font-accent);
    font-style: italic;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 1s var(--ease-out-expo) 0.6s backwards;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 1s var(--ease-out-expo) 0.8s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ====================================
   ULTRA CREATIVE HERO SHOWCASE
   ==================================== */
.hero-showcase {
    width: 100%;
    max-width: 1400px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Particle Background */
.showcase-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Orbiting Ring */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    border: 1px dashed rgba(255, 107, 107, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    animation: orbitSpin 30s linear infinite;
    z-index: 1;
}

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
}

.orbit-dot.delay-1 {
    animation: orbitDot 30s linear infinite;
    animation-delay: -10s;
}

.orbit-dot.delay-2 {
    animation: orbitDot 30s linear infinite;
    animation-delay: -20s;
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(0deg); }
    to { transform: translate(-50%, -50%) rotateX(75deg) rotateZ(360deg); }
}

@keyframes orbitDot {
    from { transform: translateX(-50%) rotate(0deg) translateY(-350px); }
    to { transform: translateX(-50%) rotate(360deg) translateY(-350px); }
}

.showcase-container {
    position: relative;
    width: 100%;
    height: 550px;
    perspective: 2500px;
    transform-style: preserve-3d;
    animation: containerReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

@keyframes containerReveal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Glow Effects Layer */
.glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(255, 107, 107, 0.4);
    top: 20%;
    left: 20%;
    animation: blobFloat1 8s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(78, 205, 196, 0.3);
    top: 40%;
    right: 15%;
    animation: blobFloat2 10s ease-in-out infinite;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: rgba(102, 126, 234, 0.3);
    bottom: 10%;
    left: 40%;
    animation: blobFloat3 12s ease-in-out infinite;
}

@keyframes blobFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes blobFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes blobFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    75% { transform: translate(-30px, 10px) scale(0.9); }
}

/* Main Featured Card */
.showcase-card {
    position: absolute;
    border-radius: 24px;
    overflow: visible;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card.main-card {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52%;
    max-width: 620px;
    z-index: 10;
    animation: mainCardReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s backwards;
}

@keyframes mainCardReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.8) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    }
}

.main-card .card-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 3px;
}

.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.8), 
        rgba(78, 205, 196, 0.8), 
        rgba(102, 126, 234, 0.8),
        rgba(255, 107, 107, 0.8));
    background-size: 300% 300%;
    animation: borderGlow 4s ease-in-out infinite;
    z-index: -1;
    filter: blur(2px);
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.main-card .card-inner {
    position: relative;
    border-radius: 21px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0d0d0d;
}

.main-card .card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.6s ease;
}

.main-card:hover .card-inner img {
    transform: scale(1.08);
}

/* Shimmer Effect */
.card-shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 80%
    );
    transform: skewX(-20deg);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -150%; }
    50%, 100% { left: 150%; }
}

.card-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-light);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-primary);
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--color-primary); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px var(--color-primary); }
}

.card-tag {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
}

.card-shadow {
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 0.8; transform: scaleX(1.1); }
}

/* Floating Side Cards */
.showcase-card.float-card {
    width: 26%;
    max-width: 280px;
    top: 50%;
    z-index: 5;
    border-radius: 16px;
}

.float-card .card-inner {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.float-card .card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.float-card:hover .card-overlay-gradient {
    opacity: 1;
}

.float-card:hover .card-inner img {
    transform: scale(1.15);
}

.float-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.float-card:hover .float-label {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.float-card.left {
    left: 2%;
    transform: translateY(-50%) translateX(0) rotateY(20deg) rotateX(-5deg) scale(0.9);
    animation: floatLeftSmooth 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.float-card.right {
    right: 2%;
    transform: translateY(-50%) translateX(0) rotateY(-20deg) rotateX(-5deg) scale(0.9);
    animation: floatRightSmooth 8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    animation-delay: -4s;
}

@keyframes floatLeftSmooth {
    0%, 100% { 
        transform: translateY(-50%) rotateY(20deg) rotateX(-5deg) scale(0.9); 
        opacity: 0.85;
    }
    50% { 
        transform: translateY(-55%) rotateY(15deg) rotateX(-3deg) scale(0.92); 
        opacity: 1;
    }
}

@keyframes floatRightSmooth {
    0%, 100% { 
        transform: translateY(-50%) rotateY(-20deg) rotateX(-5deg) scale(0.9);
        opacity: 0.85;
    }
    50% { 
        transform: translateY(-45%) rotateY(-15deg) rotateX(-7deg) scale(0.92);
        opacity: 1;
    }
}

.float-card:hover {
    z-index: 15;
    animation-play-state: paused;
}

.float-card.left:hover {
    transform: translateY(-50%) rotateY(5deg) scale(1.05) !important;
}

.float-card.right:hover {
    transform: translateY(-50%) rotateY(-5deg) scale(1.05) !important;
}

/* Mini Cards Orbit */
.mini-cards-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
}

.mini-card-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    transform-origin: center;
    animation: orbitMini 20s linear infinite;
    animation-delay: calc(var(--delay) * -6.67s);
    pointer-events: auto;
}

@keyframes orbitMini {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(280px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(280px) rotate(-360deg);
    }
}

.mini-card {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), 
                border-color 0.3s ease,
                box-shadow 0.5s ease;
    cursor: pointer;
    position: relative;
}

.mini-card.square {
    aspect-ratio: 1 / 1;
}

.mini-card.portrait {
    width: 60px;
    height: 80px;
}

.mini-card:hover {
    transform: scale(1.3) translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.3);
    z-index: 50;
}

.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mini-card:hover img {
    transform: scale(1.1);
}

.mini-label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--color-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-card:hover .mini-label {
    opacity: 1;
}

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.3;
}

.connection-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s ease-in-out forwards, pulseLine 4s ease-in-out infinite 3s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes pulseLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Stats Badge */
.showcase-stats-badge {
    position: absolute;
    bottom: 5%;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 12px;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 20;
    animation: statsBadgeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s backwards,
               statsBadgeFloat 4s ease-in-out infinite 2.5s;
}

@keyframes statsBadgeReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes statsBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.stats-ring-mini {
    width: 44px;
    height: 44px;
}

.stats-ring-mini svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.ring-fill {
    fill: none;
    stroke: url(#statsGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 70;
    animation: ringFillAnim 2s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}

@keyframes ringFillAnim {
    from { stroke-dashoffset: 283; }
    to { stroke-dashoffset: 70; }
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 1s var(--ease-out-expo) 1.2s backwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: calc(100% - 12px); opacity: 0; }
}

/* === Filter Section === */
.filter-section {
    position: sticky;
    top: 70px;
    z-index: 100;
    padding: 20px 24px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
}

.filter-section.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.filter-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.filter-count-display {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.filter-count-display span {
    color: var(--color-primary);
    font-weight: 600;
}

.filter-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 0 24px;
}

.filter-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.filter-tab:hover {
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--color-light);
    transform: translateY(-2px);
}

.filter-tab.active {
    border-color: transparent;
    color: var(--color-dark);
}

.filter-tab.active::before {
    opacity: 1;
}

.tab-icon,
.tab-text,
.tab-count {
    position: relative;
    z-index: 1;
}

.tab-icon {
    font-size: 0.75rem;
    opacity: 0.7;
}

.tab-count {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* === Gallery Section === */
.gallery-section {
    padding: 60px 24px 100px;
    position: relative;
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Gallery Rows */
.gallery-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.featured-row {
    grid-template-columns: repeat(2, 1fr);
}

.wide-row {
    grid-template-columns: repeat(3, 1fr);
}

.triple-row {
    grid-template-columns: repeat(3, 1fr);
}

.showcase-row {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 40px auto;
}

/* Masonry Section */
.masonry-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}

.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.gallery-item.fade-in {
    animation: fadeInScale 0.6s var(--ease-out-expo) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Size Classes */
.size-hero {
    aspect-ratio: 16 / 9;
}

.size-16-9 {
    aspect-ratio: 16 / 9;
}

.size-1-1 {
    aspect-ratio: 1 / 1;
}

.size-3-4 {
    aspect-ratio: 3 / 4;
}

.size-wide {
    aspect-ratio: 16 / 9;
}

.size-third {
    aspect-ratio: 16 / 9;
}

.size-showcase {
    aspect-ratio: 16 / 9;
}

.item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.item-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out-expo);
}

/* Shine Effect */
.item-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.8s var(--ease-out-expo);
    pointer-events: none;
}

/* Overlay */
.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.overlay-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s var(--ease-out-expo) 0.1s;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-out-expo);
}

.item-category {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.item-title {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.item-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-light);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease-out-expo) 0.15s;
}

.item-action svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

/* Hover States */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 107, 107, 0.1);
    z-index: 10;
}

.gallery-item:hover .item-media img {
    transform: scale(1.1);
}

.gallery-item:hover .item-shine {
    left: 150%;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-badge {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.gallery-item:hover .item-action {
    opacity: 1;
    transform: translateX(0);
}

.gallery-item:hover .item-action svg {
    transform: translate(3px, -3px);
}

/* Instagram Showcase */
.instagram-showcase {
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

.showcase-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.showcase-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.showcase-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

/* === CTA Section === */
.cta-section {
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 107, 107, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-30 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-light);
    background: transparent;
}

.btn-outline-light:hover {
    border-color: var(--color-light);
    background: rgba(255, 255, 255, 0.05);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.trust-item svg {
    color: var(--color-secondary);
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    color: var(--color-light);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.4s var(--ease-out-expo);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* === Responsive === */
@media (max-width: 1200px) {
    .masonry-section {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .masonry-column:nth-child(4) {
        display: none;
    }
    
    /* Hero Showcase Responsive */
    .showcase-container {
        height: 420px;
    }
    
    .showcase-card.main-card {
        width: 58%;
    }
    
    .float-card.left,
    .float-card.right {
        width: 24%;
    }
    
    .mini-cards-orbit {
        width: 500px;
        height: 500px;
    }
    
    .mini-card-wrapper {
        animation-name: orbitMiniLarge;
    }
    
    @keyframes orbitMiniLarge {
        from {
            transform: translate(-50%, -50%) rotate(0deg) translateX(230px) rotate(0deg);
        }
        to {
            transform: translate(-50%, -50%) rotate(360deg) translateX(230px) rotate(-360deg);
        }
    }
    
    .showcase-stats-badge {
        left: 3%;
        bottom: 3%;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 140px 20px 60px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-divider {
        height: 30px;
    }
    
    /* Hero Showcase Tablet */
    .showcase-container {
        height: 380px;
    }
    
    .orbit-ring {
        width: 500px;
        height: 500px;
    }
    
    .showcase-card.main-card {
        width: 70%;
    }
    
    .float-card.left,
    .float-card.right {
        display: none;
    }
    
    .mini-cards-orbit {
        display: none;
    }
    
    .connection-lines {
        display: none;
    }
    
    .showcase-stats-badge {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .featured-row {
        grid-template-columns: 1fr;
    }
    
    .wide-row,
    .triple-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-column:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title .title-line {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    /* Hero Showcase Mobile */
    .hero-showcase {
        margin-top: 40px;
        min-height: 350px;
    }
    
    .showcase-container {
        height: 350px;
        perspective: 1200px;
    }
    
    .orbit-ring {
        width: 400px;
        height: 400px;
        opacity: 0.5;
    }
    
    .glow-blob {
        opacity: 0.3;
    }
    
    .blob-1, .blob-2, .blob-3 {
        filter: blur(60px);
    }
    
    .showcase-card.main-card {
        width: 85%;
        max-width: 400px;
    }
    
    .main-card .card-frame {
        padding: 2px;
    }
    
    .card-badge {
        font-size: 0.6rem;
        padding: 6px 12px;
        top: -10px;
        left: 14px;
    }
    
    .showcase-card.float-card {
        width: 35%;
        max-width: 120px;
    }
    
    .float-card.left {
        left: -5%;
    }
    
    .float-card.right {
        right: -5%;
    }
    
    .float-label {
        display: none;
    }
    
    .mini-cards-orbit {
        display: none;
    }
    
    .connection-lines {
        display: none;
    }
    
    .showcase-stats-badge {
        bottom: -10%;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 14px;
        animation: statsBadgeReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s backwards;
    }
    
    .stats-ring-mini {
        width: 36px;
        height: 36px;
    }
    
    .stats-number {
        font-size: 1rem;
    }
    
    .stats-label {
        font-size: 0.55rem;
    }
    
    .card-tag {
        padding: 4px 10px;
        font-size: 0.55rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .filter-section {
        padding: 16px;
        top: 60px;
    }
    
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gallery-section {
        padding: 40px 16px 60px;
    }
    
    .gallery-row {
        gap: 12px;
    }
    
    .wide-row,
    .triple-row {
        grid-template-columns: 1fr;
    }
    
    .masonry-section {
        grid-template-columns: 1fr;
    }
    
    .masonry-column {
        display: contents;
    }
    
    .masonry-column:nth-child(n) {
        display: contents;
    }
    
    .instagram-showcase {
        padding: 24px;
        margin: 40px 0;
    }
    
    .cta-section {
        padding: 80px 20px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .filter-tab {
        padding: 12px 16px;
        font-size: 0.8rem;
    }
    
    .tab-icon {
        display: none;
    }
    
    .tab-count {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    .item-overlay {
        padding: 16px;
        opacity: 1;
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.85) 100%
        );
    }
    
    .overlay-content {
        transform: translateY(0);
    }
    
    .overlay-badge {
        opacity: 1;
        transform: translateY(0);
    }
    
    .item-action {
        display: none;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animation Classes */
.gallery-item {
    opacity: 0;
    transform: translateY(40px);
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Stagger animations */
.masonry-column .gallery-item:nth-child(1) { transition-delay: 0s; }
.masonry-column .gallery-item:nth-child(2) { transition-delay: 0.1s; }
.masonry-column .gallery-item:nth-child(3) { transition-delay: 0.2s; }
.masonry-column .gallery-item:nth-child(4) { transition-delay: 0.3s; }
.masonry-column .gallery-item:nth-child(5) { transition-delay: 0.4s; }

.gallery-row .gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-row .gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-row .gallery-item:nth-child(3) { transition-delay: 0.2s; }
