/* =========================
   GLOBAL RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: #ffffff;
  color: #020617;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
}

.logo {
  color: #38bdf8;
  font-size: 22px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #e5e7eb;
  font-size: 15px;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: #38bdf8;
}

.lang-btn {
  border: 1px solid #38bdf8;
  padding: 5px 10px;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
}

.home-hero {
  background-image: url("images/home-bg.jpg");
}

.about-hero {
  background-image: url("images/about-bg.jpg");
}

.courses-hero {
  background-image: url("images/courses-bg.jpg");
}

.contact-hero {
  background-image: url("images/contact-bg.jpg");
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,0.65);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 800px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
}

/* =========================
   SECTIONS
========================= */
section {
  padding: 80px 0;
}

.about-section,
.story-section {
  background: #f8fafc;
}

.about-section p,
.story-section p {
  font-size: 17px;
}

.story-section h2 {
  margin-bottom: 15px;
}

/* =========================
   FEATURES
========================= */
.features-section {
  background: #020617;
}

.features-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.feature {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(56,189,248,0.2);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}

/* =========================
   STATS
========================= */
.stats-section {
  background: linear-gradient(135deg,#0f172a,#020617);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  color: #fff;
  text-align: center;
}

.stat {
  padding: 30px 15px;
  font-size: 26px;
  font-weight: bold;
}

.stat span {
  display: block;
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.8;
}

/* =========================
   COURSES
========================= */
.courses-section {
  background: #f1f5f9;
}

.course-card {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
}

.course-title {
  font-size: 20px;
  font-weight: bold;
}

.course-details {
  margin-top: 15px;
  display: none;
  font-size: 15px;
}

.course-card.active .course-details {
  display: block;
}

/* =========================
   CONTACT
========================= */
.contact-section {
  background: #f1f5f9;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
}

.contact-info,
.contact-box {
  padding: 35px;
  border-radius: 18px;
}

.contact-info {
  background: #fff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-info ul {
  list-style: none;
  margin: 20px 0;
}

.contact-info li {
  margin-bottom: 10px;
}

.contact-box {
  background: linear-gradient(135deg,#0f172a,#020617);
  color: #fff;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  transition: 0.3s;
}

.btn.primary {
  background: #38bdf8;
  color: #020617;
}

.btn.primary:hover {
  background: #0ea5e9;
}

/* =========================
   ANIMATIONS
========================= */
.fade-in {
  animation: fadeIn 1.2s ease forwards;
}

.fade-up {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 65px;
    right: 0;
    background: #020617;
    flex-direction: column;
    width: 100%;
    display: none;
    padding: 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .hero h1 {
    font-size: 32px;
  }

  section {
    padding: 60px 0;
  }
}
