/* ********************************************************************************* */
/* ---------------- 1. تعريف خط Somar المحلي ---------------- */
/* ********************************************************************************* */
@font-face {
    font-family: 'Somar';
    src: url('fonts/ArbFONTS-Somar-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Somar';
    src: url('fonts/ArbFONTS-Somar-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ********************************************************************************* */
/* ---------------- 2. الألوان الأساسية والمتغيرات ---------------- */
/* ********************************************************************************* */
:root {
    --primary-color: #0B203B;
    --accent-color: #F9C014;
    --text-light: #ffffff;
    --text-dark: #333333;
    --gray-light: #f8f8f8;
    --gray-medium: #F4F4F4;
    --gray-dark: #666666;

    --title-underline-w: 80px;
    --title-underline-h: 12px;

    --icon-wrap-w: 60px;
    --icon-wrap-h: 63px;
    --icon-circle: 56px;
}

/* ********************************************************************************* */
/* ---------------- 3. تنسيقات عامة ---------------- */
/* ********************************************************************************* */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Somar', 'Cairo', sans-serif;
}

html, body { overflow-x: hidden; }

body {
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.6;
    min-width: 320px;
    font-size: 16px;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ********************************************************************************* */
/* ---------------- 4. تأثيرات الظهور المحسنة ---------------- */
/* ********************************************************************************* */
.reveal-item { opacity: 0; }
.reveal-item.visible { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.feature-item,
.project-card,
.testimonial-step {
    position: relative;
    overflow: hidden;
}

/* ********************************************************************************* */
/* ---------------- 5. الأزرار ---------------- */
/* ********************************************************************************* */
.btn {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
}
.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.contact-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.4rem 1.8rem !important;
    border-radius: 30px !important;
    font-size: 1.2rem !important;
    color: #fff !important;
    background: var(--accent-color) !important;
    min-width: 150px !important;
    border: 2px solid transparent !important;
    height: auto !important;
    transform: none !important;
}
.contact-btn:hover {
    background: transparent !important;
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: none !important;
}

.dark-text { color: var(--primary-color) !important; }
.small-btn { padding: 10px 18px; font-size: 1.1rem; }

/* ********************************************************************************* */
/* ---------------- 6. شريط التنقل ---------------- */
/* ********************************************************************************* */
.navbar {
    position: absolute;
    top: 0;
    inset-inline: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 45px; width: auto; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.contact-btn) {
    color: #0B203B !important;
    font-size: 1.5rem;
    padding: 8px 0;
    font-weight: 400;
    position: relative;
    white-space: nowrap;
}

.nav-links a:not(.contact-btn):hover { color: var(--accent-color) !important; }
.nav-links a.active { color: var(--accent-color) !important; }

.nav-links a:not(.contact-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links a:not(.contact-btn):hover::after,
.nav-links a:not(.contact-btn).active::after {
    width: 100%;
}

/* زر قائمة الجوال */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}
.navbar.scrolled .logo-img { content: url('../images/logo white.svg'); }
.navbar.scrolled .nav-links a:not(.contact-btn) { color: var(--text-light) !important; }
.navbar.scrolled .mobile-menu-btn span { background: var(--text-light) !important; }

/* ********************************************************************************* */
/* ---------------- 7. قسم البطل (Hero) ---------------- */
/* ********************************************************************************* */
.hero-section {
    min-height: 95vh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: clamp(85px, 10vh, 120px);
    padding-bottom: 60px;
}

.hero-section::after { content: none; }
.hero-pattern{
    position: absolute;
    top: 80px;
    right: 0;
    width: min(520px, 40vw);
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden; 
}

.hero-pattern-svg{
    position: absolute;
    inset: 0;        
    width: 100%;
    height: 100%;
    display: block;
}


.hero-pattern-svg path{
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes heroDrawErase {
    0%   { stroke-dashoffset: var(--path-len); } 
    40%  { stroke-dashoffset: 0; }            
    55%  { stroke-dashoffset: 0; }             
    95%  { stroke-dashoffset: var(--path-len); }
    100% { stroke-dashoffset: var(--path-len); }
}

.hero-pattern-svg path.draw-path{
    animation: heroDrawErase 8s ease-in-out infinite;
}


.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(18px, 4vw, 60px);
    align-items: center;
}

.hero-content { color: var(--text-dark); text-align: right; }

.hero-content h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero-content p {
    font-size: clamp(1.15rem, 1.9vw, 1.6rem);
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--text-dark);
}

.hero-visual {
    width: 100%;
    min-height: clamp(240px, 38vw, 520px);
    background-image: url('../images/destination_hero2.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
}

/* ********************************************************************************* */
/* ---------------- قسم لماذا نحن فوق الهيرو ---------------- */
/* ********************************************************************************* */
.why-us-overlay {
    background-color: #ffffff;
    padding: 35px 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    width: 90%;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
}

.why-us-content {
    text-align: center;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-content h2 {
    font-size: clamp(2.1rem, 3.2vw, 3.2rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

:is(.why-us-content h2, .yellow-curve-section h2, .portfolio h2, .contact h2, .trusted-logos-title)::after {
    content: '';
    position: absolute;
    width: var(--title-underline-w);
    height: var(--title-underline-h);
    background-image: url('../images/line-text-pattern.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.why-us-content h2::after {
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
}

.why-us-content .subtitle.limited-width {
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    color: var(--text-dark);
    margin-bottom: 45px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    text-align: center;
    padding: 35px 25px;
}

.icon-container {
    width: var(--icon-wrap-w);
    height: var(--icon-wrap-h);
    position: relative;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-circle-border {
    width: var(--icon-circle);
    height: var(--icon-circle);
    position: absolute;
    border-radius: 9999px;
    border: 1px #F9C014 solid;
    left: 0;
    top: 6px;
}

.icon-circle-bg {
    width: var(--icon-circle);
    height: var(--icon-circle);
    position: absolute;
    background: #FDF4D7;
    border-radius: 9999px;
    left: 3px;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-item .icon-container i {
    font-size: 1.8rem;
    color: var(--accent-color);
    position: relative;
    z-index: 3;
}

.feature-item h3 {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 1.3rem;
    text-align: center;
}

/* ********************************************************************************* */
/* ---------------- 8. قسم الخدمات ---------------- */
/* ********************************************************************************* */
.yellow-curve-section {
    padding: 100px 0 70px 0;
    position: relative;
    width: 100%;
    overflow: visible;
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto 12%;
}

.yellow-curve-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    height: 280px;
    background-image: url('../images/line-pattern2.svg');
    background-repeat: repeat-x;
    background-position: center;
    background-size: cover;
    z-index: 1;
}

.yellow-curve-section .container {
    text-align: center;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    overflow: visible;
}

.swiper-outer-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.yellow-curve-section h2 {
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    color: var(--primary-color);
    margin-bottom: 55px;
    font-weight: 700;
    position: relative;
}
.yellow-curve-section h2::after {
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
}

.mySwiper {
    width: 100%;
    padding: 0 40px;
    position: relative;
    margin-top: 35px;
}

.mySwiper .swiper-slide {
    overflow: visible;
    height: auto !important;
    display: flex;
}

.mySwiper .swiper-pagination {
    position: relative !important;
    margin-top: 30px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    background: #fff;
    border-radius: 50%;
    width: 55px !important;
    height: 55px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    top: 50% !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
    z-index: 3;
}

.swiper-button-next { left: -65px !important; right: auto !important; }
.swiper-button-prev { right: -65px !important; left: auto !important; }

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 22px !important;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.swiper-pagination-bullet { width: 13px; height: 13px; }
.swiper-pagination-bullet-active { background: var(--accent-color) !important; }

.service-card {
    position: relative;
    background-color: var(--primary-color);
    padding: 10px 28px 28px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
    margin-top: 55px;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 9999px;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0B203B;
    border-radius: 9999px;
    z-index: 2;
}

.service-card i {
    position: absolute;
    top: -30px;
    left: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: var(--accent-color);
    z-index: 3;
}

.service-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.service-card p {
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.25rem;
    flex-grow: 1;
}

.service-card a {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    transition: color 0.3s ease;
}
.service-card a:hover { color: #ffffff; }

.mySwiper .swiper-wrapper { align-items: stretch; }

/* ********************************************************************************* */
/* ---------------- 10. قسم الأعمال ---------------- */
/* ********************************************************************************* */
.portfolio { position: relative; padding: 0; }

.portfolio-background {
    height: 420px;
    background: url('../images/project_image .svg') center/cover no-repeat;
    border-top-left-radius: 50% 10%;
    border-top-right-radius: 50% 10%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px 0 220px;
}

.portfolio-background .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.portfolio h2 {
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    position: relative;
}
.portfolio h2::after {
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
}

.portfolio .subtitle {
    font-size: 1.5rem;
    color: var(--gray-dark);
    margin-bottom: 0;
    line-height: 1.7;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: -160px;
    position: relative;
    z-index: 3;
    margin-bottom: 60px;
}

.project-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: right;
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.project-card img {
    width: 100%;
    height: 270px;
    object-fit: contain;         
    object-position: center;      
    background: #fff;             
    transition: transform 0.3s ease;
}

.project-card:hover img { transform: scale(1.1); }

.project-info { padding: 30px; }

.project-info h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.project-info p {
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 1.2rem;
}

.project-card .project-info .btn.primary-btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.portfolio-swiper-outer{
    margin-top: -160px;    
    position: relative;
    z-index: 3;
    margin-bottom: 60px;
    overflow: visible;
}

.portfolioSwiper{
    width: 100%;
    padding: 0 40px;        
    position: relative;
    margin-top: 0;
}

.portfolioSwiper .swiper-slide{
    overflow: visible;
    height: auto !important;
    display: flex;
}

.portfolioSwiper .swiper-slide .project-card{
    width: 100%;
    height: 100%;
}

.portfolioSwiper .swiper-wrapper{
    align-items: stretch;
}

.portfolioSwiper .swiper-pagination{
    position: relative !important;
    margin-top: 30px !important;
}

/* ********************************************************************************* */
/* ---------------- 12. قسم التواصل ---------------- */
/* ********************************************************************************* */
.contact {
    padding: 90px 0;
    background-color: #FFF;
}

.contact h2 {
    font-size: clamp(2.1rem, 3.2vw, 3.2rem);
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}
.contact h2::after {
    bottom: -10px;
    right: 10%;
    transform: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 55px;
    align-items: start;
}

.contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.contact-intro { text-align: right; margin-bottom: 45px; }
.contact-intro p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--gray-dark);
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 35px;
    text-align: right;
}

.contact .contact-item .icon-container i { color: var(--accent-color); }

.contact-item .icon-container {
    margin: 0;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 1.4rem;
}

.contact-item p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

.contact-form {
    background: var(--text-light);
    padding: 45px;
    border-radius: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group { margin-bottom: 25px; text-align: right; }

.contact-form .btn.primary-btn {
    display: block;
    width: 100%;
    margin: 15px auto 0;
    box-sizing: border-box;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(251, 194, 19, 0.1);
}

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

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23041E3C'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 18px;
    padding-left: 50px;
}

/* ********************************************************************************* */
/* ---------------- 13. الفوتر ---------------- */
/* ********************************************************************************* */
.main-footer {
    background: url('../images/footer_image 4.svg') center/cover no-repeat;
    color: var(--text-light);
    padding: 60px 0 50px 0;
    position: relative;
    min-height: 130px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    column-gap: clamp(30px, 8vw, 180px);
    row-gap: 35px;
    margin: 25px auto;
    padding: 0 20px;
}


.footer-column {
    flex: 0 1 auto;
    min-width: 230px;
    text-align: right;
}


.brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 220px;
    height: auto;
    margin-right: 12px;
    margin-bottom: 25px;
}

.footer-main-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    text-align: right;
    width: 100%;
    margin-right: 12px;
}

.footer-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: right;
    width: 100%;
    margin-right: 12px;
}

.contact-column h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
    margin-top: 18px;
    font-weight: 700;
}
.contact-column h4:first-child { margin-top: 0; }

.contact-column p {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 10px;
}

.social-column {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-column h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    padding: 25px 0 0 0;
    margin-top: 25px;
}

.footer-copyright p {
    font-size: 1.1rem;
    color: #fff;
    margin: 0;
    opacity: 0.9;
}

/* ********************************************************************************* */
/* ---------------- قسم شعارات عملائنا (Splide) ---------------- */
/* ********************************************************************************* */
.trusted-logos{
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.trusted-logos-title{
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    position: relative;
    margin: 0;
}
.trusted-logos-title::after{
    bottom: -12px;
    right: 50%;
    transform: translateX(50%);
}

.trusted-logos-highlight{
    color: var(--accent-color);
    font-weight: 700;
}

.trusted-logos-slider{ margin-top: 40px; }

.trusted-logos .splide__track{ overflow: visible !important; }

.trusted-logos .splide__list{ gap: 1px !important; }

.trusted-logos .splide__slide{
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
}

.trusted-logos img.trusted-logos-image{
    height: 100px !important;
    width: 460px !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform .25s ease, opacity .25s ease;
}

.trusted-logos .splide__slide:hover .trusted-logos-image{
    transform: scale(1.05);
    opacity: .98;
}

/* ********************************************************************************* */
/* ---------------- 14. Media Queries - Responsive Design ---------------- */
/* ********************************************************************************* */

@media (max-width: 1024px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        padding-right: 20px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        gap: 25px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active { right: 0; }

    .nav-links a:not(.contact-btn) {
        color: var(--text-light) !important;
        font-size: 1.4rem;
        padding: 10px 0;
        width: 100%;
        text-align: right;
    }

    .nav-links a.contact-btn {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
    .hero-content p  { font-size: clamp(1rem, 2vw, 1.3rem); }

    .hero-section{
        padding-top: 145px;
    }
    .hero-pattern{
        top: 65px;
        width: min(520px, 52vw);
    }
    .hero-visual{
        min-height: clamp(340px, 60vw, 620px); 
    }

    .feature-item { flex: 0 0 calc(50% - 20px); }
    .feature-item h3 { font-size: 1.6rem; }
    .feature-item p  { font-size: 1.2rem; }

    .mySwiper { padding: 0 20px; }
    .portfolioSwiper { padding: 0 20px; }

    .swiper-button-next,
    .swiper-button-prev { display: none !important; }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .testimonials-main-column { order: 2; }
    .testimonials-right-column { order: 1; }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        display: flex; 
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        text-align: center;
        column-gap: 40px;
        row-gap: 35px;
    }

    .footer-column {
        min-width: 260px;
        flex: 0 1 calc(50% - 30px);
        text-align: center;
    }

    .brand-info { align-items: center; }
    .footer-logo { margin-right: 0; }
    .footer-main-title,
    .footer-subtitle {
        margin-right: 0;
        text-align: center;
    }

    .contact-column { text-align: center; }
    .social-column { margin-top: 0; }

    .main-footer {
        background: url('../images/footer_image 4 M.svg') center/cover no-repeat;
    }

    .trusted-logos img.trusted-logos-image{
        height: 100px !important;
        width: min(440px, 88vw) !important;
    }
}

@media (max-width: 768px) {
    .logo-img { height: 35px; }

    .navbar { padding: 15px 0; }

    .hero-section {
        padding-top: 120px;   
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-pattern{
        top: 60px;
        width: min(520px, 72vw);
        opacity: 0.85;
    }

    .hero-cta { display: none !important; }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .why-us-overlay {
        width: 95%;
        padding: 25px 15px;
        margin-top: -40px;
    }

    .why-us-content h2 { font-size: 1.8rem; }

    .why-us-content .subtitle.limited-width {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .features-grid { gap: 20px; }

    .feature-item {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 25px 15px;
    }

    .feature-item h3 { font-size: 1.5rem; }
    .feature-item p  { font-size: 1.1rem; }

    .yellow-curve-section { padding: 60px 0 40px 0; }
    .yellow-curve-section h2 { font-size: 2rem; margin-bottom: 35px; }

    .yellow-curve-section::before { height: 220px; }

    .service-card h3 { font-size: 1.4rem; }
    .service-card p  { font-size: 1.1rem; }

    .portfolio-background {
        height: 300px;
        padding: 40px 0 150px;
    }

    .portfolio-swiper-outer{
        margin-top: -90px;
        margin-bottom: 40px; 
    }

    .portfolio h2 { font-size: 1.8rem; }
    .portfolio .subtitle { font-size: 1.2rem; }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: -120px;
        margin-bottom: 40px;
    }

    .project-info { padding: 20px; }
    .project-info h3 { font-size: 1.4rem; }
    .project-info p  { font-size: 1.1rem; }

    .testimonials { padding: 60px 0; }
    .testimonials-title { font-size: 1.8rem; }

    .testimonial-step-heading { font-size: 1.4rem; }
    .testimonial-step-body p  { font-size: 1.2rem; }

    .contact { padding: 60px 0; }
    .contact h2 { font-size: 1.8rem; }
    .contact-intro p { font-size: 1.2rem; }
    .contact-form { padding: 25px; }

    .footer-content {
        display: flex; 
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        min-width: 100%;
        text-align: center;
        flex: 0 1 100%;
    }
    .brand-info { align-items: center; }

    .footer-logo { display: none; }

    .footer-main-title,
    .footer-subtitle {
        margin-right: 0;
        text-align: center;
    }

    .main-footer {
        background: url('../images/footer_image 4 S.svg') center/cover no-repeat;
        padding: 40px 0 30px 0;
    }

    .footer-logo { width: 180px; }
    .footer-main-title { font-size: 1.6rem; }
    .footer-subtitle { font-size: 1.1rem; }
    .contact-column h4 { font-size: 1.2rem; }
    .contact-column p  { font-size: 1.1rem; }

    .trusted-logos .splide__list{ gap: 1px !important; }
    .trusted-logos img.trusted-logos-image{
        height: 100px !important;
        width: min(400px, 90vw) !important;
    }
}

@media (max-width: 576px) {
    .trusted-logos .splide__list{ gap: 1px !important; }
    .trusted-logos img.trusted-logos-image{
        height: 80px !important;
        width: min(360px, 92vw) !important;
    }
}

@media (max-width: 480px) {
    .nav-links { width: 250px; }

    .hero-content h1 { font-size: 1.6rem; }
    .hero-content p  { font-size: 1rem; }

    .why-us-overlay { border-radius: 25px; }
    .why-us-content h2 { font-size: 1.6rem; }

    .yellow-curve-section h2 { font-size: 1.7rem; }

    .btn { padding: 8px 20px; font-size: 1rem; }

    .contact-btn {
        padding: 0.3rem 1.2rem !important;
        font-size: 1rem !important;
        min-width: 120px !important;
    }

    .footer-logo { width: 160px; }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .trusted-logos img.trusted-logos-image{
        height: 70px !important;
        width: min(330px, 94vw) !important;
    }
}

@media (min-width: 1600px) {
    .container { max-width: 1400px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .nav-links {
        padding-top: 60px;
        overflow-y: auto;
        max-height: 100vh;
    }
}

@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .project-card:hover { transform: none; }

    .btn:hover { transform: none !important; }

    .nav-links a:not(.contact-btn):hover::after { width: 0; }
}


/* ============================= */
/* Scrollbar لونها Primary Color */
/* ============================= */

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f2f2f2; 
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color); 
  border-radius: 10px;
  border: 3px solid #f2f2f2; 
}


/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f2f2f2;
}
