:root {
  --orange__color: #f68002;
  --dark__color: #000000;
  --soft__color: #f68002a4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

ul {
  list-style: none;
}
body {
  overflow-x: hidden;
  background-color: #121212;
}

:root{
  --prim:#0d2137;
  --sec: #ff8e2b;
  --bg:#2e77ae;
  --kl:#e0eaf5;
}

.header {
  background-color:#1e1e1e ;
  color:var(--kl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 120px;
}

.social-icons a,
.contact-info a,
.language-switch a,
.my-algedra {
  color:var(--kl);
  text-decoration: none;
  margin: 0 10px;
  font-size: 13px;
}
.social-icons .active{
  color: #fff;
}

.social-icons a:hover,
.contact-info a:hover,
.language-switch a:hover,
.my-algedra:hover {
  color: var(--sec);
}

.social-icons i {
  font-size: 13px;
}

.contact-info {
  display: flex;
  gap: 10px;

}
.contact-info a{
  margin-top: 3px;
}
.contact-info i{
  padding-right: 5px;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-switch i {
  margin-right: 5px;
}

.my-algedra i {
  margin-right: 5px;
}
@media (max-width: 1024px) {
  .header {
      padding: 10px 60px;
  }
  .right-section {
      gap: 15px;
  }
  .social-icons .active{
      color: #fff;
  }
}

@media (max-width: 768px) {
  .header {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 10px 30px;
  }
  .right-section {
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
  }
  .social-icons a,
  .contact-info a,
  .language-switch a,
  .my-algedra {
      font-size: 10px;
  }
  .social-icons .active{
      color: #fff;
  }
}

@media (max-width: 480px) {
  .header {
      padding: 10px 15px;
  }
  .right-section {
      gap: 5px;
  }
  .social-icons a,
  .contact-info a,
  .language-switch a,
  .my-algedra {
      font-size: 7px;
      font-weight: 600;
      margin: 0 5px;
  }
  .social-icons .active{
      color: #fff;
  }
}
  /*icons*/
  .icons-col{
    top: 200px;
    left: 0;
    width: 76px;
    position: fixed;
    z-index: 2;
}
.icons{
    display: flex;
    flex-direction: column;
    padding: 13% 16%;
    z-index: 1;
    position: absolute;
    background-color: #f5f5f5;
}
.icons i{
    font-size: 26px;
    padding: 20% 0;
    color: #212121;
}
.icons i:hover{
    cursor: pointer;
    transform: scale(1.3);
}
/* ! end of header */

.intro__section {
  padding: 3rem 1rem;
  background-color: #f5f5f5;
  position: relative;
  padding-bottom: 10rem;
  top: 0;
  min-height: 100vh;
}
.wave {
  position: absolute;
  bottom: -1px; 
  left: 0;
  width: 100vw; 
  height: auto;
  display: block;
}
@media (max-width: 1024px) {
  .wave {
      bottom: -2px;
  }
}

@media (max-width: 768px) {
  .wave {
      bottom: -3px;
  }
}

@media (max-width: 480px) {
  .wave {
      bottom: -5px; 
  }
}
.intro__sec--content {
  max-width: 1200px;
  margin: 0 auto;
}

.intro__content--title {
  text-align: center;
  padding-top: 100px;
}

.intro__content--title h1 {
  font-size: 2.5rem;
  color: var(--dark__color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  animation: fadeInDown 1s ease forwards;
}

.intro__content--title h1::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--orange__color);
  bottom: -10px;
  left: 25%;
  transform: scaleX(0);
  animation: lineGrow 1.5s ease forwards 0.5s;
}

.intro__content--title p {
  max-width: 1000px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 1.2rem;
  color: #555;
  animation: fadeIn 1.5s ease forwards;
}

/* تحسين التجاوب مع الشاشات المختلفة */
@media (max-width: 992px) {
  .intro__content--title {
    padding-top: 90px;
  }
  
  .intro__content--title h1 {
    font-size: 2.2rem;
  }

  .intro__content--title p {
    font-size: 1.1rem;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .intro__content--title {
    padding-top: 70px;
  }

  .intro__content--title h1 {
    font-size: 2rem;
  }

  .intro__content--title p {
    font-size: 1rem;
    max-width: 600px;
  }
}

@media (max-width: 576px) {
  .intro__content--title {
    padding-top: 60px;
  }

  .intro__content--title h1 {
    font-size: 1.8rem;
  }

  .intro__content--title p {
    font-size: 0.95rem;
    max-width: 90%;
  }
}
.animated__content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.animated__ball {
  background-color: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(185, 90, 12, 0.15);
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.animated__ball--1 {
  animation: slideUp 0.5s ease forwards 0.3s;
}

.animated__ball--2 {
  animation: slideUp 0.5s ease forwards 0.6s;
}

.animated__ball--3 {
  animation: slideUp 0.5s ease forwards 0.9s;
}

.animated__ball:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(185, 90, 12, 0.15);
}

.animated__ball::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--dark__color), var(--orange__color));
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.animated__ball:hover::before {
  transform: scaleX(1);
}

.animated__ball .icon {
  width: 60px;
  height: 60px;
  background-color: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.animated__ball .icon i {
  font-size: 1.8rem;
  color: var(--orange__color);
}

.animated__ball .ques {
  font-weight: bold;
  color: #555;
}

.animated__ball .data {
  text-align: center;
}

.animated__ball .data p {
  color: #666;
}

.animated__ball .data span {
  font-weight: bold;
  color: #333;
}


.form__sec--img {
  position: relative;
}
.form__section .form__sec--img iframe {
  height: 55rem;
  position: relative;
}
iframe::after{
  content: "hello world";
  position: absolute;
  bottom: 50%;
  left: 0;
}

.form__sec--img::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0;
  background-image: url(../img/img_cover.svg);
  width: 100%;
  height: 15rem;
  transform: rotateZ(180deg);
}

@media (max-width: 1200px) {
  .form__sec--img::after {
    height: 18rem;
    top: -5px;
    
  }
}

@media (max-width: 992px) {
  .form__sec--img::after {
    height: 16rem;
    top: -5px;
  }
}

@media (max-width: 768px) {
  .form__sec--img::after {
    height: 14rem;
    top: -5px;
  }
}

@media (max-width: 576px) {
  .form__sec--img::after {
    height: 12rem;
    top: -5px;
  }
}

@media (max-width: 400px) {
  .form__sec--img::after {
    height: 10rem;
    top: -5px;
  }
}
.form__sec--img::before {
  content: '';
  position: absolute;
  top: -14rem;
  left: -1rem;
  background-image: url(../img/img__ball.svg);
  background-size: contain;
  background-repeat: no-repeat;
  width: 100%;
  height: 30rem;
  z-index: 10000;
  background-position: center;
  transform: rotate(125deg); 
}


@media (max-width: 1200px) {
  .form__sec--img::before {
    top: -12rem;
    height: 28rem;
  }
  .form__section .form__sec--img iframe {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .form__sec--img::before {
    top: -8rem;
    height: 25rem;
  }
  .form__section .form__sec--img iframe {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .form__sec--img::before {
    top: -6rem;
    height: 22rem;
  }
  .form__section .form__sec--img iframe {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .form__sec--img::before {
    top: -9rem;
    height: 20rem;
  }
  .form__section .form__sec--img iframe {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .form__section .form__sec--img iframe {
    height: 40vh;
    width: 100%;
  }
  .form__sec--img::after {
    height: 12vh;
  }

}

@media (max-width: 480px) {
  .form__section .form__sec--img iframe {
    height: 35vh;
  }
  .form__sec--img::after {
    height: 10vh;
  }
 
}
.form__section{
  background-color:#121212;
  
}

.form__sec--content {
  display: flex;
  justify-content: space-around;
  padding: padd;
  padding: 2rem;
}
.form__sec--content h1 {
  font-size: 2rem;
  color: #fff;
}
.form__sec--content p {
  max-width: 35rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  color: #f5f5f5;
}
.label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.label p {
  font-size: 0.8rem;
}
.form__input{
  width: 50%;
}

.form__--cont,
.form__f--cont .form__input {
  background: #1e1e1e;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color:#e0eaf5;
}

.form__sec--form{
  padding-top: 130px;
}
.form__f--cont {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.form__sec--form {
  z-index: 1000;
}
.form__sec--form form {
  padding: 1rem;
  border: 1px solid #f68002;
  border-radius: 0.5rem;
  margin-bottom: 4rem;
}
input,
textarea {
  border-radius: inherit;
    width: 90%;
    height: 35px;
    padding-left: 40px;
    background-color: transparent;
    border: none;
    outline: none;
    resize: none;
    color:#121212;
    background-color: #f5f5f5;
}
textarea {
  width: 100%;
  height: 10rem;
}
.sub__btn {
  width: 100%;
  height: 3rem;
  border-radius: 0.5rem;
  border: none;
  color: #e9f5ff;
  background-color: #f68002;
  cursor: pointer;
}
.message.send{
  color: #09b909;
}
.message.fail{
  color: rgb(236, 58, 4);
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 992px) {
  .animated__content {
    gap: 1.5rem;
  }

  .form__sec--content {
    flex-direction: column;
  }

  .form__sec--img {
    order: -1;
  }

  .form__sec--img iframe {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .intro__content--title h1 {
    font-size: 2rem;
  }

  .form__sec--form h1 {
    font-size: 1.8rem;
  }

  .footer__container {
    gap: 3rem;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .animated__ball {
    max-width: 100%;
  }

  .form__f--cont {
    flex-direction: column;
  }

  .footer__section h4 {
    font-size: 1.1rem;
  }

  .separated__ul {
    flex-direction: column;
    gap: 0;
  }

  .intro__content--title h1 {
    font-size: 1.8rem;
  }
}
.logo img{
  width: 8rem;
  cursor: pointer;
  transition: 0.3s ease;
  padding-left: 50px;
}
.navbar{
  display: flex;
  text-align: center;
  position:absolute;
  padding: 2% 3%;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.5s;
  z-index: 1;
  top: 30px;
}
.navbar-items{
  flex: 1;
  text-align: right;
  margin-top: 12px;
}
.navbar-items ul{
  padding-right: 20px;
}
.navbar-items ul li{
  list-style: none;
  display: inline-block;
}
.navbar-items ul li a{
  color:var(--sec);
  padding: 0 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}
.navbar-items ul li a:hover{
  color:#212121;
}
.menu{
  display: none;
  cursor: pointer;
}
/*responsive*/
@media only screen and (max-width: 887px) {
  .navbar{
    top: 65px;
  }
  .navbar-items{
      position: absolute;
      background-color:#f5f5f5;
      height: 100vh;
      width: 100%;
      right: 0;
      top: 0;
      text-align: left;
      z-index: 2;
      margin-top: 0;
      transition: all 1s ease-out;
  }
  .navbar-items ul li{
      display: block;
      padding: 16px 0;
      margin-left: 15px;
  }
  .navbar-items ul{
      padding-top: 48%;
      padding-right: 5px;
      text-align: center;
  }
  .navbar-items ul li a{
      color:var(--sec);
      padding: 0 18px;
      font-size: 22px;
  }
  .navbar-items ul li a:hover{
      color:#121212;
  }
  .menu{
      display: block;
      z-index: 3;
      position: absolute;
      color:var(--sec);
      right: 7%;
      top: 5px;
      font-size: 35px;
      padding-top: 30px;
  }
  .h-class{
      height: 100vh;
      opacity: 0;
  }
  .v-class{
      opacity: 0;
  }
  .A_box{
      width: 62%;
      top: 2rem;
  }
  .h-class {
      opacity: 0;
      transform: translateY(-20px); 
      transition: all 0.5s ease; 
      visibility: hidden;
  }
  
  .v-class {
      opacity: 0;
      transform: translateY(-20px);
      transition: all 0.5s ease;
      visibility: hidden;
  }
  
  .h-class.active {
      opacity: 1;
      transform: translateY(0); 
      visibility: visible;
  }
  
  .v-class.active {
      opacity: 1;
      transform: translateY(0);
      visibility: visible;
  }
}


footer{
  position: relative;
  width: 100%;
  background: #f5f5f5;
  min-height: 100px;
  padding:20px 50px;
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 50px;
}
.footer__container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 10rem;
}

.footer__section {
  flex: 1;
  min-width: 200px;
}

.footer__section h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #f68002;
  font-size: 1.5rem;
  font-weight: 900;
}

.footer__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__section ul li {
  margin-bottom: 5px;
}

.footer__section ul li a {
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s;
  background: transparent;
  color:#1e1e1e;
  font-weight: 600;
}

.footer__section ul li a:hover,
.footer__section span {
  color: #f68002;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer__social a {
  background-color: transparent;
  color: white;
  font-size: 1.2em;
  transition: color 0.3s;
}

.footer__social a:hover {
  color: #f68002;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid #1e1e1e;
  margin-top: 20px;
  padding-top: 20px;
  font-size: 0.9em;
  width: 80%;
}

.footer__bottom p {
  margin: 5px 0;
  color:#1e1e1e;
}
.footer__bottom span {
  color: #f68002;
}
.separated__ul {
  display: flex;
  gap: 2rem;
}
.contact__ul {
  font-size: 0.9rem;
}
.footer__contact {
  width: 30rem;
}
#footer__section--logo {
  min-width: fit-content;
  max-width: 200px;
  display: flex;
  gap: 2rem;
}
#footer__section--logo p {
  max-width: 200px;
  color:#1e1e1e;
}
#footer__section--logo img {
  height: 10rem;
  width: 8rem;
  transition: 0.5s ease;
  filter: brightness(0.9);
}
#footer__section--logo img:hover,
.navbar__logo img:hover {
  filter: brightness(1);
}

footer .wave{
  position: absolute;
  top: -100px;
  left: 0px;
  width: 100%;
  height: 100px;
  background:url(../img/wave.png);
  background-size: 1000px 100px;
}

#wave1{
  z-index: 1000;
  opacity:1;
  bottom: 0;
  animation: animationwave 4s linear infinite;
}

#wave2{
  z-index: 999;
  opacity:0.5;
  bottom: 10px;
  animation: animationwave_02 4s linear infinite;
}

#wave3{
  z-index: 1000;
  opacity:0.2;
  bottom: 15px;
  animation: animationwave 3s linear infinite;
}

#wave4{
  z-index: 999;
  opacity:0.7;
  bottom: 20px;
  animation: animationwave_02 3s linear infinite;
}


@keyframes animationwave{
  0%{
    background-position: 1000px;
  }
  100%{
    background-position: 0px;
  }
}

@keyframes animationwave_02{
  0%{
    background-position: 0px;
  }
  100%{
    background-position: 1000px;
  }
}

@media screen and (max-width:450px) {
  .footer__container {
    gap: 3rem;
    text-align: center;
  }
  body,html{
    overflow-x: hidden;
  }
}
/* تحسين استجابة الفوتر على الشاشات المختلفة */
@media (max-width: 992px) {
  .footer__container {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    text-align: center;
  }

  .footer__section {
    width: 100%;
  }

  .footer__bottom {
    width: 90%;
  }
  footer .wave{
    top: -80px;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 20px;
  }

  .footer__container {
    gap: 3rem;
  }

  .footer__bottom {
    font-size: 0.8em;
  }

  #footer__section--logo {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  #footer__section--logo img {
    height: 8rem;
    width: 6rem;
  }

}

@media (max-width: 576px) {
  .footer__container {
    gap: 2rem;
  }

  .footer__section h4 {
    font-size: 1.3rem;
  }

  .footer__bottom {
    width: 100%;
  }

  .footer__social {
    justify-content: center;
  }
 
}

@media (max-width: 400px) {
  .footer__bottom {
    font-size: 0.75em;
  }

  .footer__section ul li a {
    font-size: 0.85em;
  }

}
