/*
Theme Name: Riaya Theme (Premium Angelic Edition)
Theme URI: https://riayaksa.com
Author: Antigravity AI
Description: قالب رعاية السعودية (النسخة الفاخرة المحدثة). تصميم ملائكي، تأثيرات زجاجية، حركة انسيابية، وتجربة مستخدم عالمية.
Version: 2.0.0
*/

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

:root {
    --primary: #0A2540; /* كحلي ملكي */
    --accent: #D4AF37; /* ذهبي فخم */
    --angelic-blue: #E0F2FE; /* أزرق ملائكي فاتح */
    --angelic-glow: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
}

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

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

a { text-decoration: none; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* --- 1. The Angelic Video/Animated Slider (Hero) --- */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* خلفية متحركة تشبه الفيديو (فلاش) - ألوان ملائكية هادئة */
.angelic-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #bae6fd, #fdf4ff);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    z-index: 1;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.6;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 37, 64, 0.3), rgba(10, 37, 64, 0.8));
    z-index: 3;
}

/* محتوى الواجهة (Glassmorphism) */
.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    max-width: 800px;
    animation: floatUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    color: #FFF;
    margin-bottom: 20px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
    letter-spacing: -2px;
}

.hero-content h1 span {
    background: linear-gradient(120deg, #D4AF37, #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.4rem;
    color: #E2E8F0;
    font-weight: 400;
    margin-bottom: 40px;
}

/* --- 2. Premium Buttons --- */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--primary);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.btn-premium:hover::before { left: 100%; }

.btn-outline-glass {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.5);
    color: #FFF;
    backdrop-filter: blur(10px);
}
.btn-outline-glass:hover {
    background: #FFF;
    color: var(--primary);
    transform: translateY(-5px);
}

/* --- 3. Floating Glass Menu --- */
.header-wrapper {
    position: fixed;
    width: 100%;
    top: 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.glass-menu {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 10px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

.glass-menu.scrolled {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(10, 37, 64, 0.2);
}

.header-inner {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.site-title { margin: 0; font-size: 1.8rem; }
.glass-menu .site-title a,
.glass-menu .main-navigation a {
    color: #FFF;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.glass-menu.scrolled .site-title a,
.glass-menu.scrolled .main-navigation a {
    color: var(--primary);
    text-shadow: none;
}

.main-navigation ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { font-size: 1.1rem; position: relative; padding: 5px 0; }
.main-navigation a::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; right: 0;
    background: var(--accent); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px;
}
.main-navigation a:hover::after { width: 100%; }

.btn-premium-small {
    background: linear-gradient(135deg, var(--accent), #FDE047);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    border: none;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: none !important;
}
.btn-premium-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

/* --- Premium Footer --- */
.site-footer {
    background: var(--primary);
    color: #FFF;
    padding: 80px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--angelic-blue), var(--accent));
}
.footer-navigation ul {
    display: flex; justify-content: center; gap: 30px; list-style: none; margin: 30px 0; padding: 0;
}
.footer-navigation a {
    color: var(--angelic-blue);
    font-weight: 600;
}
.footer-navigation a:hover {
    color: var(--accent);
}
.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* --- 4. Services (Angelic Cards) --- */
.services-section { padding: 120px 0; background: #FFF; position: relative; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 3rem; font-weight: 900; color: var(--primary); }
.section-title p { font-size: 1.2rem; color: #64748B; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.service-card {
    background: #FFF;
    border-radius: 40px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 40px; background: linear-gradient(135deg, #E0F2FE, #FFF);
    z-index: -1; opacity: 0; transition: 0.5s;
}
.service-card:hover { transform: translateY(-15px); box-shadow: 0 30px 60px rgba(10, 37, 64, 0.08); }
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 100px; height: 100px;
    background: var(--angelic-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 30px; font-size: 40px;
    box-shadow: 0 15px 30px rgba(224, 242, 254, 0.8);
    transition: 0.5s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); background: var(--accent); color: #FFF; }
.service-card h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; color: var(--primary); }
.service-card p { font-size: 1.1rem; color: #475569; }

/* --- Animations --- */
@keyframes gradientFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(50px); } 100% { opacity: 1; transform: translateY(0); } }

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 40px; left: 40px; width: 70px; height: 70px;
    background: #25D366; color: #FFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 35px;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999; transition: 0.4s;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(-10deg); }
