/* ==========================================================================
   PT. OTW Gusaha Teknologi Indonesia - Clean Modern Tech Stylesheet
   Distinctive, Mobile-First, Highly Responsive with Elegant Tech Animations
   ========================================================================== */

/* Base & Typography */
html,
body {
    font-family: 'Sora', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

/* Zero-Delay Instant Responsive Shield (Native CSS fallback before runtime JIT) */
@media (max-width: 1023px) {
    .hidden.lg\:flex,
    .hidden.lg\:block,
    .hidden.lg\:grid {
        display: none !important;
    }
    .lg\:hidden {
        display: block !important;
    }
    button.lg\:hidden {
        display: inline-flex !important;
    }
}

@media (min-width: 1024px) {
    .lg\:hidden {
        display: none !important;
    }
    .hidden.lg\:flex {
        display: flex !important;
    }
    .hidden.lg\:block {
        display: block !important;
    }
    .hidden.lg\:grid {
        display: grid !important;
    }
}

@media (max-width: 767px) {
    .hidden.md\:flex,
    .hidden.md\:block,
    .hidden.md\:grid {
        display: none !important;
    }
    .md\:hidden {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
    .hidden.md\:flex {
        display: flex !important;
    }
    .hidden.md\:block {
        display: block !important;
    }
    .hidden.md\:grid {
        display: grid !important;
    }
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

/* 1. Clean Sticky Header */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dark .site-header {
    background: rgba(11, 19, 43, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* 2. Tech Grid Background Matrix */
.tech-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
}

.dark .tech-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
}

/* 3. Clean Modern Cards with Dynamic Specular Lighting */
.clean-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .clean-card {
    background: #111c38;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.clean-card:hover {
    transform: translateY(-4px);
    border-color: #0284c7;
    box-shadow: 0 20px 35px -5px rgba(2, 132, 199, 0.12);
}

.dark .clean-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 20px 40px -5px rgba(56, 189, 248, 0.15);
}

/* 4. Elegant Cyber Beam / Radar Perimeter Glow */
.cyber-beam-card {
    position: relative;
}

.cyber-beam-card::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    background: linear-gradient(90deg, #0284c7, #06b6d4, #10b981, #0284c7);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.4;
    animation: cyberBeamAnim 8s ease infinite;
    transition: opacity 0.3s ease;
}

.cyber-beam-card:hover::before {
    opacity: 0.85;
}

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

/* 5. Animated Flowing Tech Gradient Text */
.tech-gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 30%, #10b981 70%, #0284c7 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 7s ease-in-out infinite alternate;
}

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

/* 6. Product Suite Distinct Brand Accents */
.product-suite-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-suite-card:hover {
    transform: translateY(-5px);
}

.accent-owa {
    border-top: 4px solid #10b981;
}
.accent-oaku {
    border-top: 4px solid #0284c7;
}
.accent-odigi {
    border-top: 4px solid #6366f1;
}
.accent-omail {
    border-top: 4px solid #06b6d4;
}
.accent-odega,
.accent-otwbelilaptop {
    border-top: 4px solid #f59e0b;
}
.accent-support {
    border-top: 4px solid #3b82f6;
}
.accent-otwdukasi {
    border-top: 4px solid #f43f5e;
}

/* 7. Tech Corner Reticles / HUD Accents */
.hud-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: rgba(56, 189, 248, 0.35);
    transition: border-color 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.hud-top-left {
    top: 8px;
    left: 8px;
    border-top: 1.5px solid;
    border-left: 1.5px solid;
}

.hud-top-right {
    top: 8px;
    right: 8px;
    border-top: 1.5px solid;
    border-right: 1.5px solid;
}

.hud-bottom-left {
    bottom: 8px;
    left: 8px;
    border-bottom: 1.5px solid;
    border-left: 1.5px solid;
}

.hud-bottom-right {
    bottom: 8px;
    right: 8px;
    border-bottom: 1.5px solid;
    border-right: 1.5px solid;
}

.clean-card:hover .hud-corner,
.product-suite-card:hover .hud-corner {
    border-color: rgba(56, 189, 248, 0.9);
    width: 12px;
    height: 12px;
}

/* 8. Pulsating Radar Ping Effect */
.radar-ring {
    position: relative;
}

.radar-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    background-color: inherit;
    opacity: 0.6;
    animation: radarWave 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radarWave {
    70%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 9. Floating Badge Animation */
.floating-tech-badge {
    animation: floatSlow 5s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* 10. Shimmer Button */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0%, 75% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* 11. Clean Logo Marquee & Reverse Multi-Flow */
.marquee-container {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-container:hover,
.marquee-reverse:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-reverse {
    display: flex;
    width: max-content;
    animation: marqueeScrollReverse 30s linear infinite;
}

@keyframes marqueeScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.marquee-speed-fast { animation-duration: 24s; }
.marquee-speed-normal { animation-duration: 32s; }
.marquee-speed-slow { animation-duration: 40s; }
.marquee-speed-mitra { animation-duration: 55s; }

.partner-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    height: 72px;
    padding: 0.75rem 1.25rem;
    margin: 0 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .partner-logo-box {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(30, 41, 59, 0.9);
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.4);
}

.partner-logo-box:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.25);
}

.partner-logo-box img {
    max-height: 42px;
    width: auto;
    max-width: 125px;
    object-fit: contain;
    filter: grayscale(85%) opacity(0.8);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.dark .partner-logo-box img {
    filter: grayscale(75%) brightness(1.2) opacity(0.85);
}

.partner-logo-box:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.dark .partner-logo-box:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .partner-logo-box {
        min-width: 115px;
        height: 56px;
        padding: 0.5rem 0.75rem;
        margin: 0 0.35rem;
        border-radius: 0.75rem;
    }
    .partner-logo-box img {
        max-height: 32px;
        max-width: 95px;
    }
}

/* Touch-friendly horizontal scroll utility without scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.mobile-touch-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.mobile-touch-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    transition: opacity 0.2s ease;
}

.logo-item img {
    height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.dark .logo-item img {
    filter: grayscale(100%) brightness(1.2) opacity(0.65);
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

.dark .logo-item:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    transform: scale(1.08);
}

/* 12. Mobile WhatsApp Floating Action Button */
#mobileWaFloatingBtn {
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
    right: max(1.25rem, calc(env(safe-area-inset-right, 0px) + 1.25rem));
}

#mobileWaFloatingBtn svg {
    display: block;
    margin: auto;
    filter: none !important;
}

/* 13. Dropdown Menu */
.nav-dropdown {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.group:hover .nav-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* 14. Google Maps Dark Filter */
.dark .google-map {
    filter: invert(90%) hue-rotate(180deg) contrast(85%);
}

/* 15. Minimalist Modern Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0b132b;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* 16. FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.4s ease-in-out, opacity 0.35s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active {
    border-color: rgba(14, 165, 233, 0.5) !important;
    background-color: rgba(14, 165, 233, 0.03) !important;
}

.dark .faq-item.active {
    border-color: rgba(14, 165, 233, 0.4) !important;
    background-color: rgba(14, 165, 233, 0.05) !important;
}

/* 17. Toast Notification */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    pointer-events: none;
}

.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* 18. Partner Logo Filter Tab */
.partner-filter-btn.active {
    background-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* 19. Language Switcher Dropdown */
.lang-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.16s;
}

#lang-dropdown-wrapper:hover .lang-dropdown-menu,
.lang-dropdown-menu.is-open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

#lang-dropdown-wrapper:hover #header-lang-chevron,
#header-lang-btn[aria-expanded="true"] #header-lang-chevron {
    transform: rotate(180deg);
}

#header-lang-menu .lang-switch-btn.active-lang {
    background-color: rgba(14, 165, 233, 0.18) !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
}

#header-lang-menu .lang-switch-btn.active-lang span {
    color: #38bdf8 !important;
}

/* 20. Brand Logo Styling (Full White in Dark Mode) */
.brand-logo-img {
    transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
}

.dark .brand-logo-img {
    filter: brightness(0) invert(1);
}

/* 21. Interactive Hero Cyber Console & Cloud Visualizer */
.hero-console-tab {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-console-tab.active {
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.12) !important;
}

.hero-console-panel {
    transition: opacity 0.25s ease;
}

/* Custom sleek scrollbar for terminal */
.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}

/* Blinking terminal caret */
@keyframes terminalBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.terminal-caret {
    animation: terminalBlink 0.9s infinite;
}

/* Topology node hover and active state */
.topo-node {
    transition: transform 0.25s ease;
}
.topo-node:hover {
    transform: scale(1.05);
}
.topo-node circle {
    transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}
.topo-node:hover circle:first-child {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85));
    stroke: #38bdf8 !important;
    stroke-width: 2.5;
}
.topo-node.active-node circle:first-child {
    stroke: #38bdf8 !important;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.95));
}

.hero-cli-cmd-btn:hover {
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* 22. Methodology Workflow Pipeline - Serpentine (Meliuk-Liuk) Responsive & Interactive Flow */
.meander-flow-track {
    position: relative;
}

/* Winding SVG Conduit for Desktop */
.meander-svg-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.meander-conduit-base {
    fill: none;
    stroke: url(#meanderGrad);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.32;
}

.dark .meander-conduit-base {
    opacity: 0.55;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

.meander-conduit-pulse {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60 400;
    animation: meanderPulseFlow 5s linear infinite;
    filter: drop-shadow(0 0 10px #0ea5e9);
}

@keyframes meanderPulseFlow {
    0% {
        stroke-dashoffset: 920;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Interactive Stage Pills */
.meander-pill-btn {
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.meander-pill-btn:hover {
    transform: translateY(-2px);
}

.meander-pill-btn.is-active {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

/* Meander Step Card */
.meander-card {
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.meander-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -10px rgba(14, 165, 233, 0.2);
}

.dark .meander-card:hover {
    box-shadow: 0 16px 36px -10px rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.5) !important;
}

.meander-card.is-active {
    transform: translateY(-4px);
    border-color: #0284c7 !important;
    box-shadow: 0 16px 36px -8px rgba(14, 165, 233, 0.3);
}

.dark .meander-card.is-active {
    background: rgba(15, 23, 42, 0.95);
    border-color: #38bdf8 !important;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.25);
}

.meth-node-pulse {
    position: relative;
}

.meth-node-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 9999px;
    border: 2px solid currentColor;
    opacity: 0.4;
    animation: methPulse 2.5s infinite;
}

@keyframes methPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* Mobile & Tablet Vertical Winding Conduit */
@media (max-width: 1023px) {
    .meander-mobile-rail {
        position: relative;
    }
    .meander-mobile-rail::before {
        content: '';
        position: absolute;
        top: 36px;
        bottom: 36px;
        left: 28px;
        width: 3px;
        background: linear-gradient(180deg, #0ea5e9, #6366f1, #06b6d4, #f59e0b, #10b981, #f43f5e);
        border-radius: 9999px;
        opacity: 0.45;
        z-index: 1;
    }
    .dark .meander-mobile-rail::before {
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
    }
}

/* 23. Hero "Tumbuh dengan Teknologi" Clean Ambient Kinetic Visual (Pure Animation) */
@keyframes streamFlowUp {
    from { stroke-dashoffset: 400; }
    to { stroke-dashoffset: 0; }
}

.tree-growth-stream {
    stroke-dasharray: 8 6;
    animation: streamFlowUp 11s linear infinite;
}

.tree-growth-stream-fast {
    stroke-dasharray: 10 6;
    animation: streamFlowUp 5.5s linear infinite;
}

/* Ambient Slow Rotation for Nucleus Orbital Rings */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spinSlow 24s linear infinite;
}

/* Organic Floating Keyframes for 4 Pillars */
@keyframes floatSoft1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

@keyframes floatSoft2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
}

.animate-float-slow {
    animation: floatSoft1 4.8s ease-in-out infinite;
}

.animate-float-alt {
    animation: floatSoft2 5.4s ease-in-out infinite 0.8s;
}

/* 24. Tentang Kami: Interactive Journey Timeline */
.journey-pill-btn {
    border-color: rgba(148, 163, 184, 0.4);
    color: #64748b;
    background-color: transparent;
}
.dark .journey-pill-btn {
    color: #94a3b8;
    border-color: rgba(51, 65, 85, 0.8);
}
.journey-pill-btn:hover {
    color: #0284c7;
    border-color: #0284c7;
}
.dark .journey-pill-btn:hover {
    color: #38bdf8;
    border-color: #38bdf8;
}
.journey-pill-btn.active {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.journey-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}
@keyframes ribbonTravel {
    0% { left: 0%; }
    50% { left: 98%; }
    100% { left: 0%; }
}

/* ==========================================================================
   25. Hero Interactive Throwable Physics Tags (Compatible with otwcomputer.gusaha.id)
   ========================================================================== */
.tags {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 480px;
    width: 100%;
    touch-action: pan-y;
}

.tags .item {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    will-change: transform;
    pointer-events: auto;
}

.tags .item > div {
    left: 50%;
    top: 50%;
    position: relative;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0f172a;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    cursor: grab;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 640px) {
    .tags .item > div {
        font-size: 13.5px;
        padding: 8px 20px;
    }
}

.tags .item > div:hover {
    box-shadow: 0 10px 25px -3px rgba(14, 165, 233, 0.25);
    border-color: rgba(14, 165, 233, 0.6);
    transform: scale(1.03);
}

.tags .item > div:active {
    cursor: grabbing;
    box-shadow: 0 14px 28px -4px rgba(14, 165, 233, 0.35);
    transform: scale(0.98);
}

.tags .item > div h6 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tags .item > div.bg-black {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 6px 18px -2px rgba(15, 23, 42, 0.25);
}

.tags .item > div.bg-black h6 {
    color: #ffffff;
}

.tags .item > div.border-0 {
    border: 0 !important;
}

.tags .item > div.bg-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 2px;
}

.tags .item > div img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

/* Dark Mode Adaptation */
.dark .tags .item > div {
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(30, 41, 59, 0.85);
    color: #f8fafc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dark .tags .item > div:hover {
    border-color: #38bdf8;
    box-shadow: 0 10px 28px rgba(56, 189, 248, 0.25);
}

.dark .tags .item > div.bg-black {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.dark .tags .item > div.bg-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

