
@import url("https://fonts.googleapis.com/css2?family=Lalezar&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Tajawal", sans-serif;
}

/* Navbar styling */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 10vh;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 5rem;
}

nav .logo {
  display: flex;
  font-size: 2rem;
  align-items: center;
}

nav .logo i {
  color: #6e0aef;
  padding-left: 0.75rem;
}
nav .bars-menu {
  display: none;
}
nav .logo h4 {
  font-family: "Lalezar", cursive;
}

nav .nav-items {
  display: flex;
  list-style-type: none;
}

nav .nav-items .nav-item {
  padding: 0 1rem;
}

nav .nav-link {
  text-decoration: none;
  color: #4e547e;
  font-size: 1.4rem;
}

nav .nav-link:hover {
  color: #6e0aef;
}



/* Footer */
footer {
  background-color: #f8f7fc;
  height: 15vh;
  margin-top: 5rem;
  padding: 2rem 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 5rem;
}

.footer-section p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-section .socials {
  margin-bottom: 1rem;
}
.footer-section .socials i {
  padding: 0 0.5rem;
  font-size: 1.6rem;
}

.footer-section .socials i:hover {
  color: #6e0aef;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1300px) {
  * {
    font-size: 85%;
  }
}

@media (max-width: 1175px) {
  * {
    font-size: 80%;
  }
}

@media (max-width: 1000px) {
  * {
    text-align: center;
  }
  .hero img {
    display: none;
  }
  .hero-section {
    align-items: center;
    padding: 2rem 0rem;
    width: 50%;
  }
  .hero .btn {
    align-self: center;
  }
  .hero .content {
    margin-top: 2rem;
  }
  .features-section .qualities {
    flex-wrap: wrap;
    justify-content: center;
  }
  section.features .features-section {
    align-items: center;
  }
  .phones-section h4 {
    align-self: center;
  }
}

@media (max-width: 660px) {
  .hero-section .content h1 {
    font-size: 2rem;
  }
  .phones-section {
    align-items: center;
  }
  .phones-section .phones {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 504px) {
  .phones-section .phones {
    grid-template-columns: 1fr;
  }
  nav {
    position: sticky;
    top: 0;
    width: 100%;
  }
  nav .bars-menu {
    display: block;
    font-size: 3rem;
  }
  nav .nav-items {
    position: absolute;
    left: 0;
    top: 10vh;
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #7d22f3;
    padding: 2rem 0;
  }
  nav .nav-items .nav-item {
    margin: 1rem 0;
  }
  nav .nav-items .nav-item a {
    color: white;
  }
  nav .nav-items.active {
    display: flex;
  }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--main-background);
    height: 100vh;
    font-family: system-ui;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

header {
    position: fixed;
    width: 95%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px;
    background: transparent;
    transition: background 0.5s ease;
}

header .logo {
    font-size: 30px;
    text-transform: uppercase;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

header ul li {
    margin-right: 30px;
}

header ul li a {
    padding: 6px 15px;
    border-radius: 20px;
}

header ul li a:hover,
.active {
    background: var(--link-hover-background);
    color: var(--link-hover-color);
}

.main {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background 0.5s ease;
}

.main::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 100px;
    width: 100%;
    background:linear-gradient(to top,#200016,transparent)
}

.main img {
    position: absolute;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#moon {
    mix-blend-mode: screen;
    transform: translateY(80px);
}

.nouvil {
    color: var(--main-text-color);
    font-size: 25px;
    text-transform: uppercase;
    transform: translateY(-140px);
    transition: font-size 0.5s ease;
}

.content {
    color: var(--main-text-color);
    padding: 30px;
}

.math-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.math1 p,
.math2 p,
.math3 p,
.math4 p,
.math5 p,
.math6 p,
.math7 p,
.math14 p,
.math8 p,
.math9 p,
.math10 p,
.math11 p,
.math13 p,
.math12 p {
    margin-top: 10px;
    color: var(--main-text-color);
    font-size: 18px;
    text-transform: uppercase;
}

.math-container {
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.math-container a {
    display: inline-block;
    margin: 10px;
}
/* أضف هذا إلى نمط الصفحة في الجزء الخاص بالـCSS */
.math-container a img {
    border-radius: 8px; /* زوايا مستديرة */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* تأثير ظل */
    transition: transform 0.3s ease-in-out; /* تأثير التحول */
}

/* تغيير حجم الصور عند التحويل */
.math-container a:hover img {
    transform: scale(1.1);
}
.math-container .math1 a,
.math-container .math2 a,
.math-container .math3 a,
.math-container .math4 a,
.math-container .math5 a,
.math-container .math6 a,
.math-container .math7 a,
.math-container .math8 a,
.math-container .math9 a,
.math-container .math10 a,
.math-container .math11 a,
.math-container .math12 a,
.math-container .math13 a,
.math-container .math14 a {
    display: inline-block;
    margin: 10px;
    text-align: center;
   
    padding: 20px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
}
.math-container .math1 a,
.math-container .math2 a,
.math-container .math3 a,
.math-container .math4 a,
.math-container .math5 a,
.math-container .math6 a,
.math-container .math7 a,
.math-container .math8 a,
.math-container .math9 a,
.math-container .math10 a,
.math-container .math11 a,
.math-container .math12 a,
.math-container .math13 a,
.math-container .math14 a {
    display: inline-block;
    margin: 10px;
    text-align: center;
    background-color: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    color: rgb(46, 0, 144);
    transition: transform 0.3s ease; /* تطبيق التأثير حركي */
}
.math-container .math1 a:hover,
.math-container .math2 a:hover,
.math-container .math3 a:hover,
.math-container .math4 a:hover,
.math-container .math5 a:hover,
.math-container .math6 a:hover,
.math-container .math7 a:hover,
.math-container .math8 a:hover,
.math-container .math9 a:hover,
.math-container .math10 a:hover,
.math-container .math11 a:hover,
.math-container .math12 a:hover,
.math-container .math13 a:hover,
.math-container .math14 a:hover {
    transform: translateY(-5px); /* تحريك المربع إلى الأعلى بمقدار 5 بكسل */
}
