/* 
====================================================================
   KNOUZ ALENJAZ - Premium Exclusive Theme
   Version: 2.0.0 (Dark Luxury Edition)
   Author: Antigravity
==================================================================== 
*/

:root {
    /* Premium Dark Palette */
    --bg-dark: #0B0F19;
    /* Deep Navy Black */
    --bg-card: rgba(20, 27, 45, 0.6);
    /* Glassy Navy */
    --bg-lighter: #151e32;

    /* Neon Glow System */
    --primary-glow: #3B82F6;
    /* Electric Blue */
    --accent-glow: #10B981;
    /* Neon Emerald */
    --purple-glow: #8B5CF6;
    /* Royal Purple */

    /* Typography */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    /* Slate Silver */
    --text-muted: #64748B;

    /* Gradients */
    --gradient-luxury: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --gradient-glow: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    --gradient-text: linear-gradient(to right, #60A5FA, #34D399);

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shine: 1px solid rgba(255, 255, 255, 0.15);
    --neon-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Spacing */
    --header-height: 90px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;

    /* Font Families */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* 
====================================================================
   Base Setup
==================================================================== 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ar);
    /* Default AR */
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    position: relative;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 25%);
    pointer-events: none;
    z-index: -1;
}

/* English Mode Override */
body.lang-en {
    font-family: var(--font-en);
    direction: ltr;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Reduced padding */
    width: 100%;
}

/* 
====================================================================
   Typography & Components
==================================================================== 
*/

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--primary-glow);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.text-center {
    text-align: center;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: white;
    border: var(--glass-shine);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    z-index: -1;
    transition: var(--transition);
    opacity: 0.8;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--neon-shadow);
}

.btn-primary:hover::before {
    opacity: 1;
    filter: brightness(1.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: var(--primary-glow);
    color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* 
====================================================================
   Header (Glassmorphism)
==================================================================== 
*/

.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0 2rem;
    background: transparent;
}

.header.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 80px;
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img {
    height: 50px;
    /* Refined size */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 
====================================================================
   Hero Section (Immersive)
==================================================================== 
*/

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

/* Background Glow Orb */
.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    color: var(--accent-glow);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.hero-badge i {
    font-size: 0.8rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
    overflow: visible;
}

.hero-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.hero-title .highlight::after {
    content: attr(data-text);
    position: absolute;
    /* RTL Default */
    right: 0;
    left: auto;
    top: 0;
    width: 0;
    height: 100%;
    color: var(--primary-glow);
    -webkit-text-stroke: 0;
    overflow: hidden;
    white-space: nowrap;
    animation: fillText 3s ease-in-out infinite alternate;
    border-left: 2px solid var(--primary-glow);
    border-right: none;
}

/* LTR Override */
body.lang-en .hero-title .highlight::after {
    left: 0;
    right: auto;
    border-right: 2px solid var(--primary-glow);
    border-left: none;
}

@keyframes fillText {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 550px;
    line-height: 1.7;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: var(--glass-border);
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    box-shadow: var(--card-shadow);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* 3D Visual Element (CSS Only) */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.glowing-card {
    width: 320px;
    height: 420px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: absolute;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transform-style: preserve-3d;
    animation: float3D 6s ease-in-out infinite;
}

.glowing-card i {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.card-decoration {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--gradient-glow);
    filter: blur(60px);
    opacity: 0.2;
    z-index: -1;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(20, 27, 45, 0.8);
    border: var(--glass-shine);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.icon-1 {
    top: 10%;
    right: 10%;
    animation: float 5s ease-in-out infinite;
    color: var(--accent-glow);
}

.icon-2 {
    bottom: 20%;
    left: -5%;
    animation: float 7s ease-in-out infinite 1s;
    color: var(--purple-glow);
}

.icon-3 {
    top: 40%;
    left: -15%;
    animation: float 4s ease-in-out infinite 0.5s;
    font-size: 1rem;
    width: 40px;
    height: 40px;
}

@keyframes float3D {

    0%,
    100% {
        transform: rotateY(10deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-10deg) rotateX(-5deg) translateY(-20px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
====================================================================
   Services (Glow Cards)
==================================================================== 
*/

.section {
    padding: 8rem 0;
    position: relative;
}

.bg-darker {
    background: #070a13;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--neon-shadow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-glow);
    margin-bottom: 2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover .service-icon {
    background: var(--primary-glow);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-link {
    color: var(--primary-glow);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* 
====================================================================
   About Section
==================================================================== 
*/

.about-row {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-content {
    flex: 1;
}

.img-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--glass-border);
    box-shadow: var(--card-shadow);
}

.img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(11, 15, 25, 0.8));
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mini-stat i {
    font-size: 2rem;
    color: var(--accent-glow);
}

.mini-stat h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.mini-stat span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 
====================================================================
   Features (Grid)
==================================================================== 
*/

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-box {
    padding: 2rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-box:hover {
    border-left-color: var(--accent-glow);
    background: linear-gradient(to right, rgba(16, 185, 129, 0.05), transparent);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 
====================================================================
   Clients Section
==================================================================== 
*/

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    /* Increased gap */
    margin-top: 3rem;
}

.client-box {
    width: 180px;
    /* Slightly wider */
    height: 110px;
    background: rgba(0, 0, 0, 0.5);
    /* Darker background for visibility */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    border-radius: 16px;
    /* Soft rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.4s ease;
    /* Removed grayscale filter -> Full color by default */
    backdrop-filter: blur(10px);
    /* Enhanced glass effect */
}

.client-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.client-box:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.client-box:hover img {
    transform: scale(1.1);
}



.feature-box h3 i {
    color: var(--accent-glow);
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 
====================================================================
   Contact (Dark Glass)
==================================================================== 
*/

.contact-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: var(--glass-border);
    padding: 4rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.info-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-row i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-glow), var(--purple-glow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary-glow);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* 
====================================================================
   Footer
==================================================================== 
*/

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem;
    background: #05070a;
}

.footer-logo img {
    height: 40px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 
====================================================================
   Responsive
==================================================================== 
*/

@media (max-width: 992px) {

    .hero-container,
    .contact-container,
    .about-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-container {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-visual {
        height: 400px;
    }

    .glowing-card {
        width: 280px;
        height: 380px;
    }

    .hero-stats {
        width: 100%;
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(11, 15, 25, 0.95);
        flex-direction: column;
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: 0.5s ease-in-out;
        border-radius: 0 0 30px 30px;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        pointer-events: all;
    }
}

/* Mobile Devices (Portrait) */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .stat-separator {
        width: 100%;
        height: 1px;
    }

    .contact-container {
        padding: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 2rem;
    }

    .logo-img {
        height: 35px;
    }

    .header .navbar {
        gap: 0.5rem;
    }

    .lang-switch span {
        display: none;
    }

    .lang-switch {
        padding: 0.5rem;
        width: 35px;
        height: 35px;
        justify-content: center;
        border-radius: 50%;
    }

    /* Reduce visual size significantly on mobile */
    .hero-visual {
        height: 250px;
        transform: scale(0.65);
        margin-top: -2rem;
        opacity: 0.9;
    }

    .glowing-card {
        width: 240px;
        height: 320px;
        animation: none;
    }

    .hero-stats {
        padding: 1.5rem;
        gap: 1.5rem;
        width: 100%;
        margin-top: 2rem;
    }

    .stat-separator {
        display: none;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
        width: 100%;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}