/*Common styling for navigation and footer*/

/*importing google fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Montserrat:wght@600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body{
  font-family: 'Poppins', sans-serif;
  line-height:1.5;
}  
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}
html{
  scroll-behavior:smooth;
}
#menu-toggle{
  display:none;
}

.menu-icon{
  display:none;
  font-size:24px;
  color:white;
  cursor:pointer;
  gap:6px;
  z-index:1001;
}
.logo{
  color:#00bcd4;
  font-weight:700;
  font-size:22px;
  letter-spacing:1px;
}
#nav-bar{
    display: flex;
    justify-content: space-between;
    background: #0a2a43;
    align-items: center;
    padding: 15px 60px;
    width: 100%;
    margin:0 0 0 0;
    border-bottom: 2px solid #00bcd4;
    backdrop-filter: blur(10px);
}
#navlist{
  list-style: none;
  display: flex;
  margin-left:auto;
  justify-content: right;
  gap: 32px;

}
#navlist li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  position:relative;
  padding:6px 10px;
  border-radius:10px;
  transition: all 0.3s ease;

}
#navlist li a::after{
  content:"";
  position: absolute;
  width: 0%;
  height:2px;
  bottom:-5px;
  left:0;
  background:white;
  transition:0.3s;
}

#navlist li a:hover{
  color: cyan;
  display:inline-block;
  transform: translateY(-6px);
  transition:transform 0.3s;
}
#navlist li a.active {
  color:#00bcd4;
  box-shadow: -2px 0 0 #00bcd4,2px 0 0 #00bcd4; 
}

#navlist li a:hover::after{
  width:100%;
}
h1,h2,h3{
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}
h1{
  color: #e8eef2;
  margin-bottom: 16px;
  font-size: 38px;
  font-weight: 600;
  padding:10px;
  text-shadow:2px 2px 4px rgba(0, 188, 212, 0.5);
}
h2{
  color:white;
  font-size: 24px;
  font-weight: 600;
}
main{flex:1;}
p{
  color:white;
}
footer {
  background-color: #0a2a43; 
  color: #fff;
  padding: 20px 40px;
  width:100%;
  margin:0;
  border-top: 2px solid #00bcd4;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-contact p,.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
}

.footer-nav ul li a {
  color: #00bcd4; 
  text-decoration: none;
  font-weight: bold;
}

.footer-nav ul li a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #00bcd4;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: #fff;
}

button, .btn {
  background-color: #00bcd4;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #008c9e;
}

@media only screen and (max-width: 900px) {
  /*hamburger menu for mobile*/
  #nav-bar{
    flex-direction: column;
    align-items:stretch;
    justify-content:space-between;
    padding:15px 20px;
  }
  .nav-mobile{
    width:100%;
    display:flex;
    justify-content: space-between;
    align-items: center;
  }
  #navlist{
    flex-direction:column;
    align-items:center;
    width:100%;
    background-color:#0a2a43;
    margin-top:10px;
    max-height:0;
    overflow:hidden;
    opacity:0;
    transform:translateY(-10px);
    transition:all 0.4s ease;
  }
  #navlist li{
    padding:10px 0;
    width:100%;
    text-align:center;
    opacity:0;
    transform:translateY(10px);
    transition:0.3s;
  }
  .menu-icon{
    margin-left:auto;
    font-size:26px;
  }
  #menu-toggle:checked ~ #navlist li{ 
    opacity:1;
    transform:translateY(0);
    }
  .menu-icon{
    display:block;
  }

  #menu-toggle:checked ~ #navlist{
    display:flex;
    opacity:1;
    max-height:100vh;
    transform:translateY(0);

  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap:8px;
  }
}
@media (max-width:768px){
  main {
    padding: 30px 5%;
    gap: 20px; }
}
