@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Oswald:wght@200..700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

:root {
  --color-primary: #8aa9e8;
  --color-text-main: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", sans-serif;
  background-color: #050326;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.header {
  padding: 10px;
  background-color: #0E0C30;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  scroll-behavior: smooth;
  z-index: 999;
}

.logo {
  width: 120px; /* ⬅️ تم تكبير اللوجو */
  height: auto;
}

/* .header .links {
  position: relative;
}

.header .links:hover .icon span:nth-child(2) {
  width: 100%;
}

.header .links .icon {
  width: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header .links .icon span {
  background-color: white;
  margin-bottom: 5px;
}

.header .links .icon span:first-child {
  height: 3px;
  width: 100%;
}

.header .links .icon span:nth-child(2) {
  height: 3px;
  width: 60%;
  transition: 0.3s;
}

.header .links .icon span:last-child {
  height: 3px;
  width: 100%;
}

.header .links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #1A1818;
  position: absolute;
  right: 0;
  min-width: 200px;
  top: calc(100% + 15px);
  display: none;
  z-index: 1;
}

.header .links:hover ul {
  display: block;
}

.header .links ul li a {
  text-decoration: none;
  display: block;
  padding: 10px;
  color: white;
  transition: 0.3s;
}

.header .links ul li a:hover {
  padding-left: 25px;
}

.header .links ul::before {
  content: "";
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #1A1818 transparent;
  position: absolute;
  right: 5px;
  top: -20px;
}

.header .links ul li:not(:last-child) a {
  border-bottom: 1px solid #302F2F;
} */


/* 1. إخفاء الـ Checkbox الجديد تماماً */
#menu-toggle {
    display: none;
}

/* 2. الإبقاء على تنسيقات الروابط (الأب) */
.header .links {
  position: relative;
}

/* 3. تطبيق تأثير الخط الأوسط (الـ Span الثاني) لما الـ Checkbox يتفعل */
/* بنستخدم ~ .icon عشان الـ label بتاعك عنده نفس الكلاس */
#menu-toggle:checked ~ .icon span:nth-child(2) {
  width: 100%;
}


/* 4. تنسيق شكل الهامبرجر (الـ Label اللي اسمه icon) */
.header .links .icon {
  width: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  cursor: pointer; /* مهم عشان يبين إنه زرار */
}

/* باقي تنسيقات الـ Span زي ما هي عشان شكل الخطوط */
.header .links .icon span {
  background-color: white;
  margin-bottom: 5px;
}
.header .links .icon span:first-child {
  height: 3px;
  width: 100%;
}
.header .links .icon span:nth-child(2) {
  height: 3px;
  width: 60%;
  transition: 0.3s;
}
.header .links .icon span:last-child {
  height: 3px;
  width: 100%;
}

/* 5. تنسيق القائمة (<ul>) وإخفائها في البداية */
.header .links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #1A1818;
  position: absolute;
  right: 0;
  min-width: 200px;
  top: calc(100% + 15px);
  
  /* الإخفاء الفعلي بالـ CSS (أفضل من display: none) */
  opacity: 0; 
  visibility: hidden;
  transform: translateY(-10px); 
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  
  z-index: 1;
}

/* 6. الحيلة الحاسمة: إظهار القائمة لما الـ Checkbox يتفعل */
/* هنا بنستخدم #menu-toggle:checked ~ ul  لأن الـ ul هو الأخ الشقيق اللي بعد الـ icon/label */
#menu-toggle:checked ~ ul {
    opacity: 1; 
    visibility: visible;
    transform: translateY(0);
}

/* باقي تنسيقات الـ Hover على الروابط زي ما هي */
.header .links ul li a {
  text-decoration: none;
  display: block;
  padding: 10px;
  color: white;
  transition: 0.3s;
}

.header .links ul li a:hover {
  padding-left: 25px;
}

.header .links ul::before {
  content: "";
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #1A1818 transparent;
  position: absolute;
  right: 5px;
  top: -20px;
}

.header .links ul li:not(:last-child) a {
  border-bottom: 1px solid #302F2F;
}
/* Responsive breakpoints */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0;
  }
  .card {
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
    .card {
    flex-wrap: wrap;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
    .card {
    flex-wrap: wrap;
  }
}

/* === LANDING SECTION === */
.landing {
  position: relative; /* ⬅️ ضروري للصورة */
  background-color: #050326;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* ✅ تعديل الصورة */
.background-landing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* ⬅️ تخليها تملأ الشاشة بالكامل */
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.landing .intro-text {
  position: relative;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-main);
  z-index: 1;
}

.landing .intro-text h1 {
  margin: 0;
  font-weight: bolder;
  font-size: 2.5rem;
}

.landing .intro-text p {
  margin: 10px 0;
  font-weight: normal;
}

.landing .intro-text p span {
  display: block;
}

.landing .intro-text h1 span {
  color: var(--color-primary);
}

/* Button */
.btn {
  width: 140px;
  height: 50px;
  background: #4165ad;
  color: #fff;
  border-radius: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.btn span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: top 0.5s;
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
}

.btn-text-one {
  top: 50%;
  transform: translateY(-50%);
}

.btn-text-two {
  top: 150%;
  transform: translateY(-50%);
}

.btn:hover .btn-text-one {
  top: -100%;
}

.btn:hover .btn-text-two {
  top: 50%;
}

.btn-text-one a {
  text-decoration: none;
  color: white;
}

/* About Text */
.section-title {
  color: var(--color-primary);
  font-size: 36px;
  font-weight: bold;
  display: inline-block;
  position: relative;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, #fff, #8aa9e8, #fff);
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
  border-radius: 50px;
}


.cards-about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 60px;
  margin-top: 40px;
  justify-content: center;
  align-items: center;
  text-align: center;

}

.card-one {
  background-color: #0E0C30;
  color: var(--color-text-main);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-one h2 {
  color: var(--color-primary);
  margin-top: 0;
  font-size: 24px;
}

.card-one p {
  font-size: 16px;
  line-height: 1.6;
}

.card-one:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.subjects {
  padding: 40px 15px;
  background-color: #0E0C30;
  color: var(--color-text-main);
  text-align: center;
}

.subjects h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--color-primary);
  font-weight: bold;
}

.cards-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background-color: #1A1818;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: var(--color-primary);
}

.card p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #dcdcdc;
}

.card .btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.card .btn:hover {
  background-color: #6a83d5;
}


.subjects {
  padding: 40px 15px;
  background-color: #0E0C30;
  color: var(--color-text-main);
  text-align: center;
}

.subjects h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--color-primary);
  font-weight: bold;
}

.cards-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
  flex-wrap: wrap;
}

.card {
  background: linear-gradient(135deg, #4165ad, #8aa9e8);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(65, 101, 173, 0.6);
  padding: 25px 30px;
  cursor: pointer;
  transition: all 0.4s ease;
  color: white;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: 20px;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(65, 101, 173, 0.8);
}

.card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 0 0 15px 0;
  font-size: 1.9rem;
  font-weight: 700;
}

.card p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
  opacity: 0.85;
}

/* زر Outline */
.btn-outline {
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid white;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  background-color: white;
  color: #4165ad;
}

/* Media Query لتوزيع البطاقات أفقياً */
@media (min-width: 768px) {
  .cards-section {
    flex-direction: row;
    justify-content: center;
  }

  .card {
    flex: 1 1 300px;
    max-width: 350px;
  }
}

#progress {
  position: fixed;
  bottom: 20px;
  right: 10px;
  height: 70px;
  width: 70px;
  display: none;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
#progress-value {
  display: block;
  height: calc(100% - 15px);
  width: calc(100% - 15px);
  background-color: #ffffff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 35px;
  color: #001a2e;
}


/* === Important Section === */
.important {
  background: linear-gradient(135deg, #0e0c30, #050326);
  color: var(--color-text-main);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.important-title .title-one {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 40px;
  position: relative;
}

.important-title .title-one::after {
  content: "";
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--color-primary);
}

.important-box {
  background-color: #1a1818;
  border: 2px solid var(--color-primary);
  border-radius: 15px;
  padding: 30px 25px;
  margin: 0 auto 25px;
  max-width: 750px;
  box-shadow: 0 8px 25px rgba(138, 169, 232, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.important-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(138, 169, 232, 0.4);
}

.icon-warning {
  font-size: 2.5rem;
  color: #ffce00;
  margin-bottom: 15px;
}

.important-box p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
}

.dev-note {
  font-size: 0.95rem;
  color: #8aa9e8;
  margin-top: 20px;
  opacity: 0.85;
}

.btn-translate {
  border-radius: 20px;
  padding: 10px;
  border: 1px;
  background-color: #4165ad;
}

.btn-translate a {
  text-decoration: none;
  font-size: 17px;
  padding: 10px;
  font-weight: 300px;
  color: white;
    font-family: "Cairo", sans-serif;
    font-weight: bold;
}

    footer {
      padding: 20px;
      color: #ccc;
      font-size: 14px;
    }
    footer span {
      color: #4165ad;
    }