/* Root Variables */
:root {
    --primary-color: #4fc3f7;
    --secondary-color: #29b6f6;
    --accent-color: #81c784;
    --success-color: #66bb6a;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-bg: #f8fafb;
    --gradient: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    --shadow: 0 4px 20px rgba(79, 195, 247, 0.1);
    --shadow-hover: 0 8px 30px rgba(79, 195, 247, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cairo", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hero-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(79, 195, 247, 0.3) 0%,
        rgba(41, 182, 246, 0.6) 50%,
        rgba(2, 119, 189, 0.8) 100%
    );
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(79, 195, 247, 0.2) 0%,
        rgba(41, 182, 246, 0.15) 25%,
        rgba(2, 119, 189, 0.25) 50%,
        rgba(79, 195, 247, 0.3) 75%,
        rgba(41, 182, 246, 0.2) 100%
    );
    backdrop-filter: blur(0.5px) saturate(1.1);
    -webkit-backdrop-filter: blur(0.5px) saturate(1.1);
    z-index: 2;
}

.hero-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.02) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3),
        0 5px 15px rgba(79, 195, 247, 0.4);
}

.hero-badge i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb */
.breadcrumb-section {
    padding: 2rem 0;
    background: var(--light-bg);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb i {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Service Content Section */
.service-content {
    padding: 5rem 0;
    background: var(--white);
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
    background-color: white !important;
}

.service-main {
    background: var(--white) !important;
    border-radius: 24px;
    padding: 4rem;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-header {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 500;
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.service-features {
    margin: 2rem 0;
    padding: 3rem 0;
    background: var(--white);
}

.features-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.features-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 0.8rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 2.2rem;
    background: linear-gradient(180deg, #f9fcff 0%, #f2f7ff 100%);
    border: 1px solid #e5f3ff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.15);
    margin-bottom: 0.5rem;
}

.feature-content {
    flex: 1;
    padding-top: 0.5rem;
    text-align: center;
}

.feature-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Enhanced Feature Items Animation */
.feature-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: #d6ebff;
}

/* Service Sidebar */
.service-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
    justify-content: center;
}

.sidebar-title i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;

    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: right;
    direction: rtl;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
    width: 24px;
    flex-shrink: 0;
}

.contact-item span {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.cta-card {
    background: var(--gradient);

    color: white;
    text-align: center;
}

.cta-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cta-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn-cta:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Service CTA Card */
.service-cta {
    border-radius: 12px;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);

    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.service-cta h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.4);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        height: 60vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .service-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-sidebar {
        position: static;
        order: 1;
    }

    .service-main {
        order: 0;
        padding: 2.5rem;
        border-radius: 20px;
    }

    .service-title {
        font-size: 2.2rem;
    }

    .service-description {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 55vh;
        min-height: 450px;
        margin-top: 80px;
    }

    /* اجعل المحتوى يستغل العرض بالكامل في صفحات الخدمات */
    .service-content .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* اجعل الكروت تاخذ العرض الكامل على الموبايل */
    .service-layout,
    .service-main,
    .service-sidebar,
    .sidebar-card {
        width: 100%;
    }

    /* الكارد الرئيسية للنص */
    .service-main {
        margin: 0;
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-radius: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* إزالة حواف سكشن الخدمات نفسه */
    .service-content {
        padding: 0;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-background img {
        object-position: center top;
    }

    .hero-badge {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .service-main {
        padding: 2rem;
        border-radius: 16px;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .features-title {
        font-size: 1.6rem;
    }

    .features-list {
        gap: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-item::before {
        display: none;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .feature-content h4 {
        font-size: 1.2rem;
    }

    .feature-content p {
        font-size: 0.95rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 45vh;
        min-height: 350px;
        margin-top: 70px;
    }

    .hero-background img {
        object-position: center top;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .features-title {
        font-size: 1.4rem;
    }

    .service-main {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .features-list {
        gap: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .feature-content h4 {
        font-size: 1.1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-whatsapp,
    .btn-cta {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-section {
        margin-top: 60px;
    }

    .hero-background img {
        object-position: center top;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}
.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mt-4 {
    margin-top: 2rem;
}
.mt-5 {
    margin-top: 3rem;
}

.p-1 {
    padding: 0.5rem;
}
.p-2 {
    padding: 1rem;
}
.p-3 {
    padding: 1.5rem;
}
.p-4 {
    padding: 2rem;
}
.p-5 {
    padding: 3rem;
}

.d-flex {
    display: flex;
}
.align-items-center {
    align-items: center;
}
.justify-content-center {
    justify-content: center;
}
.gap-1 {
    gap: 0.5rem;
}
.gap-2 {
    gap: 1rem;
}
.gap-3 {
    gap: 1.5rem;
}
