/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Futuristic Color Palette */
    --primary-blue: #4A90E2;
    --deep-blue: #2C5282;
    --purple: #8B5CF6;
    --green: #10B981;
    --bronze: #CD7F32;
    --gold: #F59E0B;
    --light-purple: #E0E7FF;
    --light-blue: #EBF8FF;
    --light-green: #ECFDF5;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --dark-gray: #334155;
    --black: #0F172A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--green) 0%, var(--primary-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--bronze) 0%, var(--gold) 100%);
    --gradient-mesh: radial-gradient(circle at 25% 25%, var(--light-purple) 0%, transparent 50%),
                     radial-gradient(circle at 75% 75%, var(--light-blue) 0%, transparent 50%),
                     radial-gradient(circle at 50% 50%, var(--light-green) 0%, transparent 50%);
    
    /* Typography */
    --font-primary: 'Inter', 'Poppins', sans-serif;
    --font-arabic: 'Tajawal', 'Inter', sans-serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --border-radius: 20px;
    --border-radius-small: 12px;
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Arabic Language Styles */
[dir="rtl"] {
    font-family: 'Poppins', 'Tajawal', 'Cairo', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 5px;
    box-shadow: var(--shadow-soft);
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--gray);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}

/* Navbar Language Toggle */
.language-nav-item {
    margin-left: 20px;
}

.navbar-language-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 3px;
    box-shadow: var(--shadow-soft);
}

.navbar-language-toggle .lang-btn {
    font-size: 12px;
    padding: 4px 10px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-with-bg {
    background-image: url('hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mesh-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    opacity: 0.3;
    animation: meshFloat 20s ease-in-out infinite;
}

.floating-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-dots::before,
.floating-dots::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.floating-dots::before {
    top: 20%;
    left: 10%;
    animation-delay: -5s;
}

.floating-dots::after {
    bottom: 20%;
    right: 10%;
    animation-delay: -10s;
}

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.logo-main {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(74, 144, 226, 0.3));
    transition: all 0.3s ease;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.main-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    margin: 0 10px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-width: 180px;
    z-index: 5;
}

.cta-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.cta-btn.whatsapp {
    background: var(--gradient-secondary);
    color: var(--white);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
}

/* Curved Divider */
.curved-divider {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.curved-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.curved-divider .shape-fill {
    fill: var(--white);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-logo-accent {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.section-logo-small {
    width: 40px;
    height: auto;
    filter: grayscale(20%) opacity(0.8);
    transition: all 0.3s ease;
}

.section-header:hover .section-logo-small {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
.about {
    background: var(--light-gray);
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.service-description {
    color: var(--gray);
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio {
    background: var(--light-gray);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 24px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

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

.portfolio-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    text-align: center;
    position: relative;
}

.portfolio-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 15px;
}

.video-placeholder {
    background: var(--gradient-primary);
}

.graphics-placeholder {
    background: var(--gradient-secondary);
}

.design-placeholder {
    background: var(--gradient-accent);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    opacity: 0.05;
    z-index: 1;
}

.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: 25px;
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--white);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.testimonial-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 0.8em;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.section-title:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* FAQ Section */
.faq {
    background: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-small);
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    font-size: 1rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    border-bottom-color: #E2E8F0;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px 30px 30px;
    max-height: 200px;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}

/* Contact Section */
.contact {
    background: var(--light-gray);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.contact-details p {
    color: var(--gray);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E2E8F0;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--gray);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 15px;
    font-size: 12px;
    color: var(--primary-blue);
    background: var(--white);
    padding: 0 5px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo .logo {
    max-height: 80px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.footer-logo p {
    color: var(--gray);
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: var(--gray);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes meshFloat {
    0%, 100% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(10px) translateY(-10px);
    }
    50% {
        transform: translateX(-5px) translateY(-20px);
    }
    75% {
        transform: translateX(-10px) translateY(10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Advanced Animations and Micro-interactions */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0);
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.8), 0 0 30px rgba(74, 144, 226, 0.6);
    }
}

/* Enhanced button animations */
.cta-btn {
    position: relative;
    overflow: hidden;
}

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

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

/* Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

.fab, .fas, .fa, .fa-brands, .fa-solid, .fa-regular {
    margin-right: 8px;
    display: inline-block;
}

[dir="rtl"] .fab, [dir="rtl"] .fas, [dir="rtl"] .fa, [dir="rtl"] .fa-brands, [dir="rtl"] .fa-solid, [dir="rtl"] .fa-regular {
    margin-right: 0;
    margin-left: 8px;
}

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

/* Enhanced form focus states */
.form-group.focused input,
.form-group.focused textarea {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    animation: glow 2s ease-in-out infinite;
}

.form-group.has-value label {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Scroll reveal animations */
.reveal-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.reveal-right {
    animation: slideInFromRight 0.8s ease-out;
}

.reveal-scale {
    animation: scaleIn 0.6s ease-out;
}

/* Enhanced service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.service-card:hover::after {
    opacity: 0.05;
}

.service-card:hover .service-icon {
    animation: pulse 2s infinite;
}

/* Enhanced portfolio items */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 0.1;
}

/* Enhanced testimonial cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
    opacity: 0.1;
}

/* Animate-in class for scroll-triggered animations */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Enhanced particle canvas */
.hero canvas {
    opacity: 0.6;
}

/* Field feedback styles */
.field-feedback {
    font-size: 0.8rem;
    margin-top: 5px;
    transition: opacity 0.3s ease;
}

.field-feedback.error {
    color: #EF4444;
}

.field-feedback.success {
    color: #10B981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-soft);
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .main-logo {
        height: 80px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

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

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .stat-item {
        flex: 1;
        margin: 0 10px;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

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

    .about-stats {
        flex-direction: column;
    }

    .stat-item {
        margin: 0;
    }

    .language-toggle {
        top: 15px;
        left: 15px;
    }
}

/* RTL Support and Arabic Typography */
[dir="rtl"] {
    text-align: right;
    font-family: var(--font-arabic);
}

/* Fix for flickering images and logos */
.service-image, .portfolio-img, .logo, .logo-main, .section-logo-small {
    transition: opacity 0.5s ease-in-out;
    opacity: 1 !important;
    will-change: opacity;
    backface-visibility: hidden;
}

[dir="rtl"] * {
    font-family: var(--font-arabic);
}

.arabic-text {
    font-family: var(--font-arabic);
    font-weight: 500;
    line-height: 1.8;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-nav-item {
    margin-right: 20px;
    margin-left: 0;
}

[dir="rtl"] .hero-content {
    text-align: right;
}

[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .service-card,
[dir="rtl"] .portfolio-item,
[dir="rtl"] .testimonial-card {
    text-align: right;
}

/* Arabic font improvements */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: var(--font-arabic);
    font-weight: 600;
}

[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] li {
    font-family: var(--font-arabic);
    line-height: 1.8;
}

[dir="rtl"] .nav-menu {
    left: auto;
    right: -100%;
}

[dir="rtl"] .nav-menu.active {
    right: 0;
}

[dir="rtl"] .contact-item:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .form-group label {
    right: 20px;
    left: auto;
}

[dir="rtl"] .form-group input:focus + label,
[dir="rtl"] .form-group input:valid + label,
[dir="rtl"] .form-group textarea:focus + label,
[dir="rtl"] .form-group textarea:valid + label {
    right: 15px;
    left: auto;
}
