:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #E1F0FF;
    --accent-color: #00D2FF;
    --text-color: #2D3436;
    --text-muted: #636E72;
    --bg-light: #F9FBFF;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Animations */
.reveal {
    opacity: 0;
    transition: var(--transition);
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(-50px);
}

.fade-right {
    transform: translateX(50px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 8px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(74, 144, 226, 0.4);
}

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

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

.btn.small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.logo-subtext {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

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

#navbar.scrolled .nav-links a {
    color: var(--text-color);
}

#navbar.scrolled .nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1568952433726-3896e3881c65?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w3NDE5ODJ8MHwxfHNlYXJjaHw3fHxhYnN0cmFjdCUyMHRlY2hub2xvZ3l8ZW58MHx8fHwxNzY2NzkxNTY1fDA&ixlib=rb-4.1.0&q=80&w=1080') center/cover no-repeat;
    color: var(--white);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(74, 144, 226, 0.4) 100%);
}

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

.hero-arabic {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent-color);
    background: linear-gradient(135deg, #00D2FF 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation: float 15s infinite alternate;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation: float 10s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Outfit';
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.section-tag.center {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}


.image-wrapper {
    position: relative;
}

.image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge span {
    font-size: 0.9rem;
}

.experience-badge strong {
    font-size: 1.5rem;
    font-family: 'Outfit';
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: #f1f7ff;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service-category {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-category:hover .category-icon {
    background: var(--primary-color);
}

.category-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-category:hover .category-icon i {
    color: var(--white);
}

.service-category h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.product-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.product-header h3 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin: 0;
}

.product-details {
    width: 100%;
}

.product-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-info-group {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.product-info-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
}

.product-specs,
.product-pricing,
.product-logistics,
.product-documents {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-specs li,
.product-pricing li,
.product-logistics li {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-specs li:last-child,
.product-pricing li:last-child,
.product-logistics li:last-child {
    margin-bottom: 0;
}

.product-specs strong,
.product-pricing strong,
.product-logistics strong {
    color: var(--text-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

.product-pricing .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-documents {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.product-documents li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-documents li:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.product-documents li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    min-width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

/* Footer */
footer {
    background: #0a192f;
    color: var(--white);
    padding: 8rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand .logo-text {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin: 1.5rem 0;
    max-width: 300px;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h4,
.footer-services h4 {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-links h4::after,
.footer-services h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-services li {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-btn {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

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

.scrolled .lang-btn {
    background: rgba(74, 144, 226, 0.05);
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Outfit', 'Inter', sans-serif;
}

[dir="rtl"] .hero-arabic {
    font-size: 1.5rem;
}

[dir="rtl"] .nav-links {
    padding-right: 0;
}

[dir="rtl"] .mobile-menu-btn {
    order: -1;
}

[dir="rtl"] .service-list li {
    padding-left: 0;
    padding-right: 1.5rem;
}

[dir="rtl"] .service-list li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .product-info-group {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .product-documents li:hover {
    transform: translateX(-5px);
}


[dir="rtl"] .experience-badge {
    right: auto;
    left: -30px;
}

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

[dir="rtl"] .footer-links h4::after,
[dir="rtl"] .footer-services h4::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* RTL Animation Overrides */
[dir="rtl"] .fade-left {
    transform: translateX(50px);
}

[dir="rtl"] .fade-right {
    transform: translateX(-50px);
}

[dir="rtl"] .reveal.active {
    transform: translate(0, 0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .nav-actions {
        display: none;
        /* Hide for now, can be moved to mobile menu later if needed */
    }

    [dir="rtl"] .experience-badge {
        left: 0;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .about-container,
    .contact-container {
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container,
    .contact-container,
    .services-grid,
    .products-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-documents {
        grid-template-columns: 1fr;
    }

    .product-info-group {
        padding: 1.2rem;
    }

    .about-image {
        order: 2;
    }

    .about-text {
        order: 1;
    }

    .experience-badge {
        bottom: 0;
        right: 0;
        padding: 1.5rem;
    }
}