:root {
    /* Colors - White, Black, and Gray tones */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: rgba(30, 30, 30, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Grayscale accent colors */
    --accent-light: #ffffff;
    --accent-medium: #c0c0c0;
    --accent-dark: #808080;
    --accent-gradient: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-medium) 100%);
    --accent-glow: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-arabic: 'Noto Sans Arabic', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Spacing */
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
    margin: 0;
}

/* Global Three.js Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: transparent;
}

body .hero-spline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.hero .hero-spline {
    position: fixed;
    z-index: 1;
}
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    transition: width 0.3s, height 0.3s;
    opacity: 0.5;
    mix-blend-mode: screen;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #c0c0c0 50%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.title-white {
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: #ffffff;
}

.section-padding {
    padding: 5rem 0;
}

/* Typography styles */
h1, h2, h3 {
    line-height: 1.1;
}

.section-subtitle {
    display: block;
    color: #c0c0c0 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    color: #c0c0c0;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    font-family: var(--font-display);
    font-style: italic;
    color: #fff;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    gap: 0.75rem;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover::before {
    display: none;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: #ffffff;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 100;
    transition: var(--transition-normal);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

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

.nav-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-menu li a:hover {
    color: var(--accent-light);
}

.logo .dot {
    color: var(--gold-light);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: transparent;
}

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

.gradient-sphere {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite alternate;
}

.gradient-sphere.secondary {
    top: 60%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: float 15s ease-in-out infinite alternate-reverse;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 1rem;
    overflow-x: hidden;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 0.5rem;
}

.hero-logo img {
    height: 180px;
    width: auto;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    animation: float 4s ease-in-out infinite;
}

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

/* Spline 3D Model Styles - Background */
.hero-spline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-spline iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* Hero Section specific */
.hero .hero-spline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* All sections share the same background */
.hero .hero-spline,
.services .hero-spline,
.contact .hero-spline,
.about .hero-spline,
.portfolio .hero-spline,
.testimonials .hero-spline,
.team .hero-spline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero .hero-spline {
    z-index: 1;
}

.services .container,
.contact .container,
.about .container,
.portfolio .container,
.testimonials .container,
.team .container {
    position: relative;
    z-index: 1;
}

.services,
.contact,
.about,
.portfolio,
.testimonials,
.team {
    position: relative;
    overflow: hidden;
}

/* Hero Tagline - Background behind text */
.hero-tagline {
    position: relative;
    z-index: 5;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #c0c0c0;
    text-align: center;
    margin: 0.5rem 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-block;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
    color: #c0c0c0 !important;
    font-weight: 400;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    line-height: 1.1;
    direction: ltr;
}

[dir="rtl"] .hero-title {
    direction: rtl;
}

.hero-tagline {
    direction: ltr;
}

[dir="rtl"] .hero-tagline {
    direction: rtl;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    max-width: 600px;
    margin: 3rem auto 2rem;
    font-weight: 400;
    line-height: 1.6;
    text-align: center;
    direction: ltr;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    display: none;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

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

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

/* Services Section */
.services {
    background-color: transparent;
    position: relative;
    z-index: 2;
    margin-top: -20px;
    padding-top: 60px;
    padding-bottom: 80px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.service-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.service-card:hover .service-link {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Contact Section */
#contact {
    padding-bottom: 2rem;
}

#contact .section-padding {
    padding: 4rem 0 2rem;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: transparent;
    filter: blur(0px);
    z-index: 0;
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

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

.contact-header h3 {
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(204, 132, 0, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #4a4a4a, #2d2d2d);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-text a, 
.contact-text span:not(.contact-label) {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.contact-text a:hover {
    color: #a0a0a0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.social-link:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: #a0a0a0;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.07);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--gold-light);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    background: var(--bg-darker);
    margin-top: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Hero Logo */
.hero-logo {
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.hero-logo img {
    height: 550px;
    width: auto;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
    animation: float 4s ease-in-out infinite;
}

/* Hero Tagline - Background behind text */
.hero-tagline {
    position: relative;
    z-index: 5;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #c0c0c0;
    text-align: center;
    margin: 0.5rem 0;
    margin-top: -4rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.85;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-block;
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.in-view {
    opacity: 1;
    transform: translateY(0);
}

.stagger-in {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-logo img {
        height: 400px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 3rem;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-logo img {
        height: 300px;
    }
    
    .hero {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 2rem auto 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-wrapper {
        padding: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: hidden;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .hero-logo img {
        height: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
}

/* Language Switcher */
.lang-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    gap: 8px;
    background: rgba(20, 20, 20, 0.8);
    padding: 8px 12px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* RTL Support */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-cta {
    flex-direction: row-reverse;
}

[dir="rtl"] .service-link i {
    transform: rotate(180deg);
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 0;
}

[dir="rtl"] .form-line {
    left: auto;
    right: 0;
}

[dir="rtl"] .form-group input:focus ~ .form-line,
[dir="rtl"] .form-group textarea:focus ~ .form-line {
    width: 100%;
}

[dir="rtl"] .scroll-indicator span {
    left: -25px;
}

/* Arabic Font Support */
[lang="ar"] {
    font-family: 'Noto Sans Arabic', sans-serif;
}

[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .service-card p {
    text-align: right;
}

[dir="rtl"] .contact-info p {
    text-align: right;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

[dir="ltr"] .modal-close {
    left: auto;
    right: 1.5rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 30%, #b8b8b8 70%, #8a8a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    padding: 2rem;
}

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

.modal-description h3,
.modal-features h3,
.modal-portfolio h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.modal-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

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

.modal-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.modal-features li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-right: 3px solid #667eea;
    color: rgba(255, 255, 255, 0.9);
}

[dir="ltr"] .modal-features li {
    border-right: none;
    border-left: 3px solid #667eea;
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.portfolio-item-info {
    padding: 1rem;
}

.portfolio-item-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.portfolio-item-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.modal-cta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-cta .btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Scrollbar Styling */
.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-features ul {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .portfolio-item img {
        height: 120px;
    }
}

/* Service Cards as Links */
.services-grid a.service-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.services-grid a.service-card:hover .service-link {
    color: #667eea;
}
