:root {
    /* Color Palette - Cyber Industrial Professionalism */
    --primary: #8b5cf6;
    --primary-bright: #a78bfa;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --dark-bg: #030712;
    --dark-surface: #0f172a;
    --dark-card: rgba(30, 41, 59, 0.4);
    --dark-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --grad-main: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    --grad-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
    --easing-premium: cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-premium: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Outfit', 'Cairo', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
    perspective: 2000px;
    /* 3D Perspective Basis */
}

/* Dynamic Animated Background */
.matrix-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #030712 100%);
    z-index: -2;
}

.matrix-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: bg-drift 30s linear infinite;
}

@keyframes bg-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100px 100px;
    }
}

.matrix-bg-stars {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.particles-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-star 3s infinite;
}

@keyframes pulse-star {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.rocket-container {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.1s var(--easing-premium);
    filter: drop-shadow(0 0 15px var(--primary));
}

.rocket-flame {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 50%;
    filter: blur(3px);
    animation: flame-flicker 0.1s infinite alternate;
}

@keyframes flame-flicker {
    from {
        height: 15px;
        opacity: 0.7;
    }

    to {
        height: 25px;
        opacity: 1;
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

p {
    font-size: clamp(1rem, 1.25vw, 1.3rem);
    color: var(--text-dim);
    line-height: 1.8;
}

.pos-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    border-radius: 4px;
    border-right: 3px solid var(--primary);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-content p {
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 1000;
    transition: 0.4s ease;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(15px);
    padding: 1rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    top: 0;
}

.navbar.scrolled .nav-inner {
    border-radius: 0 0 30px 30px;
    width: 100%;
    max-width: 100%;
    border-top: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.logo-text span {
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* Sections */
section {
    padding: 100px 0;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

/* Value Prop & Glass Cards */
.glass-section {
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    position: relative;
}

.floating-data-card {
    position: absolute;
    top: 20px;
    right: -20px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 20px;
    z-index: 10;
    animation: float-slow 4s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.value-item {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border-right: 4px solid var(--primary);
    transition: 0.3s;
}

.value-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-10px);
}

.value-item h4 {
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-item i {
    color: var(--primary);
}

/* 3D Tilt Wrapper & Privileges */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.2s var(--easing-premium);
}

.privilege-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.privilege-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--dark-border);
    padding: 50px 40px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    transition: 0.5s;
    transform-style: preserve-3d;
    text-align: center;
}

.privilege-card:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.08);
}

.privilege-icon {
    font-size: 3.5rem;
    margin-bottom: 30px;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(50px);
    display: inline-block;
}

.privilege-card h3 {
    transform: translateZ(30px);
}

.privilege-card p {
    transform: translateZ(20px);
}

/* Matrix Item Glow Handled in JS for --x, --y */
.service-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.matrix-item {
    padding: 3rem;
    background: var(--dark-surface);
    border-radius: 30px;
    border: 1px solid var(--dark-border);
    transition: 0.5s var(--easing-premium);
    position: relative;
    overflow: hidden;
}

.matrix-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.matrix-item .icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--grad-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Unified Footer */
footer {
    padding: 100px 0 40px;
    background: #01040a;
    border-top: 1px solid var(--dark-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--dark-border);
    padding-top: 2rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.phone-num {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.phone-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 0.95rem;
    transition: 0.3s;
}

.phone-badge:hover {
    background: var(--primary);
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid var(--dark-border);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: 0.4s var(--easing-premium);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-main);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-visual {
        order: -1;
        margin-top: 40px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .menu-btn {
        display: block;
        cursor: pointer;
        z-index: 2001;
    }

    .menu-btn div {
        width: 30px;
        height: 3px;
        background: #fff;
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 2px;
    }

    /* Hamurgber Animation */
    .menu-btn.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 6px);
    }

    .menu-btn.active div:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active div:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -6px);
    }

    /* Mobile Menu Overlay */
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        z-index: 2000;
        gap: 2rem;
        animation: menuFadeIn 0.5s ease forwards;
    }

    .nav-links.mobile-active li {
        opacity: 0;
        transform: translateY(20px);
        animation: slideUp 0.6s ease forwards;
    }

    .nav-links.mobile-active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.mobile-active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.mobile-active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.mobile-active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-links.mobile-active a {
        font-size: 1.5rem;
        color: #fff;
    }

    @keyframes menuFadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .hero-btns {
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    .nav-inner {
        padding: 0.8rem 1.5rem;
    }
}

/* Animations Reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s var(--easing-premium);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: 0.4s var(--easing-premium);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float i {
    font-size: 1.8rem;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float span {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        padding: 15px;
        border-radius: 50%;
    }
}