@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');
:root {
    --primary-blue: #2196F3;
    --secondary-blue: #1976D2;
    --light-blue: #64B5F6;
    --accent-blue: #03A9F4;
    --dark-blue: #0D47A1;
    --gold: #FFB300;
    --light-gold: #FFC947;
    --background-light: #E3F2FD;
    --text-dark: #1565C0;
    --text-medium: #1976D2;
    --text-light: #2196F3;
    --white: #FFFFFF;
    --shadow: rgba(33, 150, 243, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Language switcher */
.language-switcher {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

body[dir="ltr"] .language-switcher {
    left: auto;
    right: 20px;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
    text-decoration: none;
}

.lang-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--primary-blue);
}

@media (max-width: 992px) {
    .language-switcher {
        position: fixed;
        bottom: 20px;
        right: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
    }

    body[dir="ltr"] .language-switcher {
        left: 20px;
        right: auto;
    }
}

/* Base styles for different languages */
body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Improved Arabic fonts */
html[lang="ar"] {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Tajawal', 'Tahoma', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.02em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[lang="ar"] {
    font-family: 'Cairo', 'Noto Sans Arabic', 'Tajawal', 'Tahoma', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* Arabic headings */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6 {
    font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Arabic paragraphs */
body[lang="ar"] p {
    line-height: 1.9;
    margin-bottom: 1.2em;
    word-spacing: 0.1em;
}

/* Arabic links and buttons */
html[lang="ar"] a,
html[lang="ar"] button {
    font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;
    font-weight: 500;
}

/* Arabic forms */
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
    font-family: 'Cairo', 'Tajawal', 'Noto Sans Arabic', sans-serif;
    font-weight: 400;
}

/* Special Arabic logo font */
html[lang="ar"] .logo span {
    font-family: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'Cairo', serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

html[lang="ar"] .logo {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] .logo:hover span {
    color: var(--secondary-blue);
    text-shadow: 0 3px 12px rgba(25, 118, 210, 0.4);
    transition: all 0.3s ease;
}

/* English fonts */
body[lang="en"] {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
}

body[lang="uz"] {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
}

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

/* Floating particles background */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--light-blue);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(50px) rotate(180deg);
        opacity: 1;
    }
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-contact {
    display: flex;
    gap: 20px;
}

.header-social {
    display: flex;
    gap: 10px;
}

.header-social a {
    color: white;
    text-decoration: none;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.header-social a:hover::before {
    width: 100%;
    height: 100%;
}

.header-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.navbar {
    padding: 15px 0;
    position: relative;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--gold));
    box-shadow: 0 8px 25px var(--shadow);
    position: relative;
}

.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
}

.logo-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: logoShine 4s infinite;
}

@keyframes logoShine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    50% { transform: translate(100%, 100%) rotate(45deg); }
    100% { transform: translate(-100%, -100%) rotate(45deg); }
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 12px 0;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--light-blue));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--light-blue), var(--gold));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: rgba(33, 150, 243, 0.1);
    z-index: 1002;
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle:hover {
    background: rgba(33, 150, 243, 0.2);
}

.mobile-menu-toggle.active {
    background: var(--primary-blue);
    color: white;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active::before {
    background: transparent;
    box-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active::after {
    opacity: 1;
    box-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

.mobile-menu-toggle.active::before {
    transform: translate(-50%, -50%) rotate(-45deg);
    background: currentColor;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 1001;
        padding: 80px 20px 40px;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    }

    /* RTL support for mobile menu */
    body[dir="rtl"] .nav-links {
        right: -100%;
        left: auto;
    }

    body[dir="ltr"] .nav-links {
        right: auto;
        left: -100%;
    }

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

    body[dir="rtl"] .nav-links.active {
        right: 0;
        left: auto;
    }

    body[dir="ltr"] .nav-links.active {
        left: 0;
        right: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
        padding: 15px;
        display: block;
        width: 100%;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(-5px);
    }

    body[dir="ltr"] .nav-links a:hover {
        transform: translateX(5px);
    }

    body[dir="rtl"] .nav-links a:hover {
        transform: translateX(-5px);
    }

    .nav-links a::before,
    .nav-links a::after {
        display: none;
    }

    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-contact {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    /* Arabic logo responsive */
    html[lang="ar"] .logo span {
        font-size: 1.4rem;
    }
}

/* Hero Slider with enhanced effects */
.hero-slider {
    margin-top: 120px;
    height: 700px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-1 {
    background: linear-gradient(rgba(33, 150, 243, 0.8), rgba(25, 118, 210, 0.8)), url('https://images.unsplash.com/photo-1631815588090-d4bfec5b1ccb?q=80&w=1470');
    background-size: cover;
    background-position: center;
}

.slide-2 {
    background: linear-gradient(rgba(25, 118, 210, 0.8), rgba(100, 181, 246, 0.8)), url('https://images.unsplash.com/photo-1665686376173-ada7a0031a85?q=80&w=1470');
    background-size: cover;
    background-position: center;
}

.slide-3 {
    background: linear-gradient(rgba(100, 181, 246, 0.8), rgba(255, 179, 0, 0.8)), url('https://images.unsplash.com/photo-1582719471384-894fbb16e074?q=80&w=1470');
    background-size: cover;
    background-position: center;
}

.slide::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 1200 700"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="700" fill="url(%23grid)"/><circle cx="200" cy="150" r="120" fill="rgba(255,255,255,0.03)"/><circle cx="1000" cy="500" r="180" fill="rgba(255,255,255,0.03)"/><polygon points="800,100 950,250 650,250" fill="rgba(255,255,255,0.02)"/></svg>');
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-10px) translateY(-5px); }
    50% { transform: translateX(-5px) translateY(-10px); }
    75% { transform: translateX(-15px) translateY(-2px); }
    100% { transform: translateX(0) translateY(0); }
}

.slide-content {
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
    100% { text-shadow: 0 4px 40px rgba(255,255,255,0.5); }
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: textFloat 4s ease-in-out infinite alternate;
}

@keyframes textFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 179, 0, 0.6);
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.3);
}

.indicator.active::before {
    opacity: 1;
    animation: indicatorPulse 2s infinite;
}

@keyframes indicatorPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Enhanced sections */
.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(33, 150, 243, 0.03) 50%, transparent 70%);
    animation: sectionShine 8s infinite;
}

@keyframes sectionShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.about-section {
    background: linear-gradient(135deg, white 0%, var(--background-light) 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--secondary-blue), var(--gold));
    border-radius: 3px;
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 80px; }
    50% { width: 120px; }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--gold), var(--light-blue));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.2rem;
    margin-bottom: 60px;
    font-weight: 400;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.about-text h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    margin-bottom: 20px;
    position: relative;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--gold), var(--light-blue));
    transform: translateY(-50%);
    border-radius: 2px;
}

/* LTR support for about text */
body[dir="ltr"] .about-text h3::before {
    left: auto;
    right: -20px;
}

.about-image {
    text-align: center;
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--background-light), var(--light-blue));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--light-blue);
    border: 3px solid var(--light-blue);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    transition: all 0.4s ease;
}

.about-image-placeholder:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 30px 80px var(--shadow);
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: imageShine 6s infinite;
}

@keyframes imageShine {
    0% { transform: translate(-100%, -100%) rotate(45deg); }
    50% { transform: translate(100%, 100%) rotate(45deg); }
    100% { transform: translate(-100%, -100%) rotate(45deg); }
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 50px var(--shadow);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--light-blue), var(--gold));
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.1), transparent);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.service-card:hover::after {
    width: 500px;
    height: 500px;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 80px var(--shadow);
}

.service-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    position: relative;
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    transition: all 0.4s ease;
}

.service-image img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.service-card:hover .service-image {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 50px rgba(33, 150, 243, 0.4);
}

.service-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--gold), var(--light-blue), var(--gold));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.service-card:hover .service-image::before {
    opacity: 1;
    animation: iconGlow 2s infinite;
}

@keyframes iconGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Products Section */
.products-section {
    background: linear-gradient(135deg, white 0%, var(--background-light) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.product-category {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(227, 242, 253, 0.9));
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(33, 150, 243, 0.1);
}

.product-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.6s ease;
}

.product-category:hover::before {
    left: 100%;
}

.product-category:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--secondary-blue));
    color: white;
    transform: translateY(-8px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(33, 150, 243, 0.3);
}

.product-category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
    transition: all 0.4s ease;
}

.product-category:hover .product-category-icon {
    color: white;
    transform: scale(1.2);
}

.product-category h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    transition: all 0.4s ease;
}

.product-category:hover h4 {
    color: white;
}

.product-category p {
    font-size: 1rem;
    opacity: 0.9;
    transition: all 0.4s ease;
}

.product-category:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* News Section */
.news-section {
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.news-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(33, 150, 243, 0.05), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 80px rgba(33, 150, 243, 0.2);
}

.news-image {
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image::before {
    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%);
    animation: newsImageShine 4s infinite;
}

@keyframes newsImageShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--gold);
    gap: 10px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.newsletter-form button {
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 179, 0, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 600;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.footer-section p {
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* LTR support for footer links */
body[dir="ltr"] .footer-section a:hover {
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 5px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

.hover-glow {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.hover-glow:hover {
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.25);
}

/* Responsive Design */
@media (max-width: 992px) {
    .slide-content h1 {
        font-size: 3rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

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

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 600px;
        margin-top: 100px;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .hero-slider {
        height: 500px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Arabic logo mobile responsive */
    html[lang="ar"] .logo span {
        font-size: 1.2rem;
    }
}

/* Hidden class for content switching */
.hidden {
    display: none;
}

/* Ripple animation for interactions */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
