/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Arial', sans-serif;
    direction: rtl;
}

body {
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Header */
header {
    background-color: #005c99;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

header img {
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

header nav ul li a:hover {
    color: white;
}

header nav ul li a:hover::after {
    width: 100%;
}

li
{
    white-space: nowrap;
}
/* Navigation Styles */
.navbar {
    background-color: #005c99;
    padding: 1rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

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

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo {
    height: auto;
    max-width: 400px;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    z-index: 100;
}

.hamburger-icon {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -9px;
}

.hamburger-icon::after {
    bottom: -9px;
}

.mobile-menu-btn.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-btn.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 92, 153, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-menu.active {
    display: flex;
    transform: translateX(0);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}


@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-links li {
        width: 100%;
        max-width: 400px;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 1.4rem;
        padding: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);

    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: 5rem 1rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links li {
        max-width: 250px;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        position: static;
        transform: none;
        padding: 0;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
        transition: opacity 0.3s ease;
    }

    .nav-links a:hover {
        opacity: 0.8;
    }
}

.lang-switch {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-switch i {
    font-size: 1.2rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem;
        height: 80px;
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }

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

    .logo {
        max-width: 140px;
    }

}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
        height: 70px;
    }

    .logo {
        max-width: 130px;
    }

    .mobile-menu-btn {
        padding: 0.6rem;
    }

    .hamburger-icon,
    .hamburger-icon::before,
    .hamburger-icon::after {
        width: 26px;
    }

    .lang-switch {
        padding: 0.6rem 0.8rem;
        min-width: 45px;
        justify-content: center;
    }

    .nav-links {
        gap: 1.8rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.7rem 0;
    }
}

/* RTL Support for Mobile Navigation */
[dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
}

[dir="rtl"] .nav-menu.active {
    right: auto;
    left: 0;
}

[dir="rtl"] .nav-menu {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: auto;
}

/* Hero Section */
#home {
    padding-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button {
    display: inline-block;
    background-color: #005c99;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button:hover {
    background-color: #007acc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 92, 153, 0.3);
}

/* Services Section */
#services {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item h3 {
    color: #005c99;
    margin-bottom: 15px;
}

/* About Section */
#about {
    padding: 80px 0;
    background-color: #f8f9fa;
}

#about .container {
    max-width: 800px;
    text-align: center;
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    color: #005c99;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
}

.section-subtitle {
    color: #666;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-icon i {
    color: #fff;
    font-size: 24px;
}

.contact-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.contact-text {
    color: #666;
    font-size: 1rem;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: auto;
    justify-self: start;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 10px;
    }

    .contact-form-wrapper {
        width: 97% !important;
        margin: 0 auto;
        padding: 20px;
    }
    
    .submit-btn {
        width: 100%;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    #contact .container,
    .contact-page .container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    #contact {
        padding: 40px 15px;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    header nav ul {
        gap: 15px;
    }

    header nav ul li a {
        font-size: 16px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .service-item {
        padding: 20px;
    }
}

/* RTL Support for Mobile Navigation */
[dir="rtl"] .nav-menu {
    right: auto;
    left: -100%;
}

[dir="rtl"] .nav-menu.active {
    right: auto;
    left: 0;
}

[dir="rtl"] .nav-menu {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: auto;
}

/* Hero Sections */
.about-hero,
.services-hero,
.contact-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 92, 153, 0.9), rgba(0, 92, 153, 0.8));
    color: white;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-text h2 {
    font-size: 2rem;
    color: #005c99;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.values-section {
    padding: 4rem 1.5rem;
    background: #f8f9fa;
}

.values-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #005c99;
    margin-bottom: 3rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: #005c99;
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.4rem;
    color: #005c99;
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Services Page */
.services-grid {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    padding-bottom:20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;


}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #005c99;
    margin-bottom: 1.5rem;
}

.service-card h2 {
    font-size: 1.5rem;
    color: #005c99;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #005c99;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background: #004a7a;
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
}

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

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h2 {
    font-size: 1.8rem;
    color: #005c99;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.2rem;
    color: #005c99;
    margin-top: 0.3rem;
}

.info-item p {
    color: #333;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h2 {
    font-size: 1.8rem;
    color: #005c99;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

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

.submit-btn {
    background: #005c99;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #004a7a;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-content {
        padding-top: 80px;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .about-image {
        order: -1;
    }

    .page-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding-top: 70px;
    }

    .about-content,
    .contact-content {
        padding: 2rem 0;
    }

    .page-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

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

/* Footer */
footer {
    background: #005c99;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: #48c774;
}

.notification.error {
    background-color: #f14668;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #005c99;
    outline: none;
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #005c99;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #004d80;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

[dir="rtl"] .notification {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    .notification {
        width: calc(100% - 40px);
        text-align: center;
    }
}

/* Form Alert Feedback */
.form-alert {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.form-alert.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-alert.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-message {
    margin: 0;
    font-size: 0.95rem;
}

/* Spinner for submit button */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .spinner {
    display: inline-block;
}

.number-ltr {
    display: inline-block;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-form-wrapper,
    #contact .contact-form-wrapper {
        width: 97% !important;
        margin: 0 auto;
        padding: 20px;
    }
    .contact-form-wrapper {
        width: 97% !important;
        margin: 0 auto;
        padding: 20px;
    }
}
