:root {
    /* Color Palette */
    --primary: #0e4d94; /* Official Dark Blue */
    --secondary: #1484ac; /* Ocean Blue */
    --accent: #26bfcc; /* Bright Cyan */
    --accent-light: #9adaeb; /* Light Blue */
    
    --bg-main: #f4f9ff;
    --bg-white: #ffffff;
    --text-main: #2b3a4a;
    --text-muted: #6b7a8a;
    
    --gradient: linear-gradient(135deg, #0e4d94 0%, #1484ac 100%);
    --gradient-light: linear-gradient(135deg, #f4f9ff 0%, #e0effc 100%);
    
    /* Typography */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    
    /* Box Shadow */
    --shadow-sm: 0 4px 6px rgba(14, 77, 148, 0.05);
    --shadow-md: 0 10px 30px rgba(14, 77, 148, 0.08);
    --shadow-lg: 0 20px 40px rgba(14, 77, 148, 0.12);
    
    /* Transitions */
    --trans-fast: 0.3s ease;
    --trans-slow: 0.5s ease;
}

[data-theme="dark"] {
    --bg-main: #0B1120;
    --bg-white: #111827;
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --primary: #38bdf8;
    --secondary: #22d3ee;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8);
    --gradient-light: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

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

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
}

html[dir="ltr"] {
    font-family: var(--font-en);
}

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

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    position: relative;
    z-index: 1;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.hidden-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}

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

.service-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--trans-fast);
    border-top: 5px solid var(--accent);
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
}
.service-img {
    width: calc(100% + 5rem);
    height: 220px;
    object-fit: cover;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    border-radius: 10px 10px 0 0;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] #navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
}

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

.logo img {
    height: 60px;
    object-fit: contain;
    transition: var(--trans-fast);
}

#navbar.scrolled .logo img {
    height: 50px;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    transition: var(--trans-fast);
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: var(--trans-fast);
}

html[dir="ltr"] .nav-links li a::after {
    right: auto;
    left: 0;
}

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

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

.nav-links li a:hover::after {
    width: 100%;
}

.lang-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--trans-fast);
}
#navbar.scrolled .lang-btn {
    border-color: var(--secondary);
    color: var(--secondary);
}

.lang-btn:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--trans-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#navbar.scrolled .theme-btn {
    color: var(--secondary);
}

.theme-btn:hover {
    transform: translateY(-2px) rotate(15deg);
    color: var(--accent);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 26, 54, 0.7);
    z-index: 1;
}

/* decorative shapes in background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--accent-light);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3rem;
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-btn {
    display: inline-block;
    background: var(--gradient);
    color: var(--bg-white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--trans-fast);
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #1484ac 0%, #0e4d94 100%);
    color: white;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: var(--bg-white);
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 800;
}

.text-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.stats-container {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    background: var(--bg-main);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    transition: var(--trans-fast);
    border-bottom: 4px solid transparent;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--accent);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-box h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-box span {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.image-content {
    flex: 1;
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.placeholder-image {
    width: 100%;
    height: 500px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-main);
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    padding-right: 2rem;
}

html[dir="ltr"] .contact-info {
    padding-right: 0;
    padding-left: 2rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--trans-fast);
}

.info-item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

html[dir="ltr"] .info-item:hover {
    transform: translateX(5px);
}

.info-item i {
    font-size: 2rem;
    color: var(--secondary);
    width: 40px;
    text-align: center;
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.social-links {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-white);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--trans-fast);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--bg-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    flex: 1;
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    background: transparent;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    outline: none;
    resize: none;
    transition: var(--trans-fast);
    font-family: inherit;
    font-weight: 600;
}

.input-group label {
    position: absolute;
    top: 15px;
    right: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--trans-fast);
}

html[dir="ltr"] .input-group label {
    right: auto;
    left: 0;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--secondary);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 700;
}

.submit-btn {
    background: var(--gradient);
    color: var(--bg-white);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: var(--trans-fast);
    font-family: inherit;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1484ac 0%, #0e4d94 100%);
}

/* Footer */
footer {
    background: #0e4d94;
    padding: 5rem 0 2rem;
    color: var(--accent-light);
    position: relative;
    font-family: inherit;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gradient);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

html[dir="ltr"] .footer-top {
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.footer-logo img {
    height: 45px;
    transition: var(--trans-fast);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-col p {
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: var(--trans-fast);
    font-size: 1.2rem;
}

.footer-socials a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

html[dir="ltr"] .footer-col h4::after {
    right: auto;
    left: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    font-weight: 600;
    transition: var(--trans-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

html[dir="ltr"] .footer-links a:hover {
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #e0e0e0;
    font-weight: 600;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 5px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans-fast);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

html[dir="ltr"] .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float:hover {
    color: #FFF;
    background-color: #1ebe57;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* WhatsApp Widget */
.wa-widget-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}

@media (max-width: 480px) {
    .wa-widget-container {
        width: 90%;
        right: 5%;
        bottom: 100px;
    }
}

html[dir="ltr"] .wa-widget-container {
    right: auto;
    left: 30px;
}

@media (max-width: 480px) {
    html[dir="ltr"] .wa-widget-container {
        right: auto;
        left: 5%;
    }
}

.wa-widget-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.wa-header {
    background: #075e54;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    text-align: right;
}

html[dir="ltr"] .wa-header {
    text-align: left;
}

.wa-header .close-wa {
    position: absolute;
    left: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}
html[dir="ltr"] .wa-header .close-wa {
    left: auto;
    right: 15px;
}

.wa-header .close-wa:hover {
    color: #ffd2d2;
}

.wa-avatar {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wa-avatar img {
    width: 80%;
    object-fit: contain;
}

.wa-header-text h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.wa-header-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.wa-body {
    background: #e5ddd5;
    padding: 20px;
    height: 220px;
    overflow-y: auto;
    position: relative;
    text-align: right;
}

html[dir="ltr"] .wa-body {
    text-align: left;
}

.wa-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    opacity: 0.06;
}

.wa-message {
    background: #fff;
    padding: 12px 15px;
    border-radius: 10px 0 10px 10px;
    font-size: 0.95rem;
    color: #333;
    max-width: 85%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    line-height: 1.6;
}

html[dir="ltr"] .wa-message {
    border-radius: 0 10px 10px 10px;
}

.wa-footer {
    padding: 15px;
    background: #f0f0f0;
    display: flex;
    gap: 10px;
}

.wa-input {
    flex: 1;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

.wa-send-btn {
    background: #128C7E;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    outline: none;
}

.wa-send-btn:hover {
    background: #075e54;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .about-content,
    .contact-wrapper,
    .founder-content,
    .diff-container {
        flex-direction: column;
    }
    
    .contact-info {
        padding: 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--trans-fast);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links li a {
        color: var(--text-main) !important;
        text-shadow: none !important;
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block !important;
        font-size: 1.5rem;
        color: var(--bg-white);
        cursor: pointer;
    }
    
    #navbar.scrolled .mobile-menu-btn {
        color: var(--primary);
    }
    
    .nav-controls {
        gap: 1rem;
        margin-inline-start: auto;
        margin-inline-end: 1.5rem;
    }
    
    .theme-btn {
        font-size: 1.3rem;
    }
    
    .lang-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
