/* ============================================
   QUANTUMFOX - PREMIUM DARK MODE LANDING PAGE
   ============================================ */

/* CSS RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Merged from index.html */
}

:root {
    /* Color Palette */
    --color-black: #050505;
    --color-black-soft: #0a0a0a;
    --color-purple: #8A2BE2;
    --color-purple-glow: rgba(138, 43, 226, 0.5);
    --color-cyber-blue: #00fbff;
    --color-cyber-blue-glow: rgba(0, 251, 255, 0.4);
    --color-purple-dark: #6a1bb2;
    --color-white: #ffffff;
    --color-gray-light: #e0e0e0;
    --color-gray-medium: #a0a0a0;
    --color-gray-dark: #404040;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'DM Sans', sans-serif;
    /* Merged from index.html */
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

h1,
h2,
h3,
.font-bold {
    font-family: 'Outfit', sans-serif;
    /* Merged from index.html */
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    padding: 1.2rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--color-gray-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    /* Added breathing room */
}

.nav-cta {
    flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.cta-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button-primary {
    background: var(--color-purple);
    color: var(--color-white);
    box-shadow: 0 0 30px var(--color-purple-glow);
    position: relative;
    overflow: hidden;
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--color-purple-glow), 0 10px 30px rgba(138, 43, 226, 0.3);
}

.cta-button-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-purple);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

.cta-button-secondary:hover {
    background: var(--color-purple);
    box-shadow: 0 0 40px var(--color-purple-glow);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

/* Flexible 3D Background Container */
.hero-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
}

/* Hero Content Overlay */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 0 0 40px rgba(138, 43, 226, 0.3);
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--color-purple) 0%, #b565ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.9));
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--color-gray-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: var(--spacing-lg);
}

.hero-cta .cta-button-primary {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

/* ============================================
   TRUST SECTION
   ============================================ */

.trust-section {
    background: var(--color-black-soft);
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    padding: var(--spacing-xl) 0;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.trust-text {
    font-size: 1.1rem;
    color: var(--color-gray-medium);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.client-logo {
    opacity: 0.4;
    transition: opacity var(--transition-smooth);
}

.client-logo:hover {
    opacity: 0.8;
}

.logo-placeholder {
    width: 120px;
    height: 40px;
    color: var(--color-gray-light);
}

.logo-placeholder svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   TECH STACK SECTION
   ============================================ */

.tech-logo {
    opacity: 0.6;
    transition: all 0.5s ease;
    max-width: 100%;
    object-fit: contain;
}

.tech-logo-card:hover .tech-logo {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .nav-links {
        gap: var(--spacing-sm);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-xs);
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .client-logos {
        gap: var(--spacing-md);
    }

    .logo-placeholder {
        width: 100px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 0;
        /* Even tighter for small screens */
    }

    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-cta .cta-button-primary {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .client-logos {
        gap: var(--spacing-sm);
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.cta-button:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--color-purple);
    outline-offset: 4px;
}

/* ============================================
   TECH STACK MARQUEE
   ============================================ */

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    background: #050505;
}

/* Fade effects on sides */
.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #050505, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #050505, transparent);
}

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

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marquee-item:hover {
    transform: scale(1.05);
    border-color: rgba(138, 43, 226, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   CUSTOM CURSOR (Merged from index.html)
   ============================================ */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-purple);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
    top: 0;
    left: 0;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: all 0.12s ease;
    top: 0;
    left: 0;
    transform: translate(-12px, -12px);
}

/* ============================================
   ANIMATIONS (Merged & Refined)
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes meshFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, 30px) scale(1.1);
    }
}

@keyframes meshFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, -20px) scale(1.05);
    }
}

/* ============================================
   PREMIUM GLASS & GLOW EFFECTS
   ============================================ */
.ambient-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 1;
    opacity: 0.15;
}

.glow-purple { background: var(--color-purple); }
.glow-cyan { background: var(--color-cyber-blue); }

@keyframes aurora-shift {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(5%, 10%) scale(1.1) rotate(2deg); }
    66% { transform: translate(-5%, 5%) scale(0.9) rotate(-2deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-aurora {
    animation: aurora-shift 15s ease-in-out infinite;
}

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

.animate-pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite;
}

.premium-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(138, 43, 226, 0.15);
    transform: translateY(-5px);
}

.glow-text {
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

/* Nav Link Reveal Animation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-purple);
    transform: translateX(-101%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover::before {
    transform: translateX(0);
}

/* ============================================
   UTILITIES
   ============================================ */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   SERVICE MARQUEE & PREMIUM CARDS
   ============================================ */

.service-marquee-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: #050505;
}

.service-marquee-track {
    display: flex;
    gap: 32px;
    width: max-content;
    will-change: transform;
}

.service-marquee-card {
    position: relative;
    width: 380px;
    height: 480px;
    border-radius: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
}

.service-marquee-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px;
    background: linear-gradient(180deg, var(--card-glow, #8A2BE2) 0%, transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.service-marquee-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-glow, #8A2BE2);
    box-shadow: 0 0 50px rgba(var(--card-glow-rgb, 138, 43, 226), 0.15);
}

.service-marquee-card:hover::before {
    opacity: 1;
}

/* Inner bottom glow */
.card-bottom-glow {
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 80%;
    height: 120px;
    background: var(--card-glow, #8A2BE2);
    filter: blur(60px);
    opacity: 0.2;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.service-marquee-card:hover .card-bottom-glow {
    opacity: 0.5;
}

/* Icon Box (Top Left) */
.card-icon-box {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.card-icon-box svg {
    width: 24px;
    height: 24px;
    color: var(--card-glow);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.card-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-marquee-card:hover .card-link {
    gap: 12px;
    opacity: 1;
    color: var(--card-glow);
}

/* Glow Color Variants */
.glow-orange { --card-glow: #ff6a00; --card-glow-rgb: 255, 106, 0; }
.glow-green { --card-glow: #00ff88; --card-glow-rgb: 0, 255, 136; }
.glow-blue { --card-glow: #0088ff; --card-glow-rgb: 0, 136, 255; }
.glow-indigo { --card-glow: #8A2BE2; --card-glow-rgb: 138, 43, 226; }
.glow-cyan { --card-glow: #00fbff; --card-glow-rgb: 0, 251, 255; }
.glow-pink { --card-glow: #ff007b; --card-glow-rgb: 255, 0, 123; }
.glow-gold { --card-glow: #ffcc00; --card-glow-rgb: 255, 204, 0; }

@media (max-width: 768px) {
    .service-marquee-card {
        width: 300px;
        height: 420px;
        padding: 30px;
    }
    .card-title {
        font-size: 22px;
    }
    .service-marquee-container {
        padding: 40px 0;
    }
}

/* ============================================
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 251, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.why-us-card:hover::before {
    opacity: 1;
}

/* Feature Icon with Cyan Glow */
.why-us-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(0, 251, 255, 0.05);
    border: 1px solid rgba(0, 251, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.why-us-icon-wrapper svg {
    color: #00fbff;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(0, 251, 255, 0.4));
}

.why-us-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.why-us-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Float Animation */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: floatAnimation 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatAnimation 8s ease-in-out infinite 1s;
}

/* Bento Variants */
.bento-big { grid-column: span 2; grid-row: span 2; padding: 48px; }
.bento-wide { grid-column: span 2; }
.bento-high { grid-row: span 2; }

/* ============================================
   WHY-US HERO-BENTO REDESIGN (FINAL FIXED)
   ============================================ */

.why-us-section {
    position: relative;
    background: #050505;
    overflow: hidden;
    z-index: 1;
}

.why-us-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 10% 10%, rgba(138, 43, 226, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 251, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.why-us-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

/* Master Card (Centerpiece) */
.why-us-master-card {
    grid-column: 2;
    background: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 48px;
    padding: 80px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.1);
}

.master-content {
    position: relative;
    z-index: 10;
}

.glow-sphere {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, 
        rgba(138, 43, 226, 0.25) 0%, 
        rgba(0, 251, 255, 0.1) 40%, 
        transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
    animation: pulseSphere 8s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes pulseSphere {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.7; }
}

.master-logo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.7));
    position: relative;
}

/* Side Columns */
.why-us-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 32px;
    padding: 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.why-us-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(138, 43, 226, 0.4) !important;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.why-us-card.cyan-accent {
    border-color: rgba(0, 251, 255, 0.15) !important;
}

.why-us-card.cyan-accent:hover {
    border-color: rgba(0, 251, 255, 0.6) !important;
    box-shadow: 0 20px 50px rgba(0, 251, 255, 0.2);
}

.why-us-icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A2BE2;
    transition: all 0.3s ease;
}

.why-us-card:hover .why-us-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
    background: rgba(138, 43, 226, 0.2);
    color: #fff;
}

.why-us-card.cyan-accent .why-us-icon-wrapper { color: #00fbff; }

.why-us-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.why-us-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1200px) {
    .why-us-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
    .why-us-master-card {
        grid-column: span 2;
        order: -1;
    }
}

@media (max-width: 768px) {
    .why-us-hero-grid {
        grid-template-columns: 1fr;
    }
    .why-us-master-card {
        grid-column: span 1;
        padding: 60px 24px;
    }
    .why-us-master-card h2 {
        font-size: 2.5rem;
    }
}

/* ============================================
   AMBIENT LIGHTING SYSTEM (GLOBAL)
   ============================================ */

.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

.glow-cyan {
    background: radial-gradient(circle, rgba(0, 251, 255, 0.4) 0%, transparent 70%);
}

.glow-purple {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, transparent 70%);
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #fff 0%, #00fbff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-mixed {
    background: linear-gradient(135deg, #8A2BE2 0%, #00fbff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Dividers */
.section-divider-glow {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 251, 255, 0.15) 50%, transparent 100%);
    position: relative;
    margin: 40px 0;
}

.section-divider-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 251, 255, 0.1) 0%, transparent 70%);
    filter: blur(40px);
}
/* Magic Glowing Animated Button */
.magic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-weight: 600;
  color: white;
  background: #050505;
  border-radius: 9999px;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  border: none;
}

.magic-btn::before {
  content: "";
  position: absolute;
  width: 300%;
  height: 600%;
  background: conic-gradient(
    transparent,
    rgba(138, 43, 226, 0.5),
    transparent,
    rgba(0, 240, 255, 0.5),
    transparent
  );
  animation: magic-spin 4s linear infinite;
  z-index: -2;
}

.magic-btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(5, 5, 5, 1) 50%, rgba(0, 240, 255, 0.2) 100%);
  border-radius: 9999px;
  z-index: -1;
  transition: all 0.4s ease;
}

.magic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}

.magic-btn:hover::after {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(15, 10, 25, 1) 50%, rgba(0, 240, 255, 0.4) 100%);
}

@keyframes magic-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   MOBILE RESPONSIVE - PREMIUM
   ============================================ */

/* --- Mobile Header Fix --- */
@media (max-width: 767px) {
  header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    top: 0.5rem !important;
  }

  /* Hide nav pill on mobile */
  header .nav-pill-desktop {
    display: none !important;
  }

  /* Scale down logo on mobile */
  header > div:first-child {
    height: 100px !important;
    margin-top: 0px !important;
  }
  header > div:first-child img {
    max-height: 100px !important;
  }

  /* Hide CTA button on mobile - hamburger is enough */
  header .magic-btn {
    display: none !important;
  }

  /* Hamburger z-index - MUST be above mobileMenu overlay */
  #mobileMenuBtn {
    z-index: 110 !important;
    position: relative;
  }
}

/* --- Premium Mobile Menu Overlay --- */
#mobileMenu {
  background: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

#mobileMenu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#mobileMenu > * {
  position: relative;
  z-index: 1;
}

#mobileMenu .mobile-link {
  position: relative;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}

#mobileMenu .mobile-link:hover,
#mobileMenu .mobile-link:active {
  color: #8A2BE2;
  text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

#mobileMenu .mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #8A2BE2, #00f0ff);
  transition: width 0.4s ease;
}

#mobileMenu .mobile-link:hover::after {
  width: 100%;
}

/* Hamburger premium styling */
#mobileMenuBtn span {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#mobileMenuBtn:hover span {
  background: #8A2BE2;
}

/* --- Mobile Hero & Content Fixes --- */
@media (max-width: 767px) {
  /* Prevent text overflow on hero sections */
  .hero-heading,
  h1 {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
    word-break: break-word;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
  }

  p {
    font-size: clamp(0.875rem, 3.5vw, 1rem) !important;
  }

  /* Fix containers on mobile */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix hero section padding for mobile nav */
  section:first-of-type,
  .hero-section {
    padding-top: 110px !important;
    min-height: auto !important;
  }

  /* Hero content wrapper fix - push text down */
  section:first-of-type > .relative.z-20,
  section:first-of-type > div > .relative.z-20 {
    padding-top: 80px !important;
  }

  /* Hero video responsive adjustments */
  .hero-video-wrapper {
    position: relative !important;
    height: 350px !important;
    width: 100% !important;
    justify-content: center !important;
    right: auto !important;
    top: auto !important;
    order: 1 !important;
    margin-bottom: -40px !important;
    margin-top: -20px !important;
  }
  
  .hero-video {
    width: 120% !important;
    max-width: 500px !important;
    transform: scale(1) translateX(0) !important;
    mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 90%) !important;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black 50%, transparent 90%) !important;
  }

  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden !important;
  }

  html {
    overflow-x: hidden !important;
  }

  /* Fix oversized blur orbs on mobile */
  .parallax-orb {
    max-width: 180px !important;
    max-height: 180px !important;
    opacity: 0.5 !important;
  }

  /* Radar on pozycjonowanie-lokalne hide on mobile */
  .radar-container {
    display: none !important;
  }

  /* Footer mobile spacing */
  footer .grid {
    gap: 2rem !important;
  }

  footer img {
    max-height: 100px !important;
  }

  /* Case cards mobile fix */
  .case-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .case-card-bg-number {
    font-size: 80px !important;
  }

  .stat-value {
    font-size: 20px !important;
  }

  /* Service marquee cards mobile */
  .service-marquee-card {
    width: 260px !important;
    height: 360px !important;
    padding: 20px !important;
  }

  /* Disable custom cursor on touch devices */
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

  /* Fix glass value cards on mobile */
  .glass-value {
    padding: 1.25rem !important;
  }

  /* Fix grid gaps on mobile */
  .grid {
    gap: 1rem;
  }

  /* AI chat section fix - prevent overlap */
  .ai-glass {
    height: auto !important;
    min-height: 420px;
  }

  .chat-container {
    padding-top: 60px !important;
  }

  .chat-bubble {
    font-size: 0.85rem !important;
    padding: 12px 16px !important;
  }

  /* Terminal window mobile */
  .terminal-window {
    height: auto !important;
    min-height: 300px;
  }

  /* Tech glass cards mobile */
  .tech-glass {
    padding: 1.25rem !important;
  }

  /* Node path flow - stack vertically on mobile */
  .node-path {
    margin: 20px 0 !important;
  }

  /* Tables mobile */
  table {
    font-size: 0.75rem !important;
  }

  table th,
  table td {
    padding: 0.5rem !important;
  }

  /* Calculator inputs */
  .calc-radio,
  .calc-check {
    padding: 1rem !important;
  }

  /* Sections general spacing - NOT first hero section */
  section:not(:first-of-type) {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* Fix the left margin on index hero content */
  div[style*="margin-left: -20px"] {
    margin-left: 0px !important;
  }

  /* Fix buttons on mobile */
  .magnetic-btn,
  a[class*="rounded-full"][class*="px-10"] {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-size: 0.9rem !important;
  }

  /* Before/After images - ensure they fit (not logo) */
  main img,
  section img,
  article img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix orbit animation - hide on mobile */
  .orbit-icon,
  .orbit-outer {
    display: none !important;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-heading,
  h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  }

  .service-marquee-card {
    width: 320px !important;
    height: 440px !important;
  }
}

/* Touch device detection - disable cursor */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }
}
