@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --primary-light: #ff6b6b;
    --secondary: #1d3557;
    --secondary-light: #264773;
    --accent: #457b9d;
    --accent-light: #5a9bbf;
    --light: #f8f9fa;
    --dark: #0d1b2a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 50px;
}

[data-theme="dark"] {
    --light: #080c15;
    --dark: #f8f9fa;
    --gray: #b8c4d0;
    --light-gray: #121a2a;
    --white: #182035;
    --shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] body {
    background-color: #0a0f1a;
}

[data-theme="dark"] .header.scrolled {
    background: rgba(10, 15, 26, 0.95);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .service-detail-card,
[data-theme="dark"] .contact-form {
    background: #1a2540;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .blog-card:hover,
[data-theme="dark"] .service-detail-card:hover {
    border-color: rgba(230, 57, 70, 0.3);
    background: #1e2d4a;
}

[data-theme="dark"] .about-feature {
    background: #1a2540;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .section-badge {
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
}

[data-theme="dark"] .hero-badge {
    background: rgba(230, 57, 70, 0.25);
    border: 1px solid rgba(230, 57, 70, 0.5);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #0f1829;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1faee;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: var(--primary);
    background: #141f33;
}

[data-theme="dark"] .footer {
    background: #060a12;
}

[data-theme="dark"] .contact-info {
    background: linear-gradient(135deg, #0f1829, #0a0f1a);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-menu.active {
    background: #1a2540;
}

[data-theme="dark"] .nav-menu.active .nav-link {
    color: #f1faee;
}

[data-theme="dark"] .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.97), rgba(26, 37, 64, 0.95)),
                url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920') center/cover;
}

[data-theme="dark"] .back-to-top {
    background: var(--primary);
}

[data-theme="dark"] .service-feature-tag {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.3);
}

[data-theme="dark"] .news {
    background: #1a2540;
}

[data-theme="dark"] input[type="email"] {
    background: #0f1829;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1faee;
}

/* Dark Mode Hero Fix */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(8, 12, 21, 0.98) 0%, rgba(15, 23, 42, 0.97) 50%, rgba(20, 30, 50, 0.95) 100%),
                url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920') center/cover;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 60%);
}

[data-theme="dark"] .hero::after {
    background: radial-gradient(circle, rgba(69, 123, 157, 0.15) 0%, transparent 60%);
}

[data-theme="dark"] .hero-text {
    color: #ffffff;
}

[data-theme="dark"] .hero h1 {
    color: #ffffff;
}

[data-theme="dark"] .hero h1 span {
    background: linear-gradient(135deg, #ff6b6b, #e63946);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .hero p {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .hero-badge {
    background: rgba(230, 57, 70, 0.3);
    border: 1px solid rgba(230, 57, 70, 0.6);
    color: #ff8a8a;
}

[data-theme="dark"] .hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

[data-theme="dark"] .hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
}

[data-theme="dark"] .hero-image::before {
    background: linear-gradient(135deg, #e63946, #c1121f);
    opacity: 0.6;
}

[data-theme="dark"] .hero-shape {
    background: linear-gradient(135deg, #e63946, #457b9d);
    opacity: 0.3;
}

[data-theme="dark"] .floating-element {
    color: rgba(255, 255, 255, 0.15);
}

/* Dark Mode Page Header */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, rgba(8, 12, 21, 0.98), rgba(15, 23, 42, 0.97)),
                url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920') center/cover;
}

[data-theme="dark"] .page-header h1 {
    color: #ffffff;
}

[data-theme="dark"] .page-header .breadcrumb {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .page-header .breadcrumb a:hover {
    color: var(--primary);
}

/* Dark Mode CTA */
[data-theme="dark"] .cta {
    background: linear-gradient(135deg, #0f1829, #1a2540);
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    border-bottom: 1px solid rgba(230, 57, 70, 0.2);
}

[data-theme="dark"] .cta h2 {
    color: #ffffff;
}

[data-theme="dark"] .cta p {
    color: rgba(255, 255, 255, 0.85);
}

/* Dark Mode Brands */
[data-theme="dark"] .brands {
    background: #0a0f1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .brands-title {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .brand-logo {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .brand-logo:hover {
    color: var(--primary);
}

/* Dark Mode Header Fix */
[data-theme="dark"] .logo {
    color: #ffffff;
}

[data-theme="dark"] .header.scrolled .logo {
    color: var(--primary);
}

[data-theme="dark"] .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: #ffffff;
    background: var(--primary);
}

[data-theme="dark"] .hamburger span {
    background: #ffffff;
}

[data-theme="dark"] .header.scrolled .hamburger span {
    background: #ffffff;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--primary);
}

[data-theme="dark"] .nav-menu {
    background: #0a0f1a;
}

[data-theme="dark"] .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background-color: var(--light);
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    box-shadow: 0 8px 25px rgba(29, 53, 87, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(29, 53, 87, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(13, 27, 42, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.mobile-cta {
    display: none;
}

.nav-link {
    font-weight: 700;
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--border-radius-full);
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.header.scrolled .nav-link {
    color: var(--dark);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary);
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-cta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.header.scrolled .theme-toggle {
    background: var(--light);
    color: var(--dark);
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    background: var(--primary);
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 7px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.header.scrolled .hamburger {
    background: rgba(230, 57, 70, 0.1);
}

.header.scrolled .hamburger span {
    background: var(--primary);
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-15px) scaleX(0);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.97) 0%, rgba(13, 27, 42, 0.95) 50%, rgba(69, 123, 157, 0.9) 100%),
                url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920') center/cover;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, transparent 60%);
    animation: heroPulse 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(69, 123, 157, 0.1) 0%, transparent 60%);
    animation: heroPulse 12s ease-in-out infinite reverse;
}

@keyframes heroPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(230, 57, 70, 0.5);
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: var(--primary-light);
    animation: fadeInUp 0.8s ease;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    line-height: 1.9;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-image {
    position: relative;
    animation: fadeInLeft 1s ease 0.4s backwards;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 30px;
    right: -30px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    z-index: 1;
    opacity: 0.5;
}

.hero-shape {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -100px;
    right: -100px;
    z-index: 0;
    opacity: 0.2;
    animation: morph 10s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.floating-element:nth-child(3) { top: 40%; left: 60%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 80%; left: 20%; animation-delay: 3s; }

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--border-radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--gray);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.9;
}

/* Services Section */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 45px 35px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: right;
}

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

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(230, 57, 70, 0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.8rem;
    transition: var(--transition);
    color: var(--primary);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: translateY(-10px) rotateY(180deg);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.4);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 800;
}

.service-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--border-radius-lg);
    z-index: 1;
    opacity: 0.3;
}

.about-experience {
    position: absolute;
    bottom: -40px;
    left: -40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    z-index: 3;
}

.about-experience .number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 5px;
}

.about-experience .text {
    font-size: 1rem;
    font-weight: 600;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.4;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.about-feature:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-lg);
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(230, 57, 70, 0.05));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.about-feature-text h4 {
    font-size: 1.05rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 3px;
}

.about-feature-text p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--gray);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 50px 30px;
    border-radius: var(--border-radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

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

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover * {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

.feature-card:hover .feature-icon {
    background: var(--white);
    color: var(--primary);
    transform: scale(1.1) rotate(10deg);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.brands-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--gray);
    font-size: 1.1rem;
}

.brands-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
}

.brand-logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gray);
    opacity: 0.4;
    transition: var(--transition);
    cursor: default;
}

.brand-logo:hover {
    opacity: 1;
    color: var(--primary);
    transform: scale(1.15);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    padding: 100px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 50%);
    animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 900;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0 40px;
}

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

.footer-about .logo {
    margin-bottom: 25px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 800;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-8px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 35px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 35px;
    left: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.7rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: ripple 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes ripple {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.floating-btn:hover {
    transform: scale(1.15);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.call-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.97), rgba(13, 27, 42, 0.95)),
                url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1920') center/cover;
    padding: 200px 0 120px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* Services Detail Page */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.service-detail-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-detail-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(230, 57, 70, 0.1);
}

.service-detail-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-detail-content {
    padding: 35px;
}

.service-detail-content h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 800;
}

.service-detail-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.9;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.service-feature-tag {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.05));
    color: var(--primary);
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(230, 57, 70, 0.2);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    border-radius: var(--border-radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 50%);
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 900;
}

.contact-info p {
    opacity: 0.85;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
    line-height: 1.9;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.contact-item-icon {
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.contact-item-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-item-text p {
    opacity: 0.75;
    margin: 0;
    font-size: 1rem;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
}

.form-group textarea {
    height: 160px;
    resize: vertical;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(230, 57, 70, 0.1);
}

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    font-weight: 700;
}

.blog-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    gap: 22px;
    margin-bottom: 18px;
    color: var(--gray);
    font-size: 0.95rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.5;
}

.blog-content h3:hover {
    color: var(--primary);
}

.blog-content p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 22px;
    line-height: 1.8;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 15px;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 0;
    color: var(--white);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .container {
        padding: 0 25px;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-cta {
        gap: 10px;
    }
    
    .nav-cta .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .theme-toggle {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .services-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .brands-logos {
        gap: 40px;
    }
    
    .brand-logo {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 0.85rem;
    }
    
    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 90px 0 0;
        gap: 0;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        overflow-y: auto;
    }
    
    [data-theme="dark"] .nav-menu {
        background: #1a2540;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: #1d3557;
        width: 100%;
        text-align: right;
        padding: 16px 25px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 0;
        margin-bottom: 0;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid #f0f0f0;
    }
    
    [data-theme="dark"] .nav-menu .nav-link {
        color: rgba(255, 255, 255, 0.9);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    
    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: rgba(230, 57, 70, 0.08);
        color: var(--primary);
    }
    
    .nav-menu .nav-link i {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: var(--primary);
    }
    
    .mobile-cta {
        display: block;
        margin-top: 20px;
        padding: 0 20px;
    }
    
    .mobile-btn {
        background: linear-gradient(135deg, #25d366, #128c7e) !important;
        color: white !important;
        border-radius: 12px !important;
        justify-content: center !important;
        border: none !important;
        font-weight: 700 !important;
        padding: 14px 20px !important;
        margin-bottom: 10px !important;
        border-bottom: none !important;
    }
    
    .mobile-btn:last-child {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    }
    
    .mobile-btn i {
        color: white !important;
        font-size: 1.1rem !important;
    }
    
    .hamburger {
        display: flex;
        z-index: 1002;
        padding: 8px;
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 40px;
        display: flex;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-desc {
        font-size: 1rem;
    }
    
    .services-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .page-header {
        padding: 150px 0 80px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-feature {
        padding: 15px;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px 25px;
    }
    
    .service-card,
    .feature-card,
    .blog-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
    }
    
    .feature-icon {
        width: 75px;
        height: 75px;
        font-size: 1.7rem;
    }
    
    .brands-logos {
        gap: 25px;
    }
    
    .brand-logo {
        font-size: 1.4rem;
    }
    
    .cta {
        padding: 70px 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    .footer {
        padding: 70px 0 30px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.7rem;
    }
    
    .service-card,
    .feature-card {
        padding: 25px 20px;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px 20px;
    }
    
    .about-experience {
        padding: 25px;
        bottom: -30px;
        left: -15px;
    }
    
    .about-experience .number {
        font-size: 2.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    transition: width 0.1s ease;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 35px;
    left: auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 998;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
