/* المتغيرات الأساسية */
:root {
    --primary: #c9a227;
    --primary-light: #e4c45c;
    --primary-dark: #a6851f;
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --bg-glass: rgba(26, 58, 92, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --shadow-glow: 0 0 40px rgba(201, 162, 39, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Cairo', sans-serif; background: var(--bg-dark); color: var(--text-primary); line-height: 1.8; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* الأزرار */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: var(--radius-full); font-weight: 600; border: none; cursor: pointer; transition: 0.3s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(201, 162, 39, 0.5); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--bg-dark); }

/* البطاقة الزجاجية */
.glass-card { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid rgba(201, 162, 39, 0.2); border-radius: var(--radius-md); }

/* رأس القسم */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { display: inline-block; padding: 0.5rem 1.5rem; background: rgba(201, 162, 39, 0.15); color: var(--primary); border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.section-title { font-family: 'Amiri', serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; background: linear-gradient(135deg, var(--text-primary), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.title-decoration { width: 80px; height: 4px; background: linear-gradient(90deg, var(--primary), transparent); margin: 0 auto; border-radius: var(--radius-full); }

/* شريط التنقل */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 0; transition: 0.3s ease; }
.navbar.scrolled { background: rgba(10, 15, 26, 0.95); backdrop-filter: blur(20px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--bg-dark); border-radius: var(--radius-sm); font-family: 'Amiri', serif; font-size: 1.75rem; font-weight: 700; }
.logo-text { font-weight: 700; font-size: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-link { position: relative; padding: 0.5rem 0; font-weight: 500; color: var(--text-secondary); }
.nav-link::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--primary); transition: 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.mobile-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span { width: 28px; height: 3px; background: var(--text-primary); border-radius: var(--radius-full); transition: 0.3s ease; }

/* قسم الهيرو */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 6rem 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(201, 162, 39, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(26, 58, 92, 0.2) 0%, transparent 50%); }
.floating-letters { position: absolute; inset: 0; overflow: hidden; }
.letter { position: absolute; font-family: 'Amiri', serif; font-size: clamp(3rem, 8vw, 8rem); color: rgba(201, 162, 39, 0.08); animation: float 20s infinite; pointer-events: none; }
.letter:nth-child(1) { top: 10%; right: 5%; } .letter:nth-child(2) { top: 30%; right: 15%; animation-delay: -3s; } .letter:nth-child(3) { top: 50%; right: 80%; animation-delay: -6s; } .letter:nth-child(4) { top: 70%; right: 10%; animation-delay: -9s; } .letter:nth-child(5) { top: 20%; right: 70%; animation-delay: -12s; } .letter:nth-child(6) { top: 60%; right: 85%; animation-delay: -15s; } .letter:nth-child(7) { top: 80%; right: 50%; animation-delay: -18s; } .letter:nth-child(8) { top: 15%; right: 40%; animation-delay: -21s; } .letter:nth-child(9) { top: 45%; right: 60%; animation-delay: -24s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.08; } 50% { transform: translateY(-30px) rotate(5deg); opacity: 0.15; } }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hero-greeting { color: var(--primary); font-size: 1.1rem; margin-bottom: 1rem; opacity: 0; animation: fadeInUp 0.8s ease forwards; }
.hero-title { font-family: 'Amiri', serif; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.2; margin-bottom: 1rem; }
.title-line { display: block; opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.2s; }
.title-highlight { display: block; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.4s; }
.hero-subtitle { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 0.5rem; opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.6s; }
.hero-school { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); margin-bottom: 2rem; opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.8s; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 1s; }
.hero-visual { display: flex; justify-content: center; align-items: center; opacity: 0; animation: fadeInUp 0.8s ease forwards; animation-delay: 0.5s; }
.arabic-calligraphy { text-align: center; padding: 4rem; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid rgba(201, 162, 39, 0.3); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.arabic-calligraphy::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent, rgba(201, 162, 39, 0.1), transparent); animation: rotate 10s linear infinite; }
@keyframes rotate { 100% { transform: rotate(360deg); } }
.calligraphy-main { display: block; font-family: 'Amiri', serif; font-size: clamp(4rem, 10vw, 8rem); font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; }
.calligraphy-sub { display: block; color: var(--text-secondary); font-size: 1.25rem; margin-top: 1rem; position: relative; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; animation: bounce 2s infinite; }
.scroll-text { font-size: 0.85rem; color: var(--text-muted); }
.scroll-arrow { width: 24px; height: 24px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* قسم من أنا */
.about { padding: 6rem 0; background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%); }
.about-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.about-card { padding: 2rem; text-align: center; transition: 0.3s ease; }
.about-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-glow); }
.about-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: rgba(201, 162, 39, 0.15); border-radius: 50%; margin: 0 auto 1rem; color: var(--primary); }
.about-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.about-card p { color: var(--text-secondary); font-size: 0.95rem; }
.about-quote { text-align: center; padding: 4rem; position: relative; }
.about-quote blockquote { font-family: 'Amiri', serif; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--primary); font-style: italic; position: relative; padding: 0 2rem; }
.about-quote blockquote::before, .about-quote blockquote::after { content: '"'; font-size: 4rem; color: rgba(201, 162, 39, 0.3); position: absolute; font-family: serif; }
.about-quote blockquote::before { top: -1rem; right: 0; }
.about-quote blockquote::after { bottom: -2rem; left: 0; transform: rotate(180deg); }

/* قسم الخدمات */
.services { padding: 6rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.service-card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; transition: 0.3s ease; }
.service-card::before { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), transparent); transform: scaleX(0); transform-origin: right; transition: 0.3s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); border-color: rgba(201, 162, 39, 0.3); }
.service-number { position: absolute; top: 1rem; left: 1rem; font-size: 3rem; font-weight: 800; color: rgba(201, 162, 39, 0.1); line-height: 1; }
.service-icon { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; background: rgba(201, 162, 39, 0.15); border-radius: var(--radius-sm); margin-bottom: 1rem; color: var(--primary); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* قسم الأقوال */
.quotes { padding: 6rem 0; background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 50%, var(--bg-dark) 100%); }
.quotes-slider { position: relative; max-width: 800px; margin: 0 auto; min-height: 200px; }
.quote-card { position: absolute; width: 100%; text-align: center; padding: 4rem; opacity: 0; transform: translateX(50px); transition: 0.5s ease; pointer-events: none; }
.quote-card.active { position: relative; opacity: 1; transform: translateX(0); pointer-events: all; }
.quote-icon { font-family: 'Amiri', serif; font-size: 6rem; color: var(--primary); line-height: 0.5; opacity: 0.3; }
.quote-text { font-family: 'Amiri', serif; font-size: clamp(1.25rem, 3vw, 1.75rem); margin: 1rem 0; }
.quote-author { color: var(--primary); font-weight: 600; }
.quotes-controls { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-top: 2rem; }
.quote-nav { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-glass); border: 1px solid rgba(201, 162, 39, 0.3); border-radius: 50%; color: var(--primary); cursor: pointer; transition: 0.3s ease; }
.quote-nav:hover { background: var(--primary); color: var(--bg-dark); }
.quotes-dots { display: flex; gap: 0.5rem; }
.quotes-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(201, 162, 39, 0.3); cursor: pointer; transition: 0.3s ease; }
.quotes-dots .dot.active { background: var(--primary); transform: scale(1.2); }

/* قسم التواصل */
.contact { padding: 6rem 0; }
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-card); border-radius: var(--radius-md); transition: 0.3s ease; }
.contact-method:hover { transform: translateX(-10px); }
.method-icon { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(201, 162, 39, 0.15); border-radius: var(--radius-sm); color: var(--primary); }
.method-details { display: flex; flex-direction: column; }
.method-label { font-size: 0.85rem; color: var(--text-muted); }
.method-value { font-weight: 600; }
.contact-form { padding: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.875rem 1rem; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-sm); color: var(--text-primary); font-family: inherit; font-size: 1rem; transition: 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.btn-submit { width: 100%; justify-content: center; margin-top: 1rem; }

/* التذييل */
.footer { background: var(--bg-card); padding: 4rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-verse { text-align: left; }
.verse-arabic { font-family: 'Amiri', serif; font-size: 1.25rem; color: var(--primary); margin-bottom: 0.25rem; }
.verse-reference { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom { text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.9rem; }

/* الاستجابة للشاشات */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-cta, .hero-school { justify-content: center; }
    .contact-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: var(--bg-card); flex-direction: column; justify-content: center; padding: 4rem; transition: 0.3s ease; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: flex; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-verse { text-align: center; }
}

/* تأثيرات التحميل */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
::selection { background: var(--primary); color: var(--bg-dark); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }
