/* =========================================
   1. Eye-Friendly & Elegant Variables
   ========================================= */
:root {
    /* الألوان الأساسية - وضع النهار */
    --primary-color: #1e5f5b; 
    --secondary-color: #4d908e; 
    --accent-gold: #c5a065; 
    --word-blue: #2b5797; /* لون وورد الرسمي للمستندات */
    
    --bg-main: #f8faf9; 
    --bg-secondary: #f0f4f3; 
    
    --glass-surface: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    
    --text-main: #2d3748; 
    --text-muted: #4a5568;
    
    --radius-xl: 24px;
    --radius-pill: 50px;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(30, 95, 91, 0.08);
}

/* متغيرات وضع الليل (Dark Mode) */
body.dark-mode {
    --bg-main: #1a202c;
    --bg-secondary: #2d3748;
    --text-main: #f7fafc;
    --text-muted: #e2e8f0;
    --glass-surface: rgba(45, 55, 72, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.8;
    transition: all 0.3s ease;
}

/* =========================================
   2. Responsive Floating Navbar
   ========================================= */
.navbar {
    width: 92%;
    margin: 20px auto 0;
    border-radius: var(--radius-pill);
    background: var(--glass-surface) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    box-shadow: var(--shadow-soft);
    padding: 0.6rem 2rem;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    transition: 0.3s;
    padding: 8px 18px !important;
    border-radius: 20px;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--bg-secondary);
    color: var(--primary-color) !important;
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero-section {
    margin-top: 25px;
    border-radius: var(--radius-xl);
    width: 96%;
    margin: 25px auto;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(180deg, rgba(23, 56, 53, 0.75) 0%, rgba(15, 38, 36, 0.8) 100%),
                url('https://images.unsplash.com/photo-1542816417-0983c9c9ad53?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 0 20px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #f0fdfa;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* =========================================
   4. Cards & Content
   ========================================= */
section { padding: 60px 0; }

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.feature-box, .service-card, .gallery-card, .card {
    background: var(--glass-surface);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    height: 100%;
    color: var(--text-main);
}

.service-card:hover, .feature-box:hover, .card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card { padding: 2.5rem; text-align: center; }

.service-card i, .feature-box i, #formsSection .card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    background: rgba(77, 144, 142, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
}

/* تمييز أيقونة قسم النماذج بلون مستندات وورد */
#formsSection .card i {
    color: var(--word-blue);
    background: rgba(43, 87, 151, 0.1);
}

#formsSection .card {
    border-bottom: 4px solid var(--word-blue) !important;
}

/* =========================================
   5. Buttons & Forms
   ========================================= */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.btn-outline-dark {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    color: var(--text-main);
    border-color: var(--text-main);
}

input.form-control, textarea.form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 12px;
}

/* =========================================
   6. RTL & Responsive Support
   ========================================= */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .navbar { width: 95%; padding: 0.5rem 1rem; top: 10px; }
    .service-card { padding: 1.5rem; }
}
