/* CSS Variables */
:root {
    --primary: #0a3a4a;
    --primary-light: #1e90c6;
    --accent: #2bb3f6;
    --gray: #f5f7fa;
    --gray-dark: #444;
    --white: #fff;
    --radius: 1.5rem;
    --transition: 0.2s cubic-bezier(.4,0,.2,1);
    --shadow: 0 4px 24px 0 rgba(30,144,198,0.09);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--gray);
    color: var(--primary);
    font-family: var(--font-ar);
    direction: rtl;
    min-height: 100vh;
}
body[lang="en"] {
    font-family: var(--font-en);
    direction: ltr;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
    box-sizing: border-box;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.logo-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}
.nav-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
    background: var(--primary-light);
    color: var(--white);
}
.lang-btn {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.3rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 1rem;
    transition: background var(--transition);
}
.lang-btn:hover {
    background: var(--primary-light);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(120deg, rgba(234, 246, 251, 0.6) 60%, rgba(245, 247, 250, 0.6) 100%), 
                url('images/headslide/slide.png') center center/cover no-repeat;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    transition: background 0.5s ease;
    cursor: pointer;
}

.hero-section:hover {
    cursor: pointer;
    background: linear-gradient(120deg, rgba(234, 246, 251, 0.4) 60%, rgba(245, 247, 250, 0.4) 100%), 
                url('images/headslide/slide.png') center center/cover no-repeat;
}

/* Background animation */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/headslide/slide.png') center center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
    animation: background-float 20s ease-in-out infinite;
}

/* Alternative backgrounds */
.hero-section.bg-alt-1 {
    background: linear-gradient(120deg, rgba(234, 246, 251, 0.6) 60%, rgba(245, 247, 250, 0.6) 100%), 
                url('images/headslide/chose.jpg') center center/cover no-repeat;
}

.hero-section.bg-alt-1::before {
    background: url('images/headslide/chose.jpg') center center/cover no-repeat;
}

.hero-section.bg-alt-2 {
    background: linear-gradient(120deg, rgba(234, 246, 251, 0.6) 60%, rgba(245, 247, 250, 0.6) 100%), 
                url('images/logo.png') center center/contain no-repeat;
}

.hero-section.bg-alt-2::before {
    background: url('images/logo.png') center center/contain no-repeat;
}

@keyframes background-float {
    0%, 100% { 
        transform: scale(1) translate(0, 0); 
    }
    25% { 
        transform: scale(1.05) translate(-10px, -5px); 
    }
    50% { 
        transform: scale(1.02) translate(5px, -10px); 
    }
    75% { 
        transform: scale(1.05) translate(-5px, 5px); 
    }
}

/* Hero content */
.hero-content {
    flex: 1;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 5;
    background: transparent;
    border-radius: 2rem;
    padding: 2rem;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: default;
}

.hero-content:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-desc {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px 0 rgba(30,144,198,0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.2;
    z-index: 5;
}

.hero-btn:hover, .hero-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px 0 rgba(30,144,198,0.4);
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-decoration: none;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-section {
        background: linear-gradient(120deg, rgba(234, 246, 251, 0.5) 60%, rgba(245, 247, 250, 0.5) 100%), 
                    url('images/headslide/slide.png') center center/cover no-repeat;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
        background: transparent;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1rem;
        margin: 0 0.5rem;
        background: transparent;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Geometric shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geometric-shapes::before,
.geometric-shapes::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(30, 144, 198, 0.1), rgba(43, 179, 246, 0.1));
    animation: float-shape 8s ease-in-out infinite;
}

.geometric-shapes::before {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.geometric-shapes::after {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

/* Mouse particles */
.mouse-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Mouse trail */
.mouse-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 4;
    opacity: 0.6;
    animation: trail-fade 1s ease-out forwards;
    box-shadow: 0 0 6px rgba(43, 179, 246, 0.8);
}

@keyframes trail-fade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Particle animations */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
    animation: particle-fade 2s ease-out forwards;
    box-shadow: 0 0 8px rgba(43, 179, 246, 0.6);
    transition: all 0.3s ease;
}

.particle:hover {
    transform: scale(1.5);
    box-shadow: 0 0 15px rgba(43, 179, 246, 1);
}

.particle-large {
    width: 6px !important;
    height: 6px !important;
    background: var(--primary-light) !important;
    box-shadow: 0 0 12px rgba(30, 144, 198, 0.8) !important;
}

.particle-large:hover {
    transform: scale(1.3) !important;
    box-shadow: 0 0 20px rgba(30, 144, 198, 1) !important;
}

@keyframes particle-fade {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}



/* Floating shapes */
.geometric-shapes div {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
}

.geometric-shapes div:hover {
    transform: scale(1.2) rotate(45deg);
    opacity: 0.8;
}

/* Mobile animations */
@media (max-width: 768px) {
    .geometric-shapes::before {
        width: 80px;
        height: 80px;
    }
    
    .geometric-shapes::after {
        width: 60px;
        height: 60px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .particle-large {
        width: 4px !important;
        height: 4px !important;
    }
    
    .mouse-trail {
        width: 1.5px;
        height: 1.5px;
    }
    
    /* Reduce effects for performance */
    .animated-stars span {
        animation-duration: 8s, 8s;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .animated-stars span,
    .geometric-shapes::before,
    .geometric-shapes::after,
    .particle,
    .mouse-trail {
        animation: none;
    }
    
    .hero-section {
        cursor: auto;
    }
}

@media (max-width: 1100px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-desc {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        min-height: 70vh;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero-desc {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* About Section */
.about-section {
    background: var(--white);
    padding: 3rem 0 2.5rem 0;
}
.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-img-block {
    flex: 0 0 400px;
    text-align: center;
}
.about-img-block .about-logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #eaf6fb 60%, #f5f7fa 100%);
    box-shadow: none;
    padding: 0;
    object-fit: contain;
    border: none;
    display: block;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
    animation: about-float 4.5s ease-in-out infinite alternate;
}
.about-img-block .about-logo:hover {
    box-shadow: none;
    background: linear-gradient(135deg, #eaf6fb 30%, #2bb3f6 100%);
    transform: scale(1.04) rotate(-2deg);
}
@keyframes about-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-18px); }
}
.about-content {
    flex: 1;
    text-align: start;
    padding: 0;
}
.about-text {
    margin-bottom: 0;
}
.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    font-weight: 500;
    text-align: start;
    margin: 0;
}
@media (max-width: 768px) {
    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }
    .about-content {
        text-align: center;
    }
    .about-description {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1rem;
        text-align: center;
    }
    .about-img-block {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }
    
    /* توسيط العناوين على الجوال */
    .section-title {
        text-align: center !important;
    }
    
    .section-title.align-start {
        text-align: center !important;
    }
    
    .section-title.align-center {
        text-align: center !important;
    }
    
    /* توسيط الخط السفلي للعناوين على الجوال */
    .section-title::after {
        margin-right: auto !important;
        margin-left: auto !important;
    }
}
.section-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.7rem;
    text-align: start;
    background: linear-gradient(90deg, #222 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: letter-spacing 0.3s, background-position 0.5s;
    letter-spacing: 1.2px;
    position: relative;
    z-index: 1;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    border-radius: 3px;
    margin-top: 0.5rem;
    margin-right: auto;
    margin-left: auto;
    background: linear-gradient(90deg, #222 0%, #666 100%);
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position 0.5s;
}
.section-title.visible::after {
    background-position: left center;
}
.section-title:hover {
    letter-spacing: 2.5px;
    background-position: left center;
}
.section-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1.1rem;
    text-align: start;
}
.align-start {
    text-align: start !important;
}
.about-desc {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 2.1rem;
    font-weight: 500;
    margin-top: 0.7rem;
    margin-bottom: 0;
    text-align: start;
    max-width: 600px;
}

/* Services Section */
.services-section {
    background: linear-gradient(120deg, #f5f7fa 70%, #eaf6fb 100%);
    padding: 3rem 0 2.5rem 0;
}






/* Clients grid */

/* Contact Section */
.contact-section {
    background: var(--white);
    padding: 3rem 0 2.5rem 0;
}
.contact-flex {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}
.contact-info-block {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.contact-form-block {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0 0;
    color: var(--primary);
    font-size: 1.05rem;
}
.contact-list li {
    margin-bottom: 0.7rem;
}
.contact-list a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 700;
}
.contact-list a:hover {
    text-decoration: underline;
}
.contact-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--gray);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.contact-form input,
.contact-form textarea {
    border: 1px solid var(--primary-light);
    border-radius: 0.7rem;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--primary);
    transition: border var(--transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 2px solid var(--accent);
    background: var(--gray);
}
.submit-btn {
    background: var(--primary-light);
    color: var(--white);
    border: none;
    border-radius: 0.7rem;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background var(--transition);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.submit-btn:hover {
    background: var(--primary);
}

/* Footer */
.footer {
    background: var(--primary-light);
    padding: 2rem 0;
    margin-top: 4rem;
}
.footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-left {
    flex: 1 1 200px;
    text-align: start;
}
.footer-right {
    flex: 1 1 200px;
    text-align: end;
}
.social-icons {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
    align-items: center;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px 0 rgba(30,144,198,0.08);
    width: 44px;
    height: 44px;
    transition: box-shadow 0.2s, transform 0.2s;
    outline: none;
}
.social-icon:hover, .social-icon:focus {
    box-shadow: 0 4px 16px 0 rgba(43,179,246,0.13);
    transform: scale(1.13);
}
.footer-content {
    text-align: center;
}
.copyright {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 3rem;
    }
    .copyright {
        font-size: 0.9rem;
    }
}

/* Responsive design */
@media (max-width: 1100px) {
    .container {
        max-width: 98vw;
        padding: 0 1vw;
    }
    .hero-flex, .about-flex, .contact-flex, .footer-flex {
        flex-direction: column;
        gap: 1.2rem;
        align-items: stretch;
    }
    .hero-img {
        max-width: 100%;
    }
    .about-logo {
        width: 80px;
        height: 80px;
        padding: 0.5rem;
    }

    .partners-grid-new {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1.2rem 0.7rem;
    }
}

/* Medium screen adjustments */
@media (max-width: 1200px) {
    .nav {
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.2rem 0.4rem;
    }
}
@media (max-width: 700px) {
    html {
        font-size: 15px;
    }
    .hero-title {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 1.2rem;
        text-align: center !important;
    }
    
    /* توسيط الخط السفلي للعناوين على الشاشات الصغيرة */
    .section-title::after {
        margin-right: auto !important;
        margin-left: auto !important;
    }
    .about-logo {
        width: 54px;
        height: 54px;
        padding: 0.2rem;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
} 

/* Fade up animation */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hero-btn, .submit-btn {
    transition: all 0.3s ease;
}
.hero-btn:hover, .submit-btn:hover {
    transform: translateY(-3px);
}

 

.clients-grid-new {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.clients-grid-new::-webkit-scrollbar {
    display: none;
}

.clients-grid-new .slider-img {
    background: white;
    border-radius: 1.2rem;
    padding: 0.8rem;
    height: 100px;
    min-width: 140px;
    max-width: 140px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transform: scale(1.6);
}

.clients-grid-new .slider-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 144, 198, 0.1), transparent);
    transition: left 0.6s ease;
}

.clients-grid-new .slider-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 1.5rem;
    pointer-events: none;
}

.clients-grid-new .slider-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 144, 198, 0.15);
    border-color: var(--primary-light);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.clients-grid-new .slider-img:hover::before {
    left: 100%;
}

/* Enhanced client logo animations */
.clients-grid-new .slider-img {
    animation: client-float 6s ease-in-out infinite;
}

.clients-grid-new .slider-img:nth-child(2) {
    animation-delay: 0.5s;
}

.clients-grid-new .slider-img:nth-child(3) {
    animation-delay: 1s;
}

.clients-grid-new .slider-img:nth-child(4) {
    animation-delay: 1.5s;
}

.clients-grid-new .slider-img:nth-child(5) {
    animation-delay: 2s;
}

.clients-grid-new .slider-img:nth-child(6) {
    animation-delay: 2.5s;
}

@keyframes client-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(-0.5deg); 
    }
}

.clients-grid-new .slider-img:hover {
    animation: none;
    transform: translateY(-8px);
}

/* Removed conflicting styles */ 



 

 

 

@media (max-width: 900px) {
    .about-img-block {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-bottom: 1.2rem;
        pointer-events: auto;
    }
    .about-content {
        padding-left: 0;
    }
} 

.services-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem 1.5rem;
    margin-top: 2.2rem;
}
.service-simple-card {
    background: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(30,144,198,0.07);
    padding: 2rem 1.2rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, border 0.2s;
    border: 1.5px solid #e0eaf3;
    position: relative;
    overflow: hidden;
}
.service-simple-card:hover {
    box-shadow: 0 8px 32px 0 rgba(30,144,198,0.13);
    transform: translateY(-6px) scale(1.03);
    border-color: #2bb3f6;
}
.service-simple-icon {
    margin-bottom: 0.4rem;
    margin-top: 0.2rem;
    height: 48px;
    width: 48px;
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.service-simple-card:hover .service-simple-icon {
    transform: scale(1.09) rotate(-4deg);
}
.service-simple-title {
    margin-bottom: 0.35rem;
    font-size: 0.97rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #000;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    text-align: center;
}
.service-simple-desc {
    text-align: center;
    font-size: 0.89rem;
    font-weight: 500;
    line-height: 1.4rem;
    margin-top: 0.4rem;
    width: 100%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}
@media (max-width: 900px) {
    .services-simple-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem 0.7rem;
    }
    .service-simple-card {
        padding: 1.2rem 0.7rem 0.7rem 0.7rem;
    }
    .service-simple-icon {
        height: 32px;
        width: 32px;
        padding: 0.2rem;
    }
} 

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.contact-item {
    background: #fff;
    border-radius: 1.2rem;
    padding: 2rem;
    box-shadow: 0 2px 16px 0 rgba(30,144,198,0.07);
    border: 1.5px solid #e0eaf3;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.contact-item:hover {
    box-shadow: 0 8px 32px 0 rgba(30,144,198,0.13);
    transform: translateY(-4px);
}
.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #eaf6fb 60%, #c6e6f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px 0 rgba(43,179,246,0.08);
}
.contact-details {
    flex: 1;
}
.contact-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0 0 0.5rem 0;
}
.contact-value {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin: 0;
    line-height: 1.5;
}
.contact-value a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-value a:hover {
    color: var(--primary-light);
}
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .contact-item {
        padding: 1.5rem;
    }
    .contact-icon {
        width: 40px;
        height: 40px;
    }
} 

/* Moving grid */
.moving-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.grid-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(43, 179, 246, 0.8);
    cursor: pointer;
    pointer-events: auto;
}

.grid-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
    transition: all 0.3s ease;
    transform-origin: left center;
    pointer-events: none;
}

.grid-point.active {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 8px rgba(43, 179, 246, 1);
    background: var(--primary-light);
}

.grid-line.active {
    opacity: 0.8;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    box-shadow: 0 0 6px rgba(30, 144, 198, 0.6);
    height: 2px;
}

/* Grid animations */
@keyframes grid-pulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
        box-shadow: 0 0 4px rgba(43, 179, 246, 0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
        box-shadow: 0 0 12px rgba(43, 179, 246, 1);
    }
}

@keyframes grid-wave {
    0% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 0 4px rgba(43, 179, 246, 0.8);
    }
    25% { 
        transform: scale(1.1) rotate(90deg); 
        box-shadow: 0 0 8px rgba(43, 179, 246, 0.9);
    }
    50% { 
        transform: scale(1.2) rotate(180deg); 
        box-shadow: 0 0 12px rgba(43, 179, 246, 1);
    }
    75% { 
        transform: scale(1.1) rotate(270deg); 
        box-shadow: 0 0 8px rgba(43, 179, 246, 0.9);
    }
    100% { 
        transform: scale(1) rotate(360deg); 
        box-shadow: 0 0 4px rgba(43, 179, 246, 0.8);
    }
}

@keyframes grid-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(2);
        opacity: 0.3;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.grid-point.pulse {
    animation: grid-pulse 2s ease-in-out infinite;
}

.grid-point.wave {
    animation: grid-wave 3s ease-in-out infinite;
}

.grid-point.ripple {
    animation: grid-ripple 1s ease-out forwards;
}

/* Grid connections */
.grid-point.connected {
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(30, 144, 198, 0.9);
}

.grid-line.connected {
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    box-shadow: 0 0 8px rgba(30, 144, 198, 0.7);
    opacity: 0.9;
}

/* Grid hover */
.grid-point:hover {
    transform: scale(2);
    opacity: 1;
    box-shadow: 0 0 15px rgba(43, 179, 246, 1);
    z-index: 10;
}

/* Grid focus */
.grid-point:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    transform: scale(1.5);
}

/* Mobile grid */
@media (max-width: 768px) {
    .grid-point {
        width: 1.5px;
        height: 1.5px;
    }
    
    .grid-line {
        height: 0.5px;
    }
    
    .grid-line.active {
        height: 1px;
    }
}

@media (max-width: 480px) {
    .grid-point {
        width: 1px;
        height: 1px;
    }
    
    .grid-line {
        height: 0.3px;
    }
    
    .grid-line.active {
        height: 0.6px;
    }
} 

/* Grid performance */
@media (prefers-reduced-motion: reduce) {
    .grid-point,
    .grid-line {
        animation: none !important;
        transition: none !important;
    }
    
    .grid-point:hover {
        transform: none;
    }
} 

/* WhatsApp button */
.floating-whatsapp {
    position: fixed;
    left: 30px;
    bottom: 60px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-whatsapp a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: #128c7e;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 60px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 144, 198, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(43, 179, 246, 0.4);
}

.back-to-top svg {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: rotate(0deg) scale(1.1);
}

/* Mobile floating buttons */
@media (max-width: 768px) {
    .floating-whatsapp {
        left: 25px;
        bottom: 55px;
    }
    
    .floating-whatsapp a {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        right: 25px;
        bottom: 55px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        left: 30px;
        bottom: 50px;
    }
    
    .floating-whatsapp a {
        width: 45px;
        height: 45px;
    }
    
    .back-to-top {
        right: 20px;
        bottom: 50px;
        width: 40px;
        height: 40px;
    }
} 

/* Partners section */
.partners-grid-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.partners-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 144, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(43, 179, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    animation: background-float 20s ease-in-out infinite;
}

.partners-grid-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

/* Background shapes */
.partners-grid-section .floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.partners-grid-section .floating-shapes::before,
.partners-grid-section .floating-shapes::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(30, 144, 198, 0.1);
    border-radius: 50%;
    animation: float-shape 15s ease-in-out infinite;
}

.partners-grid-section .floating-shapes::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.partners-grid-section .floating-shapes::after {
    bottom: 30%;
    right: 15%;
    animation-delay: 7s;
}

/* Background animations */
@keyframes background-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-5px) rotate(0deg); 
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-15px) rotate(-1deg); 
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0%, 100% { 
        transform: translateX(-100%) translateY(-100%); 
        opacity: 0;
    }
    50% { 
        transform: translateX(100%) translateY(100%); 
        opacity: 1;
    }
}

@keyframes float-shape {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.1); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg) scale(0.9); 
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-30px) rotate(270deg) scale(1.2); 
        opacity: 0.6;
    }
}

/* Partner animations */
.partners-grid-new .slider-img {
    animation: partner-float 6s ease-in-out infinite;
}

.partners-grid-new .slider-img:nth-child(2) {
    animation-delay: 0.5s;
}

.partners-grid-new .slider-img:nth-child(3) {
    animation-delay: 1s;
}

.partners-grid-new .slider-img:nth-child(4) {
    animation-delay: 1.5s;
}

.partners-grid-new .slider-img:nth-child(5) {
    animation-delay: 2s;
}

.partners-grid-new .slider-img:nth-child(6) {
    animation-delay: 2.5s;
}

.partners-grid-new .slider-img:nth-child(7) {
    animation-delay: 3s;
}

@keyframes partner-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(-0.5deg); 
    }
}

.partners-grid-new .slider-img:hover {
    animation: none;
    transform: translateY(-8px);
}

/* Mobile partners */
@media (max-width: 1024px) {
    .partners-grid-new {
        gap: 0.8rem;
    }
    
    .partners-grid-new .slider-img {
        height: 70px;
        padding: 0.4rem;
        min-width: 100px;
        max-width: 100px;
        transform: scale(1.7);
    }
    
    .partners-grid-section .section-title {
        font-size: 2.2rem;
        color: #000000;
    }
    
    .partners-grid-section .floating-shapes::before,
    .partners-grid-section .floating-shapes::after {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .partners-grid-section {
        padding: 3rem 0;
    }
    
    .partners-grid-new {
        gap: 0.7rem;
        margin-top: 2rem;
    }
    
    .partners-grid-new .slider-img {
        height: 65px;
        padding: 0.3rem;
        border-radius: 0.8rem;
        min-width: 90px;
        max-width: 90px;
        transform: scale(1.8);
    }
    
    .partners-grid-new .slider-img:hover {
        transform: translateY(-4px);
    }
    
    .partners-grid-section .section-title {
        font-size: 2rem;
        color: #000000;
    }
    
    .partners-grid-section .floating-shapes::before,
    .partners-grid-section .floating-shapes::after {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .partners-grid-new {
        gap: 0.6rem;
    }
    
    .partners-grid-new .slider-img {
        height: 60px;
        padding: 0.2rem;
        min-width: 80px;
        max-width: 80px;
        border-radius: 0.7rem;
        transform: scale(2);
    }
    
    .partners-grid-section .section-title {
        font-size: 1.8rem;
        color: #000000;
    }
    
    .partners-grid-section .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .partners-grid-section .floating-shapes::before,
    .partners-grid-section .floating-shapes::after {
        width: 30px;
        height: 30px;
    }
} 

.partners-grid-new {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.partners-grid-new::-webkit-scrollbar {
    display: none;
}

.partners-grid-new .slider-img {
    background: white;
    border-radius: 1.2rem;
    padding: 1rem;
    height: 100px;
    min-width: 140px;
    max-width: 140px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transform: scale(1.6);
}

.partners-grid-new .slider-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 144, 198, 0.1), transparent);
    transition: left 0.6s ease;
}

.partners-grid-new .slider-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 1.5rem;
    pointer-events: none;
}

.partners-grid-new .slider-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(30, 144, 198, 0.15);
    border-color: var(--primary-light);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.partners-grid-new .slider-img:hover::before {
    left: 100%;
}

/* Partners title */
.partners-grid-section .section-title {
    text-align: center !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    display: block;
    width: 100%;
}

.partners-grid-section .section-title.align-center {
    text-align: center !important;
}

.partners-grid-section .section-title.align-start {
    text-align: center !important;
}

.partners-grid-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: title-underline 2s ease-in-out infinite alternate;
} 

/* Clients section */
.clients-grid-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.clients-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(30, 144, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(43, 179, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    animation: background-float 20s ease-in-out infinite;
}

.clients-grid-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
}

/* Client background shapes */
.clients-grid-section .floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.clients-grid-section .floating-shapes::before,
.clients-grid-section .floating-shapes::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(30, 144, 198, 0.1);
    border-radius: 50%;
    animation: float-shape 15s ease-in-out infinite;
}

.clients-grid-section .floating-shapes::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.clients-grid-section .floating-shapes::after {
    bottom: 30%;
    right: 15%;
    animation-delay: 7s;
}

/* Clients title */
.clients-grid-section .section-title {
    text-align: center !important;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    display: block;
    width: 100%;
}

.clients-grid-section .section-title.align-center {
    text-align: center !important;
}

.clients-grid-section .section-title.align-start {
    text-align: center !important;
}

.clients-grid-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: title-underline 2s ease-in-out infinite alternate;
} 

/* Mobile clients */
@media (max-width: 1024px) {
    .clients-grid-new {
        gap: 0.8rem;
    }
    .clients-grid-new .slider-img {
        height: 70px;
        padding: 0.3rem;
        min-width: 100px;
        max-width: 100px;
        transform: scale(1.7);
    }
    .clients-grid-section .section-title {
        font-size: 2.2rem;
        color: #000000;
    }
    .clients-grid-section .floating-shapes::before,
    .clients-grid-section .floating-shapes::after {
        width: 50px;
        height: 50px;
    }
}
@media (max-width: 768px) {
    .clients-grid-section {
        padding: 3rem 0;
    }
    
    .clients-grid-new {
        gap: 0.7rem;
        margin-top: 2rem;
    }
    
    .clients-grid-new .slider-img {
        height: 65px;
        padding: 0.2rem;
        border-radius: 0.8rem;
        min-width: 90px;
        max-width: 90px;
        transform: scale(1.8);
    }
    
    .clients-grid-new .slider-img:hover {
        transform: translateY(-4px);
    }
    
    .clients-grid-section .section-title {
        font-size: 2rem;
        color: #000000;
    }
    
    .clients-grid-section .floating-shapes::before,
    .clients-grid-section .floating-shapes::after {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .clients-grid-new {
        gap: 0.6rem;
    }
    .clients-grid-new .slider-img {
        height: 60px;
        padding: 0.15rem;
        min-width: 80px;
        max-width: 80px;
        border-radius: 0.7rem;
        transform: scale(2);
    }
    .clients-grid-section .section-title {
        font-size: 1.8rem;
        color: #000000;
    }
    .clients-grid-section .section-title::after {
        width: 60px;
        height: 3px;
    }
    .clients-grid-section .floating-shapes::before,
    .clients-grid-section .floating-shapes::after {
        width: 30px;
        height: 30px;
    }
    
    /* توسيط العناوين على الشاشات الصغيرة جداً */
    .section-title {
        text-align: center !important;
        font-size: 1.6rem;
    }
    
    /* توسيط الخط السفلي للعناوين على الشاشات الصغيرة جداً */
    .section-title::after {
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 9999;
  position: relative;
  margin-right: 0.5rem;
}
.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 4px 0;
  background: #1e90c6;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  z-index: 9998;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
  box-shadow: -4px 0 20px rgba(30,144,198,0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(30,144,198,0.1);
}
.mobile-menu .nav-link {
  font-size: 1rem;
  color: #1e90c6;
  font-weight: 600;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: none;
  transition: all 0.2s ease;
  background: transparent;
}
.mobile-menu .nav-link:hover {
  background: rgba(30,144,198,0.1);
  color: #0a3a4a;
  transform: translateX(5px);
}
.mobile-menu .nav-link:last-child {
  border-bottom: none;
}
.mobile-menu .lang-btn {
  margin: 1rem auto 0 auto;
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Show mobile menu */
.mobile-menu.active {
  display: flex;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    right: 0.5rem !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === FIX: mobile-menu-btn responsive === */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  html[dir="rtl"] .mobile-menu-btn {
    left: 0.5rem !important;
    right: auto !important;
  }
  html[dir="ltr"] .mobile-menu-btn {
    right: 0.5rem !important;
    left: auto !important;
  }
  .nav {
    display: none !important;
  }
  
      /* Small screen mobile menu */
    .mobile-menu {
    width: 250px;
    padding: 1.5rem 1rem;
  }
  .mobile-menu .nav-link {
    font-size: 0.95rem;
    padding: 0.7rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    width: 220px;
    padding: 1.2rem 0.8rem;
  }
  .mobile-menu .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 0.7rem;
  }
  .mobile-menu .lang-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

