/* 🎨 توحيد الهوية البصرية - الملف الرئيسي */
:root {
    --primary: #1a3a5f;
    --primary-dark: #0e1e33;
    --secondary: #ffd700;
    --accent: #e67e22;
    --light: #f8f9fa;
    --dark: #0e0b1f;
    --text: #333;
    --text-light: #f5f5f5;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 80px; /* لتعويض ارتفاع الهيدر الثابت */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* شريط التقدم */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    width: 0%;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* الهيدر */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary), rgba(26, 58, 95, 0.95));
    color: var(--text-light);
    padding: 18px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    top: 0;
}

.header-scrolled {
    padding: 12px 0;
    background: rgba(14, 30, 51, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    color: var(--secondary);
}

.logo i {
    color: var(--secondary);
    font-size: 1.8rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    transition: var(--transition);
}

nav ul li a:hover::after { width: 80%; }
nav ul li a:hover { color: var(--secondary); }

.cta-button {
    background: var(--secondary);
    color: var(--primary) !important;
    padding: 10px 25px !important;
    border-radius: 30px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-button:hover {
    background: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* العناوين العامة للأقسام */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 30px auto 0;
}

/* الأزرار العامة */
.btn-primary, .hero-button.primary-btn {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-primary:hover, .hero-button.primary-btn:hover {
    background: #ffc107;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.btn-secondary, .hero-button.secondary-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-secondary:hover, .hero-button.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-5px);
}

/* الفوتر */
footer {
    padding: 80px 0 30px;
    background: var(--primary);
    color: var(--text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary);
    position: relative;
    padding-bottom: 15px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
}

.footer-column p {
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-links a:hover { color: var(--secondary); transform: translateX(-5px); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: #b0b0b0;
}
.footer-contact i { color: var(--secondary); font-size: 1.2rem; margin-top: 5px; }

.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 1rem;
}

/* التجاوب للموبايل */
@media (max-width: 992px) {
    .section-header h2 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary);
        transition: var(--transition);
        padding: 80px 30px 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 20px; }
    nav ul li a { padding: 15px; background: rgba(255,255,255,0.05); border-radius: 12px; }
    nav ul li a::after { display: none; }
    
    .section-header h2 { font-size: 2rem; }
    
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 1rem; }
}