@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Turret+Road:wght@200;300;400;500;700;800&display=swap');


*, *:before, *:after {
  box-sizing: border-box;
}
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 2rem;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

/* Root Variables */
:root {
  --main-color: #003ada;
  --second-color: #0732de;
  --text-color: #444444;
  --gradient: linear-gradient(#0700c7, #0008ec);
}

/* Scrollbar */
html::-webkit-scrollbar {
  width: 0.5rem;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 5rem;
}

/* Sections */
section {
  padding: 50px 100px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #EEEFF1;
  padding: 15px 100px;
}

/* Logo */
.logo img {
  width: 40px;
}

/* Navbar */
.navbar {
  display: flex;
}

.navbar li {
  position: relative;
}

.navbar a {
  font-size: 1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}
main {
  padding-top: 100px; /* نفس أو أكبر سنة من ارتفاع الهيدر */
  display: flex;
  justify-content: center;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: 0.5s;
}

.navbar a:hover::after {
  width: 100%;
}

/* Header Icons */
header .ri-close-line {
  display: none;
}

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 110;
  display: none;
}

/* Header Buttons */
.header-btn a {
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}

.header-btn .sign-in {
  background: #474FA0;
  color: #FFFFFF;
  border-radius: 0.5rem;
  transition: 0.5s;
}

.header-btn .sign-in:hover {
  background: var(--main-color);
}

  
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* عشان يغطي الشاشة بالكامل بدون تشويه */
  z-index: -1; /* يروح ورا كل المحتوى */
}
/* الكونتينر */
.slide-container {
  margin: auto;
  width: 100%;
  max-width: 600px; /* العرض الأقصى */
  text-align: center;
}

/* الكارد */
.clash-card {
  background: white;
  width: 90%;         /* دايمًا نسبي */
  max-width: 300px;   /* أقصى عرض */
  display: inline-block;
  margin-top: 70px;  /* ينزل 50px لتحت */
  border-radius: 19px;
  position: relative;
  text-align: center;
  box-shadow: -1px 15px 30px -12px black;
  z-index: 9999;
}

.wrapper {
  padding-top: 40px;
  padding-bottom: 40px;
}

.wrapper:focus {
  outline: 0;
}

/* صور الكروت */
.clash-card__image {
  position: relative;
  height: 230px;
  margin-bottom: 35px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.clash-card__image--barbarian {
  background: url('images/main/ieeelogo.png');
}

.clash-card__image--barbarian img {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: -65px;
  left: -70px;
}

.clash-card__image--barbariann {
  background: url('images/main/1.png');
}

.clash-card__image--barbarian img {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: -65px;
  left: -70px;
}

.clash-card__image--barbariannn {
  background: url('images/main/1.png');
}

.clash-card__image--barbarian img {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: -65px;
  left: -70px;
}

.clash-card__image--archer {
  background: url('images/main/1.png');
}

.clash-card__image--archer img {
  width: 100%;
  max-width: 400px;
  position: absolute;
  top: -34px;
  left: -37px;
}

.clash-card__image--giant {
  background: url('images/main/1.png');
}

.clash-card__image--giant img {
  width: 100%;
  max-width: 340px;
  position: absolute;
  top: -30px;
  left: -25px;
}

.clash-card__image--goblin {
  background: url('images/main/1.png');
}

.clash-card__image--goblin img {
  width: 100%;
  max-width: 370px;
  position: absolute;
  top: -21px;
  left: -37px;
}

.clash-card__image--wizard {
  background: url('images/main/1.png');
}

.clash-card__image--wizard img {
  width: 100%;
  max-width: 345px;
  position: absolute;
  top: -28px;
  left: -10px;
}

/* النصوص */
.clash-card__level {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
}

.clash-card__level--barbarian { color: #0a0097; }
.clash-card__level--archer    { color: #0a0097; }
.clash-card__level--giant     { color: #0a0097; }
.clash-card__level--goblin    { color: #0a0097; }
.clash-card__level--wizard    { color: #0a0097; }

.clash-card__unit-name {
  font-size: 26px;
  color: black;
  font-weight: 900;
  margin-bottom: 5px;
}

.clash-card__unit-description {
  padding: 20px;
  margin-bottom: 10px;
}

/* الإحصائيات */
.clash-card__unit-stats {
  color: white;
  font-weight: 700;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.clash-card__unit-stats .one-third {
  width: 33%;
  float: left;
  padding: 20px 15px;
}

.clash-card__unit-stats sup {
  position: absolute;
  bottom: 4px;
  font-size: 45%;
  margin-left: 2px;
}

.clash-card__unit-stats .stat {
  position: relative;
  font-size: 24px;
  margin-bottom: 10px;
}

.clash-card__unit-stats .stat-value {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 12px;
}

.clash-card__unit-stats .no-border {
  border-right: none;
}

/* ألوان الكروت */
.clash-card__unit-stats--barbarian { background: #035b98; }
.clash-card__unit-stats--barbarian .one-third { border-right: 1px solid #035b98; }

.clash-card__unit-stats--archer { background: #035b98; }
.clash-card__unit-stats--archer .one-third { border-right: 1px solid #035b98; }

.clash-card__unit-stats--giant { background: #035b98; }
.clash-card__unit-stats--giant .one-third { border-right: 1px solid #035b98; }

.clash-card__unit-stats--goblin { background: #035b98; }
.clash-card__unit-stats--goblin .one-third { border-right: 1px solid #035b98; }

.clash-card__unit-stats--wizard { background: #035b98; }
.clash-card__unit-stats--wizard .one-third { border-right: 1px solid #035b98; }

/* clearfix */
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 110;
  display: none;
}
.main-footer {
  background: linear-gradient(135deg, #010178, #021f70);
  color: #fff;
  padding: 60px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-section h2.logo {
  font-size: 28px;
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #ffffff;
}

.footer-section p {
  line-height: 1.6;
  font-size: 14px;
  color: #ffffff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #000000;
}

.footer-section form {
  display: flex;
  gap: 10px;
}

.footer-section input {
  padding: 10px;
  border: none;
  border-radius: 5px;
  flex: 1;
}

.footer-section button {
  padding: 10px 20px;
  border: none;
  background: #1500ff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
.footer-section.social {
  margin-top: 40px; /* زود الرقم عشان ينزل أكتر */
}


.footer-section button:hover {
  background: #ffffff;
}

.social-icons a {
  color: rgb(43, 0, 255);
  font-size: 18px;
  margin-right: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #ced5d5;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 15px;
  font-size: 14px;
  color: #aaa;
}
.footer-section.links {
  margin-left: 80px;   /* تحكم في المسافة من الشمال */
}

.footer-section.newsletter {
  text-align: center;
  margin-bottom: 20px; /* مسافة صغيرة تحت الصبصكراب */
}

.image-section {
  text-align: center;
  margin: 20px 0; /* مسافة فوق وتحت الصورة */
}

.image-section img {
  float: right;
  width: 250px;
  height: auto;
  margin-right: 200px;   /* مسافة شمال */
  margin-bottom: 15px; /* مسافة تحت */
  margin-top: -90PX;   /* بالسالب = ترفع الصورة لفوق */
}
.footer-section h3 {
  border-bottom: 2px solid #fff; /* خط أبيض تحت */
  display: inline-block;         /* الخط قد عرض الكلمة */
  padding-bottom: 5px;           /* مسافة صغيرة بين النص والخط */
  margin-bottom: 15px;           /* مسافة تحت العنوان */
}

/* أزرار السلايدر */


/* للموبايل */
@media screen and (max-width: 480px) {
  .slide-container {
    max-width: 95%;
    margin: 60px auto;
  }

  .clash-card {
    width: 95%;
    max-width: 280px;
  }

  .clash-card__unit-name { font-size: 20px; }
  .clash-card__unit-description { font-size: 14px; padding: 8px; }

  .clash-card__unit-stats {
    flex-direction: column;
    gap: 10px;
  }

  .slider-btn {
    font-size: 20px;
    padding: 8px 12px;
    top: 90%;
    transform: translateY(-50%);
  }

  .slider-btn.prev { left: 20%; }
  .slider-btn.next { right: 20%; }
}

/* للتابلت */
@media screen and (max-width: 768px) {
  .slide-container { max-width: 90%; margin: 80px auto; }
  .clash-card__unit-name { font-size: 22px; }
  .clash-card__unit-description { font-size: 15px; }

  .slider-btn.prev { left: -40px; }
  .slider-btn.next { right: -40px; }
}

/* لابتوب صغير */
@media screen and (max-width: 1024px) {
  .slide-container { max-width: 85%; }
  .slider-btn.prev { left: -50px; }
  .slider-btn.next { right: -50px; }
}
@media(max-width: 1375px) {
  .text { display: block; }
}

@media(max-width: 991px) {
  header { padding: 18px 40px; }
  section { padding: 50px 40px; }
}

@media(max-width: 881px) {
  .home { background-position: center; grid-template-columns: 1fr; }
  .text { display: block; }
  .form-container { padding-top: 2rem; }
}

@media(max-width: 795px){
  header { padding: 11px 40px; }
  #menu-icon { display: initial; }
  .sign-up { display: none; }
  .text h1 { font-size: 2.5rem; width: 320px; }
  .text p { font-size: .8rem; width: 320px; }
  .form-container form { position: unset; }

  header .navbar {
    position: absolute;
    top: -500px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    box-shadow: 0 4px 4px rgba(0, 0, 0, .1);
    transition: .2s ease;
    text-align: left;
  }

  .navbar.active { top: 100%; }
  .navbar a {
    padding: 1rem;
    border-left: 2px solid var(--main-color);
    margin: 1rem;
    display: block;
    transition: .3s ease;
  }
  .navbar a:hover {
    color: #FFFFFF;
    background: var(--main-color);
    border: none;
  }
  .navbar a::after { display: none; }

  .heading span { font-size: .9rem; font-weight: 600; }
  .heading h1 { font-size: 1.3rem; }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img { padding: 1rem; order: 1; }
  .about-text { order: 2; }
}

@media(max-width: 568px){
  .home { background-position: left; }
  .text h1 { width: 280px; font-size: 2rem; }
  .text p { width: 280px; font-size: .8rem; }
  .form-container { padding-top: 2rem; }
  .about-text p { font-size: 14px; }
  .copyright { flex-direction: column; }
  .newsletter .box { width: 284px; }
}

@media(max-width: 460px){
  header { padding: 6px 14px; }
  .logo img { width: 30px; }
  section { padding: 50px 6px; }
  .header-btn .sign-in {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 400;
  }
  .text h1 { font-size: 1.7rem; }
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(254px, auto));
  }
}
@media(max-width: 991px) {
  header {
    padding: 15px 20px;
  }
}

@media(max-width: 460px) {
  header {
    padding: 10px 10px;
  }
}
@media (max-width: 768px) {
  header .navbar {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  header .navbar.active {
    display: flex;
  }
}
@media (max-width: 795px) {
  #menu-icon {
    display: block;  /* يبان لما الشاشة تصغر */
  }
}
@media (max-width: 768px) {
  .image-section img {
    float: none;        /* شيل اليمين */
    display: block;     /* خليه عنصر لوحده */
    margin: 20px auto;  /* وسطه تحت */
    width: 70%;         /* يصغر شوية للموبايل */
  }
}
@media (max-width: 768px) {
  .footer-section.links {
    margin-left: 0;   /* ترجع لمكانها الطبيعي */
  }
}
@media (max-width: 768px) {
    .footer-section.newsletter form {
        flex-direction: column; /* input فوق الزر */
        gap: 10px;
        width: 100%;
        padding: 0;
    }

    .footer-section.newsletter input,
    .footer-section.newsletter button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}