 :root {
            --primary: #00FFC6;
            --secondary: #00D4FF;
            --accent: #8A4FFF;
            --dark: #0a0a0f;
            --darker: #050508;
            --light: #ffffff;
            --neon-purple: #B026FF;
            --neon-blue: #0066FF;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* ---------------------------------------------------------------
           GHOST-BOX FIX (2026-09-11)
           The Tailwind Play CDN is a runtime compiler loaded with `defer`,
           so its Preflight lands AFTER first paint. Preflight sets
           `border-style: solid` on every element; the site's `transition: all`
           rules (.header-main, .fade-in, .brand-logo, .feature, ...) then
           animate that change, and Chrome paints a 1px #e5e7eb ghost box
           around the header, the hero block and the hero paragraph for a
           moment on every load.
           Declaring the same border baseline up-front means nothing changes
           when Preflight arrives, so there is nothing to animate.
           Verified: full-page render before/after is pixel-identical.
           --------------------------------------------------------------- */
        *, ::before, ::after {
            border-width: 0;
            border-style: solid;
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background: var(--darker);
            color: var(--light);
            overflow-x: hidden;
            line-height: 1.6;
        }
        
        /* 3D Background Canvas */
#hero3dCanvas {
    position: absolute;
    top: 0;
    left: 0; /* FIX 2026-09-11: was 100px — made the canvas 100px wider than the
                 viewport on every screen >768px (audit P2, open since 31 Jul). */
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 3D Code Editor */
.code-editor-3d {
    background: #1a1b26;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 10;
}

.code-editor-3d:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 255, 198, 0.2);
}

.code-editor-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.1) 0%, rgba(138, 79, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: 16px;
}

.code-editor-3d:hover::before {
    opacity: 1;
}

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--darker);
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, var(--primary), var(--accent));
            border-radius: 10px;
        }
        
        /* Gradient Text */
        .gradient-text {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* Advanced Glass Effect */
        .glass {
            background: rgba(15, 15, 25, 0.2);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
        }
        
        /* Header */
        .header-main {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1.2rem 3rem;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .header-main.scrolled {
            background: rgba(10, 10, 15, 0.95);
            backdrop-filter: blur(20px) saturate(180%);
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
        }
        
        /* Advanced Buttons */
        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border: none;
            color: var(--dark);
            font-weight: 700;
            padding: 14px 32px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 255, 198, 0.3);
            font-size: 1rem;
        }
        
        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(0, 255, 198, 0.5);
        }
        
        .btn-secondary {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
            font-weight: 600;
            padding: 12px 28px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 1rem;
        }
        
        .btn-secondary:hover {
            background: var(--primary);
            color: var(--dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 255, 198, 0.3);
        }
        
        /* Advanced Hero Section */
        .hero-section {
     min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a0a1a 0%, #050508 70%);
}
        
        .hero-content {
            position: relative;
            z-index: 10;
        }
        
        /* Floating Elements */
        .floating-element {
       position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(40px);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    max-width: 100%; /* منع التجاوز */
}
        
        @keyframes float {
            0%, 100% { transform: translateY(0px) scale(1); }
            50% { transform: translateY(-20px) scale(1.05); }
        }
        
        /* Advanced Grid Background */
        .grid-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
            background-size: 50px 50px;
            opacity: 0.3;
            z-index: -1;
        }
        
        /* Advanced Services Section */
        .services-section {
            position: relative;
            overflow: hidden;
        }
        
        .service-card {
            background: linear-gradient(145deg, 
                rgba(0, 255, 198, 0.05) 0%, 
                rgba(138, 79, 255, 0.05) 100%);
            backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 2.5rem;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            height: 100%;
            position: relative;
            overflow: hidden;
        }
        
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 255, 198, 0.1) 0%, rgba(138, 79, 255, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.5s ease;
            z-index: -1;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
            border-color: rgba(0, 255, 198, 0.3);
            box-shadow: 0 20px 40px rgba(0, 255, 198, 0.15);
        }
        
        .service-card:hover::before {
            opacity: 1;
        }
        
        .service-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            background: rgba(0, 255, 198, 0.1);
            border: 1px solid rgba(0, 255, 198, 0.2);
            transition: all 0.4s ease;
        }
        
        .service-card:hover .service-icon {
            transform: scale(1.1);
            background: rgba(0, 255, 198, 0.2);
            box-shadow: 0 8px 20px rgba(0, 255, 198, 0.2);
        }
        
        /* Advanced Animations */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Container */
        .container {
        width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden; /* لمنع أي محتوى يتجاوز الحاوية */
}
        
        /* Responsive */
        @media (max-width: 768px) {
            .header-main {
                padding: 1rem 2rem;
            }
            
            .hero-title {
                font-size: 3rem !important;
            }
            
            .container {
                padding: 0 1.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .hero-title {
                font-size: 2.5rem !important;
            }
            
            .container {
                padding: 0 1rem;
            }
        }
        
        /* Section Spacing */
        section {
       padding: 6rem 0;
    overflow: hidden;
    position: relative;
}
        
        /* Stats Section */
        .stats-section {
            background: linear-gradient(135deg, #0f0f2a 0%, #1a1a3e 50%, #2d2d5a 100%);
        }
        
        .stat-item {
            text-align: center;
            margin: 1rem;
        }
        
        /* Code Editor */
        .code-editor {
            background: #1a1b26;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 14px;
            line-height: 1.5;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .editor-header {
            background: #16161e;
            padding: 12px 20px;
            border-bottom: 1px solid #2a2a3c;
            display: flex;
            align-items: center;
        }
        
        .editor-body {
            padding: 25px;
        }
        
        .code-line {
            display: flex;
            margin-bottom: 6px;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
        }
        
        .line-number {
            color: #565f89;
            width: 40px;
            text-align: right;
            margin-right: 15px;
            user-select: none;
        }
        
        .code-content {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
        }
        
        .code-string {
            color: #9ece6a;
        }
        
        .code-property {
            color: #7dcfff;
        }
        
        .code-value {
            color: #ff9e64;
        }
        
        .code-comment {
            color: #565f89;
        }
        
        .code-keyword {
            color: #bb9af7;
        }
        
        .code-function {
            color: #7aa2f7;
        }
        
        /* Background Animations */
        .animated-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }
        
        .bg-particle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
            opacity: 0.1;
            animation: particleFloat 15s infinite linear;
        }
        
        @keyframes particleFloat {
            0% { transform: translateY(100vh) rotate(0deg); }
            100% { transform: translateY(-100px) rotate(360deg); }
        }
        /* Tech Brands Section Styles */
.tech-brands-section {
    position: relative;
    overflow: hidden;
}

/* Particles Background */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: particleFloat 8s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Brands Carousel */
.brands-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    mask: linear-gradient(90deg, 
        transparent, 
        white 10%, 
        white 90%, 
        transparent
    );
}

.brands-carousel-track {
    display: flex;
    gap: 2rem;
    animation: scrollBrands 40s linear infinite;
    padding: 0 2rem;
}

.brands-carousel-track.reverse {
    animation: scrollBrandsReverse 35s linear infinite;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

@keyframes scrollBrandsReverse {
    0% {
        transform: translateX(calc(-100% - 2rem));
    }
    100% {
        transform: translateX(0);
    }
}

.brands-carousel-container:hover .brands-carousel-track {
    animation-play-state: paused;
}

.brands-carousel-container:hover .brands-carousel-track.reverse {
    animation-play-state: paused;
}

/* Brand Cards */
.brand-card {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.brand-card:hover::before {
    left: 100%;
}

.brand-card:hover {
    transform: translateY(-10px) scale(1.05) rotateY(10deg);
    border-color: rgba(0, 255, 198, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 255, 198, 0.15),
        0 0 60px rgba(0, 255, 198, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Brand Logos */
.brand-logo {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    filter: grayscale(0.3) brightness(1.1);
    transform-style: preserve-3d;
}

.brand-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.brand-card:hover .brand-logo {
    transform: scale(1.2) rotateY(15deg);
    filter: grayscale(0) brightness(1.3) drop-shadow(0 0 10px currentColor);
}

/* Brand-specific colors on hover */
.brand-card[data-brand="react"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #61DAFB);
}

.brand-card[data-brand="vue"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #4FC08D);
}

.brand-card[data-brand="angular"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #DD0031);
}

.brand-card[data-brand="typescript"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #3178C6);
}

.brand-card[data-brand="nodejs"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #339933);
}

.brand-card[data-brand="python"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #3776AB);
}

.brand-card[data-brand="java"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #007396);
}

.brand-card[data-brand="tensorflow"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #FF6F00);
}

.brand-card[data-brand="aws"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #FF9900);
}

.brand-card[data-brand="docker"]:hover .brand-logo img {
    filter: drop-shadow(0 0 15px #2496ED);
}

/* Brand Glow Effect */
.brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.15) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 25px;
    z-index: 1;
    filter: blur(10px);
}

.brand-card:hover .brand-glow {
    opacity: 1;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* 3D Depth Effect */
.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    pointer-events: none;
}

.brand-card:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brands-carousel-track {
        gap: 1rem;
        animation: scrollBrands 30s linear infinite;
    }
    
    .brands-carousel-track.reverse {
        animation: scrollBrandsReverse 25s linear infinite;
    }
    
    .brand-card {
        min-width: 100px;
        padding: 1.5rem 1rem;
    }
    
    .brand-logo img {
        width: 40px;
        height: 40px;
    }
    
    .brands-carousel-container {
        mask: linear-gradient(90deg, 
            transparent, 
            white 5%, 
            white 95%, 
            transparent
        );
    }
}

/* Pause animation when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
    .brands-carousel-track,
    .brands-carousel-track.reverse {
        animation: none;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
 
 /* Quantum Section - Compact & Powerful */
.quantum-section {
    background: radial-gradient(ellipse at top, #0a0a1a 0%, #050508 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Quantum Background */
.quantum-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quantum-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(0, 255, 198, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 198, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridFlow 20s linear infinite;
}

@keyframes gridFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.energy-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 255, 198, 0.05) 50%, 
        transparent 100%);
    animation: energyFlow 8s ease-in-out infinite;
}

@keyframes energyFlow {
    0%, 100% { transform: translateX(-100%) rotate(0deg); }
    50% { transform: translateX(100%) rotate(180deg); }
}

.data-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 255, 198, 0.1) 2px, transparent 2px),
                     radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 2px, transparent 2px),
                     radial-gradient(circle at 40% 80%, rgba(138, 79, 255, 0.1) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 120px 120px;
    animation: nodesFloat 15s ease-in-out infinite;
}

@keyframes nodesFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10px, -10px) scale(1.05); }
}

/* Quantum Grid Layout */
.quantum-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 50vh;
}

/* Quantum Core */
.quantum-core {
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-interface {
    position: relative;
    width: 350px;
    height: 350px;
}

/* Full Size Quantum Orb */
.quantum-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* Full Size Orb Layers */
.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: orbRotate 15s linear infinite;
}

.layer-1 {
    border-color: rgba(0, 255, 198, 0.4);
    animation-delay: 0s;
}

.layer-2 {
    border-color: rgba(0, 212, 255, 0.4);
    animation-delay: -5s;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
}

.layer-3 {
    border-color: rgba(138, 79, 255, 0.4);
    animation-delay: -10s;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
}

.orb-energy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.3) 0%,
        rgba(0, 212, 255, 0.2) 30%,
        rgba(138, 79, 255, 0.1) 60%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(20px);
    animation: energyPulse 4s ease-in-out infinite;
    z-index: 5;
}

.orb-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    border: 2px solid rgba(0, 255, 198, 0.4);
    border-radius: 50%;
    animation: pulseWave 3s ease-out infinite;
    z-index: 1;
}

@keyframes orbRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.02); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes pulseWave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

/* Full Size Logo */
.orb-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 30%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 25px rgba(0, 255, 198, 0.6));
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 8px;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.quantum-orb:hover .logo-image {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 35px var(--primary)) 
            brightness(1.2) 
            contrast(1.2);
    animation: none;
}

/* Logo Glow Effect */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.3) 0%,
        rgba(0, 212, 255, 0.2) 30%,
        rgba(138, 79, 255, 0.1) 60%,
        transparent 100%);
    border-radius: 20px;
    filter: blur(25px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: logoGlowPulse 4s ease-in-out infinite;
}

.quantum-orb:hover .logo-glow {
    opacity: 0.8;
    animation: logoGlowPulse 2s ease-in-out infinite;
}

@keyframes logoGlowPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Orbital Stats */
.orbital-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: orbitRotation 20s linear infinite;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.4s ease;
}

.orbit-item:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(160px) rotate(-0deg); }
.orbit-item:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(160px) rotate(-90deg); }
.orbit-item:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(160px) rotate(-180deg); }
.orbit-item:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(160px) rotate(-270deg); }

.orbit-dot {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.orbit-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulse 3s ease-in-out infinite;
}

.orbit-value {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.orbit-item:hover .orbit-value {
    opacity: 1;
    transform: translateY(0);
}

.orbit-item:hover .orbit-dot {
    transform: scale(1.8);
    background: var(--secondary);
}

@keyframes orbitRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.1; }
}

/* Quantum Content */
.quantum-content {
    padding: 2rem 0;
}

.quantum-header {
    margin-bottom: 2rem;
}

.tagline-hologram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 198, 0.1);
    border: 1px solid rgba(0, 255, 198, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    animation: taglineGlow 3s ease-in-out infinite;
}

@keyframes taglineGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 198, 0.3); }
    50% { box-shadow: 0 0 30px rgba(0, 255, 198, 0.6); }
}

.hologram-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

.quantum-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateX(-30px);
    animation: titleReveal 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.3s; }
.title-line:nth-child(3) { animation-delay: 0.5s; }

.accent-line {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quantum Text */
.quantum-text {
    margin-bottom: 2rem;
}

.text-particle {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: textReveal 0.8s ease forwards;
}

.text-particle:nth-child(1) { animation-delay: 0.7s; }
.text-particle:nth-child(2) { animation-delay: 0.9s; }

.text-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mini Stats */
.mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.mini-stat {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 198, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.mini-stat:hover .stat-glow {
    left: 100%;
}

.mini-stat:hover {
    background: rgba(0, 255, 198, 0.1);
    border-color: rgba(0, 255, 198, 0.3);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quantum CTA */
.quantum-cta {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.1) 0%, rgba(138, 79, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 198, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.quantum-cta:hover .cta-glow {
    left: 100%;
}

.quantum-cta:hover {
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.2) 0%, rgba(138, 79, 255, 0.2) 100%);
    border-color: rgba(0, 255, 198, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 198, 0.2);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.quantum-cta:hover .cta-arrow {
    transform: translateX(5px);
}

/* Connection Lines */
.quantum-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
    animation: lineFlow 4s linear infinite;
}

.line-1 { top: 30%; left: 0; width: 40%; animation-delay: 0s; }
.line-2 { top: 60%; right: 0; width: 40%; animation-delay: 1.5s; }
.line-3 { bottom: 20%; left: 30%; width: 40%; animation-delay: 3s; }

@keyframes lineFlow {
    0% { background-position: -100% 0; opacity: 0; }
    50% { background-position: 200% 0; opacity: 0.5; }
    100% { background-position: 500% 0; opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quantum-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .core-interface {
        width: 280px;
        height: 280px;
    }
    
    .orbit-item:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(-0deg); }
    .orbit-item:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(120px) rotate(-90deg); }
    .orbit-item:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(120px) rotate(-180deg); }
    .orbit-item:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(120px) rotate(-270deg); }
    
    .orb-logo {
        width: 100px;
        height: 70px;
    }
    
    .quantum-title {
        font-size: 2.5rem;
    }
    
    .mini-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quantum-section {
        min-height: auto;
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .core-interface {
        width: 240px;
        height: 240px;
    }
    
    .orbit-item:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(-0deg); }
    .orbit-item:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(100px) rotate(-90deg); }
    .orbit-item:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(100px) rotate(-180deg); }
    .orbit-item:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(100px) rotate(-270deg); }
    
    .orb-logo {
        width: 90px;
        height: 60px;
    }
}

.magnetic-cards-section {
    background: linear-gradient(135deg, #0f0f2a 0%, #1a1a3e 50%, #2d2d5a 100%);
}

.magnetic-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.field-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(0, 255, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(138, 79, 255, 0.1) 0%, transparent 50%);
    animation: fieldPulse 8s ease-in-out infinite;
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 255, 198, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: particlesMove 20s linear infinite;
}

@keyframes fieldPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes particlesMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.magnetic-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.magnetic-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
}

.card-magnetic-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 255, 198, 0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.magnetic-card:hover .card-magnetic-field {
    opacity: 1;
}

.magnetic-card:hover {
    border-color: rgba(0, 255, 198, 0.3);
    box-shadow: 
        0 15px 30px rgba(0, 255, 198, 0.1),
        0 0 60px rgba(0, 255, 198, 0.05);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-badge {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 198, 0.1);
    border: 2px solid rgba(0, 255, 198, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-badge i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.magnetic-card:hover .service-badge {
    background: rgba(0, 255, 198, 0.2);
    border-color: rgba(0, 255, 198, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.service-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.feature i {
    color: var(--primary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.magnetic-card:hover .feature {
    transform: translateX(5px);
}

.magnetic-card:hover .feature i {
    transform: scale(1.2);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 255, 198, 0.1);
    border: 1px solid rgba(0, 255, 198, 0.3);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 198, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.service-cta:hover::before {
    left: 100%;
}

.service-cta:hover {
    background: rgba(0, 255, 198, 0.2);
    border-color: rgba(0, 255, 198, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 198, 0.2);
}

.service-cta:hover i {
    transform: translateX(3px);
}

/* Service-specific colors */
.magnetic-card[data-service="app"] .service-badge {
    background: rgba(0, 255, 198, 0.1);
    border-color: rgba(0, 255, 198, 0.2);
}

.magnetic-card[data-service="web"] .service-badge {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
}

.magnetic-card[data-service="server"] .service-badge {
    background: rgba(138, 79, 255, 0.1);
    border-color: rgba(138, 79, 255, 0.2);
}

.magnetic-card[data-service="seo"] .service-badge {
    background: rgba(0, 255, 198, 0.1);
    border-color: rgba(0, 255, 198, 0.2);
}

.magnetic-card[data-service="ai"] .service-badge {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.2);
}

.magnetic-card[data-service="security"] .service-badge {
    background: rgba(138, 79, 255, 0.1);
    border-color: rgba(138, 79, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .magnetic-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .magnetic-card {
        padding: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .magnetic-cards {
        grid-template-columns: 1fr;
    }
}

.quantum-gateway-section {
    background: radial-gradient(ellipse at center, #0a0a1a 0%, #1a1a2e 50%, #050508 100%);
    position: relative;
    overflow: hidden;
}

/* Gateway Background */
.gateway-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quantum-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 80vmin;
    background: conic-gradient(from 0deg, 
        transparent, 
        rgba(0, 255, 198, 0.1), 
        rgba(0, 212, 255, 0.1), 
        rgba(138, 79, 255, 0.1), 
        transparent);
    border-radius: 50%;
    animation: portalSpin 20s linear infinite;
    filter: blur(30px);
}

.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 49%, rgba(0, 255, 198, 0.05) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(0, 212, 255, 0.05) 50%, transparent 51%);
    background-size: 100px 100px, 100px 100px;
    animation: dataStream 15s linear infinite;
}

.energy-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 255, 198, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particlesFloat 30s linear infinite;
}

@keyframes portalSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
    100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

@keyframes dataStream {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes particlesFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: elementFloat 8s ease-in-out infinite;
}

.element-1 { 
    background: var(--primary); 
    top: 20%; left: 10%; 
    animation-delay: 0s; 
}
.element-2 { 
    background: var(--secondary); 
    top: 70%; left: 80%; 
    animation-delay: 2s; 
}
.element-3 { 
    background: var(--accent); 
    top: 40%; left: 85%; 
    animation-delay: 4s; 
}

@keyframes elementFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Gateway Header */
.gateway-header {
    position: relative;
}

.header-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.portal-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

.ring-1 {
    border-color: rgba(0, 255, 198, 0.3);
    animation-delay: 0s;
}

.ring-2 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-color: rgba(0, 212, 255, 0.2);
    animation-delay: -3.33s;
}

.ring-3 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-color: rgba(138, 79, 255, 0.1);
    animation-delay: -6.66s;
}

.gateway-title {
    position: relative;
    z-index: 2;
}

.title-word {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease forwards;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.5s; }

@keyframes ringRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Gateway */
.contact-gateway {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Contact Portal */
.contact-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.portal-core {
    position: relative;
    width: 80px;
    height: 80px;
}

.core-energy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(0, 255, 198, 0.4) 0%,
        rgba(0, 212, 255, 0.3) 30%,
        rgba(138, 79, 255, 0.2) 60%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(10px);
    animation: corePulse 3s ease-in-out infinite;
}

/* Scoped to the contact portal only — a bare .core-interface here also hits the
   About orb's container and collapses it to 0 height (mobile circle clipping). */
.contact-portal .core-interface {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.interface-text {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.interface-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 198, 0.3) 0%, transparent 70%);
    filter: blur(8px);
    animation: interfacePulse 2s ease-in-out infinite;
}

.portal-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.connection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), transparent);
    opacity: 0;
}

.connection-1 { transform: translate(-50%, -50%) rotate(45deg); }
.connection-2 { transform: translate(-50%, -50%) rotate(-45deg); }

@keyframes corePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes interfacePulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Contact Panels */
.contact-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.contact-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.7;
    transform: scale(0.95);
}

.contact-panel.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0, 255, 198, 0.3);
    box-shadow: 0 20px 40px rgba(0, 255, 198, 0.1);
}

.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 255, 198, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.contact-panel.active .panel-glow {
    opacity: 1;
}

.panel-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Methods */
.contact-methods {
    space-y: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-method:hover {
    background: rgba(0, 255, 198, 0.05);
    transform: translateX(10px);
}

.method-orb {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.orb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 198, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.orb-icon i {
    color: var(--primary);
    font-size: 1.2rem;
}

.orb-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb-rings .ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 50%;
    animation: methodRing 3s ease-in-out infinite;
}

.orb-rings .ring:nth-child(2) {
    animation-delay: 1.5s;
}

.contact-method:hover .orb-rings .ring {
    animation-duration: 1.5s;
    border-color: rgba(0, 255, 198, 0.6);
}

.method-info h4 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.method-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.method-cta {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-method:hover .method-cta {
    transform: translateX(5px);
}

@keyframes methodRing {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

/* Quantum Form */
.quantum-form {
    space-y: 1.5rem;
}

.form-field {
    position: relative;
}

.field-orb {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quantum-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 2.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quantum-input:focus {
    border-color: rgba(0, 255, 198, 0.5);
    background: rgba(0, 255, 198, 0.02);
}

.quantum-input:focus + .field-glow {
    opacity: 1;
}

.quantum-input:focus ~ .field-orb {
    opacity: 1;
}

.field-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at left center, 
        rgba(0, 255, 198, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.quantum-submit {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.1) 0%, rgba(138, 79, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 198, 0.3);
    border-radius: 50px;
    padding: 1.25rem 2rem;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.quantum-submit:hover {
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.2) 0%, rgba(138, 79, 255, 0.2) 100%);
    border-color: rgba(0, 255, 198, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 198, 0.2);
}

.submit-orb {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.orb-pulse {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    animation: submitPulse 2s ease-in-out infinite;
}

@keyframes submitPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Gateway Navigation */
.gateway-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.nav-dot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 255, 198, 0.3);
}

/* Social Gateway */
.social-orbs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-orb {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-orb:hover {
    background: rgba(0, 255, 198, 0.1);
    border-color: rgba(0, 255, 198, 0.3);
    color: white;
    transform: translateY(-3px);
}

.orb-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 198, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.social-orb:hover .orb-glow {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-panels {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-portal {
        display: none;
    }
    
    .contact-panel {
        padding: 2rem;
    }
    
    .gateway-title {
        font-size: 3rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-method:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .contact-panel {
        padding: 1.5rem;
    }
    
    .gateway-title {
        font-size: 2.5rem;
    }
    
    .social-orbs {
        gap: 1rem;
    }
    
    .social-orb {
        width: 45px;
        height: 45px;
    }
}

/* v2: native cursor restored — custom cursor removed for performance */
* {
    cursor: auto;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.7;
}

.cursor-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

/* Cursor States */
.custom-cursor.hover {
    transform: scale(1.5);
}

.custom-cursor.hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--secondary);
}

.custom-cursor.hover .cursor-ring {
    transform: translate(-50%, -50%) scale(1.3);
    border-color: var(--secondary);
    opacity: 1;
}

.custom-cursor.click {
    transform: scale(0.8);
}

.custom-cursor.click .cursor-dot {
    background: var(--accent);
}

.custom-cursor.click .cursor-ring {
    border-color: var(--accent);
    transform: translate(-50%, -50%) scale(0.7);
}

/* Hide cursor on touch devices */
@media (max-width: 768px), (hover: none) {
    * {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* v2: keep pointer cursor on interactive elements */
.quantum-card,
.service-orb,
.magnetic-card,
.contact-method,
.quantum-submit,
.nav-dot,
.social-orb {
    cursor: pointer;
}

/* v2: brand card hover handled via class instead of GSAP-per-pixel */
.brand-card {
    transition: transform 0.3s ease, z-index 0s;
}
.brand-card.is-hovered {
    transform: translateY(-15px) rotateY(10deg);
    z-index: 100;
}



/* Header Logo Styles */
.logo-container {
    height: 32px;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-mask {
    display: block;
    height: 50px;
    width: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-mask: url('logo.png') center/contain no-repeat;
    mask: url('logo.png') center/contain no-repeat;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo-mask:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 50%, var(--primary) 100%);
    filter: drop-shadow(0 0 10px rgba(0, 255, 198, 0.5))
           drop-shadow(0 0 20px rgba(138, 79, 255, 0.3));
    transform: scale(1.08);
}
/* Projects Showcase Styles */
.projects-showcase {
    background: radial-gradient(ellipse at center, #0f0f2a 0%, #1a1a3e 50%, #2d2d5a 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 255, 198, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 255, 198, 0.15),
        0 0 60px rgba(0, 255, 198, 0.1);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.1) 0%, rgba(138, 79, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.project-card:hover .image-placeholder {
    background: linear-gradient(135deg, rgba(0, 255, 198, 0.2) 0%, rgba(138, 79, 255, 0.2) 100%);
}

/* Real client screenshots inside the project cards */
.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .image-placeholder img {
    transform: scale(1.06);
}

/* إصلاح عرض بيانات المشاريع بشكل دائم */
.project-overlay {
    position: relative !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, transparent 100%) !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 2rem 1.5rem !important;
    height: 100% !important;
}

.project-content {
    transform: translateY(0) !important;
    text-align: left !important;
    opacity: 1 !important;
}

.project-tech {
    justify-content: flex-start !important;
    margin-top: 1rem !important;
    opacity: 1 !important;
}

.project-actions {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    opacity: 1 !important;
    display: flex !important;
}

/* إزالة تأثيرات الـ hover التي تخفي المحتوى */
.project-card:hover .project-overlay {
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, transparent 100%) !important;
}

.project-card:hover .project-content {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* إصلاح الصورة الأساسية */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.project-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(0, 255, 198, 0.1);
    border: 1px solid rgba(0, 255, 198, 0.3);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 198, 0.2);
    transform: scale(1.05);
}

.project-actions {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.view-btn {
    background: rgba(0, 255, 198, 0.1);
    border: 1px solid rgba(0, 255, 198, 0.3);
    color: var(--primary);
}

.live-btn {
    background: rgba(138, 79, 255, 0.1);
    border: 1px solid rgba(138, 79, 255, 0.3);
    color: var(--accent);
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.project-btn:hover::before {
    left: 100%;
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 198, 0.2);
}

.live-btn:hover {
    box-shadow: 0 5px 15px rgba(138, 79, 255, 0.2);
}

/* Project-specific hover effects */
.project-card[data-project="phoenixiraq"]:hover {
    border-color: rgba(0, 255, 198, 0.5);
}

.project-card[data-project="atciraq"]:hover {
    border-color: rgba(0, 212, 255, 0.5);
}

.project-card[data-project="injah"]:hover {
    border-color: rgba(138, 79, 255, 0.5);
}

.project-card[data-project="sahraa"]:hover {
    border-color: rgba(176, 38, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
    
    .project-actions {
        padding: 1rem;
    }
}

/* إصلاحات قسم التواصل للهواتف فقط */
@media (max-width: 768px) {
    .quantum-gateway-section {
        /* 5rem top: the 280px header portal ring overhangs the header by ~56px */
        padding: 5rem 0 3rem !important;
    }
    
    .contact-panels {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .contact-panel {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
    }
    
    .contact-portal {
        display: none !important;
    }
    
    .portal-connections {
        display: none !important;
    }
    
    .floating-elements {
        display: none !important;
    }
    
    .gateway-navigation {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .contact-method {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
        padding: 1rem !important;
    }
    
    .quantum-input {
        font-size: 16px !important;
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .quantum-gateway-section {
        padding: 5rem 0 2rem !important;
    }
    
    .contact-panel {
        padding: 1rem !important;
        margin: 0 0.5rem !important;
    }
    
    .gateway-title {
        font-size: 2.5rem !important;
    }
}

/* إصلاحات قسم الهيرو للهواتف */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
        overflow: hidden;
        padding: 2rem 0;
    }
    
    #hero3dCanvas {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }
    
    .floating-element {
        display: none !important; /* إخفاء العناصر العائمة على الهواتف */
    }
    
    .hero-content {
        position: relative;
        z-index: 10;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .grid-bg {
        opacity: 0.1; /* تقليل شدة الشبكة على الهواتف */
    }
    
    /* إصلاح تخطيط الشبكة على الهواتف */
    .grid.grid-cols-1.lg\:grid-cols-2 {
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    /* إصلاح الأزرار على الهواتف الصغيرة */
    .flex.flex-col.sm\:flex-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* إصلاحات قسم Quantum للهواتف */
@media (max-width: 768px) {
    .quantum-section {
        padding: 3rem 0 !important;
        min-height: auto !important;
    }
    
    .quantum-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .core-interface {
        width: 280px !important;
        height: 280px !important;
        margin: 0 auto !important;
    }
    
    .quantum-orb {
        width: 100% !important;
        height: 100% !important;
    }
    
    .orb-logo {
        width: 80% !important;
        height: 25% !important;
    }
    
    .logo-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
    
    /* إصلاح الفراغ العلوي */
    .quantum-content {
        padding: 1rem 0 !important;
        text-align: center !important;
    }
    
    .quantum-header {
        margin-bottom: 1.5rem !important;
    }
    
    .quantum-title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    /* إصلاح العناصر المدارية */
    .orbit-item:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(-0deg) !important; }
    .orbit-item:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(120px) rotate(-90deg) !important; }
    .orbit-item:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(120px) rotate(-180deg) !important; }
    .orbit-item:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(120px) rotate(-270deg) !important; }
    
    /* إصلاح الإحصائيات المصغرة */
    .mini-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .mini-stat {
        padding: 0.75rem !important;
    }
    
    .stat-number {
        font-size: 1.25rem !important;
    }
    
    /* إصلاح الطبقات */
    .layer-2 {
        width: 110% !important;
        height: 110% !important;
        top: -5% !important;
        left: -5% !important;
    }
    
    .layer-3 {
        width: 120% !important;
        height: 120% !important;
        top: -10% !important;
        left: -10% !important;
    }
}

@media (max-width: 480px) {
    .core-interface {
        width: 240px !important;
        height: 240px !important;
    }
    
    .orbit-item:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(-0deg) !important; }
    .orbit-item:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg) translateX(100px) rotate(-90deg) !important; }
    .orbit-item:nth-child(3) { transform: translate(-50%, -50%) rotate(180deg) translateX(100px) rotate(-180deg) !important; }
    .orbit-item:nth-child(4) { transform: translate(-50%, -50%) rotate(270deg) translateX(100px) rotate(-270deg) !important; }
    
    .quantum-title {
        font-size: 2rem !important;
    }
    
    .orb-logo {
        width: 70% !important;
        height: 20% !important;
    }
}

/* إصلاحات إضافية للخلفية ثلاثية الأبعاد على الهواتف */
@media (max-width: 768px) {
    #hero3dCanvas {
        left: 0 !important;
        width: 100% !important;
    }
    
    .floating-element {
        display: none !important;
    }
    
    .grid-bg {
        opacity: 0.1 !important;
    }
}
/* ============================================================
   Project cards — real client screenshots (added 2026-07-30)
   The older override block above forces the overlay permanently
   visible with a left-to-right scrim that fades to transparent.
   That was fine over an empty gradient, but now there is a real
   screenshot behind the text, so it has to be a bottom-up scrim
   or the copy is unreadable. Also pins the overlay so every card
   is the same height regardless of description length.
   ============================================================ */
.project-image {
    position: relative;
    /* Card is ~336px wide; the screenshots are 16:10. At 235px tall, object-fit:cover
       crops only ~9% of the width, so the client's hero stays readable. Taller values
       (300px+) crop ~30% off the sides and cut their headlines mid-word. */
    height: 235px;
}

/* The caption now sits BELOW the screenshot (markup moved out of .project-image),
   so the client's site is never covered and the text is always fully legible.
   No scrim needed. */
.project-overlay {
    position: static !important;
    inset: auto !important;
    height: auto !important;
    background: none !important;
    display: block !important;
    padding: 1.25rem 1.25rem 0.25rem !important;
}

.project-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.project-desc {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #b9bfcc;
    min-height: 2.7em;        /* keeps every card's caption the same height */
}

.project-tech {
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ============================================================
   CARD FOOTER ALIGNMENT — 2026-07-31
   The grid stretches every card to the tallest card's height, but the
   card's children were plain blocks stacking from the top. A card whose
   tags fit on ONE row (Al-Fahad) ran out of content early, so its dark
   "Visit Website" band ended mid-card and left a bare strip underneath,
   with the button sitting higher than the other three.
   Making the card a flex column and pushing the band with margin-top:auto
   pins it to the bottom edge of EVERY card, whatever the copy does. This
   is content-independent — it also survives a third tag row on narrow
   screens, which a hard-coded min-height would not.
   ============================================================ */
.project-card {
    display: flex;
    flex-direction: column;
}

/* Fixed-height screenshot must never be squeezed by the flex layout. */
.project-image {
    flex: 0 0 auto;
}

.project-overlay {
    flex: 0 0 auto;
}

.project-actions {
    margin-top: auto;   /* absorbs the leftover height → band always flush to the bottom */
}

/* =====================================================================
   MOBILE NAVIGATION  (added 2026-07-31 — critical fix #3)
   Before this, the desktop nav was `hidden lg:flex` and the hamburger
   had no handler and no panel to open: phones had NO navigation at all.
   ===================================================================== */

/* The hamburger itself was an 18x28 tap target — below the 44px minimum. */
.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 320px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 6rem 1.75rem 2rem;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-left: 1px solid rgba(0, 255, 198, 0.2);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.35s;
    overflow-y: auto;
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;              /* comfortable tap target */
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
    background: rgba(0, 255, 198, 0.1);
    color: var(--primary);
}

.mobile-nav .mobile-nav-cta {
    margin-top: 1.25rem;
    width: 100%;
    min-height: 48px;
}

/* Dimmed backdrop behind the panel. */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.mobile-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Stops the page scrolling behind the open panel. */
body.mobile-nav-open {
    overflow: hidden;
}

/* Safety: never show the mobile panel on desktop, even if a class sticks. */
@media (min-width: 1024px) {
    .mobile-nav,
    .mobile-nav-backdrop {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav-backdrop {
        transition: none;
    }
}

/* The panel sits at z-index 1100; the header (and therefore the hamburger,
   which becomes the X while open) is 1000, so the close control ended up
   BURIED under the panel. Lift the header above it — the panel's 6rem top
   padding already reserves the space, so nothing is obscured. */
.header-main {
    z-index: 1200;
}

/* Header logo: wordmark only (2026-07-31).
   logo.png is the full lockup — "tashkeel" plus a "Tashkeel Media" subtext baked into the image.
   At the header's 150x50 box that subtext renders about 7px tall and is unreadable, so it read as
   noise rather than branding. logo-wordmark.png is the same file cropped at the natural gap
   (y=1002, above the subtext band) and resized to 600px wide — 4x the display size, and 51 KB
   lighter than the full lockup. The FOOTER deliberately keeps the full lockup. */
.header-main .logo-mask {
    -webkit-mask: url('logo-wordmark.png') center/contain no-repeat;
    mask: url('logo-wordmark.png') center/contain no-repeat;
}
