/* ========================================
   AHSAN TA'LIM — PREMIUM VEB-SAYT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
:root {
  --bg-main: #06080e;
  --bg-card: #0e1322;
  --bg-input: #151b2b;
  --gold: #f5c518;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-color: rgba(255,255,255,0.05);
  --border-light: rgba(245,197,24,0.2);
  --radius-card: 20px;
  --radius-btn: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(6, 8, 14, 0.8);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: padding 0.3s ease;
}
.header.scrolled { padding: 10px 0; background: rgba(6, 8, 14, 0.95); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--gold); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; line-height: 1.1; color: #fff; }
.logo-sub { font-size: 0.65rem; color: var(--gold); letter-spacing: 2px; }
.nav-links { display: none; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
@media (min-width: 992px) { .nav-links { display: flex; } .menu-btn { display: none !important; } }
.menu-btn {
  background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main);
  width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
}
/* BUTTONS */
.btn-gold {
  background: var(--gold); color: #000; padding: 14px 28px;
  border-radius: var(--radius-btn); font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: 0.3s;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(245,197,24,0.3); }
.btn-dark {
  background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border-color);
  padding: 14px 28px; border-radius: var(--radius-btn); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: 0.3s;
}
.btn-dark:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
/* HERO */
.hero {
  text-align: center; padding: 100px 20px 80px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 300px; background: radial-gradient(circle, rgba(245,197,24,0.15) 0%, rgba(6,8,14,0) 70%);
  z-index: 0; pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-logo-wrapper { position: relative; margin-bottom: 30px; animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.hero-logo-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; background: var(--gold); filter: blur(50px); opacity: 0.4; border-radius: 50%; z-index: 1;
}
.hero-logo-img { width: 140px; height: 140px; border-radius: 50%; border: 4px solid var(--gold); position: relative; z-index: 2; object-fit: cover; }
.hero-badge {
  background: rgba(245,197,24,0.1); color: var(--gold); padding: 6px 16px; border-radius: 30px;
  font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  border: 1px solid var(--border-light);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); }
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; max-width: 800px; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }
.text-gold { color: var(--gold); }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-btns { display: flex; flex-direction: column; gap: 15px; width: 100%; max-width: 400px; margin: 0 auto; }
@media (min-width: 600px) { .hero-btns { flex-direction: row; max-width: max-content; } .hero-btns button { width: 200px; } }
/* SECTIONS COMMON */
.section-header { text-align: center; margin-bottom: 50px; }
.section-subtitle { color: var(--gold); font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 2rem; font-weight: 800; line-height: 1.3; }
/* ADVANTAGES */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .adv-grid { grid-template-columns: repeat(3, 1fr); } }
.adv-card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 40px 30px;
  border: 1px solid var(--border-color); transition: 0.3s; text-align: center;
}
.adv-card:hover { transform: translateY(-5px); border-color: var(--border-light); }
.adv-icon {
  width: 60px; height: 60px; background: rgba(245,197,24,0.1); border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 24px; border: 1px solid var(--border-light);
}
.adv-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.adv-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
/* COURSES */
.filters { display: flex; overflow-x: auto; gap: 10px; margin-bottom: 40px; justify-content: flex-start; padding-bottom: 10px; scrollbar-width: none; }
@media (min-width: 768px) { .filters { justify-content: center; } }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
  padding: 10px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: 0.3s;
}
.filter-btn.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 600; }
.filter-btn:hover:not(.active) { border-color: var(--text-muted); color: #fff; }
.courses-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .courses-grid { grid-template-columns: repeat(3, 1fr); } }
.course-card {
  background: var(--bg-card); border-radius: var(--radius-card); padding: 30px;
  border: 1px solid var(--border-color); position: relative; display: flex; flex-direction: column;
  transition: 0.3s; overflow: hidden;
}
.course-card:hover { transform: translateY(-5px); border-color: var(--border-light); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.course-badge {
  position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.05); padding: 6px 14px;
  border-radius: 20px; font-size: 0.8rem; font-weight: 600; color: var(--gold); border: 1px solid var(--border-light);
}
.course-icon-text { font-size: 2.5rem; color: var(--gold); font-weight: bold; margin-bottom: 20px; font-family: sans-serif; }
.course-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.course-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; flex-grow: 1; line-height: 1.5; }
.course-meta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; color: var(--text-muted); font-size: 0.9rem; padding-top: 20px; border-top: 1px solid var(--border-color); }
.course-meta div { display: flex; align-items: center; gap: 10px; }
.course-meta svg { width: 18px; height: 18px; color: var(--gold); }
.course-card .btn-gold { width: 100%; padding: 12px; }
/* TEACHERS */
.teachers-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 600px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .teachers-grid { grid-template-columns: repeat(4, 1fr); } }
.teacher-card { text-align: center; }
.teacher-img-wrapper {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-card); margin-bottom: 20px;
  overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-color);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.teacher-img-wrapper svg { width: 60px; height: 60px; color: var(--border-color); }
.teacher-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: 0.3s; }
.teacher-img[src] { opacity: 1; }
.teacher-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.teacher-subject { color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.teacher-exp { color: var(--text-muted); font-size: 0.9rem; }
/* CONTACT */
.contact-wrapper {
  background: var(--bg-card); border-radius: var(--radius-card); border: 1px solid var(--border-color);
  display: block; overflow: hidden; padding: 40px;
}
.contact-info { width: 100%; }
.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-item-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(245,197,24,0.1); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.contact-item-content p { color: var(--text-muted); line-height: 1.5; }
/* FOOTER */
.footer { border-top: 1px solid var(--border-color); padding: 60px 0 30px; background: rgba(6, 8, 14, 0.5); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-about p { color: var(--text-muted); line-height: 1.6; margin-top: 20px; max-width: 400px; }
.footer-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: var(--gold); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: 0.3s;
}
.social-links a:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 30px; color: var(--text-muted); font-size: 0.9rem; }
/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-card); border-radius: var(--radius-card); width: 100%; max-width: 420px; padding: 40px 30px;
  position: relative; border: 1px solid var(--border-color); transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; text-align: center; }
.modal-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; line-height: 1.5; text-align: center; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.form-group input, .form-group select {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-main); padding: 14px 16px; border-radius: var(--radius-btn); font-size: 1rem;
  font-family: inherit; transition: 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,197,24,0.1); }
