@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');
@import url('mega-menu.css');

:root {
    --primary: #020617;
    /* Pure Cold Navy */
    --secondary: #f97316;
    /* Vibrant Orange */
    --accent: #3b82f6;
    /* Bright Blue */
    --surface: #ffffff;
    --background: #f1f5f9;
    --text-main: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input,
button,
select,
textarea {
    font-family: 'Cairo', sans-serif;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem;
    }
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.39);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Header */
header {
    background: rgba(2, 6, 23, 0.92);
    /* High opacity ensures fixed color regardless of background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: none;
    box-shadow: none;
    /* Removed shadow to prevent visual shift on scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    height: 100%;
}

.logo img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .logo img {
        height: 35px;
    }

    .logo span {
        font-size: 1.2rem;
    }
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

/* Mobile Menu Active State - Premium Glass Look */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 3.5rem 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    gap: 1.25rem;
    z-index: 3000;
}

.nav-links.active a {
    display: block;
    /* Ensure it behaves as a block to accept width/align */
    color: white;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links.active .btn-secondary {
    margin-top: 1.5rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    width: 100%;
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.7rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 10px;
}

.mobile-lang-btn {
    display: none;
}

/* Hero Section - New Design */
.hero-new-design {
    position: relative;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    /* Placeholder, will need your image or a default one */
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-new-design .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.1));
    backdrop-filter: blur(4px);
    /* Added blur effect */
}

.hero-content-new {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    /* Center the container */
    text-align: center;
    /* Ensure text is centered */
}

.hero-content-new h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content-new p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons-new {
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* Center the buttons */
}

.btn-white {
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-white:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black */
    padding: 2rem 0;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    display: inline-block;
}

.stat-item span {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
}

.stat-item p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vertical Side Stats */
.side-stats {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.side-stat-item {
    text-align: center;
    position: relative;
}

.side-stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.side-stat-item h3 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    color: var(--secondary);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    direction: ltr;
    /* Keep numbers and signs in logical order */
}

.side-stat-item h3 .unit {
    font-size: 1.2rem;
    margin-left: 2px;
    opacity: 0.8;
}

.side-stat-item p {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.9;
}

/* Services List Section (New) */
.services-list-section {
    background: var(--primary);
    /* Or use an image background */
    padding: 6rem 0;
}

.services-list-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-list-item {
    background: rgba(255, 255, 255, 0.05);
    /* Transparent glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: transform 0.3s, background 0.3s;
}

.service-list-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.service-list-item .icon-box {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.service-list-item .service-content h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.service-list-item .service-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-list-item .service-content a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Original Hero Styles (Preserved but overridden by new class where applicable, but keeping for other pages if needed) */
.hero {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: white;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
    height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg') opacity(0.05);
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Animations */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .logo span {
        font-size: 1.1rem;
    }

    /* Hero Buttons Side by Side on Mobile */
    .hero-buttons-new {
        flex-direction: row !important;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        margin: 2rem auto 0;
        padding: 0 0.5rem;
    }

    .hero-buttons-new .btn {
        width: auto !important;
        flex: 1;
        max-width: 180px;
        padding: 1rem 0.5rem;
        font-size: 0.95rem;
        font-weight: 700;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        white-space: nowrap;
    }

    .split-content {
        text-align: center !important;
    }

    .split-content h2::after {
        margin: 0.5rem auto 0;
    }

    .card-icon,
    .icon-box {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .wave-divider {
        height: 40px !important;
    }
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
    background: #f8fafc;
    height: 100%;
    /* Ensure it fills container height */
    min-height: 52px;
    /* Matching the button height from image */
}

.input-group .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    background: var(--secondary);
    color: white;
    font-weight: 700;
    border: none;
    min-height: 52px;
    /* Standardize height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary);
}

.card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
}

.split-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.split-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.split-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* Ensure a good height */
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: block;
    transition: transform 0.5s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}



/* Footer Specifics */
footer .logo img {
    filter: brightness(0);
    opacity: 0.8;
}

/* Footer */
/* Footer */
footer {
    background: #ffffff;
    /* Changed to white to match image */
    color: var(--text-main);
    padding: 5rem 0 0;
    border-top: 1px solid var(--border);
    position: relative;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Enforce 4 columns */
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: right;
    width: 100%;
}

[dir="ltr"] .footer-grid {
    text-align: left;
}

.footer-col:last-child {
    text-align: left;
}

[dir="ltr"] .footer-col:last-child {
    text-align: left;
    /* Keep it consistent or adjust if needed */
}

/* Ensure the input group inside the last column is also aligned/sized properly */
.footer-col:last-child .input-group {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

[dir="ltr"] .footer-col:last-child .input-group {
    justify-content: flex-start;
    flex-direction: row;
}

/* Actually, simpler approach for the subscribe form alignment */
.footer-col:last-child h4,
.footer-col:last-child p {
    text-align: left;
}

[dir="ltr"] .footer-col:last-child h4,
[dir="ltr"] .footer-col:last-child p {
    text-align: left;
}

.footer-col:last-child .subscribe-form .input-group {
    direction: ltr;
    /* Temporarily switch to LTR for left alignment or just keep RTL but align box */
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    /* Bolder as per image */
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-light);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '\f104';
    /* FontAwesome angle-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

[dir="ltr"] .footer-links a::before {
    content: '\f105';
    /* FontAwesome angle-right */
}

.footer-links a:hover {
    color: var(--secondary);
    padding-inline-start: 5px;
}

.footer-links a:hover::before {
    color: var(--secondary);
}

/* Subscribe Form */
.subscribe-form {
    margin-top: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
    background: #f8fafc;
}

.input-group .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    /* Square edges like image usually has or slightly rounded */
    font-size: 0.95rem;
    background: var(--secondary);
    color: white;
    font-weight: 700;
    border: none;
}

/* Copyright Bar */
.copyright-bar {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    background: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Floating Whatsapp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    header {
        position: relative;
        overflow: visible;
    }

    .nav-container {
        padding: 0.8rem 0 !important;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        /* RTL: Start is Right. This puts Logo on Right. */
        align-items: center;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    .logo {
        margin-right: 15px;
        /* Spacing from right edge */
        margin-left: 15px;
    }

    [dir="ltr"] .nav-container {
        padding: 0.8rem 0 !important;
        flex-direction: row;
        justify-content: flex-start;
        /* Logo Left in LTR */
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 50%;
        left: 20px !important;
        transform: translateY(-50%);
        z-index: 9999;
        font-size: 1.8rem;
        padding: 0;
        background: none;
        border: none;
        color: white;
    }

    .mobile-lang-btn {
        display: block;
        position: absolute;
        top: 50%;
        left: 70px !important;
        transform: translateY(-50%);
        z-index: 9999;
        font-size: 0.9rem;
        font-weight: 800;
        color: white;
        background: var(--secondary);
        padding: 6px 14px;
        border-radius: 50px;
        box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    [dir="ltr"] .mobile-menu-btn {
        left: auto !important;
        right: 20px !important;
    }

    [dir="ltr"] .mobile-lang-btn {
        left: auto !important;
        right: 70px !important;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        height: auto;
        padding: 7rem 0 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links li {
        justify-content: center;
    }

    .side-stats {
        position: absolute;
        left: 8px !important;
        right: auto !important;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        background: rgba(2, 6, 23, 0.75);
        /* Deep Navy Glass */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 2.5rem 0.5rem 4rem;
        /* More bottom padding for stats visibility */
        gap: 2.6rem;
        border-radius: 60px;
        width: auto;
        min-width: 78px;
        margin: 0;
        z-index: 100;
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    [dir="ltr"] .side-stats {
        left: 10px !important;
        right: auto !important;
    }

    /* Keep separators visible for vertical mode */
    .side-stat-item:not(:last-child)::after {
        display: block !important;
        bottom: -1.25rem !important;
        width: 15px !important;
        height: 1.5px !important;
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .side-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .side-stat-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.15rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        font-weight: 800;
    }

    .side-stat-item p {
        font-size: 0.55rem;
        width: 65px;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
    }
}

/* Fix Hero Button arrows in English (L-R) */
[dir="ltr"] .hero-buttons-new .btn i {
    transform: rotate(180deg);
}

/* Hide Splide Arrows explicitly */
.splide__arrows,
.splide__arrow {
    display: none !important;
}

/* Service Tabs Styling */
.service-tabs::-webkit-scrollbar {
    height: 4px;
}

.service-tabs::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.service-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.service-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-link:hover {
    color: var(--secondary) !important;
}

.service-link.active {
    color: var(--secondary) !important;
    border-bottom: 2px solid var(--secondary) !important;
}