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

/* Cross-Browser Compatibility */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-orange: #fc6b02;
    --dark-burgundy: #3D1F1F;
    --white: #FFFFFF;
    --light-gray: #E5E5E5;
    --text-dark: #2C2C2C;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.2s linear; /* Enhanced: Faster transitions like Cinemagics */
    --section-spacing: 100px; /* Enhanced: More whitespace between sections */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Prevent iOS font size adjustment */
    -ms-text-size-adjust: 100%; /* Prevent IE/Edge font size adjustment */
    text-rendering: optimizeLegibility; /* Better text rendering */
}

/* Enhanced: Increased section spacing */
section {
    padding: var(--section-spacing) 0; /* 100px instead of 80px */
}

body[dir="rtl"] {
    font-family: 'Tajawal', sans-serif;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Header - Slim and sleek design */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: transform 0.3s ease, background 0.2s linear, box-shadow 0.2s linear;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(252, 107, 2, 0.1);
}

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

.logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

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

.lang-toggle {
    background: linear-gradient(135deg, var(--primary-orange), #fd8b3a);
    color: var(--white);
    border: none;
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(252, 107, 2, 0.2);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.lang-toggle:hover {
    background: linear-gradient(135deg, #e35f01, #fc6b02);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 107, 2, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -4;
    object-fit: cover;
}

/* Video Overlay for text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(61, 31, 31, 0.6) 0%,
        rgba(61, 31, 31, 0.4) 50%,
        rgba(61, 31, 31, 0.3) 100%
    );
    z-index: -3;
    backdrop-filter: blur(2px);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Elegant geometric patterns */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Subtle radial gradients for depth */
        radial-gradient(circle at 20% 20%, rgba(252, 107, 2, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(252, 107, 2, 0.04) 0%, transparent 40%),
        /* Elegant grid pattern */
        linear-gradient(90deg, rgba(252, 107, 2, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(252, 107, 2, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
    z-index: -1;
}

/* Subtle wave overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(120deg, transparent 40%, rgba(252, 107, 2, 0.03) 50%, transparent 60%);
    z-index: 1;
    opacity: 0.5;
}


.hero-content {
    text-align: left;
    max-width: 600px;
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(252, 107, 2, 0.4);
    font-weight: 800;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}


.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.cta-primary {
    position: relative;
    background: linear-gradient(135deg, var(--primary-orange), #fd8b3a);
    padding: 16px 32px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 25px rgba(252, 107, 2, 0.4);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(252, 107, 2, 0.5);
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.cta-subtext {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.social-proof-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 3px solid var(--white);
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar.plus {
    background: var(--white);
    color: var(--primary-orange);
    font-weight: bold;
}

.social-proof-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    padding: 4px;
}

/* Section Subtitle */
.section-subtitle {
    color: var(--text-dark);
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-orange);
}

.trust-badge i {
    color: var(--primary-orange);
}

/* Testimonials */
.testimonials {
    background: #f8f9fa;
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-orange);
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: var(--dark-burgundy);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

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

/* Results Banner */
.results-banner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    background: var(--dark-burgundy);
    padding: 2rem;
    border-radius: var(--border-radius);
    color: var(--white);
    flex-wrap: wrap;
}

.result-item {
    text-align: center;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-btn {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 18px 32px; /* Enhanced: Increased vertical padding from 16px to 18px like Cinemagics */
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(252, 107, 2, 0.3); /* Enhanced: Added subtle glow */
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-title {
    color: var(--dark-burgundy);
    margin-bottom: 1rem;
}

.orange-line {
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* ===== FLOATING MARKETING ICONS ===== */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.15;
    filter: grayscale(70%) brightness(0.85);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease,
                filter 0.3s ease;
    will-change: transform;
    pointer-events: auto;
    height: auto !important;
    object-fit: contain;
    cursor: pointer;
}

.floating-icon:hover {
    opacity: 0.4;
    filter: grayscale(0%) brightness(1);
    transform: scale(1.4) !important;
}

/* Floating animation - different durations for variety */
.floating-icon.float-slow { animation: floatIconSlow 25s ease-in-out infinite; }
.floating-icon.float-medium { animation: floatIconMedium 18s ease-in-out infinite; }
.floating-icon.float-fast { animation: floatIconFast 12s ease-in-out infinite; }

@keyframes floatIconSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(8deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-25px) rotate(5deg); }
}

@keyframes floatIconMedium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(-6deg); }
    66% { transform: translateY(-22px) rotate(4deg); }
}

@keyframes floatIconFast {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(6deg); }
}

/* Mobile: Show icons but fewer */
@media (max-width: 768px) {
    .floating-icon {
        opacity: 0.1;
    }
}

/* Common canvas styling for all white sections */
.about-particles-canvas,
.section-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background: url('logo.svg') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    z-index: 1;
    border-radius: 50%;
    border: 3px solid rgba(252, 107, 2, 0.1);
}

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

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

.about-text {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 2rem;
    border-radius: 12px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-orange);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-highlight {
    background: linear-gradient(135deg, var(--primary-orange), #fd8b3a);
    color: var(--white);
    transform: scale(1.05);
}

.stat-highlight .stat-number,
.stat-highlight .stat-label,
.stat-highlight .stat-subtitle {
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-subtitle {
    font-size: 0.8rem;
    color: var(--text-dark);
    opacity: 0.7;
    font-style: italic;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
}

.services-row {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.services-row-1 {
    grid-template-columns: repeat(4, 1fr);
}

.services-row-2 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 900px;
    margin: 2rem auto 0;
}

.service-card {
    /* SUPER ENHANCED: Glassmorphism effect */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.8rem 1.5rem;
    border-radius: 16px; /* Increased from 8px */
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
                      linear-gradient(135deg, var(--primary-orange), var(--dark-burgundy));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-burgundy));
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover,
.service-card.touch-active {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(252, 107, 2, 0.25);
}

.service-card:hover::before,
.service-card.touch-active::before {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), #fd8b3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    /* SUPER ENHANCED: Icon animation */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(252, 107, 2, 0.3);
}

.service-card:hover .service-icon,
.service-card.touch-active .service-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(252, 107, 2, 0.5);
}

.service-card h3 {
    color: var(--dark-burgundy);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.3;
    text-align: center;
}

/* Process Section */
.process {
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 300px;
    border-top: 4px solid var(--primary-orange);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(252, 107, 2, 0.25);
    border-top-width: 6px;
}

.process-step:hover .step-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 25px rgba(252, 107, 2, 0.4);
}

.process-step:hover .step-number {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 4px 15px rgba(252, 107, 2, 0.5);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-orange), #fd8b3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step h3 {
    color: var(--dark-burgundy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
    flex-shrink: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.process-step p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.process-arrow {
    color: var(--primary-orange);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 1rem;
}

/* Specialized Services */
.specialized-services {
    background: var(--dark-burgundy);
    color: var(--white);
}

.specialized-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.specialized-item {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.specialized-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(252, 107, 2, 0.15), rgba(252, 107, 2, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
}

.specialized-item:hover::before {
    opacity: 1;
}

.specialized-item:hover {
    transform: translateY(-20px) scale(1.05);
    background: rgba(255, 255, 255, 0.05);
}

.specialized-item:hover .specialized-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 10px 30px rgba(252, 107, 2, 0.5);
}

.specialized-item:hover h3 {
    transform: translateY(-5px);
    color: var(--primary-orange);
}

.specialized-item:hover p {
    transform: translateY(-3px);
}

.specialized-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.specialized-item h3 {
    color: var(--white);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.specialized-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Portfolio Section */
.portfolio {
    background: var(--white);
    padding: 80px 0;
}

.portfolio-content {
    text-align: center;
}

.portfolio-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.portfolio-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.portfolio-showcase {
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: var(--dark-burgundy);
}

.portfolio-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    /* Hide the PORTFOLIO text at bottom */
    object-fit: cover;
    object-position: center top;
    max-height: 80vh;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--dark-burgundy));
    pointer-events: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 31, 31, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

.portfolio-image:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.portfolio-overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.portfolio-btn {
    background: var(--primary-orange);
    color: var(--white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-btn:hover {
    background: #e35f01;
    transform: translateY(-2px);
    color: var(--white);
}

.portfolio-btn i {
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
    position: relative;
}


.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    padding: 0 0.5rem;
    color: #666;
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:valid + label,
.form-group textarea:valid + label,
.form-group select:valid + label {
    top: -0.5rem;
    font-size: 0.9rem;
    color: var(--primary-orange);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-details h4 {
    color: var(--dark-burgundy);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-details p,
.contact-details a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.95rem;
}

.contact-details a {
    /* Fix mobile touch issues - ensure links remain clickable after cancel */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(252, 107, 2, 0.1);
    cursor: pointer;
}

.contact-details a:hover {
    color: var(--primary-orange);
}

.contact-details a:active {
    opacity: 0.7;
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--dark-burgundy), #4a2424);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--primary-orange);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.contact-cta h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.cta-btn.secondary:hover {
    background: var(--white);
    color: var(--dark-burgundy);
}

.cta-btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

[dir="rtl"] .cta-btn i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Footer - Clean and elegant design */
.footer {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    color: var(--text-dark);
    padding: 3rem 0 1rem;
    position: relative;
    border-top: 1px solid rgba(252, 107, 2, 0.1);
}


.footer .container {
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: var(--text-dark);
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

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

.footer-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Ensure footer links remain clickable on mobile */
.footer-section ul li a,
.footer-section ul li span {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(252, 107, 2, 0.1);
}

.footer-section ul li i {
    color: var(--primary-orange);
    flex-shrink: 0;
    margin-top: 0.2rem;
    width: 16px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Better mobile support */
    align-items: center; /* Vertical alignment */
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: inline-flex; /* Better cross-browser compatibility */
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0; /* Prevent shrinking on small screens */
}

.social-icons a:hover {
    background: #e35f01;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-dark);
    opacity: 0.7;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: transform 0.3s ease, background 0.2s linear;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #20ba5a;
    transform: scale(1.1);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.counter {
    animation: countUp 0.8s ease-out;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .about-content {
    grid-template-columns: 2fr 1fr;
}

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

[dir="rtl"] .about-stats {
    text-align: center;
}

/* Hide watermark logo in Arabic version */
[dir="rtl"] .about::after {
    display: none;
}

[dir="rtl"] .process-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] .footer-section ul li {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-section ul li i {
    text-align: center;
}

/* Arabic Typography Improvements */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
    font-weight: 700;
    line-height: 1.4;
}

[dir="rtl"] p {
    line-height: 1.8;
}

/* Header RTL */
[dir="rtl"] .header .container {
    flex-direction: row-reverse;
}

/* Hero Section RTL - Perfect Mirror */
[dir="rtl"] .hero-content {
    text-align: right;
    left: auto;
    right: 80px;
}

[dir="rtl"] .hero-cta-container {
    align-items: flex-end;
}

[dir="rtl"] .social-proof-avatars {
    flex-direction: row; /* Match English - same direction */
}

/* Buttons RTL */
[dir="rtl"] .cta-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .cta-btn i {
    margin-right: 0;
    margin-left: 8px;
}

/* Contact Form RTL */
[dir="rtl"] .contact-content {
    grid-template-columns: 1fr 1.2fr;
}

[dir="rtl"] .contact-info {
    order: -1;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .contact-icon {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="rtl"] .contact-details {
    text-align: right;
    flex: 1;
}

/* Form RTL */
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea,
[dir="rtl"] .form-group select {
    text-align: right;
    padding-right: 1rem;
    padding-left: 1rem;
}

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

/* Services RTL */
[dir="rtl"] .service-card {
    text-align: right;
}

[dir="rtl"] .service-icon {
    margin: 0 auto 1.5rem;
}

/* Process Steps RTL */
[dir="rtl"] .process-step {
    text-align: right;
}

/* Portfolio RTL */
[dir="rtl"] .portfolio-overlay-content {
    text-align: center; /* FIXED: Match English - centered */
}

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

[dir="rtl"] .portfolio-btn i {
    margin-left: 8px;
    margin-right: 0;
}

/* Testimonials RTL */
[dir="rtl"] .testimonial-card {
    text-align: right;
}

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

/* Trust Badges RTL */
[dir="rtl"] .trust-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .trust-badge i {
    margin-left: 8px;
    margin-right: 0;
}

/* Results Banner RTL */
[dir="rtl"] .result-item {
    text-align: center;
}

/* Footer RTL */
[dir="rtl"] .footer-content {
    text-align: right;
}

[dir="rtl"] .social-icons {
    justify-content: flex-start; /* Match English version alignment */
    flex-direction: row; /* Ensure same direction as English */
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-row-1,
    .services-row-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-row-2 {
        max-width: 100%;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
        max-width: 400px;
    }

    .process-step {
        min-height: 250px;
        padding: 1.5rem;
    }

    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 1.5rem auto 1rem;
    }

    .process-step h3 {
        font-size: 1.1rem;
        min-height: 50px;
    }

    .process-step p {
        font-size: 0.9rem;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    [dir="rtl"] .process-arrow {
        transform: rotate(90deg) scaleX(-1);
    }

    .specialized-content {
        grid-template-columns: 1fr;
    }

    .portfolio-showcase {
        max-width: 100%;
        margin: 0 auto;
    }

    .portfolio-img {
        max-height: 60vh;
    }

    .portfolio-overlay-content h3 {
        font-size: 1.5rem;
    }

    .portfolio-overlay {
        padding: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-section {
        margin-bottom: 2rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .social-icons {
        justify-content: center; /* Center on mobile for both languages */
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;  /* Increased from 50px to meet 44px minimum */
        height: 56px;
        font-size: 1.5rem;
    }

    /* Ensure all interactive elements meet minimum touch target size */
    .cta-btn,
    .lang-toggle,
    .social-icons a,
    button[type="submit"] {
        min-width: 44px;
        min-height: 44px;
    }

    /* Mobile Hero - Centered for both languages */
    .hero-content {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-cta-container {
        align-items: center;
    }

    /* Mobile RTL Support */
    [dir="rtl"] .hero-content {
        text-align: center;
        left: auto;
        right: auto;
    }

    [dir="rtl"] .hero-cta-container {
        align-items: center;
    }

    [dir="rtl"] .social-icons {
        justify-content: center; /* Center on mobile for Arabic too */
    }

    [dir="rtl"] .contact-content {
        grid-template-columns: 1fr;
    }

    [dir="rtl"] .contact-info {
        order: 0;
    }

    [dir="rtl"] .footer-content {
        text-align: center;
    }

    [dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    /* Use small viewport height for better mobile experience */
    .hero {
        height: 100svh;
        min-height: 600px;
    }

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

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

    .cta-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .step-icon,
    .specialized-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion Support for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Disable particle animations */
    .hero-bg::before,
    .hero-bg::after,
    .decorative-blob {
        animation: none !important;
    }

    /* Disable floating animations */
    .whatsapp-float {
        animation: none !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: #27ae60;
}

/* ==========================================================
   PREMIUM UI ENHANCEMENTS - Micro-interactions & Visual Polish
   ========================================================== */

/* ===== HERO SECTION ENHANCEMENTS ===== */

/* Animated gradient shimmer overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(252, 107, 2, 0.03) 25%,
        rgba(252, 107, 2, 0.08) 50%,
        rgba(252, 107, 2, 0.03) 75%,
        transparent 100%
    );
    animation: heroShimmer 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes heroShimmer {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(25%); }
}

/* Enhanced CTA button with glow pulse */
.cta-primary {
    position: relative;
    overflow: visible;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary-orange), #fd8b3a, var(--primary-orange));
    border-radius: 54px;
    z-index: -1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
    animation: ctaGlowPulse 3s ease-in-out infinite;
}

.cta-primary:hover::before {
    opacity: 0.6;
}

@keyframes ctaGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.5; }
}

/* Hero title entrance animation */
.hero-title {
    animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-cta-container {
    animation: heroTitleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* ===== SERVICE CARDS - 3D TILT EFFECT ===== */

.service-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* Animated gradient border on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--primary-orange) 0%,
        transparent 30%,
        transparent 70%,
        var(--dark-burgundy) 100%
    );
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGradientRotate 3s linear infinite paused;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes borderGradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon float animation on hover */
.service-card:hover .service-icon {
    animation: iconFloat 2s ease-in-out infinite;
}

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

/* ===== STATS SECTION - PULSE & GLOW ===== */

.stat {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Stat number pulse effect */
.stat-number {
    position: relative;
    display: inline-block;
}

.stat:hover .stat-number {
    animation: statPulse 0.6s ease-out;
}

@keyframes statPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Glow ring on hover */
.stat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(252, 107, 2, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.stat:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

/* Counter glow animation */
.counter.counting {
    text-shadow: 0 0 20px rgba(252, 107, 2, 0.5);
}

/* ===== PROCESS STEPS - CONNECTING LINES ===== */

.process-steps {
    position: relative;
}

/* Animated connecting line */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg,
        var(--primary-orange) 0%,
        rgba(252, 107, 2, 0.3) 50%,
        var(--primary-orange) 100%
    );
    background-size: 200% 100%;
    animation: lineFlow 3s linear infinite;
    z-index: 0;
    transform: translateY(-50%);
    border-radius: 2px;
}

@keyframes lineFlow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Animated dots on the line */
.process-steps::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 10px;
    height: 10px;
    background: var(--primary-orange);
    border-radius: 50%;
    transform: translateY(-50%);
    animation: dotTravel 3s linear infinite;
    z-index: 1;
    box-shadow: 0 0 10px rgba(252, 107, 2, 0.6);
}

@keyframes dotTravel {
    0% { left: 15%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 85%; opacity: 0; }
}

/* Step card lift animation */
.process-step {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.process-step:hover {
    z-index: 10;
}

/* Step number bounce */
.process-step:hover .step-number {
    animation: stepBounce 0.5s ease;
}

@keyframes stepBounce {
    0%, 100% { transform: translateX(-50%) scale(1); }
    40% { transform: translateX(-50%) scale(1.3); }
    60% { transform: translateX(-50%) scale(0.9); }
}

/* ===== TESTIMONIALS - ENHANCED CARDS ===== */

.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect on hover */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(252, 107, 2, 0.03) 50%,
        transparent 60%
    );
    transform: rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.testimonial-card:hover::before {
    transform: rotate(45deg) translateY(100%);
}

/* Star rating sparkle */
.testimonial-card:hover .stars {
    animation: starSparkle 0.8s ease-in-out;
}

@keyframes starSparkle {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); filter: brightness(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
}

/* Quote marks decoration */
.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 5rem;
    color: rgba(252, 107, 2, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-content {
    position: relative;
}

/* ===== CONTACT FORM - FLOATING LABELS & GLOW ===== */

.form-group {
    position: relative;
}

/* Enhanced floating label animation */
.form-group label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    transform: translateY(-1.8rem) scale(0.85);
    color: var(--primary-orange);
    font-weight: 600;
}

/* Input focus glow ring */
.form-group input,
.form-group textarea,
.form-group select {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(252, 107, 2, 0.15),
                0 4px 20px rgba(252, 107, 2, 0.1);
}

/* Input underline animation */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), #fd8b3a);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.form-group:focus-within::after {
    width: 100%;
}

/* Submit button enhanced hover */
.contact-form .cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.contact-form .cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* ===== FOOTER - WAVE ANIMATION ===== */

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23f8f9fa' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,50 1440,40 L1440,0 L0,0 Z'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 0;
    animation: waveFloat 6s ease-in-out infinite;
}

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

/* Footer social icons enhanced hover */
.social-icons a {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(252, 107, 2, 0.4);
}

/* ===== GLOBAL SCROLL REVEAL ANIMATIONS ===== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal for grid items */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.7s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.8s; }

/* ===== ENHANCED BUTTON STATES ===== */

.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple effect on click */
.cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.cta-btn:active::after {
    animation: ripple 0.6s ease-out;
}

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

/* Magnetic button hover effect */
.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(252, 107, 2, 0.35);
}

.cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(252, 107, 2, 0.3);
}

/* ===== TRUST BADGES - SUBTLE ANIMATION ===== */

.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(252, 107, 2, 0.2);
}

.trust-badge i {
    transition: transform 0.3s ease;
}

.trust-badge:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ===== RESULTS BANNER - COUNTING GLOW ===== */

.result-number {
    transition: all 0.3s ease;
}

.results-banner:hover .result-number {
    text-shadow: 0 0 30px rgba(252, 107, 2, 0.8);
}

.result-item {
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: scale(1.1);
}

/* ===== SPECIALIZED SERVICES - ENHANCED ===== */

.specialized-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotateRing 10s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== PORTFOLIO - ENHANCED OVERLAY ===== */

.portfolio-image {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(61, 31, 31, 0.3);
}

.portfolio-overlay {
    background: linear-gradient(
        135deg,
        rgba(61, 31, 31, 0.95) 0%,
        rgba(252, 107, 2, 0.85) 100%
    );
}

.portfolio-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== CONTACT ITEMS - ENHANCED ===== */

.contact-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(252, 107, 2, 0.4);
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 768px) {
    /* Disable complex animations on mobile */
    .process-steps::before,
    .process-steps::after {
        display: none;
    }

    /* Simpler hover effects */
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

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

    /* Reduce animation intensity */
    @keyframes heroTitleReveal {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== DARK MODE PREPARATION (for future) ===== */
@media (prefers-color-scheme: dark) {
    /* Preserve light theme for brand consistency */
}