/* =====================================================
   VARIABLES & RESET
===================================================== */
:root {
    /* الألوان الأساسية */
    --bg-hero-gradient-start: #EBE3F9;
    --bg-hero-gradient-mid: #DCD4F2;
    --bg-hero-gradient-end: #F3F0FC;

     /* Social Media Colors */
    --facebook-blue: #1877F2;
    --instagram-pink: #E4405F;
    --tiktok-black: #000000;
    
    --dark-bg: #1A1625;
    --primary-purple: #6D5B97;
    --accent-pink: #FF8FA3;
    --text-main: #2D2A3E;
    --text-light: #6B6385;
    
    --white: #FFFFFF;
    --gray-100: #F9F7FD;
    --gray-200: #E5E7EB;
    --gray-300: #D1C8E6;
    --gray-600: #5E5475;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Changa', sans-serif;
    color: var(--text-main);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animations Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* العناصر داخل الأقسام تظهر مباشرة مع القسم */
.fade-in-up.visible .fade-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   GPU ACCELERATION - تسريع الأنيميشنات
===================================================== */

/* فقط العناصر المتحركة فعلياً في Hero */
.element-container,
.landscape-wrapper,
.cloud-left,
.cloud-right {
    will-change: transform;
    backface-visibility: hidden;
}

/* =====================================================
   HEADER (مع مسافات متساوية)
===================================================== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: var(--primary-purple);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* تأثير Hover على روابط المنيو */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6D5B97;
    transition: width 0.3s ease, background 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* عند السكرول - تغيير لون الروابط */
header#navbar.scrolled .nav-link {
    color: white;
}

#navbar.scrolled .nav-link::after {
    background: var(--accent-pink);
}

header#navbar.scrolled .nav-link:hover {
    color: var(--accent-pink);
}

/* =====================================================
   SOCIAL ICONS - Font Sizes & Container Animation
===================================================== */

/* Container Animation */
.social-icons-container {
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

/* Header & Footer Icons - Default Sizes */
.social-icon-link .fa-facebook-f {
    font-size: 20px;
}

.social-icon-link .fa-instagram {
    font-size: 22px;
}

.social-icon-link .fa-tiktok {
    font-size: 20px;
}

/* Mobile Menu Icons - Smaller Sizes */
.mobile-social-icon .fa-facebook-f,
.mobile-social-icon .fa-instagram,
.mobile-social-icon .fa-tiktok {
    font-size: 18px;
}

/* =====================================================
   HEADER CTA BUTTON - تحسين الأنماط
===================================================== */

/* عند عبور الماوس (Hover) */
header#navbar a[href="contact.html"]:hover {
    border-color: #6D5B97;
    color: #6D5B97;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(109, 91, 151, 0.15);
}

/* عند الضغط (Active) */
header#navbar a[href="contact.html"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(109, 91, 151, 0.2);
}

/* =====================================================
   NAVBAR SOCIAL ICONS - MS-DOS STYLE
===================================================== */

/* رمز البرمجة (يومض) */
.code-symbol {
    animation: blink 1.5s infinite;
    margin-right: 8px;
    color: #FF8FA3;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* حاوية الأيقونات - تظهر بالتدريج */
.social-icons-container {
    animation: fadeInIcons 1.2s ease-out;
}

@keyframes fadeInIcons {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================================================
   SOCIAL ICONS - أنماط موحدة
===================================================== */

/* Base Style للأيقونات */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border-style: solid;
    border-width: 2px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 0.1;
}

.social-icon:hover i,
.social-icon:hover .fab {
    color: white;
}

/* الأحجام */
.social-icon--header,
.social-icon--footer {
    width: 40px;
    height: 40px;
}

.social-icon--mobile {
    width: 45px;
    height: 45px;
}

/* Facebook */
.social-icon--facebook {
    color: var(--facebook-blue);
    border-color: var(--facebook-blue);
}

.social-icon--facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

/* Instagram */
.social-icon--instagram {
    color: var(--instagram-pink);
    border-color: var(--instagram-pink);
}

.social-icon--instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #E4405F;
    transform: translateY(-3px) scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.4);
}

/* TikTok */
.social-icon--tiktok {
    color: var(--tiktok-black);
    border-color: var(--tiktok-black);
}

.social-icon--tiktok:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-3px) scale(1.1) rotate(-5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* تأثير النبض عند التحميل */
.social-icon-link {
    animation: none;
}

@keyframes iconPulseOnce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* عند السكرول (navbar scrolled) */
#navbar.scrolled .social-icon {
    width: 36px;
    height: 36px;
}

#navbar.scrolled .code-symbol {
    font-size: 1.3rem;
}

/* خلفية بيضاء للأيقونات عند السكرول - الكمبيوتر فقط */
@media (min-width: 769px) {
    #navbar.scrolled .social-icon {
        background: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    /* Facebook Hover عند السكرول */
    #navbar.scrolled .social-icon--facebook:hover {
        background: #1877F2;
        border-color: #1877F2;
    }
    
    #navbar.scrolled .social-icon--facebook:hover i {
        color: white;
    }
    
    /* Instagram Hover عند السكرول */
    #navbar.scrolled .social-icon--instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        border-color: #E4405F;
    }
    
    #navbar.scrolled .social-icon--instagram:hover i {
        color: white;
    }
    
    /* TikTok Hover عند السكرول */
    #navbar.scrolled .social-icon--tiktok:hover {
        background: #000000;
        border-color: #000000;
    }
    
    #navbar.scrolled .social-icon--tiktok:hover i {
        color: white;
    }
}

/* Mobile CTA Button */
.mobile-cta-button {
    background: transparent;
}

.mobile-cta-button:hover,
.mobile-cta-button:active {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
}

/* =====================================================
   HERO SECTION
===================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(180deg, 
        var(--bg-hero-gradient-start) 0%, 
        #F0EBFD 50%, 
        #FFFFFF 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
    z-index: 1;
}

/* =====================================================
   CLOUDS WITH TOOLTIPS (تحديث كامل)
===================================================== */
.clouds-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.cloud-left {
    position: absolute;
    bottom: 560px;
    left: 5%;
    width: 400px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    animation: slideInFromLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    background: none;
}

.cloud-right {
    position: absolute;
    bottom: 450px;
    right: 8%;
    width: 308px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    animation: slideInFromRight 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    background: none;
}

.cloud-left img,
.cloud-right img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    filter: drop-shadow(0 10px 20px rgba(109, 91, 151, 0.15));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cloud-left:hover,
.cloud-right:hover {
    transform: scale(1.05) translateY(-5px);
}

.cloud-left:hover img,
.cloud-right:hover img {
    opacity: 1;
}

.cloud-left .float-anim {
    animation: floatHorizontal 8s ease-in-out infinite;
    animation-delay: 0s;
}

.cloud-right .float-anim {
    animation: floatHorizontal 7s ease-in-out infinite;
    animation-delay: 0.2s;
}

.hero-text-content {
    position: relative;
    z-index: 50;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-text-content.loaded {
    animation: none !important;
    opacity: 1;
}

/* إنزال hero-text-content في الموبايل فقط */
@media (max-width: 768px) {
    .hero-text-content {
        margin-top: 00px;
    }
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.2;
    font-weight: 800;
    color: #2D2A3E;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.slash-highlight {
    position: relative;
    color: var(--primary-purple);
    display: inline-block;
}

.slash-highlight::before {
    content: '</';
    color: var(--accent-pink);
    margin: 0 8px;
    font-weight: 300;
}

.slash-highlight::after {
    content: '/>';
    color: var(--accent-pink);
    margin: 0 8px;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #6B6385;
    font-weight: 500;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.desktop-text {
    display: block;
}

.mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }
    
    .mobile-text {
        display: block;
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.btn-primary {
    background-color: var(--primary-purple);
    color: white;
    padding: 18px 45px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(109, 91, 151, 0.25);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #5A4B7D;
    box-shadow: 0 12px 25px rgba(109, 91, 151, 0.35);
}

.btn-ai {
    background: white;
    border: 2px solid #D1C8E6;
    color: var(--primary-purple);
    padding: 18px 45px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    min-width: 240px;
}

.btn-ai:hover {
    transform: translateY(-3px);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 20px rgba(109, 91, 151, 0.2);
}

.ai-icon {
    font-size: 1.5rem;
    transition: transform var(--transition);
}

/* إظهار/إخفاء النصوص حسب الجهاز */
.btn-text-desktop {
    display: inline;
}

.btn-text-mobile {
    display: none;
}

@media (max-width: 768px) {
    .btn-text-desktop {
        display: none;
    }
    
    .btn-text-mobile {
        display: inline;
    }
}

.btn-ai:hover .ai-icon {
    transform: rotate(180deg);
}

.landscape-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: slideUpFromBottom 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center bottom;
}

.landscape-wrapper.loaded {
    animation: none !important;
    opacity: 1;
    transform: scale(var(--stretch-scale, 1)) 
               translateY(var(--stretch-y, 0));
}

.vibes-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
}

.element-container {
    position: absolute;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    background: none;
}

.element-container.loaded {
    animation: none !important;
    opacity: 1;
    transform: scale(var(--stretch-scale, 1)) 
               translateX(var(--stretch-x, 0)) 
               translateY(var(--stretch-y, 0));
}

.element-container:hover {
    transform: scale(1.05) translateY(-5px);
}

.robot-wrapper {
    bottom: -20px;
    left: 5%;
    width: 340px;
    animation: slideInFromLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    background: none;
}

.laptop-wrapper {
    bottom: -30px;
    right: 5%;
    width: 420px;
    animation: slideInFromRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    background: none;
}

.float-anim {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0s;
    filter: drop-shadow(0 10px 20px rgba(109, 91, 151, 0.2));
    background: none;
}

.float-delayed {
    animation-delay: 0.3s;
}

/* ✅ Keyframes - نسخة واحدة فقط */
@keyframes floatHorizontal {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(30px, 0, 0); }
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -18px, 0); }
}

/* تقليل حركة السحابات في الموبايل */
@media (max-width: 768px) {
    @keyframes floatHorizontalMobile {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50% { transform: translate3d(15px, 0, 0); }
    }
    
    .cloud-left .float-anim,
    .cloud-right .float-anim {
        animation-name: floatHorizontalMobile;
    }
}

@media (max-width: 480px) {
    @keyframes floatHorizontalSmall {
        0%, 100% { transform: translate3d(0, 0, 0); }
        50% { transform: translate3d(8px, 0, 0); }
    }
    
    .cloud-left .float-anim,
    .cloud-right .float-anim {
        animation-name: floatHorizontalSmall;
    }
}

/* =====================================================
   PAGE LOAD ANIMATIONS - HERO SECTION (ENTRY ONLY)
===================================================== */
@keyframes slideInFromRight {
    from {
        transform: translateX(150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-150%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tooltip الأصلي (للروبوت، الكمبيوتر، السحابة اليمنى) - يبقى كما هو */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-purple);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 15px;
    border: 2px solid var(--gray-200);
}

.element-container:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ✅ Tooltip للسحابة اليسرى فقط - يظهر أسفلها */
.cloud-tooltip-bottom {
    position: absolute;
    top: 100%; /* يظهر أسفل */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-purple);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
    white-space: nowrap;
    margin-top: 15px;
    border: 2px solid var(--gray-200);
}

.element-container:hover .cloud-tooltip-bottom {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =====================================================
   SCROLL DOWN ARROW
===================================================== */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scroll-arrow .scroll-arrow-circle {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 3px solid var(--accent-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 143, 163, 0.25);
    transition: all 0.3s ease;
    animation: bounceArrowCircle 2s ease-in-out infinite;
}

.scroll-arrow .scroll-arrow-circle svg {
    color: var(--accent-pink);
    transition: all 0.3s ease;
}

.scroll-arrow:hover .scroll-arrow-circle {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 6px 20px rgba(109, 91, 151, 0.4);
    transform: scale(1.1);
    animation: none;
}

.scroll-arrow:hover .scroll-arrow-circle svg {
    color: white;
}

.scroll-arrow.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes bounceArrowCircle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .scroll-arrow {
        bottom: 25px;
    }
    
    .scroll-arrow .scroll-arrow-circle {
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }
    
    .scroll-arrow .scroll-arrow-circle svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .scroll-arrow {
        bottom: 20px;
    }
    
    .scroll-arrow .scroll-arrow-circle {
        width: 32px;
        height: 32px;
        border-width: 2px;
    }
    
    .scroll-arrow .scroll-arrow-circle svg {
        width: 14px;
        height: 14px;
    }
}
/* =====================================================
   RECOGNITION SECTION - NEW DESIGN
===================================================== */
.recognition-section {
    padding: 80px 0;
    background: white;
}

.logos-title {
    text-align: center;
    font-size: 2.5rem; /* نفس حجم testimonial-quote */
    line-height: 1.5;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* اللون البنفسجي لكلمة "موثوق به" */
.logos-title .highlight {
    color: var(--primary-purple);
}

/* أنيميشن Keyframes */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 50px;
    background: white;
    border: 2px solid #D1C8E6;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logos-container:hover {
    box-shadow: 0 8px 25px rgba(109, 91, 151, 0.12);
    border-color: #B8A8D8;
    transform: scale(1.02);
}
.logo-item {
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.logo-item img {
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 0.85; /* أقل شفافية */
    filter: grayscale(30%); /* أقل رمادية */
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Glass Card - Class موحد */
.glass-card {
    position: relative;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(249, 247, 253, 0.9) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid transparent;
    box-shadow: 
        0 12px 35px rgba(109, 91, 151, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.glass-card:hover {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 1) 0%,
        rgba(243, 240, 252, 1) 100%
    );
    box-shadow: 
        0 20px 40px rgba(109, 91, 151, 0.18),
        0 8px 20px rgba(109, 91, 151, 0.1),
        0 0 0 1px rgba(255, 255, 255, 1) inset;
}

/* =====================================================
   SERVICES SECTION
===================================================== */
.services-section {
    padding: 80px 0 120px 0;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: var(--primary-purple);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* إزالة الأنيميشن من العناصر الداخلية */
.services-section.visible .service-card,
.difference-section.visible .difference-step,
.fearless-section.visible .case-study-card {
    opacity: 1 !important;
    transform: none !important;
}

.service-card {
    padding: 45px;
    border-radius: 24px;
}

/* Gradient Border فقط */
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(109, 91, 151, 0.2),
        rgba(255, 143, 163, 0.15),
        rgba(109, 91, 151, 0.2)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.gradient-border:hover::before {
    background: linear-gradient(135deg, 
        rgba(109, 91, 151, 0.6),
        rgba(255, 143, 163, 0.4),
        rgba(109, 91, 151, 0.6)
    );
}

/* Shimmer Effect فقط (الضوء المتحرك) */
.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(109, 91, 151, 0.15),
        transparent
    );
    transition: left 0.8s ease;
    z-index: 0;
    pointer-events: none;
}

.shimmer-effect:hover::after {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
}

/* جعل المحتوى فوق التأثيرات */
.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, 
        #6D5B97 0%, 
        #8B7AB8 50%,
        #6D5B97 100%
    );
    background-size: 200% 200%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 8px 25px rgba(109, 91, 151, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Shimmer Effect */
.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.7s ease;
}

/* Glow Background */
.service-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(
        circle,
        rgba(109, 91, 151, 0.6) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
    filter: blur(15px);
}

.service-card:hover .service-icon {
    transform: translateY(-8px) scale(1.15) rotate(-5deg);
    background-position: 100% 100%;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 12px 35px rgba(109, 91, 151, 0.4),
        0 6px 15px rgba(255, 143, 163, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.service-card:hover .service-icon::before {
    left: 120%;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

@keyframes iconPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.service-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-purple);
    font-weight: 700;
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 12px;
}

/* =====================================================
   MOBILE MENU - Purple Glassmorphism Design
===================================================== */
.mobile-menu {
    height: auto;
}

.mobile-menu-content {
    border: 3px solid rgba(109, 91, 151, 0.4);
    border-radius: 24px 0 0 24px;
    padding: 25px 25px 30px 25px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-menu.active .shimmer-effect::after {
    left: 100%;
}

.mobile-menu-content > * {
    position: relative;
    z-index: 1;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Close Button */
.mobile-menu-close {
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    color: var(--primary-purple);
    transform: rotate(90deg);
}

/* Navigation Links */
.mobile-menu nav a {
    transition: all 0.3s ease;
}

.mobile-menu nav a:hover {
    color: var(--primary-purple);
    transform: translateX(-5px);
}

/* Scrollbar Styling */
.mobile-menu-content::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(109, 91, 151, 0.1);
    border-radius: 10px;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 10px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: #5A4B7D;
}

/* =====================================================
   NAVBAR ELEMENTS FADE ON MENU OPEN
===================================================== */
.navbar-logo,
.mobile-menu-toggle {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* عند فتح المنيو */
body.menu-open .navbar-logo,
body.menu-open .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Close Button Enhancement */
.mobile-menu-close {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(109, 91, 151, 0.1);
}

.mobile-menu-close:hover {
    background: var(--primary-purple);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* =====================================================
   TESTIMONIALS SECTION
===================================================== */
.testimonials-section {
    padding: 120px 0;
    background: var(--gray-100);
    position: relative;
}

.testimonial-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-photos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.testimonial-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    border: 3px solid transparent;
    opacity: 0.5;
    filter: grayscale(100%);
}

.testimonial-photo.active {
    width: 90px;
    height: 90px;
    border-color: var(--primary-purple);
    opacity: 1;
    filter: grayscale(0%);
    box-shadow: 0 8px 25px rgba(109, 91, 151, 0.3);
}

.testimonial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-item {
    display: none;
}

.testimonial-item.active {
    display: block;
    animation: fadeInTestimonial 0.6s ease;
}

@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-text {
    font-size: 2rem;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 30px;
}

.testimonial-text .highlight {
    color: var(--primary-purple);
}

.testimonial-author-info {
    font-size: 1.1rem;
    color: var(--text-light);
}

.testimonial-author-name {
    font-weight: 700;
    color: var(--text-main);
}

/* =====================================================
   DIFFERENCE SECTION
===================================================== */
.difference-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-hero-gradient-start) 0%, var(--bg-hero-gradient-end) 100%);
}

.difference-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 80px;
}

.difference-step {
    padding: 45px;
    border-radius: 24px;
}

.difference-step:hover {
    transform: translateY(-15px) scale(1.02);
}

.difference-step > * {
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-purple);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.4;
}

.step-title .highlight {
    color: var(--primary-purple);
}

.step-description {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.8;
}

/* =====================================================
   FEARLESS SECTION (Case Studies)
===================================================== */
.fearless-section {
    padding: 120px 0;
    background: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.case-study-card {
    position: relative;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 15px 40px rgba(109, 91, 151, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.case-study-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    transition: all 0.6s ease;
}

/* Gradient Border on Hover */
.case-study-card::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(135deg, 
        #6D5B97,
        #FF8FA3,
        #6D5B97
    );
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: borderGradient 3s linear infinite;
}

.case-study-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 70px rgba(109, 91, 151, 0.3),
        0 15px 35px rgba(109, 91, 151, 0.2),
        0 0 60px rgba(255, 143, 163, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.case-study-card:hover::before {
    background: linear-gradient(180deg, 
        rgba(109, 91, 151, 0.4) 0%, 
        rgba(109, 91, 151, 0.6) 50%,
        rgba(26, 22, 37, 0.9) 100%
    );
}

.case-study-card:hover::after {
    opacity: 1;
}

.case-study-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.9);
}

.case-study-card:hover .case-study-bg {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

.case-study-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: white;
}

.case-study-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    transition: all var(--transition);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: gap var(--transition);
}

.case-study-card:hover .case-study-link {
    gap: 15px;
}

.case-study-title {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.case-study-card:hover .case-study-title {
    transform: translateX(-5px);
    text-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(109, 91, 151, 0.4);
}

.case-study-link svg {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.case-study-card:hover .case-study-link svg {
    transform: translateX(-5px);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.case-study-link svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* =====================================================
   CTA SECTION
===================================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, #5A4B7D 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 40px;
}

.cta-title .highlight {
    color: var(--accent-pink);
}

.cta-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.cta-subtitle .highlight {
    color: var(--accent-pink);
    font-weight: 700;
}

.btn-cta-large {
    padding: 20px 50px;
    background: white;
    color: var(--primary-purple);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    display: inline-block;
}

.btn-cta-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* =====================================================
   FOOTER - تصميم جديد
===================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--bg-hero-gradient-start) 0%, var(--bg-hero-gradient-end) 100%);
    color: var(--text-main);
    padding: 80px 0 0;
    border-top: 2px solid var(--gray-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    align-items: start;
    direction: rtl;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-100px);
}

.footer-logo-section img {
    height: 60px;
    margin-bottom: 25px;
}

.footer-logo-section img {
    height: 60px;
    margin-bottom: 25px;
}

.footer-social-intro {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-main);
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: block;
}

.footer-socials {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: right;
}

.footer-links {
    text-align: right;
    direction: rtl;
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 700;
    transition: color var(--transition);
    text-align: right;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.footer-contact {
    text-align: right;
    direction: rtl;
}

.footer-contact p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
}

.footer-contact a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--accent-pink);
}

.footer-copyright {
    border-top: 2px solid var(--gray-300);
    padding: 30px 0;
    text-align: center;
    color: var(--accent-pink);
    font-size: 14px;
    font-weight: 700;
}

/* =====================================================
   RESPONSIVE DESIGN - UNIFIED MEDIA QUERIES
===================================================== */

/* ========== DESKTOP ONLY (min-width: 769px) ========== */
@media (min-width: 769px) {
    /* Footer */
    .footer-logo-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateX(120px);
    }
    
    .footer-social-intro {
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    /* Navbar Scrolled */
    #navbar.scrolled .social-icon {
        background: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* ========== TABLET (max-width: 1024px) ========== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3.2rem;
        line-height: 1.3;
    }

    .section-title {
        font-size: 2.8rem;
        line-height: 1.4;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .difference-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        transform: translateX(0);
    }
}

/* ========== MOBILE LARGE (max-width: 880px) ========== */
@media (max-width: 880px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .hero-text-content {
        margin-bottom: 40px;
        padding: 0 25px;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 15px;
    }

    .btn-primary,
    .btn-ai {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        padding: 16px 35px;
    }

    /* Clouds & Elements */
    .cloud-left {
        width: 180px;
        bottom: 450px;
        left: 3%;
    }
    
    .cloud-right {
        width: 140px;
        bottom: 450px;
        right: 3%;
    }
    
    .landscape-wrapper {
        height: 140px;
    }
    
    .robot-wrapper {
        width: 180px;
        left: 1%;
        bottom: 15px;
    }

    .laptop-wrapper {
        width: 200px;
        right: 1%;
        bottom: 10px;
    }

    /* Services */
    .services-section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2.3rem;
        line-height: 1.4;
    }

    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.7;
    }
}

/* ========== MOBILE (max-width: 768px) ========== */
@media (max-width: 768px) {
    /* Navbar */
    #navbar {
        padding: 1rem 0;
    }

    #navbar .max-w-\[1400px\] {
        padding: 0 20px;
    }

    #navbar img {
        height: 45px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    #navbar.scrolled .mobile-menu-toggle span {
        background: white;
    }

    #navbar .grid {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
    
    #navbar .justify-end {
        justify-content: flex-start;
    }

    /* Hero */
    .hero-section {
        min-height: 90vh;
        height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.3rem;
        line-height: 1.35;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-ai {
        flex: 1;
        max-width: 160px;
        min-width: 140px;
        font-size: 0.85rem;
        padding: 12px 16px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        white-space: nowrap;
    }

    /* Recognition Section */
    .logos-title {
        font-size: 1.8rem;
        padding: 0 15px;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .logos-container {
        padding: 30px 20px;
        gap: 25px;
    }

    .logo-item img {
        height: 65px;
    }

    /* Services */
    .services-section {
        padding: 60px 0;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 25px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 35px;
    }

    .service-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
        text-align: center;
    }

    .service-description {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: center;
    }

    .service-link {
        justify-content: center;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-photos {
        gap: 12px;
        margin-bottom: 40px;
    }

    .testimonial-photo {
        width: 55px;
        height: 55px;
    }

    .testimonial-photo.active {
        width: 75px;
        height: 75px;
    }

    .testimonial-text {
        font-size: 1.4rem;
        line-height: 1.6;
    }

    .testimonial-author-info {
        font-size: 1rem;
    }

    /* Difference Section */
    .difference-section {
        padding: 60px 0;
    }

    .difference-step {
        padding: 35px;
    }

    .step-number {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }

    .step-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }

    .step-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Case Studies */
    .fearless-section {
        padding: 60px 0;
    }

    .case-study-card {
        height: 400px;
    }

    .case-study-title {
        font-size: 1.2rem;
    }

    /* CTA */
    .cta-section {
        padding: 80px 0;
    }

    .cta-title {
        font-size: 2.2rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }

    .cta-subtitle {
        font-size: 1.5rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .btn-cta-large {
        font-size: 1.1rem;
        padding: 18px 45px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        transform: translateX(0);
    }

    .footer-social-intro {
        text-align: center;
    }

    .footer-logo-section,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-links a,
    .footer-contact p {
        text-align: center;
    }

    /* Mobile Menu */
    .mobile-menu {
        width: 85%;
        max-width: 350px;
    }

    .mobile-menu nav a {
        font-size: 1.05rem;
        padding: 15px 0;
    }

    .mobile-menu .block {
        margin-top: 25px;
        font-size: 1rem;
        padding: 14px 25px;
    }

    .hero-element-clean,
    .hero-element-clean * {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
    }
}

/* ========== MOBILE SMALL (max-width: 480px) ========== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 18px;
    }

    /* Navbar */
    #navbar img {
        height: 40px;
    }

    /* Hero */
.hero-section {
    min-height: 90vh;
    height: auto;
    padding-top: 85px;
    padding-bottom: 40px;
}

    .hero-text-content {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.35;
        margin-bottom: 18px;
    }

    .slash-highlight::before,
    .slash-highlight::after {
        margin: 0 4px;
        font-size: 0.9em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.8rem;
    }

     .hero-buttons {
        gap: 8px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-ai {
        flex: 1;
        max-width: 150px;
        min-width: 130px;
        font-size: 0.8rem;
        padding: 11px 14px;
        min-height: 46px;
        gap: 5px;
    }

    .ai-icon {
        font-size: 0.95rem;
    }

    /* Clouds & Elements */
    .cloud-left {
        width: 150px;
        bottom: 480px;
        left: 2%;
    }
    
    .cloud-right {
        width: 120px;
        bottom: 480px;
        right: 10%;
    }
    
    .landscape-wrapper {
        height: 100px;
    }
    
    .robot-wrapper {
        width: 130px;
        left: 0;
        bottom: -18px;
    }

    .laptop-wrapper {
        width: 150px;
        right: 0;
        bottom: -18px;
    }

    /* Tooltips */
    .tooltip,
    .cloud-tooltip-bottom {
        display: none;
    }

    /* Recognition */
    .logos-title {
        font-size: 1.6rem;
        padding: 0 10px;
        line-height: 1.5;
    }

    .logos-container {
        padding: 25px 15px;
        gap: 20px;
    }

    .logo-item img {
        height: 55px;
    }

    /* Services */
    .services-section {
        padding: 50px 0;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.9rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .services-grid {
        gap: 18px;
    }

    .service-card {
        padding: 30px;
    }

    .service-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .service-link {
        font-size: 0.9rem;
        margin-top: 15px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonial-photos {
        gap: 10px;
        margin-bottom: 35px;
        flex-wrap: wrap;
    }

    .testimonial-photo {
        width: 50px;
        height: 50px;
    }

    .testimonial-photo.active {
        width: 65px;
        height: 65px;
    }

    .testimonial-content {
        min-height: 240px;
    }

    .testimonial-text {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .testimonial-author-info {
        font-size: 0.9rem;
    }

    /* Difference */
    .difference-section {
        padding: 50px 0;
    }

    .difference-steps {
        gap: 20px;
    }

    .difference-step {
        padding: 30px;
    }

    .step-number {
        font-size: 3rem;
        margin-bottom: 12px;
    }

    .step-title {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    /* Case Studies */
    .fearless-section {
        padding: 50px 0;
    }

    .case-studies-grid {
        gap: 20px;
    }

    .case-study-card {
        height: 350px;
    }

    .case-study-content {
        padding: 25px;
    }

    .case-study-title {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .case-study-link {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.9rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .cta-subtitle {
        font-size: 1.25rem;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .btn-cta-large {
        font-size: 1rem;
        padding: 16px 40px;
    }

    /* Footer */
    .site-footer {
        padding: 60px 0 0;
    }

    .footer-grid {
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-logo-section img {
        height: 50px;
        margin: 0 auto 20px;
    }

    .footer-social-intro {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links a,
    .footer-contact p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-copyright {
        padding: 25px 0;
        font-size: 13px;
    }
}

/* ========== MOBILE EXTRA SMALL (max-width: 360px) ========== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn-primary,
    .btn-ai {
        font-size: 0.95rem;
        padding: 13px 25px;
    }

    .service-card {
        padding: 25px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .cta-title {
        font-size: 1.7rem;
    }

    .cta-subtitle {
        font-size: 1.15rem;
    }
}

/* ========== TOUCH OPTIMIZATION ========== */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-ai,
    .btn-cta-large {
        min-height: 48px;
        padding: 16px 35px;
    }

    .service-card,
    .difference-step,
    .case-study-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(109, 91, 151, 0.1);
    }

    a {
        -webkit-tap-highlight-color: rgba(109, 91, 151, 0.1);
    }

    .service-card:hover,
    .difference-step:hover {
        transform: none;
    }

    .service-card:active,
    .difference-step:active {
        transform: scale(0.98);
    }
}

/* ========== NAVBAR LAYOUT ========== */
@media (min-width: 769px) {
    #navbar .max-w-\[1400px\] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .navbar-logo {
        flex: 0 0 auto;
    }

    #navbar nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    #navbar .hidden.md\:flex {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    #navbar .max-w-\[1400px\] {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-logo {
        order: 2;
    }

    .mobile-menu-toggle {
        order: 1;
    }

    #navbar .hidden.md\:flex {
        display: none !important;
    }
}

/* ========== TAP HIGHLIGHT REMOVAL ========== */
.hero-no-tap,
.hero-no-tap * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.hero-no-tap:focus {
    outline: none;
}

.hero-no-tap:active {
    background-color: transparent;
    background: none;
}

/* ========== MOBILE - Fast Section Reveal ========== */
@media (max-width: 768px) {
    .fade-in,
    .fade-in-up {
        transition-duration: 0.3s !important;
        transition-delay: 0s !important;
    }
    
    .service-card,
    .difference-step,
    .case-study-card {
        transition-duration: 0.2s !important;
        transition-delay: 0s !important;
    }
}