:root {
  --color-1: #022d58;
  --color-2: #ffffff;
}

p{
    font-weight: 500;
}

/* header */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

header {
    width: 100%;
    position: relative;
    background-color: #f1f1f1;
}

#header1 {
    display: flex;
    width: 100%;
    height: 70px;
}

#header1 .part1 {
    width: 30%;
    background: linear-gradient(90deg, #022d58, #ffffff);
}

#header1 .part2 {
    width: 70%;
    background: white;
}

#header2 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 0px 40px;
    height: 50px;
    background: #022d58;
}

.logo-img {
    position: absolute;
    top: 0px;
    left: 30px;
    z-index: 5;
}

.logo-img img {
    width: 250px;
    height: auto;
}

.hamburger {
    color: white;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    display: none;
}

.navlinks {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.navlinks a {
  color: white;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 4px 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navlinks a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-2);
  border-radius: 4px;
}

.navlink-open {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    #header1 {
        height: 50px;
    }

    #header2 {
        padding: 0 20px;
        height: 40px;
    }

    #header1 .part1 {
        width: 70%;
        height: 50px;
        z-index: 3;
    }

    #header1 .part2 {
        width: 30%;
        height: 50px;
    }

    .logo-img {
      top: 5px;
      left: 20px;
    }

    .logo-img img {
        top: 0px;
        width: 160px;
    }

    .hamburger {
        display: block;
        z-index: 2;
    }

.navlinks {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 50px;
    left: 0;
    width: 70%;
    height: 100dvh;
    background: #022d58;
    justify-content: flex-start;
    padding-top: 80px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}

.navlinks.show {
    transform: translateX(0);
}
}





/*Footer*/
.ieee-footer {
  background-color: var(--color-1);
  color: var(--color-2);
  padding: 40px 0 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.logo-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo {
  height: 60px;
  width: auto;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-top: 10px;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-2);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #D3E5F7;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.social-section {
  min-width: 180px;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #FFFFFF;
  transition: all 0.3s;
  font-size: 16px;
}

.social-icons a:hover {
  background-color: var(--color-2);
  color: var(--color-1);
  transform: translateY(-3px);
}

.copyright-section {
  border-top: 0.5px solid black;
  background-color: var(--color-1);
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.copyright-section p {
  margin: 0;
}

.legal-links {
  margin-top: 10px;
}

.legal-links a {
  color: #A3C7E8;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-logo{
    height: 60px;
  }

  .footer-section {
    flex: 100%;
    text-align: left;
    margin-bottom: 25px;
  }
  
  .footer-heading::after {
    left: 7%;
    transform: translateX(-50%);
  }
  
  .social-icons {
    justify-content: flex-start;
  }
  
  .logo-container {
    justify-content: flex-start;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .legal-links a {
    display: block;
    margin: 8px 0;
  }
}




/* preloader */

#preloader {
  background-image: linear-gradient(135deg, transparent 0%, transparent 6%,rgba(71, 71, 71,0.04) 6%, rgba(71, 71, 71,0.04) 22%,transparent 22%, transparent 100%),linear-gradient(45deg, transparent 0%, transparent 20%,rgba(71, 71, 71,0.04) 20%, rgba(71, 71, 71,0.04) 47%,transparent 47%, transparent 100%),linear-gradient(135deg, transparent 0%, transparent 24%,rgba(71, 71, 71,0.04) 24%, rgba(71, 71, 71,0.04) 62%,transparent 62%, transparent 100%),linear-gradient(45deg, transparent 0%, transparent 73%,rgba(71, 71, 71,0.04) 73%, rgba(71, 71, 71,0.04) 75%,transparent 75%, transparent 100%),linear-gradient(90deg, rgb(255,255,255),rgb(255,255,255));
  background-size: cover;
  height: 100vh;
  width: 100%;
  position: fixed;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  }
  
  #preloader img {
  height: 50%;
  max-width: 100%;
  object-fit: contain;
  }
  
  #preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  @media only screen and (max-width: 768px) {
  #preloader {
    height: 100vh;
  }
  }
  



  /* hero section for all pages */

#hero {
  height: 30vh;
  display: flex;
  justify-content: left;
  align-items: center;
  background: linear-gradient(rgb(0,0,0,0.5), rgb(0,0,0,0.5)), url("https://wallpapercave.com/wp/wp2456257.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-container {
  z-index: 1;
}

.hero-content {
  margin-left: 30px;
}

.hero-content p {
  font-size: 60px;
  font-weight: bold;
  color: var(--color-2);
}

@media only screen and (max-width: 768px) {
  #hero {
    height: 15vh;
  }
  #hero::before {
    height: 70vh;
  }

  .hero-content p {
    font-size: 1.75rem;
  }
}