/* Custom CSS for Modern Tech Company */
:root {
    --primary-color: #0f172a; /* Dark Navy */
    --secondary-color: #1e293b; /* Lighter Navy */
    --accent-color: #38bdf8; /* Cyan Neon */
    --accent-glow: rgba(56, 189, 248, 0.5);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    overflow-x: hidden;
}

/* --- Hero Section with Comprehensive Image --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 50px;
}

/* الخلفية الشاملة */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* تأثير تقريب بطيء للصورة */
    animation: zoomEffect 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* --- Glassmorphism Cards (Features) --- */
/* رفع الكروت لتتداخل مع الهيرو */
.features-overlap {
    margin-top: -100px;
    position: relative;
    z-index: 4;
    padding-bottom: 3rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
}

    .glass-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
        border-color: var(--accent-color);
    }

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-color);
    transition: 0.3s;
}

.glass-card:hover .icon-box {
    background: var(--accent-color);
    color: white;
    transform: rotateY(180deg);
}

/* --- Section Styling --- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

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

/* --- Product/Service Cards --- */
.tech-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    height: 100%;
    border: 1px solid #f1f5f9;
}

    .tech-card:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        transform: translateY(-5px);
    }

.tech-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .tech-card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s;
    }

.tech-card:hover .tech-card-img-wrapper img {
    transform: scale(1.1);
}

.tech-card-body {
    padding: 1.5rem;
}

/* --- Buttons --- */
.btn-tech-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 50px;
    border: none;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

    .btn-tech-primary:hover {
        background: #0ea5e9;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
    }

.btn-tech-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: bold;
    padding: 12px 35px;
    border-radius: 50px;
    transition: 0.3s;
}

    .btn-tech-outline:hover {
        background: white;
        color: var(--primary-color);
    }

/* --- About Section (Dark Mode) --- */
.about-dark-section {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

    .about-dark-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(0,0,0,0) 70%);
        border-radius: 50%;
    }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .features-overlap {
        margin-top: 30px;
    }

    .hero-section {
        height: auto;
        padding: 100px 0;
    }
}
