:root {
    --primary-blue: #0071e3; /* Apple Premium Blue */
    --dark-blue: #1d1d1f; /* Apple Matte Dark Grey */
    --light-blue: #0071e3;
    --accent-blue: #0071e3;
    --secondary-blue: #0050b3;
    --text-color: #1d1d1f; /* Apple body text */
    --light-text: #ffffff;
    --gray-bg: rgba(245, 245, 247, 0.45);
    --border-radius: 20px; /* Apple trademark squircle border radius */
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Custom Apple ultra-smooth cubic-bezier */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, "Tajawal", sans-serif;
    letter-spacing: -0.015em;
}

html {
    scroll-behavior: smooth;
    background-color: #f5f5f7; /* Fallback Apple light gray bg */
}

body {
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1140px; /* Slightly tighter maximum width for premium presentation */
    margin: 0 auto;
    padding: 0 20px;
}

/* الشريط العلوي المحسن بأسلوب آبل الزجاجي */
header {
    background-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Very faint sleek border */
}

header.scrolled {
    padding: 2px 0;
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0; /* Slightly thinner padding */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    color: var(--text-color);
    font-size: 1.6rem; /* Cleaner, tighter logo */
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-blue);
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 32px;
    position: relative;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #515154; /* apple subtext grey */
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem; /* Compact, crisp font sizes */
    padding: 6px 0;
    display: block;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
    border-radius: 10px;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--primary-blue);
    transition: var(--transition);
    background: rgba(0, 102, 204, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    transform: rotate(90deg);
    background: rgba(0, 102, 204, 0.2);
}

/* قسم المقدمة المحسن */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(0, 77, 153, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 170, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(51, 153, 255, 0.15) 0%, transparent 50%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    animation: subtleZoom 25s infinite alternate ease-in-out;
    filter: brightness(0.7);
}

@keyframes subtleZoom {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1.1) rotate(0.5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
    opacity: 0.95;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.8;
}

/* قسم العنوان لصفحة الخدمات */
.page-hero {
    height: 75vh;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 77, 153, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 170, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(51, 153, 255, 0.1) 0%, transparent 50%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    animation: subtleZoom 20s infinite alternate;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
    font-weight: 800;
}

.page-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s both;
    opacity: 0.9;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
}

/* الأقسام العامة المحسنة بأسلوب آبل الراقي */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem; /* Clean Apple key heading size */
    color: var(--dark-blue);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    font-weight: 600; /* Lighter weight for premium look */
    letter-spacing: -0.022em;
}

/* Remove 2D chunky underline bars for an elegant, pristine aesthetic */
.section-title h2::after {
    display: none;
}

.section-title p {
    color: #86868b; /* Apple light gray subtext */
    max-width: 600px;
    margin: 15px auto 0;
    font-size: 1.05rem; /* Clean text sizes */
    line-height: 1.6;
    font-weight: 400;
}

/* ========== البنر البسيط الجديد بستايل آبل الزجاجي الطائر ========== */
.simple-banner {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 5;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.banner-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.banner-logo span {
    color: var(--dark-blue);
}

.banner-arabic {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.banner-sub {
    font-size: 1rem;
    color: #86868b;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* قسم نبذة عن الشركة المحسن بأسلوب آبل */
.about {
    background-color: var(--gray-bg);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.04) 0%, transparent 70%);
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.021em;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #515154;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08); /* Clean, thin border instead of blocky white border */
    background: #ffffff;
}

.about-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.08);
}

/* قسم الخدمات المحسن */
.services {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(51, 153, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05); /* thin keyline */
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 113, 227, 0.2);
}

.service-icon {
    width: 68px;
    height: 68px;
    background: rgba(0, 113, 227, 0.06);
    border-radius: 16px; /* Squircle icon container */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 0 auto 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

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

.service-card p {
    color: #515154;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* قسم الخدمات التفصيلية */
.service-detail-section {
    background-color: var(--gray-bg);
    position: relative;
    overflow: hidden;
}

.service-detail-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.service-detail-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.service-detail-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
}

.service-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.service-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 102, 204, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0.8;
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.service-detail-content h3 {
    font-size: 1.7rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.service-detail-content > p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-detail-content h4 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.service-features li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
    padding-right: 35px;
    transition: var(--transition);
    text-align: right;
}

.service-features li:hover {
    padding-right: 45px;
    color: var(--primary-blue);
}

.service-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
    transition: var(--transition);
}

.service-features li:hover::before {
    transform: scale(1.3);
}

/* قسم خطوات العمل */
.service-process {
    background-color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.service-process::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(51, 153, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 40px 25px;
    background-color: white;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.2);
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
    transition: var(--transition);
}

.process-step:hover .step-number {
    transform: rotate(15deg) scale(1.1);
}

.process-step h4 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.process-step p {
    color: #666;
    line-height: 1.8;
}

/* قسم باقات الاستضافة المحسن */
.packages {
    background-color: var(--gray-bg);
    position: relative;
    overflow: hidden;
}

.packages::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    background-color: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--box-shadow);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.toggle-btn {
    padding: 18px 40px;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-color);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.package-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.package-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 35px 70px rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
}

.package-card.popular::before {
    content: 'الأكثر طلباً';
    position: absolute;
    top: 25px;
    left: -35px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 10px 40px;
    transform: rotate(-45deg);
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
    letter-spacing: 1px;
}

.package-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 45px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.package-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.package-price {
    font-size: 3.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.package-price span {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

.package-features {
    padding: 40px 35px;
}

.package-features ul {
    list-style: none;
    padding: 0;
}

.package-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    padding-right: 40px;
    font-size: 1.1rem;
    transition: var(--transition);
    text-align: right;
}

.package-features li:hover {
    padding-right: 50px;
    color: var(--primary-blue);
}

.package-features li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-blue);
    font-size: 1.3rem;
    transition: var(--transition);
}

.package-features li.excluded {
    color: #999;
    text-decoration: line-through;
}

.package-features li.excluded::before {
    content: '\f057';
    color: #ff4d4d;
}

.package-features li:hover::before {
    transform: scale(1.3);
}

.package-card .btn {
    display: block;
    margin: 30px auto 0;
    text-align: center;
    max-width: 250px;
}

/* قسم أعمالنا المحسن */
.portfolio {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(51, 153, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 320px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 102, 204, 0.2);
    border-color: rgba(0, 102, 204, 0.3);
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    opacity: 0;
    transition: var(--transition);
    padding: 35px;
}

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

.portfolio-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    transform: translateY(20px);
    transition: var(--transition);
    text-align: right;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: var(--transition) 0.1s;
    text-align: right;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* قسم معرض صور الخدمات */
.gallery-section {
    padding: 100px 0;
    background-color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

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

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: right;
}

.gallery-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    text-align: right;
}

/* قسم لماذا تختارنا */
.why-choose {
    background-color: var(--gray-bg);
    position: relative;
    overflow: hidden;
}

.why-choose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.reason-card {
    text-align: center;
    padding: 35px 25px;
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 113, 227, 0.2) !important;
}

.reason-icon {
    width: 68px;
    height: 68px;
    background: rgba(0, 113, 227, 0.06);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.reason-card:hover .reason-icon {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.reason-card h4 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--dark-blue);
    font-weight: 600;
}

.reason-card p {
    color: #515154;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* قسم الاتصال المحسن */
.contact {
    background-color: var(--gray-bg);
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.3);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
}

.contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
    font-weight: 700;
}

.contact-details p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: right;
}

.contact-form {
    background-color: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 1.1rem;
    text-align: right;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e6f0ff;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    transition: var(--transition);
    background-color: #f8fafd;
    text-align: right;
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
    background-color: white;
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* قسم الاتصال السريع */
.quick-contact {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(0, 77, 153, 0.95) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2074&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

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

.quick-contact h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.quick-contact p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    opacity: 0.9;
}

/* الأزرار المحسنة بأسلوب آبل */
.btn {
    display: inline-block;
    padding: 12px 28px; /* Compact Apple-style padding */
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 980px; /* Precision Apple rounded-pill */
    font-size: 0.95rem; /* Clean text size */
    font-weight: 500; /* Lighter weight */
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.12); /* Faint elegant glow */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.24);
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: white;
    color: var(--dark-blue);
    border-color: white;
}

.btn i {
    margin-left: 10px;
}

/* التذييل المحسن */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #001f3f 100%);
    color: white;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.7rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    font-weight: 700;
    text-align: right;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, transparent 100%);
}

.footer-column p {
    text-align: right;
    color: #ccc;
    font-size: 1.05rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
}

.footer-links a i {
    margin-left: 12px;
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-links a:hover {
    color: white;
    padding-right: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-start;
}

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

.social-links a:hover {
    background-color: var(--accent-blue);
    transform: translateY(-5px) rotate(5deg);
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.newsletter-form .form-control::placeholder {
    color: #ccc;
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
    box-shadow: none;
}

.newsletter-form button {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.05rem;
    color: #aaa;
    position: relative;
    z-index: 1;
}

/* تأثيرات الظهور والأنيميشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1), 
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 3.2rem;
    }
    
    .page-hero h1 {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.6rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        width: 80%;
        margin: 0 auto;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    .page-hero {
        height: 65vh;
    }
    
    .page-hero h1 {
        font-size: 2.7rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .service-detail-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        background-color: rgba(255, 255, 255, 0.98);
        width: 85%;
        height: calc(100vh - 90px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        transition: var(--transition);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(15px);
        z-index: 999;
        border-left: 1px solid rgba(0, 102, 204, 0.1);
        padding-left: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 12px 30px;
    }

    .hero {
        height: 90vh;
        margin-top: 90px;
    }
    
    .hero h2 {
        font-size: 2.3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .page-hero {
        height: 60vh;
        margin-top: 90px;
    }
    
    .page-hero h1 {
        font-size: 2.3rem;
    }
    
    .page-hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .section-title p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quick-contact h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.9rem;
    }
    
    .btn {
        padding: 16px 35px;
        font-size: 1.05rem;
    }
    
    .service-card {
        padding: 40px 25px;
    }
    
    .service-detail-content {
        padding: 25px;
    }
    
    .package-header {
        padding: 35px 20px;
    }
    
    .package-price {
        font-size: 2.8rem;
    }
}

/* Glassmorphism Overrides to let the animated matrix backdrop show dynamically & cleanly */
.services,
.service-process,
.portfolio,
.gallery-section,
.about,
.why-choose,
.contact,
.service-detail-section,
.packages {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
}

/* Semi-translucent cards so code flows elegantly behind them */
.service-card,
.service-detail-card,
.package-card,
.contact-item,
.contact-form,
.reason-card,
.process-step {
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
}

.toggle-container {
    background-color: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
