/* New Insight Website Styles - Mobile Optimized with Enhanced Partners Section */

/* Color Variables */
:root {
    --primary-color-1: #0D6FB3;
    --primary-color-2: #F1394C;
    --gradient-1: linear-gradient(135deg, #0D6FB3, #1E88E5);
    --gradient-2: linear-gradient(135deg, #F1394C, #FF6B6B);
    --gradient-mixed: linear-gradient(135deg, #0D6FB3, #F1394C);
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* RTL/LTR Support */
[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] .navbar {
   display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0rem !important;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row;
}
[dir="ltr"] .nav-links {
  display: flex;
  list-style: none;

  gap: .7rem !important;

  justify-content: space-between;
  margin-top: 20px !important;
  margin-right: 520px;
  margin-left: -200px;
}
@media (min-width: 1024px){
[dir="ltr"] .header-buttons {
  display: flex;
  gap: .5rem;

  align-items: center;
  margin-left: -700px;
  margin-right: -30px;
}
}
[dir="ltr"] .profile-btn, .appointment-btn {
  padding: 0.5rem .5rem;

    padding-right: 0.5rem;
    padding-left: 0.5rem;

  border-radius: 20px;

  text-decoration: none;

  font-weight: 100;
  transition: all 0.3s ease;

  border: 2px solid transparent;

  padding-right: 10px;
  padding-left: 10px;
}
@media (max-width: 480px) {
 [dir="ltr"] .mobile-toggle {
    padding: 0.4rem;

    font-size: 1.1rem;
    min-height: 36px;
    min-width: 36px;
    margin-right: 20px;
  }
}
[dir="ltr"] .hero h1{
     margin-top:30px !important;
 }
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color-1);
}

h3 {
    font-size: 2rem;
    color: var(--primary-color-2);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Header and Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

[dir="rtl"] .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-direction:row;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[dir="rtl"] .nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
     margin-top: 20px !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color-1);
}

.language-toggle {
    background: var(--gradient-1);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.language-toggle:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-mixed);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: var(--white);
    background: none;
    -webkit-text-fill-color: var(--white);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    background: var(--gradient-2);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(241, 57, 76, 0.3);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color-1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

/* Floating Elements */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook { background: #1877F2; }
.social-link.instagram { background: var(--gradient-2); }
.social-link.twitter { background: #1DA1F2; }
.social-link.tiktok { background: #000; }

.social-link:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color-1);
    cursor: pointer;
    padding: 0.5rem;
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 600;
}

/* Service Lists */
.service-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(13, 111, 179, 0.1);
    position: relative;
    padding-right: 1.5rem;
}

.service-list li.has-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* مسافة بين الأيقونة والنص */
    padding-right: 0; /* إزالة المسافة السابقة */
    position: relative;
}

/* الأيقونات داخل العناصر */
.service-list li.has-icon i {
    color: var(--primary-color-1); /* لون متناسق */
    min-width: 1.25rem; /* توحيد عرض الأيقونة */
    text-align: center;
    font-size: 1rem; /* يمكن تغييره حسب الحاجة */
}
.service-list li.has-icon::before {
   content: none;
}


/* Works Carousel */
.works-swiper {
    padding: 2rem 0;
}

.work-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-image {
    width: 100%;
    
    object-fit: cover;
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.work-item:hover .work-overlay {
    transform: translateY(0);
}

/* ===== ENHANCED PARTNERS SECTION WITH FIXES ===== */
.partners-section-enhanced {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    padding: 5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

/* خلفية متحركة */
.partners-section-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(13, 111, 179, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(241, 57, 76, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(13, 111, 179, 0.02) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}
.card-img-top {
    max-height: fit-content;
}

/* عنوان القسم المحسن */
.section-title-enhanced {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-mixed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.1); }
}
@keyframes scroll-partners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.section-subtitle-enhanced {
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

/* حاوي الشركاء المحسن */
.partners-container-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

/* مسار الشركاء المحدث */
.partners-track-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    cursor: grab;
    user-select: none;
    
}

.partners-track-wrapper:active {
    cursor: grabbing;
}

.partners-track {
    display: flex;
    gap: 2rem;
    will-change: transform;
    animation: scroll-right 30s linear infinite;
}


/* بطاقة الشريك المحسنة */
.partner-card-enhanced {
    flex: 0 0 auto;
    width: 180px;
    height: 120px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* تأثير الخلفية المتحركة للبطاقة */
.partner-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 111, 179, 0.1), transparent);
    transition: left 0.6s ease;
}

.partner-card-enhanced:hover::before {
    left: 100%;
}

/* تأثيرات التفاعل */
.partner-card-enhanced:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary-color-1);
    box-shadow: 
        0 12px 40px rgba(13, 111, 179, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.partner-card-enhanced:nth-child(even):hover {
    border-color: var(--primary-color-2);
    box-shadow: 
        0 12px 40px rgba(241, 57, 76, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

/* صورة الشريك المحدثة */
.partner-logo-enhanced {
    max-width: 100%;

    object-fit: contain;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    /* إزالة الفلتر الافتراضي للصور النشطة */
    /* filter: grayscale(80%) opacity(0.8); */
}

/* الصور النشطة تظهر بألوانها الطبيعية */
.partner-card-enhanced.active .partner-logo-enhanced,
.partner-card-enhanced:hover .partner-logo-enhanced {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* مؤشرات الحالة المحدثة */
.partners-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(13, 111, 179, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
}

.indicator.active {
    background: var(--primary-color-1);
    transform: scale(1.2);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* أزرار التحكم */
.partners-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.partners-controls:hover {
    background: var(--primary-color-1);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.control-prev {
    left: -25px;
}

.control-next {
    right: -25px;
}

/* تأثيرات إضافية للأناقة */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color-1);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    background: var(--primary-color-2);
    animation-delay: -5s;
    left: 20%;
    top: 20%;
}

.floating-element:nth-child(3) {
    animation-delay: -10s;
    left: 80%;
    top: 80%;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) translateX(-10px) rotate(180deg);
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Article Cards */
.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
   object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-content h4 {
    color: var(--primary-color-1);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color-1);
}

/* Package Cards */
.package-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card h4 {
    color: var(--primary-color-1);
    margin-bottom: 1rem;
}

.package-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color-2);
    margin-bottom: 1rem;
}

.package-card .btn {
    margin-top: auto;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color-1);
    box-shadow: 0 0 0 0.2rem rgba(13, 111, 179, 0.25);
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 111, 179, 0.3);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color-2);
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color-1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    /* Header and Navigation - Enhanced */
   
    
    /* Hero Section - Enhanced */
    .hero {
        padding: 1.5rem 1rem;
        min-height: 85vh;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        margin-top: 50px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.8rem;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        border-radius: 30px;
    }
    
    /* Sections - Enhanced */
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        line-height: 1.3;
    }
    
    /* Services Grid - Enhanced */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .service-list li {
        padding: 0.6rem 0;
        font-size: 0.95rem;
    }
    
    /* About Stats - Enhanced */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(13, 111, 179, 0.05);
        border-radius: 10px;
    }
    
    .stat-item h3 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item p {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Works Section - Enhanced */
    .works-swiper {
        padding: 1rem 0;
    }
    
    .work-image {
        height: 220px;
    }
    
    .work-content {
        padding: 1.2rem;
    }
    
    .work-content h4 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .work-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Enhanced Partners Section - Mobile */
    .partners-section-enhanced {
        padding: 3rem 1rem 4rem;
    }

    .section-title-enhanced {
        font-size: 2rem;
    }

    .section-subtitle-enhanced {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .partners-container-enhanced {
        padding: 2rem 1rem;
    }

    .partner-card-enhanced {
        width: 140px;
        height: 100px;
    }

    .partners-controls {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    /* Package Cards - Enhanced */
    .package-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .package-card h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .package-card .price {
        font-size: 1.8rem;
        font-weight: bold;
        color: var(--primary-color-2);
        margin-bottom: 1rem;
    }
    
    .features-list {
        text-align: right;
        margin-bottom: 1.5rem;
    }
    
    .features-list li {
        padding: 0.5rem 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(13, 111, 179, 0.1);
    }
    
    .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    /* Contact Form - Enhanced */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .form-control {
        padding: 1rem;
        font-size: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    /* Footer - Enhanced */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* Typography Adjustments - Enhanced */
    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Extra Small Devices (phones in portrait mode) - Enhanced */
@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 1rem 0.8rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .work-image {
       width: fit-content;
    height: fit-content;
    }
    
    .partner-logo-enhanced {
        max-width: auto-fit;
        
    }
    .about-stats {
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 2.5rem 0.8rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-control {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 15px;
        right: 12px;
    }

    /* Enhanced Partners Section - Extra Small */
    .section-title-enhanced {
        font-size: 1.6rem;
    }

    .partner-card-enhanced {
        width: 120px;
        height: 80px;
    }

    .partners-track {
        gap: 1rem;
    }
}

/* Tablet Adjustments - Enhanced */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .service-card {
        padding: 1.8rem;
    }
    
    .contact-form {
        padding: 1.8rem;
    }

    /* Enhanced Partners Section - Tablet */
    .partner-card-enhanced {
        width: 160px;
        height: 110px;
    }
}

/* Large Mobile Devices (landscape mode) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .section {
        padding: 2.5rem 1rem;
    }

    .partners-section-enhanced {
        padding: 2.5rem 1rem 3rem;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .nav-links a,
    .cta-button,
    .btn-primary,
    .language-toggle {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .service-card,
    .package-card,
    .article-card,
    .partner-card-enhanced {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(13, 111, 179, 0.1);
    }
    
    .whatsapp-float {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Improved mobile navigation */
@media (max-width: 768px) {
    .mobile-toggle {
        position: relative;
        z-index: 1001;
        background: var(--primary-color-1);
        color: white;
        border-radius: 8px;
        padding: 0.6rem 0.8rem;
        transition: all 0.3s ease;
    }
    
    .mobile-toggle:hover {
        background: var(--primary-color-2);
        transform: scale(1.05);
    }
    
    .mobile-toggle.active {
        background: var(--primary-color-2);
    }
    
    .nav-links {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Work cards mobile optimization */
@media (max-width: 768px) {
    .work-overlay {
        position: static;
        transform: none;
        background: rgba(0, 0, 0, 0.85);
        padding: 1rem;
    }
    
    .work-item {
        margin-bottom: 1rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}