:root {

    --bg-dark: #071422;
    --primary-color: #F3957A;
    --primary-hover: #e07b62;
    --text-light: #ffffff;
    --text-muted: #FFFFFF99;
    --card-bg: #071422;


    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;


    --transition-smooth: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition-smooth);

    background-color: transparent;
}

.header.scrolled {
    background-color: #FFFFFF1F;
    backdrop-filter: blur(80px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--text-light);
    font-size: 24px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-profile:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-switch {
    font-family: Arial, sans-serif;

    font-size: 14px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 745px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 17, 24, 0.8), rgba(10, 17, 24, 0.5), rgba(10, 17, 24, 0.9));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-top: -3rem;
    max-width: 800px;
}

.bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 6vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    z-index: -1;
    line-height: 1.2;
}

.subtitle {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    color: #CECDC6;
    font-size: 18px;
    max-width: 745px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 140, 113, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .bg-watermark {
        font-size: 8vw;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
}

.clients-logos {
    background-color: var(--bg-dark);
    padding: 80px 0;
    overflow: hidden;
}

.logos-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    width: fit-content;
    animation: scroll-logos 35s linear infinite;
}

.logos-slider:hover .logos-track {
    animation-play-state: paused;
}

.logo-slide {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
}

.logo-slide img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.logo-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.logos-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 991px) {
    .logo-slide {
        gap: 50px;
        padding: 0 25px;
    }

    .logo-slide img {
        height: 35px;
    }
}

@media (max-width: 576px) {
    .clients-logos {
        padding: 30px 0;
    }

    .logo-slide {
        gap: 40px;
        padding: 0 20px;
    }

    .logo-slide img {
        height: 25px;
        max-width: 120px;
    }

    .logos-slider {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.stats-section {
    padding: 120px 0;
    position: relative;
    text-align: center;

    background-image: url('../img/Dark Gradient 09.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
}



.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 70px;
}

.section-header .subtitle {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.section-header p {
    color: #EEE9D6;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    position: relative;
    padding: 0 20px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

.stat-item .plus {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-left: 2px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 991px) {
    .stats-grid {
        flex-wrap: wrap;
        row-gap: 50px;
    }

    .stat-item {
        flex: 0 0 50%;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-item:nth-child(odd)::after {
        display: block;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .stat-item {
        flex: 0 0 100%;
    }

    .stat-item::after {
        display: none !important;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }
}



.services-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.text-center {
    text-align: center;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 60px;
}


.service-card {
    background: #0D233B;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    background-image: url('../img/Ellipse 32.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(244, 140, 113, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(244, 140, 113, 0.05);
}


.icon-wrapper {
    height: 90px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.15) translateY(-5px);
}


.service-card h3 {
    font-size: 20px;
    font-weight: 400;
    font-family: var(--font-body);
    color: #EEE9D6;
    margin: 0;
    line-height: 1.4;
}


@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}


@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 480px) {
    .services-section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-card {
        padding: 25px 10px;
        border-radius: 15px;
    }

    .icon-wrapper {
        height: 50px;
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 13px;
    }
}



.projects-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.projects-slider-wrapper {
    position: relative;
    margin-top: 50px;
}


.project-card {
    position: relative;
    width: 100%;
    height: 450px;

    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}


.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 17, 24, 0.95) 0%, rgba(10, 17, 24, 0) 100%);
    pointer-events: none;
}


.project-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}

.category-badge {
    display: inline-block;
    background-color: #ffffff;
    color: var(--bg-dark);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.project-content h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin: 0;
}


.project-card:hover .project-img {
    transform: scale(1.08);
}


.custom-nav-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.custom-nav-btn::after {
    font-size: 18px;

    font-weight: bold;
}

.custom-nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}


.swiper-button-prev.custom-nav-btn {
    left: -20px;
}

.swiper-button-next.custom-nav-btn {
    right: -20px;
}


.view-all-wrapper {
    margin-top: 60px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
}


@media (max-width: 768px) {
    .project-card {
        height: 380px;
    }


    .custom-nav-btn {
        display: none;
    }
}

.project-card {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */


    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}


.project-card:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
    /* box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6); */
}


.projects-swiper:hover .swiper-slide:not(:hover) .project-card {
    /* opacity: 0.6; */
    transform: scale(0.98);
}


.projects-swiper {
    padding: 30px 15px !important;
    margin: -30px -15px !important;
}

.cta-section {
    padding: 150px 0;
    position: relative;
    background-color: var(--bg-dark);



    background-image: url('../img/Dark Gradient 09.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= ACCORDION HOVER EFFECT FOR SWIPER ================= */

.swiper-slide {
    transition: width 1s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

@media (min-width: 1024px) {
    .swiper-slide {
        width: calc((100% - 90px) / 4) !important;
    }

    .projects-swiper:hover .swiper-slide {
        width: calc(((100% - 90px) / 4) * 0.7) !important;
        /* opacity: 0.6; */
    }

    .projects-swiper:hover .swiper-slide:hover {
        width: calc(((100% - 90px) / 4) * 1.9) !important;
        opacity: 1;
        z-index: 10;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .swiper-slide {
        width: calc((100% - 50px) / 3) !important;
    }

    .projects-swiper:hover .swiper-slide {
        width: calc(((100% - 50px) / 3) * 0.7) !important;
        /* opacity: 0.6; */
    }

    .projects-swiper:hover .swiper-slide:hover {
        width: calc(((100% - 50px) / 3) * 1.6) !important;
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        width: calc((100% - 20px) / 2) !important;
    }
}

.project-content h3,
.category-badge {
    transition: all 0.4s ease;
}

.projects-swiper:hover .swiper-slide:not(:hover) .project-content h3 {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 24, 0.3);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content .subtitle {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.cta-content p {
    color: #EEE9D6;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}


.btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 40px;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    background: #FFFFFF1F;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    border: 1px solid var(--Glass-strock, #FFFFFF14);
    backdrop-filter: blur(80px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


@media (max-width: 991px) {
    .cta-section {
        padding: 120px 0;
    }

    .cta-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }


    .cta-content h2 br,
    .cta-content p br {
        display: none;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 80px 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .btn-glass {
        padding: 12px 25px;
        font-size: 15px;
    }
}


.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}




.main-footer {
    background: linear-gradient(135deg, #26313e 0%, #24303c 100%);
    padding: 84px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.main-footer .container {
    max-width: 1365px;
    padding-inline: 22px;
}

.footer-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.footer-brand {
    min-width: 0;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo img {
    display: block;
    width: 130px;
    height: auto;
}

.footer-brand .footer-subtitle {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.footer-brand h3 {
    margin: 0 0 12px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
}

.footer-brand p {
    margin: 0;
    color: #CECDC6;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.footer-content {
    min-width: 0;
}

.footer-newsletter {
    margin-bottom: 67px;
}

.footer-newsletter h4,
.footer-social h4 {
    margin: 0;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

.footer-newsletter h4 {
    margin-bottom: 17px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.newsletter-form input {
    width: 100%;
    height: 51px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 28px;
    outline: none;
    background-color: #0D233B;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.newsletter-form input::placeholder {
    color: #F2F2F2;
    opacity: 0.95;
}

.newsletter-form input:focus {
    border-color: rgba(243, 149, 122, 0.75);
    box-shadow: 0 0 0 3px rgba(243, 149, 122, 0.10);
}

.newsletter-email {
    position: relative;
    min-width: 0;
}

.newsletter-email input {
    padding-right: 104px;
}

.newsletter-email button {
    position: absolute;
    top: 6px;
    right: 7px;
    height: 39px;
    padding: 0 14px;
    border: 0;
    border-radius: 22px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-email button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px;
    align-items: start;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin: 0 0 22px;
}

.footer-col ul li:last-child {
    margin-bottom: 0;
}

.footer-col ul a {
    display: inline-block;
    color: #F5F5F5;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    transition: var(--transition-smooth);
}

.footer-col ul a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social h4 {
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #CECDC6;
    transition: var(--transition-smooth);
}

.social-links img {
    display: block;
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 49px;
    padding-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: #EEE9D6;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.reveal-col {
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 1100px) {
    .main-footer {
        padding-top: 70px;
    }

    .footer-shell {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 40px;
    }

    .footer-links-grid {
        gap: 25px;
    }

    .social-links {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .footer-shell {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-newsletter {
        margin-bottom: 50px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 42px;
    }

    .footer-social {
        text-align: left;
    }
}

@media (max-width: 650px) {
    .main-footer {
        padding: 60px 0 24px;
    }

    .main-footer .container {
        padding-inline: 20px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .footer-links-grid {
        gap: 35px 24px;
    }

    .footer-bottom {
        margin-top: 42px;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col ul a:hover {
        transform: none;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.fadeInUp {
    transform: translateY(40px);
}

.fadeInLeft {
    transform: translateX(-40px);
}

.fadeInRight {
    transform: translateX(40px);
}


.cta-section {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shader-bg video,
.shader-bg iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 24px;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.btn-glass {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}


.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: block;
    text-align: left;
    isolation: isolate;
    display: flex;
    align-items: flex-end;

}


.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    z-index: -3;
}


.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

    background:
        linear-gradient(90deg,
            rgba(7, 20, 34, 0.94) 0%,
            rgba(7, 20, 34, 0.70) 27%,
            rgba(7, 20, 34, 0.38) 55%,
            rgba(7, 20, 34, 0.62) 100%),
        linear-gradient(180deg,
            rgba(7, 20, 34, 0.25) 0%,
            rgba(7, 20, 34, 0.10) 45%,
            rgba(7, 20, 34, 0.92) 100%);
}


.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    height: 90%;
    margin: 0 auto;

    padding:
        clamp(125px, 16vh, 175px) 60px clamp(50px, 8vh, 85px);

    display: grid;
    grid-template-rows: auto 1fr auto;
}


.hero-intro {
    position: relative;
    z-index: 3;
    grid-row: 1;
    justify-self: start;
}

.hero-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.hero .hero-heading {
    margin: 0;
    color: #ffffff;
    font-size: 58px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.5px;
}


.hero-watermark {
    position: absolute;
    z-index: 0;
    top: 31%;
    left: 23%;

    width: max-content;
    pointer-events: none;
    user-select: none;
}

.watermark-top {
    display: block;
    margin-left: 10px;
    margin-bottom: -8px;

    color: rgba(255, 255, 255, 0.14);
    font-size: clamp(20px, 2vw, 34px);
    font-weight: 300;
    line-height: 1;
}

.watermark-main {
    display: flex;
    align-items: center;
    line-height: 0.85;
    white-space: nowrap;
}

.watermark-live {
    color: rgba(255, 255, 255, 0.13);
    font-size: clamp(48px, 5.5vw, 88px);
    font-weight: 600;
    letter-spacing: -4px;
}

.watermark-vivid {
    margin-left: 15px;
    color: rgba(243, 149, 122, 0.33);
    font-size: clamp(75px, 9vw, 145px);
    font-weight: 400;
    letter-spacing: 5px;
}

.watermark-experience {
    display: block;
    margin-top: 7px;
    margin-left: 47%;

    color: rgba(255, 255, 255, 0.11);
    font-size: clamp(7px, 0.6vw, 10px);
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-bottom {
    position: relative;
    z-index: 3;
    grid-row: 3;

    display: grid;
    grid-template-columns:
        minmax(300px, 470px) minmax(360px, 490px);

    justify-content: space-between;
    align-items: end;
    gap: clamp(50px, 10vw, 160px);
}

/* Bottom-left feature items */

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 17px;
    max-width: 445px;
}

.hero-feature {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
}

.hero-feature-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feature-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.hero .hero-feature p {
    width: 100%;
    max-width: 365px;
    margin: 0;

    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

/* Bottom-right text */

.hero-copy {
    width: 100%;
    max-width: 490px;
    justify-self: end;
}

.hero .hero-copy p {
    width: 100%;
    max-width: none;
    margin: 0 0 23px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}


.hero .hero-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 13px;
}

.hero .hero-buttons .btn {
    min-height: 42px;
    padding: 15px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
}

.hero .hero-buttons .btn-primary {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.hero .hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 991px) {

    .hero {
        height: auto;
        min-height: 850px;
    }

    .hero-content {
        min-height: 850px;
        padding: 125px 25px 55px;
    }

    .hero-watermark {
        top: 28%;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero .hero-feature p {
        max-width: none;
        font-size: 13px;
    }

    .hero-kicker {
        font-size: 16px;
    }
}


@media (max-width: 767px) {

    .hero {
        height: auto;
        min-height: 900px;
    }

    .hero-content {
        min-height: 900px;
        padding: 115px 20px 45px;
        display: flex;
        flex-direction: column;
    }

    .hero-intro {
        width: 100%;
        margin-top: 50px;
    }

    .hero-watermark {
        top: 220px;
        left: 50%;
        width: 100%;
        padding: 0 20px;
        transform: translateX(-50%);
        text-align: center;
    }

    .watermark-top {
        margin-left: 0;
        font-size: 18px;
    }

    .watermark-main {
        justify-content: center;
    }

    .watermark-live {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .watermark-vivid {
        margin-left: 8px;
        font-size: 58px;
        letter-spacing: 2px;
    }

    .watermark-experience {
        margin-left: 40%;
    }

    .hero-bottom {
        width: 100%;
        margin-top: 150px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 35px;
    }

    .hero-features,
    .hero-copy {
        width: 100%;
        max-width: none;
    }

    .hero .hero-copy p {
        font-size: 12px;
    }

    .hero .hero-buttons {
        width: 100%;
    }

    .btn-profile {
        font-size: 13px;
    }
}

@media (max-width: 480px) {

    .hero {
        min-height: 930px;
    }

    .hero-content {
        min-height: 930px;
        padding-inline: 18px;
    }

    .hero .hero-heading {
        font-size: 33px;
    }

    .watermark-main {
        flex-direction: column;
        gap: 8px;
    }

    .watermark-live {
        font-size: 35px;
    }

    .watermark-vivid {
        margin-left: 0;
        font-size: 65px;
    }

    .watermark-experience {
        margin-left: 0;
        text-align: center;
    }

    .hero .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .hero-buttons .btn {
        width: 100%;
    }
}

/* =========================================================
   ARABIC / RTL OVERRIDES
   ========================================================= */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    font-family: var(--font-body);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

html[dir="rtl"] .header-container,
html[dir="rtl"] .header-actions,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .hero-bottom,
html[dir="rtl"] .hero-features,
html[dir="rtl"] .footer-shell,
html[dir="rtl"] .footer-links-grid {
    direction: rtl;
}

html[dir="rtl"] .header-container {
    position: relative;
}

html[dir="rtl"] .nav-links a,
html[dir="rtl"] .btn-profile,
html[dir="rtl"] .btn,
html[dir="rtl"] .btn-glass {
    letter-spacing: 0;
}

html[dir="rtl"] .lang-switch {
    direction: ltr;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border-radius: 50%;
    /* background: rgba(255, 255, 255, 0.08); */
    color: #fff;
    font-weight: 600;
}

html[dir="rtl"] .hero {
    text-align: right;
}

html[dir="rtl"] .hero-overlay {
    background:
        linear-gradient(270deg,
            rgba(7, 20, 34, 0.94) 0%,
            rgba(7, 20, 34, 0.70) 27%,
            rgba(7, 20, 34, 0.38) 55%,
            rgba(7, 20, 34, 0.62) 100%),
        linear-gradient(180deg,
            rgba(7, 20, 34, 0.25) 0%,
            rgba(7, 20, 34, 0.10) 45%,
            rgba(7, 20, 34, 0.92) 100%);
}

html[dir="rtl"] .hero-intro {
    justify-self: start;
    text-align: right;
}

html[dir="rtl"] .hero .hero-heading {
    letter-spacing: 0;
}

html[dir="rtl"] .hero-feature,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .project-content,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-newsletter,
html[dir="rtl"] .footer-col {
    text-align: right;
}

html[dir="rtl"] .hero .hero-buttons {
    justify-content: flex-start;
}

/* Reverse directional reveal animations for RTL */
html[dir="rtl"] .fadeInLeft {
    transform: translateX(40px);
}

html[dir="rtl"] .fadeInRight {
    transform: translateX(-40px);
}

html[dir="rtl"] .animate.show {
    transform: translate(0, 0);
}

/* Logos are images; keep their marquee math LTR to prevent blank gaps */
html[dir="rtl"] .logos-slider,
html[dir="rtl"] .logos-track,
html[dir="rtl"] .logo-slide {
    direction: ltr;
}

.logos-track {
    animation: none;
}

/* Keep numbers and + symbol in the expected 500+ order */
html[dir="rtl"] .stat-number {
    direction: ltr;
}

html[dir="rtl"] .stat-item:not(:last-child)::after {
    right: auto;
    left: 0;
}

html[dir="rtl"] .stat-item .plus {
    margin-left: 2px;
    margin-right: 0;
}

html[dir="rtl"] .project-content {
    left: auto;
    right: 0;
}


html[dir="rtl"] .btn-view-all,
html[dir="rtl"] .btn-glass {
    flex-direction: row;
}

/* Footer form */
html[dir="rtl"] .newsletter-form input {
    text-align: right;
}

html[dir="rtl"] .newsletter-email input {
    direction: ltr;
    text-align: right;
    padding-right: 22px;
    padding-left: 104px;
}

html[dir="rtl"] .newsletter-email button {
    right: auto;
    left: 7px;
}

html[dir="rtl"] .footer-col ul a:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .footer-social {
    text-align: right;
}

/* Mobile navigation controlled by the .open class from main.js */
@media (max-width: 991px) {
    html[dir="rtl"] .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        inset-block-start: calc(100% + 12px);
        inset-inline: 0;
        width: 100%;
        padding: 18px 20px;
        gap: 4px;
        text-align: right;
        background-color: rgba(10, 17, 24, 0.97);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    html[dir="rtl"] .nav-links.open a {
        width: 100%;
        padding: 10px 4px;
    }

    html[dir="rtl"] .mobile-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    html[dir="rtl"] .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    html[dir="rtl"] .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    html[dir="rtl"] .hero-intro,
    html[dir="rtl"] .hero-copy,
    html[dir="rtl"] .hero-features {
        text-align: right;
    }

    html[dir="rtl"] .footer-social {
        text-align: right;
    }
}

@media (max-width: 480px) {
    html[dir="rtl"] .hero .hero-buttons {
        align-items: stretch;
    }

    html[dir="rtl"] .footer-links-grid,
    html[dir="rtl"] .footer-social,
    html[dir="rtl"] .footer-brand {
        text-align: center;
    }

    html[dir="rtl"] .footer-col ul a:hover {
        transform: none;
    }
}
