/* ============================================
   ERTH Corporate Website - Main Stylesheet
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
    transition: font-family 0.3s ease;
}

/* Arabic font */
html[lang="ar"] body {
    font-family: 'Cairo', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */

:root {
    /* Colors */
    --color-navy: #0A1628;
    --color-charcoal: #1C1C1E;
    --color-white: #FFFFFF;
    --color-emerald: #10B981;
    --color-blue: #3B82F6;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Semantic Colors */
    --color-primary: var(--color-navy);
    --color-secondary: var(--color-emerald);
    --color-accent: var(--color-blue);
    --color-text: var(--color-charcoal);
    --color-text-light: var(--color-gray-600);
    --color-background: var(--color-white);
    --color-surface: var(--color-gray-50);
    --color-border: var(--color-gray-200);
    --color-bg: var(--color-gray-50);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-3xl) 0;
}

.section-sm {
    padding: var(--spacing-2xl) 0;
}

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

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

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

/* RTL utilities */
html[dir="rtl"] .text-left {
    text-align: right;
}

html[dir="rtl"] .text-right {
    text-align: left;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

.lead {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: var(--color-gray-600);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: var(--font-size-lg);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(10, 22, 40, 0.98);
}

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

.navbar-logo {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-logo:hover .logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

.navbar-logo span {
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.navbar-links {
    display: flex;
    gap: 1.25rem;
}

.navbar-link {
    color: var(--color-gray-300);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    transition: width var(--transition-base);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-white);
}

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

.lang-toggle {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all var(--transition-base);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
}

/* Mobile menu */
@media (max-width: 768px) {
    .navbar-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    html[dir="rtl"] .navbar-links {
        transform: translateX(100%);
    }

    .navbar-links.active {
        transform: translateX(0) !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar-menu {
        gap: var(--spacing-md);
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-navy);
    color: var(--color-gray-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-link {
    color: var(--color-gray-400);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--color-emerald);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-white);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--color-emerald);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-charcoal) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.hero .lead {
    font-size: var(--font-size-xl);
    color: var(--color-gray-300);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--color-gray-600);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: var(--spacing-xl);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ============================================
   METRICS/STATS
   ============================================ */

.metrics {
    background: var(--color-surface);
    padding: var(--spacing-3xl) 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.metric-label {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.timeline-marker {
    text-align: right;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--color-emerald);
}

html[dir="rtl"] .timeline-marker {
    text-align: left;
}

.timeline-content {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-emerald);
}

html[dir="rtl"] .timeline-content {
    border-left: none;
    border-right: 4px solid var(--color-emerald);
}

.timeline-content h3 {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

/* Contact Form Specific Styles */
.contact-form {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.contact-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text);
    font-size: var(--font-size-base);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--color-white);
    color: var(--color-text);
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-gray-400);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .form-submit {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.contact-form .btn-primary {
    padding: 0.875rem 3rem;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    background: var(--color-blue);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.contact-form .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Contact Information Styles */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.contact-info-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    border-radius: var(--radius-lg);
    color: var(--color-white);
}

.contact-info-item h4 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-lg);
    color: var(--color-primary);
}

.contact-info-item p,
.contact-info-item a {
    color: var(--color-text-light);
    font-size: var(--font-size-base);
}

.contact-info-item a:hover {
    color: var(--color-emerald);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-emerald);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-blue);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-blue) 100%);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-marker {
        text-align: left;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .container,
    .container-wide {
        padding: 0 var(--spacing-sm);
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   ELEGANT THEME LAYER
   ============================================ */

:root {
    /* Foundation tokens from Elegant skill */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;

    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 24px;
    --font-size-xl: 32px;
    --font-size-2xl: 40px;

    --font-display: "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "Inter", sans-serif;

    --color-primary: #3B82F6;
    --color-secondary: #8B5CF6;
    --color-success: #16A34A;
    --color-warning: #D97706;
    --color-danger: #DC2626;
    --color-surface: #FFFFFF;
    --color-background: #F8FAFC;
    --color-text: #111827;
    --color-text-light: #4B5563;
    --color-neutral: #FFFFFF;
    --color-border-strong: #E5E7EB;
    --color-focus-ring: rgba(59, 130, 246, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 10px 24px rgba(17, 24, 39, 0.1);
    --shadow-lg: 0 16px 36px rgba(17, 24, 39, 0.14);
    --shadow-xl: 0 24px 56px rgba(17, 24, 39, 0.18);

    --border-default: 1px solid var(--color-border-strong);
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 0% 0%, #eef4ff 0%, var(--color-background) 40%);
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(40px, 5vw, 56px);
}

h2 {
    font-size: clamp(32px, 3.8vw, 44px);
}

p,
li,
label,
input,
textarea,
select {
    font-size: var(--font-size-base);
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar {
    background: linear-gradient(120deg, #060B16 0%, #0B1326 100%);
    border-bottom: 1px solid rgba(87, 166, 255, 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(6, 11, 22, 0.45);
}

.navbar.scrolled {
    background: linear-gradient(120deg, #040812 0%, #0A1120 100%);
}

.navbar-logo span {
    background: linear-gradient(90deg, #4CA7FF, #89E1FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-link {
    color: #D7E9FF;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.15;
}

.navbar-link:hover,
.navbar-link.active {
    color: #7CD5FF;
}

.navbar-link::after {
    height: 2px;
    background: linear-gradient(90deg, #4CA7FF, #89E1FF);
}

.lang-toggle {
    background: linear-gradient(90deg, #2F84F7, #51C8FF);
    color: #FFFFFF;
    border: 1px solid rgba(137, 225, 255, 0.35);
    border-radius: var(--radius-full);
    box-shadow: 0 6px 14px rgba(47, 132, 247, 0.3);
    font-weight: 500;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle span {
    height: 2px;
    background: var(--color-text);
}

.hero {
    background: linear-gradient(145deg, #111827 0%, #1F2937 50%, #111827 100%);
    border-bottom: var(--border-default);
}

.hero::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.24) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.18) 0%, transparent 45%);
}

.hero h1,
.hero .lead {
    color: var(--color-neutral);
}

.section,
.metrics {
    position: relative;
}

.section:nth-of-type(even),
.metrics {
    background: var(--color-surface);
    border-top: var(--border-default);
    border-bottom: var(--border-default);
}

.btn {
    border: var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
    font-size: var(--font-size-sm);
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: var(--color-neutral);
    border-color: transparent;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active,
.btn-secondary:active,
.btn-outline:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible,
.navbar-link:focus-visible,
.footer-link:focus-visible,
.social-icon:focus-visible,
.lang-toggle:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"],
.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::after {
    content: "...";
    position: absolute;
    inset: 0;
    color: var(--color-neutral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.btn-secondary {
    background: var(--color-neutral);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.card,
.timeline-content,
.contact-form {
    border: var(--border-default);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    background: var(--color-neutral);
}

.card-icon,
.contact-icon {
    border: none;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-neutral);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.metric {
    background: var(--color-neutral);
    border: var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-5);
}

.metric-value {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--color-secondary);
}

.metric-label {
    color: var(--color-text);
    letter-spacing: 0;
    text-transform: none;
}

.timeline-marker {
    color: var(--color-secondary);
}

.timeline-content {
    border-left: 3px solid var(--color-primary);
}

html[dir="rtl"] .timeline-content {
    border-right: 3px solid var(--color-primary);
}

.form-input,
.form-select,
.form-textarea,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    border: var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: none;
    background: var(--color-neutral);
    color: var(--color-text);
    min-height: 44px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-focus-ring), var(--shadow-sm);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.22), var(--shadow-sm);
}

.badge {
    border: var(--border-default);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.badge-success {
    background: #DCFCE7;
    color: #14532D;
}

.badge-info {
    background: #EDE9FE;
    color: #312E81;
}

.badge-warning {
    background: #FEF3C7;
    color: #78350F;
}

.footer {
    background: #0F172A;
    color: var(--color-neutral);
    border-top: none;
}

.footer-section h4,
.footer-link,
.footer-bottom {
    color: var(--color-neutral);
}

.footer-link:hover {
    color: #BFDBFE;
}

.social-icon,
.scroll-to-top {
    border: var(--border-default);
    box-shadow: var(--shadow-sm);
}

.social-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-neutral);
}

.social-icon:hover,
.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.scroll-to-top {
    background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
    color: var(--color-neutral);
    border-radius: var(--radius-full);
    border-color: transparent;
}

.products-list {
    list-style: disc;
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
    color: var(--color-text-light);
}

html[dir="rtl"] .products-list {
    padding-left: 0;
    padding-right: 1.25rem;
}

.products-fit {
    margin-top: 0.5rem;
}

/* Prevent desktop nav overlap/wrapping when many tabs exist */
@media (max-width: 1320px) and (min-width: 769px) {
    .navbar-menu {
        gap: var(--space-3);
    }

    .navbar-links {
        gap: var(--space-3);
    }

    .navbar-link {
        font-size: 0.82rem;
        letter-spacing: 0.02em;
    }

    .lang-toggle {
        padding: 0.42rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Keep mobile navigation readable in elegant palette */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 20px;
        --font-size-xl: 28px;
    }

    .navbar-links {
        top: 84px;
        background: rgba(8, 14, 28, 0.98);
        border-top: 1px solid rgba(87, 166, 255, 0.35);
        border-bottom: 1px solid rgba(87, 166, 255, 0.35);
        box-shadow: 0 14px 28px rgba(6, 11, 22, 0.55);
    }

    .btn {
        width: 100%;
    }
}