/* Variables */
:root {
    --primary-color: #0b1120; /* Deeper Dark Blue */
    --primary-light: #1e293b;
    --accent-color: #f97316; /* Solar Orange */
    --accent-glow: rgba(249, 115, 22, 0.5);
    --accent-gradient: linear-gradient(135deg, #f97316, #eab308);
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 15px 35px -5px var(--accent-glow);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* English Version Font */
html[dir="ltr"] body {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* Glassmorphism Classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    z-index: -1;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-outline:hover {
    background: var(--accent-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Header - Floating Pill */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 12px 30px;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo img {
    height: 45px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.lang-switcher {
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

.lang-switcher:hover {
    color: var(--accent-color) !important;
}

.nav-links a:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

/* LTR Fixes for Nav Links */
html[dir="ltr"] .nav-links a:not(.btn-outline)::after {
    right: auto;
    left: 0;
}

.nav-links a:not(.btn-outline):hover::after {
    width: 100%;
}

.nav-links a:hover:not(.btn-outline) {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Glowing Orbs for Modern Tech feel */
.glowing-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float-orb 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(249, 115, 22, 0.4);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.3);
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

@keyframes float-orb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomInBg 25s infinite alternate linear;
}

@keyframes zoomInBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: right;
    color: var(--text-light);
    max-width: 850px;
    margin: 0;
}

/* LTR Alignment */
html[dir="ltr"] .hero-content {
    text-align: left;
}

html[dir="ltr"] .cta-btn .arrow-icon {
    transform: rotate(180deg);
}
html[dir="ltr"] .cta-btn:hover .arrow-icon {
    transform: rotate(180deg) translateX(-5px);
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 400;
}

.cta-btn {
    font-size: 1.25rem;
    padding: 16px 40px;
}

.arrow-icon {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.cta-btn:hover .arrow-icon {
    transform: translateX(-5px);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.scroll-indicator:hover {
    color: var(--white);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    animation: scroll-wheel 2s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
}

.section-title .underline {
    width: 80px;
    height: 5px;
    background: var(--accent-gradient);
    margin: 15px auto 0;
    border-radius: 5px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

html[dir="ltr"] .glass-card::before {
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.05), transparent 60%);
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
}

.glass-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.icon-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(241,245,249,1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 2px solid var(--white);
}

/* Floating animation for icons */
.floating-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    animation: float-icon 4s ease-in-out infinite;
}

@keyframes float-icon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #475569;
    font-size: 1.05rem;
}

/* Stats Section */
.relative-overflow {
    position: relative;
    overflow: hidden;
}

.stats {
    background-color: var(--primary-color);
    padding: 80px 0;
}

.stats-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255,255,255,0.04);
    transform: translateY(-5px);
}

/* Gradient Text for modern feel */
.gradient-text-wrapper {
    margin-bottom: 15px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-item .counter, .stat-item .plus {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
}

.stat-item .icon-stat {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.stat-item p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.contact-info {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    color: var(--white);
    padding: 60px 50px;
    overflow: hidden;
}

.contact-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

html[dir="ltr"] .contact-decoration {
    right: auto;
    left: -50px;
}

.contact-info h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.info-list li {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.15rem;
}

.info-list i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

.contact-form {
    padding: 60px 50px;
    background: var(--white);
}

/* Modern Input Fields with Floating Labels */
.modern-input {
    position: relative;
    margin-bottom: 30px;
}

.modern-input input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    background: transparent;
    transition: var(--transition);
    color: var(--text-dark);
}

.modern-input label {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: var(--transition);
    pointer-events: none;
    font-weight: 500;
    background: var(--white);
    padding: 0 5px;
}

/* LTR adjustments for inputs */
html[dir="ltr"] .modern-input label {
    right: auto;
    left: 20px;
}

.modern-input input:focus, 
.modern-input input:not(:placeholder-shown) {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
}

/* Modern Select */
.modern-select {
    margin-bottom: 35px;
}

.modern-select select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat left 15px center;
    background-size: 20px;
}

/* LTR adjustment for select arrow */
html[dir="ltr"] .modern-select select {
    background-position: right 15px center;
}

.modern-select select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.pulse-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    border-radius: 12px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

/* Footer */
footer {
    background-color: var(--white);
    color: #64748b;
    padding: 30px 0;
    text-align: center;
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .header {
        width: 90%;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-info, .contact-form {
        padding: 40px 30px;
    }
    
    .orb {
        display: none;
    }
}
