:root{
    --main--color : #1651a1;
}
*{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: 'serif';
    background-color: #98e0ec;
}
ul{
    list-style: none;
}
@media (min-width: 768px){
    .container{
        width: 750px;
    }
}
@media (min-width: 992px){
    .container{
        width: 970px;
    }
}
@media (min-width: 1200px){
    .container{
        width: 1170px;
    }
}
#btn{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background-color: var(--main--color);
    color: white;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 500;
    display: none;
}
#btn:hover{
    outline: none;

}
.landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    height: 100px;
    justify-content: space-around;
    align-items: center;
    background: rgba(44, 156, 201, 0.593);
    box-shadow: 2px 2px 13px 0px;
    transition: background 0.3s ease;
    z-index: 1000;
}

.landing img {
    width: 100px;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 20px;
    font-size: 25px;
    position: relative;
}

.nav-list li::after {
    content: "";
    position: absolute;
    background-color: #bcbbbb;
    width: 1px;
    height: 32px;
    right: -10px;
}

.nav-list li a {
    color: black;
    text-decoration: none;
    transition: 0.3s;
}

.nav-list li a:hover {
    background-color: var(--main--color);
    padding: 15px;
    border-radius: 5px;
    color: white;
}
.content {
    padding-top: 60px; /* لضمان عدم تغطية المحتوى بالـ navbar */
}

.scrolling {
    background: rgba(0, 0, 0, 0.1); /* شفافية اللون عند التمرير */
}
/* Media Queries */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        right: 0;
        background-color: #d4d4d49b;
        width: 700px;
        text-align: center;
        max-width: 100%;
    }
    .nav-list li a:hover{
        background-color: var(--main--color);
    }
    .nav-list li {
        margin: 10px 0;
        font-size: 18px;
    }
    .nav-list li a:hover{
        padding: 10px;
        color: white;
    }

    .nav-list li a {
        padding: 10px;
        color: #000000;
    }

    .nav-list.open {
        display: flex;
    }
}

@media (max-width: 480px) {
    .landing img {
        width: 80px;
    }

    .nav-list li {
        font-size: 16px;
    }

    .nav-list li a {
        padding: 8px;
    }
}

/* student*/

#animated-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #fff;
    margin: 0 10px;
    opacity: 0;
    transform: scale(0.5);
    transition: transform 1s ease, opacity 1s ease;
}

.circle:nth-child(1) {
    background-color: #0099ff;
}

.circle:nth-child(2) {
    background-color: #f7fb22;
}

.circle:nth-child(3) {
    background-color: #2ecc71;
}

#animated-circles span {
    text-align: center;
}

@media (max-width: 768px) {
    .circle {
        width: 80px;
        height: 80px;
        font-size: 14px;
    }
}

.copmany {
    padding-top: 40px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; /* ترتيب العناصر عموديًا */
    align-items: center; /* محاذاة العناصر في الوسط */
}

.copmany .comp1 {
    z-index: -50;
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px 0 #b6b5b5;
    transition: 0.3s;
}

.copmany .comp1:hover {
    transform: scale(1.1);
}

.copmany .text {
    margin-bottom: 10px;
    font-size: 23px;
    padding-top: 20px;
    position: relative;
}
.copmany .text .comp{
    color: var(--main--color);
    margin: 20px 0;
    text-align: center;
}
.copmany .text .par{
    color:white ;
}

.move{
    padding-top: 70px;
    margin-bottom: 50px;
}
.course{
    text-align: center;
    font-size: 50px;
    padding-top: 30px;
    position: relative;
    color: var(--main--color);
}
.card2{
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    border-radius: 10px;
    box-shadow: 2px 2px 10px 0 #b6b5b5;
}
.card2:hover{
    transform: scale(1.1);
}
@media(max-width:767px){
    .comp1{
        margin-top: 50px;
    }
}
@media(max-width:991px){
    .none{
        display: none;
    }
}
.back{
    transition: 0.3s;
    opacity: 0.8;
    background-image: url("web.avif");
    background-size: cover;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    margin-top: 40px;
    box-shadow: 2px 2px 10px 0 #b6b5b5;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}
.back:hover{
    transform: scale(1.1);
}

/* video  */
.videos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.video-card {
    position: relative;
    width: calc(25% - 20px);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.video-card.show {
    opacity: 1;
    transform: translateY(0);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-card video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 10px;
    text-align: center;
    box-sizing: border-box;
    font-size: 1.1rem;
    pointer-events: none;
    font-size: 40px;
}

@media (max-width: 1200px) {
    .video-card {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 768px) {
    .video-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .video-card {
        width: calc(100% - 20px);
    }
}

/* intro  */
/* .intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url('pictur5.jpg'); استبدل 'background-image.jpg' بمسار صورتك
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.intro-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intro-content p {
    font-size: 30px;
    margin-bottom: 30px;
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.explore-button {
    background-color: #fff;
    color: #3b75c1;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.explore-button:hover {
    background-color: #3b75c1;
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .intro-content h1 {
        font-size: 2.5rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .explore-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
} */

.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: url('./image/picture4.jpg'); /* استبدل بمسار صورتك */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}


.intro-content {
    text-align: left;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideInFromLeft 1s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intro-content p {
    font-size: 30px;
    margin-bottom: 30px;
    animation: slideInFromRight 1s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.explore-button {
    background-color: #fff;
    color: #3b75c1;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.explore-button:hover {
    background-color: #3b75c1;
    color: #fff;
    transform: scale(1.1);
}

/* استعلام وسائط للشاشات المتوسطة */
@media (max-width: 992px) {
    .intro-content h1 {
        font-size: 15px;
        position: relative;
        top: 50px;
    }

    .intro-content p {
        font-size: 1.2rem;
    }

    .explore-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}

/* استعلام وسائط للشاشات الصغيرة */
@media (max-width: 768px) {
    .intro-section {
        height: auto;
        padding: 40px 20px;
    }

    .intro-content h1 {
        font-size: 2rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .explore-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* استعلام وسائط للهواتف */
@media (max-width: 480px) {
    .intro-content h1 {
        font-size: 1.8rem;
    }

    .intro-content p {
        font-size: 0.9rem;
    }

    .explore-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}



.stem-accreditation {
    background-color: #eee;
    padding-top: 120px;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 500;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.image-container img {
    max-width: 150px;
    margin-bottom: 20px;
}

.text-container h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.text-container p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
}
.certificate img{
    width: 1000px;
    max-width: 100%;
    padding-left: 50px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        text-align: left;
        padding-top: 30px;
    }

    .image-container {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .text-container {
        flex: 2;
        padding-left: 40px;
    }

    .text-container h2 {
        font-size: 36px;
    }
}
@media (max-width:767px){
    .certificate img{
        padding-left: 0;
    }
}
/* Techy APP  */

.techy-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    margin: 50px 0;
   background-color: #eee;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.techy-app.visible {
    opacity: 1;
    transform: translateY(0);
}

.content h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.app-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-details img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.description {
    text-align: center;
    max-width: 600px;
    font-size: 35px;
    background-color: #fef0f0;
}
.description p {
    padding-left: 20px;
}

@media (min-width: 768px) {
    .app-details {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .app-details img {
        margin-right: 20px;
        max-width: 50%;
    }

    .description {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .content h1 {
        font-size: 28px;
    }

    .app-details img {
        max-width: 100%;
    }

    .description{
        font-size: 20px;
    }
}
/* footer  */
.footer {
    background-color: #222222da;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer .social-icons {
    display: flex;
    gap: 15px;
}

.footer .social-icons img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.footer .social-icons img:hover {
    transform: scale(1.1);
}

.footer .contact-info {
    text-align: right;
}

.footer .contact-info h3 {
    margin: 0;
    font-size: 18px;
}

.footer .contact-info p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer .contact-info {
        margin-top: 20px;
        text-align: center;
    }
}

/* button awards  */
.awards{
    background-color: rgb(180, 180, 180);
    color: #fff;
    font-size: 30px;

}
.award-link{
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
/* gallery  */
.image-gallery {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    perspective: 1000px; /* إضافة تأثير العمق */
}

.gallery-item {
    flex: 1 1 calc(33.333% - 20px); /* ثلاث صور في الصف مع تباعد */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform: translateX(-50px);
    opacity: 0; /* مخفي بشكل افتراضي لعرض الانيميشن */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* تكبير الصورة عند التمرير فوقها */
}

.gallery-item.visible {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 1 1 calc(50% - 20px); /* عنصرين في الصف */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 1 1 100%; /* عنصر واحد في الصف */
    }
}

/*  online school  */
#our-online-schools {
    text-align: center;
    padding: 50px 20px;
    background-color: #f6e9e95b;
    margin-top: 80px;
  }
  
  #our-online-schools h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1651a1;
  }
  
  .image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .image-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1000px;
  }
  
  .image-item {
    text-align: center;
    opacity: 0;
    transform: translateY(50px) scale(0.8) rotate(-3deg);
    transition: all 0.8s ease-in-out;
  }
  
  .image-item.show {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
  
  .image-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.6s ease-in-out;
  }
  
  .image-item p {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  }
  
  .image-item.show p {
    opacity: 1;
    transform: translateY(0);
  }
  
  @media (max-width: 768px) {
    .image-row {
      flex-direction: column;
      gap: 20px;
    }
  
    .image-item img {
      width: 90%;
    }
  }

/* cllinate  */

 .section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    animation: fadeIn 1.5s ease-in-out;
}
.section img {
    max-width: 100%;
    height: auto;
}
.text-content {
    flex: 1;
    padding: 20px;
    text-align: center;
}
.text-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--main--color);
}
.text-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
}
.text-content .qr {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}
.text-content .qr img {
    max-width: 100px;
    height: auto;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .section {
        flex-direction: column;
        text-align: center;
    }
    .text-content {
        padding: 10px;
    }
    .text-content .qr img {
        max-width: 80px;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(min-width:768px){
    .card-img{
        width: 400px;
        height: 600px;
    }
}
