/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    background: #0f0f0f;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(39, 36, 36, 0.7)) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-image {
    width: 150px;
    height: 100px;
    object-fit: contain;
}

.compass-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.logo-text h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
}

.logo-text span {
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
    margin-top: -2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switch Button */
.language-switch {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switch i {
    font-size: 14px;
}

.language-switch:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[dir="rtl"] * {
    letter-spacing: 0;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-container {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .about-content {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .contact-content {
    grid-template-columns: 1fr 1fr;
}

[dir="rtl"] .logo-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e2c848;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
}

[dir="rtl"] .mobile-menu-close {
    right: 20px;
    left: auto;
    transform: scaleX(-1);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

[dir="rtl"] .mobile-menu-close:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: scaleX(-1) scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Library Background Effect - Enhanced */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

/* Floating Compasses - Enhanced */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 80px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.highlight {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #e5e5e5;
    max-width: 500px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-center {
    text-align: center;
    max-width: 800px;
}

.hero-logo-main {
    width: 300px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1e293b;
    border: 2px solid #fbbf24;
}

.btn-primary:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fbbf24;
    border: 2px solid #fbbf24;
}

.btn-secondary:hover {
    background: #fbbf24;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.compass-hero {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 6rem;
    font-weight: bold;
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.3);
    position: relative;
}

.compass-hero::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border: 3px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

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

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

/* Services Section */
.services {
    padding: 100px 0;
    background: #1a1a1a;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.05) 20%, rgba(139, 69, 19, 0.05) 80%, transparent 100%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #e5e5e5;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #1e293b;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.service-card p {
    color: #e5e5e5;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #0f0f0f;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #e5e5e5;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(251, 191, 36, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.stat p {
    color: #e5e5e5;
    font-weight: 500;
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: #fbbf24;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #1a1a1a;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(139, 69, 19, 0.05) 20%, rgba(139, 69, 19, 0.05) 80%, transparent 100%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #fbbf24;
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #e5e5e5;
}

.contact-item p a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: #fbbf24;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(251, 191, 36, 0.1);
    backdrop-filter: blur(10px);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #e5e5e5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

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

/* Footer */
.footer {
    background: #0f0f0f;
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section p {
    color: #e5e5e5;
    margin-bottom: 1rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #fbbf24;
    color: #1e293b;
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: #e5e5e5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 15, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 1rem;
        z-index: 1000;
        height: calc(100vh - 70px);
        overflow-y: auto;
        border-top: 1px solid rgba(251, 191, 36, 0.2);
        opacity: 0;
        pointer-events: none;
        display: flex;
        backdrop-filter: blur(10px);
        justify-content: flex-start;
        align-items: center;
    }

    .nav-menu.active {
        left: 0;
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    [dir="rtl"] .nav-menu.active {
        right: 0 !important;
        left: auto !important;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    /* Mobile menu close button */
    .mobile-menu-close {
        display: block;
        background: rgba(251, 191, 36, 0.1);
        border: 1px solid rgba(251, 191, 36, 0.2);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(251, 191, 36, 0.2);
        transform: scale(1.1);
    }

    .nav-menu li {
        margin: 1rem 0;
        list-style: none;
        width: 100%;
        display: flex;
        justify-content: center;
        max-width: 300px;
    }

    .nav-menu .nav-link {
        padding: 1rem 2rem;
        display: block;
        font-size: 1.3rem;
        color: #ffffff;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        margin: 1rem 0;
        width: 100%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(251, 191, 36, 0.1);
        text-align: center;
    }

    .nav-menu .nav-link:hover {
        background: rgba(251, 191, 36, 0.15);
        color: #fbbf24;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.3);
    }

    .nav-menu .language-switch {
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        border: none;
        border-radius: 25px;
        color: #1e293b;
        font-size: 1.1rem;
        padding: 12px 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 1.5rem auto;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .nav-menu .language-switch:hover {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-logo-main {
        width: 200px;
        height: 150px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

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

    /* Arabic RTL Mobile Responsive */
    [dir="rtl"] .nav-menu {
        right: -100% !important;
        left: auto !important;
        transform: translateX(100%);
        transition: all 0.3s ease;
        opacity: 0;
        pointer-events: none;
        text-align: center;
        padding: 2rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: rgba(15, 15, 15, 0.98);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(251, 191, 36, 0.2);
    }

    [dir="rtl"] .nav-menu.active {
        right: 0 !important;
        left: auto !important;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    [dir="rtl"] .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    [dir="rtl"] .about-content {
        text-align: center;
        grid-template-columns: 1fr !important;
    }

    [dir="rtl"] .contact-content {
        text-align: center;
        grid-template-columns: 1fr !important;
    }

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

    [dir="rtl"] .contact-item i {
        margin-left: 1rem;
        margin-right: 0;
    }

    [dir="rtl"] .form-group input,
    [dir="rtl"] .form-group textarea {
        text-align: right;
    }

    [dir="rtl"] .language-switch {
        margin: 1.5rem auto;
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        border: none;
        border-radius: 25px;
        padding: 12px 24px;
        color: #1e293b;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    [dir="rtl"] .language-switch:hover {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
    }

    [dir="rtl"] .nav-container {
        flex-direction: row-reverse;
    }

    [dir="rtl"] .hamburger {
        order: -1;
        margin-left: 0;
        margin-right: 10px;
    }

    [dir="rtl"] .logo-container {
        margin-right: 0;
        margin-left: 10px;
    }

    [dir="rtl"] .nav-menu li {
        margin: 1rem 0;
        text-align: center;
        width: 100%;
        max-width: 300px;
        display: flex;
        justify-content: center;
    }

    [dir="rtl"] .nav-menu .nav-link {
        padding: 1rem 2rem;
        display: block;
        text-align: center;
        font-size: 1.3rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(251, 191, 36, 0.1);
    }

    [dir="rtl"] .nav-menu .nav-link:hover {
        background: rgba(251, 191, 36, 0.15);
        color: #fbbf24;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.3);
    }

    [dir="rtl"] .hero-title {
        font-size: 2.5rem !important;
    }

    [dir="rtl"] .hero-subtitle {
        font-size: 1.1rem !important;
    }

    [dir="rtl"] .section-header h2 {
        font-size: 2.5rem !important;
    }

    [dir="rtl"] .service-card h3 {
        font-size: 1.5rem !important;
    }

    [dir="rtl"] .about-text h2 {
        font-size: 2.5rem !important;
    }

    [dir="rtl"] .about-stats {
        grid-template-columns: 1fr !important;
    }

    [dir="rtl"] .services-grid {
        grid-template-columns: 1fr !important;
    }

    [dir="rtl"] .footer-content {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* Arabic RTL Small Mobile Responsive */
    [dir="rtl"] .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }

    [dir="rtl"] .section-header h2 {
        font-size: 1.8rem !important;
    }

    [dir="rtl"] .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.5;
    }

    [dir="rtl"] .service-card h3 {
        font-size: 1.3rem !important;
    }

    [dir="rtl"] .service-card p {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    [dir="rtl"] .about-text h2 {
        font-size: 1.8rem !important;
    }

    [dir="rtl"] .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    [dir="rtl"] .contact-item h4 {
        font-size: 1rem !important;
    }

    [dir="rtl"] .contact-item p {
        font-size: 0.9rem !important;
    }

    [dir="rtl"] .btn {
        font-size: 0.9rem !important;
        padding: 10px 20px;
    }

    [dir="rtl"] .language-switch {
        font-size: 0.8rem !important;
        padding: 6px 12px;
    }

    [dir="rtl"] .logo-text h2 {
        font-size: 1.5rem !important;
    }

    [dir="rtl"] .logo-text span {
        font-size: 0.6rem !important;
    }

    [dir="rtl"] .compass-hero {
        width: 150px !important;
        height: 150px !important;
        font-size: 4rem !important;
    }

    [dir="rtl"] .compass-hero::before {
        width: 170px !important;
        height: 170px !important;
    }

    [dir="rtl"] .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    [dir="rtl"] .about-graphic {
        font-size: 4rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure sections have proper positioning for smooth scrolling */
section {
    scroll-margin-top: 80px;
}

/* Additional smooth scrolling support */
body {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    border: 2px solid #1a1a1a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 #1a1a1a;
}

/* Always show scrollbar */
html {
    overflow-y: scroll;
}

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

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

.service-card,
.about-text,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.service-card:hover .service-icon {
    transform: scale(1.1);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ef4444;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
}