* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.social a {
  color: inherit;
  text-decoration: none; 
}

/* fonts */
.font-krona{
    font-family: "Krona One", sans-serif;
  }
  .font-raleway{
    font-family: "Raleway", sans-serif;
  }
  .font-montserrat{
    font-family: "Montserrat", sans-serif;
  }


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #bdfff6, #ffffff, #b7d7f5);
    color: #003B71;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* لإعطاء مساحة للمحتوى بين الـ nav و footer */
main {
    flex: 1;
}

/* Remove animated background */
body::before {
    display: none;
}

  /* nav bar */


  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo img {
    height: 40px;
}

.nav-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav {
    display: none;
}

.nav-links a {
    color: #003B71;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(0, 59, 113, 0.1);
}

/* Ask AI Button Styles */
.nav-links a.ask-ai-btn {
    background: linear-gradient(90deg, #00e6ff, #0099ff);
    color: white !important;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: center;
}


.nav-links a.ask-ai-btn:hover {
    background: linear-gradient(90deg, #00e6ff, #0099ff);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}



.search {
    position: relative;
    display: flex;
    align-items: center;
}

.search .search-icon {
    position: absolute;
    left: 12px;
    color: #003B71;
    font-size: 1rem;
    z-index: 2;
}

.search input {
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid #003B71;
    background: white;
    color: #003B71;
    width: 200px;
}

.search input::placeholder {
    color: rgba(0, 59, 113, 0.7);
}

@media screen and (max-width: 768px) {
  .mobile-nav {
      display: block;
  }

  .nav-container {
      position: fixed;
      top: 70px;
      left: 0;
      right: 0;
      background: white;
      padding: 1rem;
      flex-direction: column;
      align-items: stretch;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      border-top: 1px solid rgba(0, 59, 113, 0.1);
      justify-content: flex-start;
      gap: 1rem;
      height: auto;
      max-height: calc(100vh - 70px);
      overflow-y: auto;
      box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  }

  .nav-container.active {
      transform: translateX(0);
  }

  .nav-links {
      flex-direction: column;
      gap: 1rem;
  }

  .nav-links a {
      display: block;
      padding: 0.8rem 1rem;
      text-align: center;
      font-size: 1.1rem;
      color: #003B71;
      background: white;
      border-radius: 8px;
      border: 1px solid rgba(0, 59, 113, 0.1);
  }

  .nav-links a:hover {
      background: rgba(0, 59, 113, 0.1);
  }

  .search {
      margin-top: 1rem;
      padding: 1rem;
      border: 1px solid rgba(0, 59, 113, 0.1);
      position: relative;
      border-radius: 8px;
      background: white;
  }

  .search .search-icon {
      left: 24px;
      top: 50%;
      transform: translateY(-50%);
      color: #003B71;
  }

  .search input {
      width: 100%;
      padding: 0.8rem 1rem 0.8rem 2.5rem;
      background: transparent;
      border: none;
      color: #003B71;
  }

  .search input::placeholder {
      color: rgba(0, 59, 113, 0.7);
  }

  
}



/* footer */


 footer {
    background: #003B71;
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: white;
}

.contact-info, .connect {
    margin: 1rem;
}
.contact-info p{
    color: white;
}

.social-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-nav button {
    background: none;
    border: none;
    color: #003B71;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
}

.mobile-nav button:hover {
    background: rgba(0, 59, 113, 0.1);
    border-radius: 5px;
}

/* *********************************** */

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }


  /* ******************************************************* */
  /* ==========> What is ieee <==========  */
.what-is-ieee {
  padding-block: 120px;
}

.what-is-ieee h3 {
  font-size: 64px;
  font-weight: 800;
}

.ieee-definition {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-block: 25px;
  flex-wrap: wrap;
}

.ieee-definition p {
  font-size: 22px;
  max-width: 600px;
}

.ieee-photo img {
  max-width: 100%;
  width: 400px;
}

.ieee-count {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.members-count, .countries-count {
  padding: 20px 30px;
  min-width: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #FFF;
  font-size: 22px;
  border-radius: 70px;
  background: linear-gradient(75deg, #0096ED 0%, #24F0FF 100%);
}

.members-count span:first-child,
.countries-count span:first-child {
  font-weight: 800;
  font-size: 24px;
}
.members-count span:last-child,
.countries-count span:last-child {
  font-weight: 600;
  font-size: 18px;
}


/* ==========> Region 8 <==========  */
.region-8 {
  padding-block: 100px;
}

.region-8 h3 {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 15px;
}

.region-definition {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-block: 25px;
  flex-wrap: wrap;
}

.region-definition p {
  font-size: 22px;
  max-width: 600px;
}

.region-photo img {
  max-width: 100%;
  width: 400px;
}

.region-count {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  justify-content: flex-end;
  padding-right: 20px;
}

.students-count, .countries-region-count {
  padding: 20px 30px;
  min-width: 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #FFF;
  font-size: 22px;
  border-radius: 70px;
  background: linear-gradient(75deg, #0096ED 0%, #24F0FF 100%);
}

.students-count span:first-child,
.countries-region-count span:first-child {
  font-weight: 800;
  font-size: 24px;
}
.students-count span:last-child,
.countries-region-count span:last-child {
  font-weight: 600;
  font-size: 18px;
}


/* ==========> Responsive Design <==========  */
@media screen and (max-width: 768px) {
  .what-is-ieee,
  .region-8 {
    padding-block: 80px;
    padding-inline: 20px;
  }

  .what-is-ieee h3,
  .region-8 h3 {
    font-size: 36px;
    text-align: center;
  }

  .ieee-definition,
  .region-definition {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ieee-definition p,
  .region-definition p {
    font-size: 18px;
  }

  .members-count,
  .countries-count,
  .students-count,
  .countries-region-count {
    font-size: 18px;
    padding: 16px 24px;
  }

  .members-count span:first-child,
  .countries-count span:first-child,
  .students-count span:first-child,
  .countries-region-count span:first-child {
    font-size: 20px;
  }

  .members-count span:last-child,
  .countries-count span:last-child,
  .students-count span:last-child,
  .countries-region-count span:last-child {
    font-size: 16px;
  }

  .region-group {
    order: 1;
  }

  .region-photo {
    order: 2;
  }
}


  /* ********************************************************** */
  /* Section IEEE SB */
  .ieee-section {
    margin-top: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
  }
  
  h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #003B71;
  }
  
  p {
    font-size: 20px;
    line-height: 1.8;
    color: #1c3e5a;
    /* max-width: 500px; */
  }
  
  .image {
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
  }
  
  .image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* Responsive adjustments */
  @media (min-width: 768px) {
    .content {
      
      flex-direction: row;
      text-align: left;
      align-items: flex-start;
      justify-content: space-between;
    }
  
    h1 {
      font-size: 3rem;
    }
  
    p {
      font-size: 1.1rem;
    }
  
    .text {
      max-width: 70%;
    }
  
    .image {
      max-width: 35%;
    }
  }
  
  /* Vision & Mission Sections */
  .vm-section {
    margin-top: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .vm-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    width: 100%;
  }
  
  .vm-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #003B71;
  }
  
  .vm-content p {
    font-size: 20px;
    line-height: 1.8;
    color: #1c3e5a;
    /* max-width: 700px; */
    font-weight: 500;
  }
  
  @media (min-width: 768px) {
    .vm-content h2 {
      font-size: 3rem;
    }
  
    .vm-content p {
      font-size: 1.1rem;
      font-weight: 500;
    }
  }

  
  /* ************ */

  /* what we can style  */

  .what-we-do {
    text-align: center;
    margin: 100px auto;
    max-width: 1200px;
    padding: 0 20px;
  }
  
  .what-we-do h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #003B71;
    margin-bottom: 40px;
  }
  
  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .card {
    border: 2px solid #00aaff;
    border-radius: 16px;
    padding: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #003B71;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  }
  
  .social-icons {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-top: 40px;
  }
  
  .social-icons a {
    background-color: #003B71;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
  }
  
  .social-icons a:hover {
    transform: scale(1.2);
  }
  
  /* ******************** */
  /* member */

  .embs{
    margin-bottom: 200px;
  }
  .embs h2,.embs p{
  color: rgb(111, 10, 106);
  }
  .embs h2{
    font-size: 2.5rem;
  }
  .vision{
    margin: 30px 0 70px 0;
  }
  /* .embs p{
    max-width:700px;
  } */
  .embs .social-icons a{
    background-color: rgb(111, 10, 106);
  }
  .more{
    display: flex;
    gap: 30%;
    align-items: end;
  }
  /* لmore button  */
  .more button {
    position: relative;
    padding: 12px 28px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 999px;
    background: white; /* خلفية داخل الزر */
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #00c6ff, #bc00dd);
    z-index: 1;
    cursor: pointer;
    transition: 0.3s ease-in-out;
  }
  
  .more button {
    position: relative;
    padding: 12px 28px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    border-radius: 999px;
    background: white;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #00c6ff, #bc00dd);
    z-index: 1;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
  }
  
  .more button::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, #00c6ff, #bc00dd);
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
    transition: all 0.4s ease-in-out;
  }
  
  /* 🌟 Hover effect */
  .more button {
    transition: all 0.3s ease;
  }
  
  .more button:hover {
    transform: scale(1.05);
    background-image: linear-gradient(to right, #00e0ff, #e000ff);
    -webkit-text-fill-color: transparent;
    box-shadow: 0 0 20px #da84ffab; 
  }
  
  .more button:hover::before {
    background: linear-gradient(to right, #00e0ff, #e000ff);
    box-shadow: 0 0 25px #da84ffab; 
  }
  
 @media(max-width:768px){
    .more button{
      display: none;
    }
  }
.team{
  width: 100%;
  text-align: center;
}
.team .members{
    margin-top: 100px;
}

.team img{
  width: 140px; 
  height: 140px; 
  border-radius: 50%;
  object-fit: cover; 
  margin-bottom: 10px;
}


@media (max-width: 1024px) {
  .team img {
    width: 140px; 
    height: 140px;
  }
}

@media (max-width: 768px) {
  .team img {
    width: 100px;
    height: 100px;
  }
}

.team .cards1{
    display: flex;
    flex-wrap: wrap;
    gap:5%
}
.team .card1{
    font-weight: 500;
    text-align: center;
    width: 20%;
    margin-bottom: 40px;
}
@media(max-width:768px){
  .team .card1{
    width: 40%;
  }
  .team .cards1{
    justify-content: center;
  }
}
.team .card1 img{
    width: 60%;
    border-radius: 50%;
}
.card1 i{
    cursor: pointer;
    font-size: 20px;
    margin-right: 5px;
}