:root {
            --header-h: 80px;
            --footer-h: 120px;
            --accent: #00b4d8;
            --accent-dark: #0077b6;
            --accent-glow: rgba(0, 180, 216, 0.3);
            --success: #06ffa5;
            --warning: #ffb700;
            --bg1-dark: #0a0e27;
            --bg2-dark: #151933;
            --bg1-light: #ffffff;
            --bg2-light: #f8fafc;
            --fg-dark: #ffffff;
            --fg-light: #1a202c;
            --card-dark: rgba(255, 255, 255, 0.05);
            --card-light: rgba(255, 255, 255, 0.95);
            --border-dark: rgba(255, 255, 255, 0.1);
            --border-light: rgba(0, 0, 0, 0.1);
            --shadow-dark: 0 20px 60px rgba(0, 0, 0, 0.5);
            --shadow-light: 0 20px 60px rgba(0, 0, 0, 0.1);
            --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-dark));
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: linear-gradient(135deg, var(--bg1-dark) 0%, var(--bg2-dark) 100%);
            color: var(--fg-dark);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            transition: background 0.5s ease, color 0.3s ease;
        }

        body.light {
            background: linear-gradient(135deg, var(--bg1-light) 0%, var(--bg2-light) 100%);
            color: var(--fg-light);
        }

        /* Animated background particles */
        .bg-animation {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            opacity: 0.4;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--accent);
            border-radius: 50%;
            animation: float 20s infinite ease-in-out;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0) translateX(0);
                opacity: 0;
            }

            10% {
                opacity: 1;
            }

            90% {
                opacity: 1;
            }

            100% {
                transform: translateY(-100vh) translateX(100px);
            }
        }

        /* Enhanced Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-h);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 40px;
            background: rgba(10, 14, 39, 0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-dark);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        body.light header {
            background: rgba(255, 255, 255, 0.9);
            border-bottom: 1px solid var(--border-light);
        }

        header.scrolled {
            height: 70px;
            box-shadow: var(--shadow-dark);
        }

        body.light header.scrolled {
            box-shadow: var(--shadow-light);
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 900;
            background: var(--gradient-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
            position: relative;
        }

        .logo::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient-accent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }

        .logo:hover::after {
            transform: scaleX(1);
        }

        /* Navigation */
        nav ul {
            display: flex;
            list-style: none;
            gap: 40px;
            align-items: center;
        }

        nav a {
            color: inherit;
            text-decoration: none;
            font-weight: 600;
            position: relative;
            padding: 10px 0;
            transition: color 0.3s ease;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: var(--gradient-accent);
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.3s ease;
        }

        nav a:hover {
            color: var(--accent);
        }

        nav a:hover::after,
        nav a.active::after {
            transform: scaleX(1);
        }

        /* Controls */
        .controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .btn-icon {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            border: 1px solid var(--border-dark);
            background: transparent;
            color: inherit;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        body.light .btn-icon {
            border: 1px solid var(--border-light);
        }

        .btn-icon:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px var(--accent-glow);
        }

        .lang-switch {
            display: flex;
            gap: 5px;
            padding: 5px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        body.light .lang-switch {
            background: rgba(0, 0, 0, 0.05);
        }

        .lang-btn {
            padding: 8px 12px;
            border: none;
            background: transparent;
            color: inherit;
            cursor: pointer;
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .lang-btn.active {
            background: var(--accent);
            color: white;
        }

        /* Main Content */
        main {
            padding-top: var(--header-h);
            padding-bottom: var(--footer-h);
            min-height: 100vh;
        }

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

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

        .hero-content {
            text-align: center;
            z-index: 2;
            animation: fadeInUp 1s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero h1 {
            font-size: clamp(2.5rem, 8vw, 5rem);
            font-weight: 900;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: glow 3s ease-in-out infinite alternate;
        }

        body.light .hero h1 {
            background: linear-gradient(135deg, var(--fg-light) 0%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @keyframes glow {
            from {
                filter: drop-shadow(0 0 20px var(--accent-glow));
            }

            to {
                filter: drop-shadow(0 0 40px var(--accent-glow));
            }
        }

        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: 40px;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* Enhanced Buttons */
        .btn {
            padding: 15px 35px;
            border-radius: 30px;
            font-weight: 700;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
        }

        .btn-primary {
            background: var(--gradient-accent);
            color: white;
            box-shadow: 0 10px 30px var(--accent-glow);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px var(--accent-glow);
        }

        .btn-secondary {
            background: transparent;
            color: var(--accent);
            border: 2px solid var(--accent);
        }

        .btn-secondary:hover {
            background: var(--accent);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 10px 30px var(--accent-glow);
        }

        /* Service Cards */
        .services {
            padding: 100px 20px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 20px;
            background: var(--gradient-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .service-card {
            background: var(--card-dark);
            border: 1px solid var(--border-dark);
            border-radius: 20px;
            padding: 30px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        body.light .service-card {
            background: var(--card-light);
            border: 1px solid var(--border-light);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient-accent);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: -1;
        }

        .service-card:hover {
            transform: translateY(-10px);
            border-color: var(--accent);
            box-shadow: 0 20px 50px var(--accent-glow);
        }

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

        .service-icon {
            width: 60px;
            height: 60px;
            background: var(--gradient-accent);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            margin-bottom: 20px;
        }

        .service-card h3 {
            font-size: 1.3rem;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .service-card p {
            opacity: 0.8;
            line-height: 1.6;
        }

        /* About Section */
        .about {
            padding: 100px 20px;
            background: rgba(255, 255, 255, 0.02);
        }

        body.light .about {
            background: rgba(0, 0, 0, 0.02);
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .about-text {
            animation: fadeInLeft 1s ease;
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 40px;
        }

        .stat {
            text-align: center;
            padding: 20px;
            background: var(--card-dark);
            border-radius: 15px;
            border: 1px solid var(--border-dark);
        }

        body.light .stat {
            background: var(--card-light);
            border: 1px solid var(--border-light);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--accent);
            margin-bottom: 10px;
        }

        /* Contact Section */
        .contact {
            padding: 100px 20px;
        }

        .contact-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
        }

        .contact-form {
            background: var(--card-dark);
            padding: 40px;
            border-radius: 20px;
            border: 1px solid var(--border-dark);
        }

        body.light .contact-form {
            background: var(--card-light);
            border: 1px solid var(--border-light);
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--accent);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-dark);
            border-radius: 10px;
            color: inherit;
            font-family: inherit;
            transition: all 0.3s ease;
        }

        body.light .form-group input,
        body.light .form-group textarea {
            background: rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-light);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 20px var(--accent-glow);
        }

        .contact-info {
            padding: 40px;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 30px;
            padding: 20px;
            background: var(--card-dark);
            border-radius: 15px;
            transition: all 0.3s ease;
        }

        body.light .info-item {
            background: var(--card-light);
        }

        .info-item:hover {
            transform: translateX(10px);
            box-shadow: 0 10px 30px var(--accent-glow);
        }

        .info-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient-accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
        }

        /* Footer */
        footer {
            background: rgba(10, 14, 39, 0.9);
            border-top: 1px solid var(--border-dark);
            padding: 40px 20px;
            text-align: center;
            position: relative;
        }

        body.light footer {
            background: rgba(255, 255, 255, 0.95);
            border-top: 1px solid var(--border-light);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 30px;
        }

        .footer-section h3 {
            color: var(--accent);
            margin-bottom: 20px;
        }

        .social-links {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 20px;
        }

        .social-link {
            width: 45px;
            height: 45px;
            background: var(--gradient-accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 10px 30px var(--accent-glow);
        }

        /* Mobile menu */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            padding: 10px;
        }

        .hamburger span {
            width: 25px;
            height: 3px;
            background: var(--accent);
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        .mobile-menu {
            position: fixed;
            top: var(--header-h);
            right: -100%;
            width: 300px;
            height: calc(100vh - var(--header-h));
            background: rgba(10, 14, 39, 0.98);
            backdrop-filter: blur(20px);
            padding: 40px 20px;
            transition: right 0.3s ease;
            z-index: 999;
            overflow-y: auto;
        }

        body.light .mobile-menu {
            background: rgba(255, 255, 255, 0.98);
        }

        .mobile-menu.active {
            right: 0;
        }

        .mobile-menu ul {
            list-style: none;
        }

        .mobile-menu a {
            display: block;
            padding: 15px 0;
            color: inherit;
            text-decoration: none;
            font-weight: 600;
            border-bottom: 1px solid var(--border-dark);
            transition: all 0.3s ease;
        }

        body.light .mobile-menu a {
            border-bottom: 1px solid var(--border-light);
        }

        .mobile-menu a:hover {
            color: var(--accent);
            padding-left: 10px;
        }

        /* Responsive */
        @media (max-width: 768px) {
            nav ul {
                display: none;
            }

            .hamburger {
                display: flex;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .about-content,
            .contact-content {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            header {
                padding: 0 20px;
            }

            .controls {
                gap: 10px;
            }

            .lang-switch {
                display: none;
            }
        }

        /* Scroll animations */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 1s ease;
        }

        .scroll-reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loading animation */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg1-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        body.light .loader {
            background: var(--bg1-light);
        }

        .loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

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

        .loader-logo {
            font-size: 3rem;
            font-weight: 900;
            background: var(--gradient-accent);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: pulse 1.5s ease infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        /* Notification banner */
        .notification {
            display: none;
            position: fixed;
            top: var(--header-h);
            left: 50%;
            transform: translateX(-50%) translateY(-100%);
            background: var(--gradient-accent);
            color: white;
            padding: 15px 30px;
            border-radius: 30px;
            font-weight: 600;
            z-index: 2000;
            transition: transform 0.5s ease;
            box-shadow: 0 10px 30px var(--accent-glow);
        }

        .notification.show {
            display: block;
            transform: translateX(-50%) translateY(20px);
        }

/* Refinement pass: readable content without JavaScript, keyboard access and RTL. */
:root { --header-h: 80px; --footer-h: 0px; }
body { line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffcb66; outline-offset: 4px; }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 3000; background: #fff; color: #0a0e27; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { inset-block-start: 12px; }
.logo { text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo span { display: block; font-size: .65rem; letter-spacing: .23em; margin-top: 7px; }
header.scrolled { height: var(--header-h); }
.hero { min-height: min(720px, calc(100svh - var(--header-h))); padding: 72px 24px; }
.hero-content { width: 100%; animation: none; }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .13em; margin-bottom: 20px; }
.hero h1 { max-width: 20ch; margin: 0 auto 24px; font-size: clamp(2.15rem, 5.4vw, 4.25rem); line-height: 1.14; animation: none; }
.hero-subtitle { line-height: 1.65; max-width: 650px; }
.btn-primary, .lang-btn.active { background: #00b4d8; color: #071a2b; box-shadow: none; }
.btn-primary:hover, .btn-secondary:hover, .btn-icon:hover { background: #51d3e9; color: #071a2b; box-shadow: none; }
.btn, .btn-icon, .lang-btn { min-height: 44px; }
.section-title { line-height: 1.2; }
section { scroll-margin-top: var(--header-h); }
.services, .about, .contact { padding: 72px 20px; }
.scroll-reveal { opacity: 1; transform: none; transition: none; }
.about-text { animation: none; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%,280px),1fr)); }
.service-card { display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-3px); box-shadow: none; }
.service-card p { flex: 1; }
.service-quote { color: #56d5ed; display: inline-block; align-self: flex-start; padding: 12px 0; margin-top: 16px; font-weight: 700; text-underline-offset: 4px; }
.about-content, .contact-content { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; }
.contact-form, .contact-info { min-width: 0; padding: 30px; }
.contact-info { padding-inline: 0; }
.info-item { align-items: flex-start; }
.info-item > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.info-icon { flex-shrink: 0; }
.info-item:hover { transform: none; box-shadow: none; }
.form-group input, .form-group textarea, .form-group select { font-size: 1rem; }
.form-group select { width: 100%; padding: 15px; border: 1px solid var(--border-dark); border-radius: 10px; background: #20243d; color: inherit; }
.form-group label { color: #56d5ed; }
.form-note { font-size: .85rem; margin-top: 18px; opacity: .85; }
#formStatus { margin-top: 16px; font-weight: 600; }
#formStatus:empty { display: none; }
#formStatus[data-state="error"] { color: #ffc5bd; }
button:disabled { cursor: wait; opacity: .7; }
.hamburger { border: 0; background: transparent; min-height: 44px; min-width: 44px; justify-content: center; align-items: center; }
.mobile-menu { right: auto; left: auto; inset-inline-end: 0; width: min(340px,100%); transition: none; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding-inline: 0; }
.mobile-menu a:hover { padding-left: 0; }
.mobile-menu .btn { padding: 12px; justify-content: center; }
.mobile-menu .btn[aria-pressed="true"] { background: #00b4d8; color: #071a2b; }
.direct-contact { display: grid; gap: 12px; }
.direct-contact a { color: inherit; overflow-wrap: anywhere; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.45; }
[dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .about-text, [dir="rtl"] .contact-content { text-align: right; }
[dir="rtl"] .service-quote { align-self: flex-start; }
body.light .section-title, body.light .logo { background: none; -webkit-text-fill-color: currentColor; color: #006b82; }
body.light .eyebrow, body.light .form-group label, body.light .service-quote, body.light .footer-section h3, body.light .stat-number { color: #006b82; }
body.light .btn-secondary { color: #006b82; border-color: #006b82; }
body.light .form-group select { background: #f1f5f9; border-color: #a6b1bf; }
body.light #formStatus[data-state="error"] { color: #a22b21; }
@media (max-width: 900px) { nav ul { gap: 22px; } header { padding-inline: 24px; } }
@media (max-width: 768px) {
    :root { --header-h: 72px; }
    header { padding-inline: 20px; }
    .hero { min-height: auto; padding: 72px 20px; }
    .hero h1 { font-size: clamp(2.1rem,8.5vw,3.2rem); }
    .hero-subtitle { font-size: 1.06rem; }
    .hero-buttons { gap: 12px; }
    .btn { padding: 14px 24px; }
    .about-content, .contact-content { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .services, .about, .contact { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }
    .section-title { font-size: 2rem; }
    .services-grid { margin-top: 32px; gap: 20px; }
    .contact-form { padding: 22px; }
    .contact-info { padding: 0; }
    .stats { gap: 12px; }
    .stat { padding: 16px 8px; }
    .stat-number { font-size: 2rem; }
    .about-image > div { padding: 32px 24px !important; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


.mobile-menu ul { display: block; }

html[lang="ar"] body { font-family: "Noto Sans Arabic", Tahoma, Arial, sans-serif; }
