/* ====================== أساسيات الموقع ====================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ====================== خلفية عامة + تأثيرات تقنية ====================== */
body {
    background: #0F0F0F;
    color: #E0E0E0;
}

/* خلفية خفيفة متحركة للـ Hero (particles-like) */
.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 255, 157, 0.06) 0%, transparent 50%);
    animation: subtleMove 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes subtleMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
    100% { transform: translate(0, 0); }
}

/* ====================== Glassmorphism محسن (الأكثر أناقة 2026) ====================== */
.glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

/* ====================== أزرار احترافية مع Glow ====================== */
.btn-primary {
    background: linear-gradient(90deg, #00D4FF, #00FF9D);
    color: #0A2540;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 9999px;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 40%;
    height: 400%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: translateX(-150%) skewX(-25deg); }
    20% { transform: translateX(300%) skewX(-25deg); }
    100% { transform: translateX(300%) skewX(-25deg); }
}

/* زر واتساب عائم */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* لأن الموقع RTL */
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(12deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.7);
}

/* ====================== Navbar محسنة ====================== */
nav {
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(10, 37, 64, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ====================== Hero Typography كبير ومؤثر ====================== */
h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 900;
    background: linear-gradient(90deg, #fff, #00D4FF, #00FF9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ====================== Cards الخدمات والأعمال ====================== */
.service-card, .portfolio-item {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover, .portfolio-item:hover {
    transform: scale(1.04) translateY(-12px);
}

/* تأثير hover على الصور في البورتفوليو */
.portfolio-item img {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ====================== أيقونات وألوان إضافية ====================== */
.text-accent {
    color: #00D4FF;
}

.border-accent {
    border-color: rgba(0, 212, 255, 0.3);
}

/* ====================== Responsive Adjustments ====================== */
@media (max-width: 768px) {
    .glass {
        border-radius: 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }
}

/* ====================== إضافات بسيطة للتلميع ====================== */
section {
    scroll-margin-top: 100px;
}

/* خطوط ناعمة للنصوص الثانوية */
p {
    opacity: 0.92;
}