* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
.main-container {
 
 /* padding: 50px; */
 width: 100%  ;
}

.header-container>div  {
  display: flex;
  background-color: white;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
}
.nav-items {
  padding: 15px;
  word-spacing: 25px;
  color: hsl(233, 8%, 61%);
}
.nav-items a {
  position: relative;
  list-style: none;
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 30px;
  font-size: 20px;
}

/* Underline effect on hover */
.nav-items a::after {
  content: "";
  position: absolute;
  left: 0;

  bottom: 0;
  width: 0px;
  height: 5px;
  color: hsl(233, 26%, 24%);
  background-color: hsl(136, 65%, 51%);
  transition: width 0.3s ease;
}

.nav-items a:hover::after {
  width: 100%;
 
}


.invite-btn {
  background-image: linear-gradient(
    to right,
    hsl(136, 65%, 51%),
    hsl(192, 70%, 51%)
  );
  color: white;
  border: none;
  border-radius: 25px;
  padding: 15px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.invite-btn:hover {
  background-image: linear-gradient(
    to right,
    hsl(136, 99%, 71%),
    hsl(192, 93%, 73%)
  );
  color: white;
}
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 40px 170px; */
  background-color: hsl(0, 0%, 98%);
  flex-wrap: wrap-reverse;
  position: relative;
  padding-left: 180px;
  
}

.hero-image-container {
  background: url("./images/bg-intro-desktop.svg") no-repeat center;
  background-size: cover;
  width:900px;


}

.image-mockups {

  width: 550px;
  
  height: 600px;
  margin-left: 390px;

}
.hero-title {
  font-size: 75px;
  width: 100%;
  max-width: 700px;
  color: hsl(233, 26%, 24%);
}
.hero-description {
  font-size: 18px;
  width: 100%;
  max-width: 480px;
  color: hsl(233, 8%, 62%);
  margin: 20px 0;
}
.bank-info {
  background-color: hsl(220, 16%, 96%);
  display: flex;
  flex-direction: column;
  padding: 40px 170px;
  position: relative;
  
}

.bank-description {
  width: 650px;
  margin: 20px 0px;
  font-size: 18px;
  color: hsl(233, 8%, 62%);
}
.bank-title {
  font-size: 38px;

}
.bank-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 900px;

  gap: 40px;
}
.content {
  width: 280px;
  margin: 20px 0px;
  color: hsl(233, 8%, 62%);
}
.article-section {
  display: flex;
  flex-direction: column;
  background-color: hsl(0, 0%, 98%);

  padding: 40px 170px;
}
.article-img {
  width: 300px;
  border-radius: 5px;
}
.article-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 900px;

  gap: 40px;
  margin-bottom: 30px;
}
.card {
  background-color: white;
  border-radius: 8px;
  width: 300px;
  margin-top: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding-bottom: 20px;
}
.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.author {
  font-size: 12px;
  color: hsl(233, 8%, 62%);
  padding: 0 20px;
  margin-top: 20px;
}

.card h4 {
  font-size: 18px;
  color: hsl(233, 26%, 24%);
  padding: 0 20px;
  margin-top: 10px;
}

.excerpt {
  font-size: 14px;
  color: hsl(233, 8%, 62%);
  padding: 0 20px;
  margin-top: 10px;
}
.footer {
  background-color: hsl(233, 26%, 24%);
  padding: 40px 100px;
  
}

.footer-container {
  display: flex;
  justify-content: space-between;
 
  gap: 40px;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  filter: brightness(0) invert(1);
  width: 160px;
  margin-bottom: 20px;
}

.social-icons img {
  width: 20px;
  margin-right: 15px;
  cursor: pointer;
  color: aqua;
}

.footer-links {
  display: flex;
  gap: 80px;
  margin-right: 950px;
}

.footer-links p {
  margin: 10px 0;
  cursor: pointer;
  color: hsl(0, 0%, 90%);
}

.footer-right {
  align-items: flex-end;
}

.footer-right button {
  margin-bottom: 15px;
}

.footer-right p {
  font-size: 14px;
  color: hsl(0, 0%, 90%);
}
.footer-links p:hover {
  color: hsl(192, 70%, 51%);
  cursor: pointer;
}
.card h4:hover {
  color: hsl(192, 70%, 51%);
  cursor: pointer;
}
.social-icons img:hover {
  filter: brightness(0) saturate(100%) invert(56%) sepia(85%) saturate(3062%)
    hue-rotate(143deg) brightness(101%) contrast(101%);
}

/*Menu toggle button*/
.menu-toggle{
  display: none;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 20;
}
.feature-detail{
  display: flex;
}
    /* Menu Panel (hidden by default) */
    

/*Media Queries */

@media (max-width: 768px) {
  .main-container {
    /* padding: 0 20px; */
    max-width: 100%;
   
  }

  .header-container > div {
    flex-direction: row;
    padding: 20px;
  }

  .menu-toggle {
    display: block;

    /* margin-left: auto; */
  }

  .nav-items,
  .invite-btn {
    display: none;
  }

  .hero-section {
    flex-direction: column-reverse;
    align-items: center;
    padding: 20px;
  }

  .hero-image-container {
    background: url('./images/bg-intro-mobile.svg') no-repeat center;
    background-size: cover;
    width: 100%;
    height: auto;
    /* margin-bottom: 20px; */
  }

  .image-mockups {
    width: 100%;
    height: auto;
    margin-left: 0px;
  }

  .hero-title {
    font-size: 55px;
    text-align: center;
  }

  .hero-description {
    font-size: 16px;
    text-align: center;
    margin: 10px 0;
  }

  .bank-info {
    padding: 20px;
    max-width: 100%;
  }

  .bank-title {
    font-size: 28px;
    text-align: center;
  }

  .bank-description,.content ,.bank-info{
    font-size: 15px;
    text-align: center;
    width: 100%;
  }

  .bank-features {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }
.feature-detail{
  display: flex;
  flex-direction: column;
 
}
/* Hide menu panel by default */
.menu-panel {
  display: none; /* <-- Key fix */
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background-color: white;
  border-radius: 10px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

/* Nav items inside menu panel */
.menu-panel .nav-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.menu-panel .nav-items a:hover {
  font-size: 18px;
  cursor: pointer;
  color: hsl(233, 26%, 24%);
}
  .article-section {
    padding: 20px;
  }

  .article-info {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 20px;
  }

  .card {
    width: 100%;
  }

  .footer {
    padding: 30px 20px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
    margin: 0;
  }

  .footer-right {
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .social-icons {
    margin-bottom: 20px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 24px;
  }

  .hero-description {
    font-size: 14px;
  }

  .bank-title {
    font-size: 24px;
  }
  .menu-panel{
    display: block;
   
  }
  
  .bank-description {
    font-size: 14px;
  }

  .invite-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .card h4 {
    font-size: 16px;
  }

  .excerpt {
    font-size: 13px;
  }

  .footer-right p {
    font-size: 12px;
  }
}
