/* 
 * Amaxia Project - Main Stylesheet
 * Professional Full-Stack Implementation
 */

/* ================= استدعاء الخطوط ================= */
@font-face {
    font-family: 'Bahij';
    src: url('../fonts/Bahij-Regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'ModernNo20';
    src: url('../fonts/ModernNo20.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Unigeo64';
    src: url('../fonts/Unigeo64-Trial.woff2') format('woff2');
    font-display: swap;
}

/* ================= متغيرات الهوية البصرية ================= */
:root {
    --primary: #0F2C2E;      /* أخضر غامق */
    --primary-light: #1A3E40;
    --accent: #C79F3E;       /* ذهبي */
    --accent-hover: #D4AF37;
    
    --bg-body: #F9FAFB;
    --bg-card: #FFFFFF;
    --text-main: #0F2C2E;
    --text-muted: #58686a;
    --border-color: #e5e7eb;
    
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-gold: 0 10px 25px rgba(199, 159, 62, 0.25);
    --radius: 16px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-body: #051011;
    --bg-card: #0F2C2E;
    --text-main: #F9FAFB;
    --text-muted: #AAB3B5;
    --border-color: #1A3E40;
}

/* ================= الأساسيات ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.8;
    transition: var(--transition);
    padding-top: 80px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }

/* ================= القائمة العلوية (Navbar) ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(199, 159, 62, 0.5);
    transition: var(--transition);
}
.logo-img:hover { transform: scale(1.05); }

.brand-name {
    font-family: 'ModernNo20', serif;
    font-size: 24px;
    color: var(--accent);
    text-transform: capitalize;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 16px;
    color: #e2e8f0;
}

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

.desktop-settings {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-inline-start: 20px;
    border-inline-start: 1px solid rgba(255,255,255,0.2);
}

.icon-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--accent);
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}
.icon-btn:hover { background: var(--accent); color: #000; }

/* ================= HERO SECTION ================= */
.hero {
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #000 100%);
    color: #fff;
    position: relative;
}

.hero h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 60px);
    margin-bottom: 15px;
}

[lang="ar"] .hero h1 { font-family: 'Bahij', sans-serif; }
[lang="en"] .hero h1 { font-family: 'ModernNo20', serif; letter-spacing: 4px; }

.hero p {
    color: var(--accent);
    font-size: clamp(18px, 3vw, 24px);
    margin: 0;
}

[lang="en"] .hero p { font-family: 'Unigeo64', sans-serif; }

/* ================= SECTIONS ================= */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
}

[data-theme="dark"] .section-title { color: var(--accent); }

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ================= ABOUT US ================= */
.about-container {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 50px;
    color: var(--accent);
    opacity: 0.3;
    display: block;
}

.about-text {
    font-size: clamp(18px, 4vw, 22px);
    line-height: 1.8;
    font-weight: 600;
    margin: 20px 0;
}

/* ================= GRIDS ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--accent);
}

.card h3 {
    color: var(--accent);
    margin-top: 0;
    font-size: 24px;
}

.card-icon {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
}

/* ================= PARTNERS ================= */
.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.partner-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-card:hover .partner-img {
    filter: grayscale(0%);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: #000;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* ================= FOOTER ================= */
footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: start;
}

.footer-logo .brand-name { font-size: 32px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: #888;
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
}

.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
}

/* Sidebar & Overlay (Same as original but styled) */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    z-index: 1001;
    transition: 0.4s ease;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[dir="ltr"] .sidebar { right: auto; left: -300px; }
.sidebar.active { right: 0; }
[dir="ltr"] .sidebar.active { left: 0; }

.sidebar a {
    color: #fff;
    padding: 15px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(4px);
}
.overlay.active { display: block; }
