:root {
    --bg: #050505; /* True Dark */
    --surface: #0d0d0d;
    --surface-bright: #151515;
    --primary: #00f2ff; /* Cyber Cyan */
    --primary-rgb: 0, 242, 255;
    --secondary: #0088ff;
    --accent: #ffffff;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 40px rgba(var(--primary-rgb), 0.4);
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

html {
    background: var(--bg);
    color: var(--text-main);
}

/* Quantum Reassembly Intro */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 3000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.reassembly-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-fragments {
    display: flex;
    gap: 10px;
    perspective: 1000px;
}

.fragment {
    font-size: 5rem;
    font-weight: 950;
    color: var(--primary);
    font-family: var(--font-heading);
    opacity: 0;
    filter: blur(15px);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.f-1 { transform: translate3d(-100px, 120px, -200px) rotate(45deg); }
.f-2 { transform: translate3d(150px, -80px, -150px) rotate(-30deg); }
.f-3 { transform: translate3d(-120px, -150px, -300px) rotate(90deg); }
.f-4 { transform: translate3d(200px, 100px, -100px) rotate(-45deg); }
.f-5 { transform: translate3d(-50px, 200px, -400px) rotate(120deg); }
.f-6 { transform: translate3d(180px, -200px, -250px) rotate(-90deg); }

#preloader.loaded .fragment {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0);
    filter: blur(0);
}

.assembly-glow {
    position: absolute;
    width: 100%;
    height: 100px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0;
    transition: opacity 1s;
}

#preloader.loaded .assembly-glow {
    opacity: 0.3;
}

/* Reusing CSS variables for random-like effects */
.f-1 { transition-delay: 0.1s; }
.f-2 { transition-delay: 0.2s; }
.f-3 { transition-delay: 0.3s; }
.f-4 { transition-delay: 0.4s; }
.f-5 { transition-delay: 0.5s; }
.f-6 { transition-delay: 0.6s; }

.status-text {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.7;
}

@keyframes portal-spin {
    to { transform: rotate(360deg); }
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; filter: blur(2px); }
    50% { transform: scale(1.1); opacity: 1; filter: blur(0px); }
}

/* Assembly System */
.assemble {
    opacity: 0;
    transform: translateY(30px) scale(0.95) perspective(1000px) rotateX(5deg);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.assemble.assembled {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

.kinetic-logo {
    font-size: 5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--primary);
    position: relative;
    animation: kinetic-pop 0.8s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.flicker-layer {
    position: absolute;
    inset: 0;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0;
    animation: flicker-fast 0.6s step-end 2;
}

@keyframes kinetic-pop {
    0% { transform: scale(0.5); opacity: 0; letter-spacing: 20px; }
    50% { opacity: 1; letter-spacing: 10px; }
    100% { transform: scale(1); opacity: 1; letter-spacing: 2px; }
}

@keyframes flicker-fast {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

/* Ghost Code Background Fix */
#code-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.12; /* Subtle as requested */
    mask-image: radial-gradient(circle at center, black 0%, transparent 85%);
    pointer-events: none;
}

/* Void Background Overlay */
.glass-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    backdrop-filter: blur(60px);
    z-index: 1;
}

/* Liquid HUD Background */
.liquid-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: var(--bg);
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    animation: move 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -20%;
    left: -10%;
    background: var(--primary);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    background: var(--secondary);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    background: #5200cc;
    opacity: 0.1;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* Removed duplicate glass-overlay */

@keyframes calm-fade {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

.scan-line {
    display: none;
}

@keyframes scan-move {
    0% {
        top: -10%
    }

    100% {
        top: 110%
    }
}

@keyframes fade-intro {
    0% {
        opacity: 1;
        pointer-events: all;
    }

    100% {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
    }
}

@keyframes text-glitch {
    0% {
        transform: skew(0);
    }

    50% {
        transform: skew(15deg);
        color: var(--accent-blue);
    }

    100% {
        transform: skew(-15deg);
        opacity: 0;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Scroll Reveal Classes - SaaS Fast Cuts */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    visibility: hidden;
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.glow-sphere {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: float-glow 40s infinite alternate ease-in-out;
}

@keyframes float-glow {
    0% {
        transform: translate(-5%, -5%) rotate(0deg);
    }

    100% {
        transform: translate(15%, 15%) rotate(10deg);
    }
}

.sphere-1 {
    top: -10%;
    right: -10%;
    background: var(--accent-blue);
}

.sphere-2 {
    bottom: -10%;
    left: -10%;
    background: var(--accent-purple);
    animation-delay: -7s;
}

#code-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    filter: blur(4px);
    opacity: 0.8;
}

/* Premium Fluid Cursor */
.custom-cursor-main {
    width: 6px;
    height: 6px;
    background: var(--primary);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999999;
    box-shadow: 0 0 10px var(--primary);
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    background: rgba(var(--primary-rgb), 0.02);
}

.cursor-hovering .custom-cursor-follower {
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
    filter: brightness(100%);
}

/* Cleaned up redundant styles */

.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    filter: blur(8px);
    transition: transform 0.1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-island-wrapper {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.nav-island {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 40px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.scrolled .nav-island {
    padding: 6px 30px;
    background: rgba(5, 5, 5, 0.9);
}

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

/* Professional Nav Island Blade */
.nav-island {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 10px 10px 30px;
    border-radius: 100px;
    gap: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-island:hover {
    background: rgba(15, 15, 15, 0.8);
    border-color: rgba(var(--primary-rgb), 0.3);
    gap: 4.5rem;
}

.nav-island.scrolled {
    top: 20px;
    padding: 8px 8px 8px 25px;
    background: rgba(5, 5, 5, 0.95);
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-size: 1.2rem;
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.5);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-text {
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', sans-serif !important;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 900;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links a:hover {
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Arabic nav fix: no uppercase, no letter-spacing */
body.rtl .nav-links a {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.lang-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.hero-zenith {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.cta-section {
    padding: 120px 0;
    position: relative;
}

.cta-card {
    background: var(--glass-bg);
    backdrop-filter: blur(35px);
    border-radius: 60px;
    padding: 100px 40px;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: all 0.8s ease-in-out;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    z-index: 0;
}

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

.cta-content h2 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.cta-content p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.btn-premium-cta {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(240, 240, 240, 0.9));
    color: black;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: all 0.8s ease-in-out;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 1);
}

.btn-premium-cta:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.5);
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.2;
    mix-blend-mode: screen;
}

.glow-sphere.blue {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: 10%;
    right: 5%;
}

.glow-sphere.purple {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: 10%;
    left: 5%;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3rem;
    z-index: 2;
    position: relative;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 6.5rem;
    line-height: 0.95;
    font-weight: 900;
    margin-bottom: 2.5rem;
    letter-spacing: -4px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 60%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text, .vision-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

.hero-subline {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.btn-quantum {
    padding: 14px 35px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 99px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-quantum.primary {
    background: #ffffff;
    color: #000;
    border: none;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn-quantum.primary:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.5);
}

.btn-quantum:hover:not(.primary) {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-visual {
    display: none;
}

.floating-node {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating 6s ease-in-out infinite;
}

.node-core {
    width: 40px;
    height: 40px;
    background: #ffffff;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
    border-radius: 4px;
    transform: rotate(45deg);
    z-index: 5;
}

.node-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.node-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    border-right: 1px solid #14b8a6;
}

.node-ring:nth-child(3) {
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 1px solid #10b981;
    animation-duration: 20s;
}

.node-ring:nth-child(4) {
    width: 220px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 1px solid #10b981;
    animation-duration: 15s;
    animation-direction: reverse;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

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

@keyframes floating {

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

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

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

    to {
        transform: rotate(360deg);
    }
}

.services {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.05) 0%, transparent 70%);
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 900;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

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

.service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.05);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.2);
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 224, 255, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.service-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: #1a1a1a;
    border: none;
    border-radius: 16px;
    box-shadow: none;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: #888888;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer Redesign */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(0, 122, 255, 0.02), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-grid h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    margin-right: 0.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
    color: white;
}

.discord-handles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.handle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.handle:hover {
    border-color: var(--accent-purple);
    background: rgba(138, 43, 226, 0.05);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
}

.handle span {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}

.handle code {
    background: var(--accent-purple);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .handle {
        justify-content: space-around;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

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

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

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10001;
}

.chat-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(var(--primary-rgb), 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 20000;
}

.chat-svg {
    width: 28px;
    height: 28px;
}

.chat-svg path {
    stroke: var(--primary);
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(var(--primary-rgb), 0.3);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 480px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(35px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--primary-rgb), 0.1);
    z-index: 10001;
}

.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
}

.chat-header h3 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 950;
    margin: 0;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.chat-close:hover {
    color: var(--primary);
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.chat-msg {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    font-size: 0.95rem;
    max-width: 85%;
    font-weight: 500;
    font-family: 'Outfit', sans-serif !important;
    line-height: 1.5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chat-msg.system {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--primary);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 700;
}

.chat-footer {
    padding: 1.2rem;
    background: rgba(5, 5, 5, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.8rem;
}

.chat-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.chat-footer input:focus {
    border-color: rgba(var(--primary-rgb), 0.5);
    background: rgba(var(--primary-rgb), 0.05);
}

.chat-footer button {
    background: var(--primary);
    border: none;
    color: #000;
    padding: 0 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.chat-footer button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.grids-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 1.5rem;
    margin-top: 4rem;
}

.hero-zenith {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.2);
}

.bento-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.bento-item.main-feat {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.02));
}

.bento-item:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 22px;
}

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

@keyframes float {

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

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

/* Single Project Card & Lightbox */
/* Portfolio Grid & Lightbox System */
.work-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.work-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    padding: 12px 35px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateY(-3px);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.4);
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    border: 1px solid var(--glass-border);
}

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease-in-out;
}

.work-card.main-project {
    cursor: pointer;
    width: 700px;
    height: 420px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(5, 20, 28, 0.95), transparent);
    opacity: 0;
    transition: all 0.8s ease-in-out;
    z-index: 5;
}

.work-card:hover .work-info {
    opacity: 1;
}

.work-card:hover img {
    transform: scale(1.03);
}

.view-more-tag {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 122, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
    }
}

.modal-gallery {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 85%;
    text-align: center;
    position: relative;
}

.modal-content-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.gallery-caption {
    margin-top: 1.5rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-gallery {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.3s;
}

.close-gallery:hover {
    color: var(--accent-blue);
}

/* Lead Modal Styles - Premier SaaS Look */
.modal-lead {
    display: none;
    position: fixed;
    z-index: 40000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Support Portal Modal Rebuild */
.modal-lead-content {
    background: #0a0a0a;
    width: 90%;
    max-width: 500px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    position: relative;
    box-shadow: 0 30px 100px rgba(0,0,0,0.8);
    animation: modal-slide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: -1px;
}

.lead-form input, .lead-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    margin-bottom: 1.2rem;
    transition: all 0.3s;
}

.lead-form input:focus, .lead-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

@keyframes modal-slide {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

.close-lead {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lead:hover {
    color: white;
}

.modal-lead h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.modal-lead p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.lead-form .input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.lead-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.lead-form input,
.lead-form select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.lead-form input:focus {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.lead-form input:focus,
.lead-form select:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Fix for invisible options on some browsers */
.lead-form select option {
    background-color: #0a0a0a;
    color: white;
}

.lead-form input:focus,
.lead-form select:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 163, 255, 0.05);
}

@media (max-width: 480px) {
    .modal-lead-content {
        padding: 2rem 1.5rem;
    }
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 2rem 1rem;
    cursor: pointer;
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent-blue);
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

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

    .bento-item.main-feat {
        grid-column: span 1;
        grid-row: span 1;
    }

    .work-card.main-project {
        width: 100%;
        height: 300px;
        border-radius: 20px;
    }

    .project-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        top: 10px;
        left: 10px;
    }

    .work-info {
        padding: 1.5rem;
    }

    .work-info h3 {
        font-size: 1.2rem;
    }

    .nav-btn {
        padding: 1rem 0.5rem;
        font-size: 1.2rem;
    }

    .prev {
        left: 5px;
    }

    .next {
        right: 5px;
    }

    .close-gallery {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

/* Infinite Tech Track */
.tech-stack {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 4rem 0;
}

.tech-infinite {
    overflow: hidden;
}

.tech-track {
    display: flex;
    gap: 5rem;
    white-space: nowrap;
    animation: scroll-tech 30s linear infinite;
}

.tech-track span {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.15;
}

@keyframes scroll-tech {
    0% {
        transform: translateX(0);
    }

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

@media (max-width: 768px) {
    .work-card {
        min-width: 320px;
    }
}

/* Process Section */
.process {
    padding: 100px 0;
    background: radial-gradient(circle at bottom, rgba(var(--primary-rgb), 0.1), transparent);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.proc-step {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.step-num {
    font-size: 6rem;
    font-weight: 900;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    opacity: 0.15;
    z-index: -1;
}

.proc-step h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.proc-step p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
}

/* Stats Section Restore */
.stats {
    padding: 140px 0;
    position: relative;
    z-index: 9999;
    background: transparent;
}

.grids-stats {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-num {
    font-size: 6.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    margin-bottom: 0px;
    position: relative;
    z-index: 10001;
    display: inline-block; /* Essential for counting physics */
    vertical-align: baseline;
    line-height: 1;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.stat-suffix {
    font-size: 6.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    display: inline-block;
    vertical-align: baseline;
    line-height: 1;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.stat-icon-3d {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.6));
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}



/* Footer 3.0 */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--glass-border);
    background: #0a0a0a;
}

.footer-credits {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credits {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.admin-highlight {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.05)) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2) !important;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: var(--secondary); }
}

.contact-pill {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.02));
    border: 1px solid var(--primary);
    padding: 1.2rem 2rem;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.contact-pill:hover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.2);
}

/* Why Click Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.why-card {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 5rem 3rem;
    border-radius: 40px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(var(--primary-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.why-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(20, 20, 20, 0.85); /* Deep rich background instead of washed out cyan */
    border-color: rgba(var(--primary-rgb), 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(var(--primary-rgb), 0.05); /* Proper depth and subtle glow */
}

.why-icon-wrap {
    width: 70px;
    height: 70px;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 3rem;
    background: rgba(var(--primary-rgb), 0.08); /* Slightly darker initially */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover .why-icon-wrap {
    background: var(--primary);
    color: #000;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(var(--primary-rgb), 0.6));
    border-radius: 25px;
}

.why-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.8rem;
    color: #fff;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.why-card p {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Premium Quantum Portal Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-loader {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-top: 2px solid var(--primary);
    animation: portal-spin 2s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.portal-logo {
    font-size: 4rem;
    font-weight: 950;
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
    animation: portal-pulse 2s ease-in-out infinite;
}

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

@keyframes portal-pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Portfolio Refinement (Deep Glass) */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 20px;
}

.work-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.work-card:hover {
    transform: translateY(-20px);
    border-color: var(--primary);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.work-media {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.work-media video, .work-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-media video, .work-card:hover .work-media img {
    transform: scale(1.15);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
    font-size: 4rem;
    color: #fff;
    backdrop-filter: blur(8px);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-info {
    padding: 3rem;
}

.work-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    display: block;
}

.work-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.work-info p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.video-player-container {
    width: 90%;
    max-width: 1200px;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.video-player-container video {
    width: 100%;
    display: block;
}

/* CTA Section - Holographic Glass */
.cta-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.cta-card {
    position: relative;
    padding: 120px 60px;
    border-radius: 50px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: #000 !important;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(var(--secondary-rgb, 0, 136, 255), 0.1) 0%, transparent 40%);
    z-index: 0;
    animation: mesh-pulse 10s infinite alternate;
}

/* Hero Zenith New Layout */
.hero-zenith {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

/* 3D Quantum Cube Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.quantum-cube {
    width: 220px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-master 20s infinite linear, cube-float 6s ease-in-out infinite;
}

.face .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 2px;
}
.face .corner:nth-child(2) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.face .corner:nth-child(3) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }

@keyframes cube-master {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(720deg); }
}

@keyframes cube-float {
    0%, 100% { top: 0; }
    50% { top: -30px; }
}

/* Digital Gears (Services) */
.floating-visual-wrap {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 1.5s ease;
}

.assemble.assembled .floating-visual-wrap {
    opacity: 0.4;
    right: 20px;
}

.digital-gear {
    font-size: 8rem;
    color: var(--primary);
    animation: gear-spin 10s linear infinite;
    filter: blur(2px) drop-shadow(0 0 20px var(--primary));
}

.gear-small {
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -30px;
    animation-duration: 5s;
    animation-direction: reverse;
}

@keyframes gear-spin {
    to { transform: rotate(360deg); }
}

/* Data Prism (Stats) */
.stat-visual-prism {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), transparent);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(45deg);
    animation: prism-float 8s ease-in-out infinite;
    z-index: 0;
    border: 1px solid var(--primary);
    opacity: 0.1;
}

@keyframes prism-float {
    0%, 100% { transform: translate(-50%, -50%) rotateY(0); filter: blur(10px); }
    50% { transform: translate(-50%, -80%) rotateY(180deg); filter: blur(5px); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.3); }
}

/* --- Quantum Reassembly Intro --- */
.logo-fragments {
    display: flex;
    gap: 20px;
    perspective: 2000px;
}

.frag {
    font-size: 6rem;
    font-weight: 950;
    color: #fff;
    text-shadow: 0 0 30px var(--primary);
    opacity: 0;
    filter: blur(20px);
    transition: all 2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hard-coded random-like entry points for high-fidelity fragmentation */
.frag:nth-child(1) { transform: translate3d(-400px, 200px, 1500px) rotate(360deg); }
.frag:nth-child(2) { transform: translate3d(500px, -300px, 1500px) rotate(-360deg); }
.frag:nth-child(3) { transform: translate3d(-300px, -500px, 1500px) rotate(720deg); }
.frag:nth-child(4) { transform: translate3d(600px, 400px, 1500px) rotate(-720deg); }
.frag:nth-child(5) { transform: translate3d(-600px, -200px, 1500px) rotate(360deg); }
.frag:nth-child(6) { transform: translate3d(400px, 600px, 1500px) rotate(-360deg); }

.loaded .frag {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) rotate(0deg);
}

.loaded .frag:nth-child(1) { transition-delay: 0.1s; }
.loaded .frag:nth-child(2) { transition-delay: 0.2s; }
.loaded .frag:nth-child(3) { transition-delay: 0.3s; }
.loaded .frag:nth-child(4) { transition-delay: 0.4s; }
.loaded .frag:nth-child(5) { transition-delay: 0.5s; }
.loaded .frag:nth-child(6) { transition-delay: 0.6s; }

.stat-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
    border-radius: 40px;
    text-align: center;
    backdrop-filter: blur(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.stat-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--primary-rgb), 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-20px);
    border-color: rgba(var(--primary-rgb), 0.4);
    background: rgba(var(--primary-rgb), 0.02);
}

.stat-icon-wrap {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--primary));
}

.stat-flex {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.stat-num {
    font-size: 5rem;
    font-weight: 950;
    letter-spacing: -3px;
    background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 900;
}

/* Data Helix Visual */
.stat-data-helix {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    background: linear-gradient(180deg, var(--primary), transparent);
    mask-image: radial-gradient(circle, black, transparent);
    opacity: 0.1;
    filter: blur(40px);
    animation: helix-twist 10s linear infinite;
}

@keyframes helix-twist {
    to { transform: translateY(-50%) rotateY(360deg); }
}

/* Discord Tactical Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
    padding: 100px 0;
    align-items: start;
}

.discord-tactical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.discord-tactical-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}

.discord-tactical-card:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.03);
    transform: scale(1.05);
}

.card-meta .name {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.card-meta .role {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.discord-tactical-card .tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 10px;
    color: var(--primary);
}

.social-links-premium {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-pill {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    transition: 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-pill:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.social-pill.tiktok:hover { 
    background: #000; 
    border-color: #ff0050; 
    color: #fff;
    box-shadow: -5px 0 20px rgba(255, 0, 80, 0.4), 5px 0 20px rgba(0, 242, 255, 0.4);
}

.social-pill.instagram:hover { 
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.4);
}

/* Removed hard vertical shimmer */
.stat-flex .stat-num {
    font-size: 4rem;
}

body.rtl .contact-pill {
    flex-direction: row-reverse;
}

body.rtl .nav-island {
    padding: 10px 30px 10px 10px;
}

.close-video {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.close-video:hover {
    color: var(--primary);
}

/* Chat Enhancements */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 18px !important;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing-blink 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-blink {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

.img-msg {
    padding: 0 !important;
    background: transparent !important;
    border: 1px solid rgba(var(--primary-rgb), 0.2) !important;
    overflow: hidden;
}

.img-msg img {
    display: block;
}

.chat-input-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 45px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-action-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

/* ===  RTL / Arabic Overrides === */
body.rtl .stat-item p {
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

/* Numbers always stay in Outfit regardless of language */
.stat-num,
.stat-suffix {
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -2px !important;
}

/* Section header subtitle - no uppercase in Arabic */
body.rtl .section-header p,
body.rtl .hero-sub {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Why card fix in RTL */
body.rtl .why-card h3,
body.rtl .service-card h3 {
    text-align: right;
}

/* Neon Badge Style */
.badge.neon {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: inline-block;
}

/* CTA Typewriter Cursor */
#ctaTitle::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
    margin-left: 5px;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

/* Section Header RTL support */
body.rtl .section-header {
    text-align: right;
}/* Interactive Orbs */
.quantum-orb {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: auto; /* Clickable/Hoverable */
    z-index: -1;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s;
    filter: blur(20px);
}

.quantum-orb:hover {
    transform: scale(1.2) translate(30px, -30px) !important;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    cursor: crosshair;
}

.o-1 { top: 10%; right: 10%; animation: float-slow 15s infinite alternate; }
.o-2 { top: 60%; left: -5%; width: 450px; height: 450px; animation: float-slow 25s infinite alternate-reverse; }
.o-3 { bottom: 10%; right: 20%; animation: float-slow 20s infinite alternate; }

@keyframes float-slow {
    from { transform: translate(0, 0); }
    to { transform: translate(40px, 40px) rotate(10deg); }
}

#preloader.exit {
    animation: portal-shatter 1s forwards;
}

@keyframes portal-shatter {
    to { opacity: 0; transform: scale(4); filter: blur(100px); visibility: hidden; }
}

.face {
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 50px rgba(var(--primary-rgb), 0.1);
    transform-style: preserve-3d;
}

.front  { transform: translateZ(110px); }
.back   { transform: rotateY(180deg) translateZ(110px); }
.right  { transform: rotateY(90deg) translateZ(110px); }
.left   { transform: rotateY(-90deg) translateZ(110px); }
.top    { transform: rotateX(90deg) translateZ(110px); }
.bottom { transform: rotateX(-90deg) translateZ(110px); }

.cube-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -1;
}

/* --- Cinematic Language Transition --- */
@keyframes lang-flip-out {
    0%   { opacity: 1; filter: blur(0px); transform: scale(1); }
    100% { opacity: 0; filter: blur(15px); transform: scale(0.95) rotateY(10deg); }
}

@keyframes lang-flip-in {
    0%   { opacity: 0; filter: blur(15px); transform: scale(0.95) rotateY(-10deg); }
    100% { opacity: 1; filter: blur(0px); transform: scale(1); }
}

.lang-flipping-out {
    animation: lang-flip-out 0.4s cubic-bezier(0.4, 0, 1, 1) forwards !important;
    pointer-events: none;
}

.lang-flipping-in {
    animation: lang-flip-in 0.5s cubic-bezier(0, 0, 0.2, 1) forwards !important;
}

/* Smooth direction switch */
body {
    transition: direction 0s, text-align 0s;
}
