* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #1c2b3a;
    line-height: 2;
}

html[lang="ar"] [data-ar] {
    font-family: "Lateef", serif;
}

html[lang="en"] #languageBtn {
    font-family: "Lateef", serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


header {
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    position: fixed;                                
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: cover;
    border-radius: 50%;
}

.brand-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s;
}

html[lang="ar"] .brand-name {
    font-size: 24px;
}

.brand-logo:hover .brand-name {
    color: #7dd3fc;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s, border-color 0.2s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

html[lang="ar"] #mainNav a {
    font-size: 19.5px;
}

nav a:hover {
    color: #ffffff;
    border-bottom-color: #38bdf8;
}

nav a[aria-current="page"] {
    color: #ffffff;
    border-bottom-color: #38bdf8;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 4px;
}

#languageBtn {
    background-color: #1e293b;
    color: white;
    border: 1px solid #334155;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s;
}

#languageBtn:hover {
    background-color: #334155;
    border-color: #475569;
}


.hero {
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 100svh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    text-align: start;
    line-height: 1.6;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% 0;
    z-index: 0;
    background:
        linear-gradient(rgba(16, 45, 77, 0.55), rgba(23, 101, 138, 0.55)),
        url("assets/optimized/2.jpg") center / cover no-repeat;
    transform: translate3d(0, var(--hero-bg-offset, 0px), 0);
    will-change: transform;
    pointer-events: none;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.welcome {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 19.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    margin-bottom: 22px;
    backdrop-filter: blur(5px);
}

.welcome-indicator {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
    animation: welcome-pulse 1.8s ease-in-out infinite;
}

@keyframes welcome-pulse {
    50% {
        opacity: 0.45;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: clamp(54px, 7.5vw, 84px);
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-text {
   max-width: 620px;
    margin: 0 0 30px; 
    color: #e1edf5;
    font-size: 27px;
    line-height: 1.8;
    text-align: start; 
}

.scroll-indicator {
    position: absolute;
    z-index: 1;
    bottom: 28px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    text-decoration: none;
    opacity: 0.75;
    transform: translateX(-50%);
    transition: opacity 0.2s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.scroll-track {
    width: 22px;
    height: 38px;
    display: flex;
    justify-content: center;
    padding: 5px;
    border: 2px solid #94a3b8;
    border-radius: 999px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    animation: scroll-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        opacity: 0.45;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

.button {
    display: inline-block;
    background-color: #ffffff;
    color: #123456;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
}

.button:hover {
    background-color: #dcecf5;
    transform: translateY(-2px);
}


.section {
    padding: 80px 0;
    text-align: center;
}

.image-hero-page .hero::before {
    background:
        linear-gradient(rgba(13, 39, 68, 0.62), rgba(11, 28, 46, 0.78)),
        url("assets/optimized/5.jpg") center / cover no-repeat;
}

.about-page .hero::before {
    background:
        linear-gradient(rgba(13, 39, 68, 0.62), rgba(11, 28, 46, 0.78)),
        url("assets/optimized/11.jpg") center / cover no-repeat;
}

.image-hero-page .services-hero {
    min-height: 75vh;
    padding: 140px 0 80px;
}

.services-hero h1 {
    font-size: clamp(48px, 7vw, 80px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-intro {
    max-width: 720px;
    color: #e1edf5;
    font-size: 24px;
    line-height: 1.8;
}

.services-list {
    background-color: #ffffff;
}

.about-values {
    background-color: #f5f8fb;
}

.about-values-intro {
    max-width: 760px;
    margin: 0 auto;
    color: #475569;
    font-size: 20px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 38px;
    text-align: start;
}

.value-card {
    padding: 28px 24px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
}

.value-card h3 {
    margin-bottom: 10px;
    color: #17658a;
    font-size: 25px;
    line-height: 1.5;
}

.value-card p {
    color: #334155;
    font-size: 19px;
    line-height: 1.7;
}

.about-cta {
    padding: 64px 0;
    background-color: #102d4d;
    color: #ffffff;
    text-align: center;
}

.about-cta h2 {
    margin-bottom: 12px;
    font-size: 36px;
}

.about-cta p {
    margin-bottom: 24px;
    color: #dbeafe;
    font-size: 20px;
}

.about-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.about-cta .button-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #94a3b8;
}

.about-cta .button-secondary:hover {
    background-color: #1e293b;
}

.section h2 {
    color: #123456;
    font-size: 32px;
    margin-bottom: 20px;
}

.section > .container > p {
    max-width: 800px;
    margin: 0 auto;
}

.features {
    background-color: #f5f8fb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px 22px;
    background-color: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    text-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(16, 45, 77, 0.09);
}

.feature-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #17658a;
    background-color: #e8f4fa;
    border-radius: 12px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: 8px;
    color: #123456;
    font-size: 22px;
    line-height: 1.5;
}

.feature-card p {
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    padding: 30px 20px;
    background-color: #f5f8fb;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-card-image {
    display: block;
    width: 100%;
    height: 280px;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 7px;
}

.service-card h3 {
    color: #17658a;
    margin-bottom: 12px;
    font-size: 28.08px;
    line-height: 1.5;
}

.services-list .service-card .service-description {
    font-size: 24px;
    line-height: 1.6;
}

.contact-card {
    background-color: #f5f8fb;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px auto;
    max-width: 600px;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: #123456;
}

.contact-card a {
    color: #1686b0;
    text-decoration: none;
    overflow-wrap: anywhere;
}


footer {
    background-color: #102d4d;
    color: white;
    padding: 25px 0;
    text-align: center;
}


.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background-color: #cbd5e1;
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .container {
        width: 92%;
        max-width: 100%;
    }

    .navbar {
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
    }

    .brand-logo {
        gap: 8px;
    }

    .brand-logo img {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .brand-name {
        font-size: 14px;
    }

    html[lang="ar"] .brand-name {
        font-size: 21px;
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .navbar nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 4;
        background-color: #0f172a;
        border-top: 1px solid #1e293b;
    }

    .navbar nav.open {
        display: flex;
    }

    .navbar nav a {
        display: block;
        padding: 12px 10px;
        text-align: center;
        border-bottom: 1px solid #1e293b;
    }

    #languageBtn {
        order: 3;
        padding: 9px 12px;
    }

    .hero {
        padding: 65px 0;
    }

    .image-hero-page .services-hero {
        min-height: 75vh;
        padding: 120px 0 64px;
    }

    .services-hero h1 {
        font-size: 48px;
    }

    .services-intro {
        font-size: 21px;
    }

    .scroll-indicator {
        bottom: 18px;
    }

    .scroll-label {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 45px;
        line-height: 1.4;
    }

    .hero-text {
        font-size: 24px;
        line-height: 1.7;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .feature-card {
        padding: 22px 16px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
    }

    .about-cta {
        padding: 48px 0;
    }

    .about-cta h2 {
        font-size: 30px;
    }

    .service-card-image {
        height: 240px;
    }

    .section {
        padding: 45px 0;
    }

    .section h2 {
        font-size: 26px;
    }

    .contact-card {
        width: 100%;
        padding: 20px 12px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-indicator,
    .feature-card,
    .scroll-dot {
        animation: none;
        transition: none;
    }
}
.features {
    background-color: #ffffff;
    padding: 70px 0 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    padding: 34px 22px 30px;
    background-color: #f5f8fb;
    border: 1px solid #e5eaf0;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #17658a, #38bdf8);
    transform: scaleX(0.25);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    background-color: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 45, 77, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    color: #17658a;
    background-color: #e0f2fb;
    border-radius: 18px;
    transition: color 0.3s, background-color 0.3s;
}

.feature-icon svg {
    width: 34px;
    height: 34px;
}

.feature-card:hover .feature-icon {
    color: #ffffff;
    background-color: #17658a;
}

.feature-card h3 {
    color: #123456;
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.feature-card p {
    color: #52667a;
    font-size: 15px;
    line-height: 1.8;
}

html[lang="ar"] .feature-card h3 {
    font-size: 27px;
}

html[lang="ar"] .feature-card p {
    font-size: 21px;
    line-height: 1.6;
}

@media (max-width: 1024px) {

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .features {
        padding: 45px 0 50px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}