/* ==============================
   Custom CSS for Mr. Emad Website
   ============================== */

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
}

/* English Version Styles */
body.english-version {
    font-family: 'Poppins', sans-serif;
    direction: ltr;
}

body.english-version .hero-buttons .btn:not(:last-child) {
    margin-right: 1rem;
    margin-left: 0;
}

body.english-version .navbar-nav {
    text-align: left;
}

body.english-version .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

body.english-version .about-features i {
    margin-right: 10px;
    margin-left: 0;
}

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

/* Modern Clean Design Theme - Inspired by Omail Style */
:root {
    --primary-color: #4A90E2;
    --primary-light: #7BB3F0;
    --primary-dark: #2E5FBF;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #4A90E2;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --accent-color: #2E5FBF;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient-bg: linear-gradient(135deg, #4A90E2 0%, #2E5FBF 100%);
    --gradient-light: linear-gradient(135deg, #EBF4FF 0%, #BFDBFE 100%);
    --logo-gradient: linear-gradient(45deg, #4A90E2, #2E5FBF);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Modern Header Styles with Accessibility */
.header-section {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: background-color 0.3s ease, border-bottom 0.3s ease;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
    min-height: 70px;
}

.header-section.scrolled {
    background: rgba(30, 41, 59, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0;
    text-decoration: none;
}

.navbar-brand:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.navbar-nav .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 16px !important;
    min-height: 44px; /* Touch target size */
    display: flex;
    align-items: center;
    border-radius: 6px;
    margin: 0 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.navbar-nav .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    color: var(--primary-color);
}

/* Animated ME Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 45px;
    width: 45px;
    margin-right: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
    object-fit: contain;
}

.navbar-brand:hover .logo-image {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.logo-png {
    transition: all 0.3s ease;
    position: relative;
}

.logo-png::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #374151;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.7;
}

.navbar-brand:hover .logo-png {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
}

.logo-fallback {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-me {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.logo-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--logo-gradient);
    border-radius: 10px;
    opacity: 0.1;
    animation: logoPulse 2s ease-in-out infinite;
    z-index: -1;
}

.logo-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-brand:hover .logo-image {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.3));
}

.navbar-brand:hover .logo-me {
    transform: scale(1.1) rotate(5deg);
    animation-duration: 1s;
}

.navbar-brand:hover .logo-text {
    color: var(--primary-color);
    opacity: 1;
}

@keyframes logoGlow {
    0% {
        filter: brightness(1) hue-rotate(0deg);
        transform: translateY(0px);
    }
    50% {
        filter: brightness(1.2) hue-rotate(180deg);
        transform: translateY(-2px);
    }
    100% {
        filter: brightness(1) hue-rotate(360deg);
        transform: translateY(0px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Modern Hero Section */
.hero-section {
    background: var(--gradient-light);
    color: var(--gray-900);
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%2322c55e" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></g></svg>');
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--gray-600);
    line-height: 1.6;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image img {
    animation: fadeInRight 1s ease 0.6s both;
}

.text-gradient {
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

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

/* Modern Hero Stats */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin: 3rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: left;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    min-width: 140px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.4;
}

/* Modern Section Styles */
.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Modern About Section */
.about-section {
    padding: 120px 0;
    background: white;
}

.about-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.about-features li {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
}

.about-features i {
    margin-left: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.expertise-areas h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

/* Modern Services Section */
.services-section {
    padding: 120px 0;
    background: var(--gray-50);
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

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

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

.service-icon {
    margin: 0 auto 2rem;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-square {
    width: 80px;
    height: 80px;
    background: var(--gradient-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.icon-square::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-bg);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.3s ease;
}

.service-card:hover .icon-square {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card h4 {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

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

/* Enhanced Font Awesome Icons */
.fas, .fab, .far, .fal, .fat, .fad, .fa-solid, .fa-regular, .fa-light, .fa-thin, .fa-duotone, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* Service and Contact Icons */
.service-icon i, .contact-icon i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Ensure icons are properly displayed */
.icon-square i {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

/* Navigation Icons */
.navbar-nav .nav-link i {
    margin-right: 5px;
    font-size: 1rem;
}

body.english-version .navbar-nav .nav-link i {
    margin-left: 5px;
    margin-right: 0;
}

/* Hero buttons icons */
.hero-buttons .btn i {
    margin-right: 8px;
}

body.english-version .hero-buttons .btn i {
    margin-left: 8px;
    margin-right: 0;
}

/* Fallback for missing icons */
i[class*="fa-"]::before {
    font-family: "Font Awesome 6 Free" !important;
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Modern Portfolio Section */
.portfolio-section {
    padding: 120px 0;
    background: white;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 144, 226, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.portfolio-overlay h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Modern Contact Section */
.contact-section {
    padding: 120px 0;
    background: var(--gray-900) !important;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.contact-info:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.contact-info h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color) !important;
}

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

.contact-form .form-control {
    background: var(--gray-800);
    border: 1px solid var(--gray-600);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.contact-form .form-control:focus {
    background: var(--gray-700);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    color: white;
    outline: none;
}

.contact-form .form-control::placeholder {
    color: var(--gray-400);
}

/* Footer */
.footer-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Mobile Responsiveness with Accessibility */
@media (max-width: 768px) {
    /* Header improvements */
    .header-section {
        min-height: 60px;
    }
    
    .navbar-nav .nav-link {
        padding: 16px 20px !important;
        min-height: 48px; /* Larger touch targets on mobile */
        font-size: 1.1rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        margin-top: 15px;
        border-radius: 12px;
        padding: 15px;
        box-shadow: var(--shadow-lg);
    }
    
    .header-section.scrolled .navbar-collapse {
        background: rgba(30, 41, 59, 0.98);
    }
    
    /* Typography improvements */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    /* Button improvements */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 18px 24px;
        font-size: 1.1rem;
        min-height: 56px; /* Better touch target */
    }
    
    /* Card improvements */
    .service-card,
    .portfolio-item {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .service-card .icon-square {
        width: 70px;
        height: 70px;
    }
    
    .service-card .icon-square i {
        font-size: 1.8rem;
    }
    
    /* Logo improvements */
    .logo-me {
        font-size: 1.8rem;
    }
    
    /* Stats section mobile */
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stat-item {
        min-width: auto;
        padding: 15px;
    }
    
    /* Contact form mobile */
    .contact-form .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 48px;
    }
    
    /* Spacing adjustments */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Accessibility improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --gray-600: #000000;
        --gray-800: #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .navbar-nav .nav-link {
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .header-section {
        transition: none;
    }
}

/* Additional mobile styles */
@media (max-width: 768px) {
    .logo-text {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        margin: 0 auto;
        max-width: 200px;
    }
    
    .contact-info {
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 2rem 1rem;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo-me {
        font-size: 1.8rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* Modern Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.4);
    color: white;
}

/* Additional styling for dark primary button */
.btn-primary:focus {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.2);
    color: white;
}

.btn-primary:active {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.5);
    color: white;
}

.btn-outline-light {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    background: white;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Modern Language Switch Button */
.lang-switch {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
    color: var(--gray-700) !important;
    font-weight: 500;
}

.lang-switch:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-1px);
}

/* RTL Adjustments */
.navbar-nav {
    text-align: right;
}

.hero-buttons .btn:not(:last-child) {
    margin-left: 1rem;
    margin-right: 0;
}

@media (max-width: 768px) {
    .hero-buttons .btn:not(:last-child) {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Font Awesome Icon Fallbacks - في حالة عدم تحميل الأيقونات */
.fa-palette::before, .fas.fa-palette::before { content: "🎨" !important; }
.fa-bullhorn::before, .fas.fa-bullhorn::before { content: "📢" !important; }
.fa-code::before, .fas.fa-code::before { content: "💻" !important; }
.fa-mobile-alt::before, .fas.fa-mobile-alt::before { content: "📱" !important; }
.fa-rocket::before, .fas.fa-rocket::before { content: "🚀" !important; }
.fa-users::before, .fas.fa-users::before { content: "👥" !important; }
.fa-award::before, .fas.fa-award::before { content: "🏆" !important; }
.fa-headset::before, .fas.fa-headset::before { content: "🎧" !important; }
.fa-phone::before, .fas.fa-phone::before { content: "☎️" !important; }
.fa-envelope::before, .fas.fa-envelope::before { content: "✉️" !important; }
.fa-map-marker-alt::before, .fas.fa-map-marker-alt::before { content: "📍" !important; }
.fa-facebook-f::before, .fab.fa-facebook-f::before { content: "f" !important; }
.fa-twitter::before, .fab.fa-twitter::before { content: "t" !important; }
.fa-linkedin-in::before, .fab.fa-linkedin-in::before { content: "in" !important; }
.fa-instagram::before, .fab.fa-instagram::before { content: "📷" !important; }
.fa-chart-line::before, .fas.fa-chart-line::before { content: "📈" !important; }
.fa-laptop-code::before, .fas.fa-laptop-code::before { content: "💻" !important; }
.fa-camera::before, .fas.fa-camera::before { content: "📸" !important; }
.fa-play::before, .fas.fa-play::before { content: "▶️" !important; }
.fa-edit::before, .fas.fa-edit::before { content: "✏️" !important; }

/* Ensure icon fallbacks have proper styling */
.fa::before, .fas::before, .fab::before {
    font-family: inherit !important;
    font-size: 1.2em;
    display: inline-block;
    text-align: center;
    min-width: 1em;
}

/* Fix Contact Us Now button styling */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: white !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Ensure buttons are visible on gradient background */
.hero-section .btn {
    position: relative;
    z-index: 2;
}

/* Additional icon fixes - force emoji display when Font Awesome fails */
.service-card .icon-square i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Fallback for service icons specifically */
.service-card .fa-palette::before { content: "🎨"; }
.service-card .fa-bullhorn::before { content: "📢"; }
.service-card .fa-code::before { content: "💻"; }
.service-card .fa-mobile-alt::before { content: "📱"; }
.service-card .fa-play::before { content: "▶️"; }
.service-card .fa-edit::before { content: "✏️"; }

/* Stats section icons */
.stat-item i {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* About section list icons */
.about-features li i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

/* Form alerts and messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.alert i {
    margin-right: 8px;
    font-size: 1.1em;
}

.alert-success {
    background-color: rgba(74, 144, 226, 0.1);
    color: #4A90E2;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Form submission states */
#submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#submitBtn .fa-spinner {
    animation: spin 1s linear infinite;
}

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