:root {
    --bg-color: #f5f5f5;
    --text-color: #ffffff;
    --nav-bg: #D5DEEF;
    --nav-text: rgb(255, 255, 255);
    --section-light: #B1C9EF;
    --section-dark: #8AAEF0;
    --fo-color:#77aaf1;
    --card-color:#fff;
    
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #eaeaea;
    --nav-bg: #08161e;
    --nav-text: #f1f1f1;
    --section-light: #11212D;
    --section-dark: #253745;
    --fo-color: #1a3d4d;
    --card-color:#1a3d4d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Cairo", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

nav {
    background-color: rgba(74, 74, 74, 0.445);
    color: var(--nav-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    /* box-shadow: 0 5px 5px rgba(255, 255, 255, 0.2); */
    box-shadow: 0 10px 20px rgba(1, 34, 97, 0.548);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 100px;
  
}

.logo {
    background-image: url(../imges/logo-platform.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* box-shadow: 0 10px 20px rgba(1, 34, 97, 0.548); */
   
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
#nav-signin{
    background-color: #0059ff;
    padding: 7px;
    border-radius: 5px;
    color: #fff;
    transition: 0.7s;
}
#nav-signin:hover{
 
    transform: scale(1.2);
}
.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00c4b4;
}

select,
button {
    background-color: var(--nav-bg);
    color: rgb(0, 0, 0);
    border: 1px solid #555;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
body.dark-mode select,
button{
    background-color: #3b3b3b;
    color: #fff;
}
select:hover,
button:hover {
    
    border-color: #00c4b4;
}

button {
    display: flex;
    align-items: center;
    gap: 5px;
}

section {
    padding: 80px 20px;
    text-align: center;
    transition: background-color 0.3s;
}

section:nth-child(even) {
 color: #ffffff;

}
#about-title{
    margin-bottom: 30px;
    background-color: #ffffff29;
    padding: 10px;
    width: 100px;
    border-radius: 30px;
    animation:2s title linear infinite alternate;
    color: rgb(255, 255, 255);
    font-size: 20px;
    font-weight: bold;
}
@keyframes title{
    0%{
      transform: scale(1.2);
      box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.308);
    }
    99%{
        transform: scale(1)}

        100%{
        transform: scale(1.2);
        box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.329);
    }
}
#about-text{
    font-weight: 900;
    font-size: 32px;
    background-color: #ffffff29;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 10px 10px 10px rgba(255, 255, 255, 0.082) ;
    color: rgb(255, 255, 255);
    font-family: Arial, Helvetica, sans-serif;
}
body.dark-mode section:nth-child(even){
    color: #fff;
}

/* Statistics Section */
#about-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px auto;
    flex-wrap: wrap;
    max-width: 1000px;
}
.sub {
    padding: 80px 20px;
    text-align: center;
}

.h2-sub{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bolder;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-color);
}

.sub-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.card-sub{
    min-width: 250px;
    max-width: 320px;
    min-height: 280px;
    background-color: #ffffff29;
    border-radius: 20px;
    box-shadow: 0px 0px 30px rgba(255, 255, 255, 0.61);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    padding: 30px 25px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-sub:hover{
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.5);
    border: wheat 1px solid;
    transform: translatey(-20px);
}

.sub-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.h3-sub{
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: right;
}

.p-sub{
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
    flex-grow: 1;
}

.a-sub{
    display: inline-flex;
    padding: 12px 25px;
    background-color: var(--section-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    align-self: flex-start;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.a-sub:hover{
    background-color: var(--fo-color);
    transform: scale(1.05);
}

body.dark-mode .card-sub {
    background-color: var(--card-color);
}
.stat-card {
    background-color: #ffffff29;
    border-radius: 20px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 10px 10px 20px rgb(255 255 255 / 9%);
        min-width: 180px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--section-dark);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

body.dark-mode .stat-number {
    color: #4A9EFF;
}

/* Team Section */
#team-section {
    margin-top: 80px;
}

#team-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: bold;
}

#team-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: transparent;
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.4);
}

.team-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: bold;
}

.team-role {
    font-size: 1.1rem;
    color: var(--section-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.team-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

body.dark-mode .team-role {
    color: #4A9EFF;
}



#contact{
  padding: 80px 20px;
}

#contact-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#contact-text {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 50px;
}

#contact-container {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

#contact-info {
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contact-card {
  background-color: #ffffff29;
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 250px;
  flex: 1;
  max-width: 300px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.5);
}
body.dark-mode .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 15px 15px 30px rgba(255, 255, 255, 0.5);
  }
  
.contact-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.contact-card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: bold;
}

.contact-card-text {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 15px;
}

.contact-link {
  display: inline-flex;
  background-color: var(--section-dark);
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.3s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.contact-link:hover {
  background-color: var(--fo-color);
  transform: scale(1.05);
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: var(--card-color);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
}

#form-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--text-color);
  text-align: center;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--section-light);
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Cairo", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--section-dark);
  box-shadow: 0 0 10px rgba(138, 174, 240, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--section-dark), var(--fo-color));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: "Cairo", sans-serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: var(--section-light);
  border-color: var(--section-dark);
}
section h2 {
    margin-bottom: 15px;
}

section p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}
#cont-1 {
    display: flex;
    gap: 30px;
    padding: 60px 30px;
   width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;

}

.card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.37);
    background-color: #ffffff29;
    animation: 2.5s card infinite;
}
@keyframes card {
    50%{
        transform: translateY(-15px)  ;
        
        box-shadow: 0 8px 25px rgba(255, 255, 255, 0.192);
        /* border:1px solid rgba(0, 89, 255, 0.3); */
    }100%{
        transform: translateY(0px);
      
    }
    
}


.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

body.dark-mode .card {
    background-color: var(--card-color);
    border-color: var(--section-dark);
}

/* Responsive Design - Tablet and Desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 10px 20px;
    }
    #nav-signin{
        background-color: #0059ff;
        padding: 7px;
        border-radius: 5px;
        color: #fff;
        transition: 0.7s;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    section {
        padding: 60px 20px;
    }

    #about-text {
        font-size: 28px;
    }

    .sub-cards-container {
        gap: 25px;
    }

    .card-sub {
        max-width: 300px;
        min-width: 250px;
    }
}

/* Responsive Design - Mobile and Small Tablets */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
#nav-signin{
    background-color: #0059ff;
    padding: 7px;
    border-radius: 5px;
    color: #fff;
    transition: 0.7s;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
    text-align: center;
    display: block;
    margin-left: 10px;
}

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 5px;
    }

    select, button {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    /* Sections */
    section {
        padding: 50px 15px;
    }

    #home-title {
        font-size: 1.5rem;
    }

    #home-text {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Cards Section */
    #cont-1 {
        flex-direction: column;
        padding: 40px 15px;
        gap: 20px;
    }
    
    .card {
        max-width: 100%;
        min-width: 100%;
        padding: 25px 20px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    /* About Section */
    #about-title {
        width: 80px;
        font-size: 0.9rem;
        padding: 8px;
    }

    #about-text {
        font-size: 18px;
        padding: 15px;
        line-height: 1.6;
    }

    #about-stats {
        gap: 15px;
        padding: 0 15px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 120px;
        padding: 20px 15px;
        flex: 1;
        max-width: calc(50% - 10px);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Sub Section (التخصصات) */
    .sub {
        padding: 50px 15px;
    }

    .h2-sub {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .sub-cards-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .card-sub {
        max-width: 100%;
        min-width: 100%;
        min-height: auto;
        padding: 25px 20px;
        margin: 0 auto;
    }

    .sub-icon {
        font-size: 2.5rem;
    }

    .h3-sub {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .p-sub {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    /* Team Section */
    #team-cards {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .team-card {
        max-width: 100%;
        width: 100%;
    }

    /* Contact Section */
    #contact-container {
        padding: 0 15px;
    }

    #contact-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-card {
        max-width: 100%;
        width: 100%;
        padding: 25px 20px;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .contact-card-title {
        font-size: 1.2rem;
    }

    .contact-link {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    #contact-title {
        font-size: 1.8rem;
    }

    #contact-text {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    nav {
        padding: 8px 10px;
    }

    .logo {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    /* Show only essential links on very small screens */
    .nav-links a:not(#nav-contact):not(#nav-signin) {
        display: none;
    }
    .nav-links a#nav-signin {
        display: block;
    }
    .nav-links a#nav-contact {
        display: block;
    }

    select {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    button {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    section {
        padding: 40px 10px;
    }

    #home-title {
        font-size: 1.3rem;
    }

    #home-text {
        font-size: 0.9rem;
    }

    #about-title {
        width: 70px;
        font-size: 0.8rem;
        padding: 6px;
    }

    #about-text {
        font-size: 16px;
        padding: 12px;
    }

    #about-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-card {
        max-width: 100%;
        width: 100%;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .h2-sub {
        font-size: 20px;
    }

    .sub-cards-container {
        gap: 15px;
    }

    .card-sub {
        padding: 20px 15px;
    }

    .sub-icon {
        font-size: 2rem;
    }

    .h3-sub {
        font-size: 1.1rem;
    }

    .p-sub {
        font-size: 0.85rem;
    }

    #contact-title {
        font-size: 1.5rem;
    }

    #contact-text {
        font-size: 0.85rem;
    }

    .contact-card {
        padding: 20px 15px;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-card-title {
        font-size: 1.1rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.85rem;
    }
}

/* Responsive Design - Large Desktop */
@media (min-width: 1200px) {
    #cont-1 {
        max-width: 100%;
    }

    .card {
        max-width: 400px;
    }

    #about-stats {
        max-width: 1200px;
    }

    #contact-container {
        max-width: 1400px;
    }

    .contact-card {
        max-width: 350px;
    }
}