/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: rgb(0, 0, 33);
  color: white;
  font-family: "Poppins", sans-serif;
}

/* Header Styles */
header {
  background-color: rgb(18, 18, 62);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 20px;
}

nav .left {
  font-size: 1.5rem;
  color: rgb(170, 107, 228);
}

nav .right ul {
  display: flex;
  justify-content: center;
}

nav ul li {
  list-style: none;
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: rgb(153, 153, 226);
}

/* Main Section Styles */
main {
  padding: 20px;
}

.firstsection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 130px 0;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.leftsection {
  flex: 1;
  font-size: 2.5rem;
}

.leftsection > span {
  color: blueviolet;
}

.leftsection .btn {
  padding: 12px;
  background: rgb(184, 3, 184);
  border: 2px solid white;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  margin-right: 10px;
}

.leftsection .btn a {
  text-decoration: none;
  color: white;
}

.rightsection {
  flex: 1;
  text-align: center;
}

.rightsection img {
  width: 100%; /* Responsive image */
  max-width: 400px; /* Max width for larger screens */
  height: auto;
}

/* Second Section Styles */
.secondsection {
  max-width: 80vw;
  margin: auto;
  text-align: center;
}

.secondsection h1 {
  font-size: 2rem;
  margin: 20px 0;
}

.box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.vertical {
  width: 30%;
  margin: 20px 0;
  text-align: center;
}

.vertical img {
  width: 100%; /* Responsive image */
  max-width: 150px; /* Max width for images */
  height: auto;
}

.vertical-title {
  font-weight: bold;
  margin: 10px 0;
}

.vertical-desc {
  color: rgb(231, 165, 248);
}
.vertical-desc>span {
  color: rgb(184, 8, 228);
}

/* Footer Styles */
footer {
  background-color: rgb(13, 7, 43);
  padding: 40px 20px;
  color: white;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer > div {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer h3,
.footer h4 {
  color: rgb(170, 107, 228);
  margin-bottom: 15px;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin: 10px 0;
}

.footer ul li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: rgb(170, 107, 228);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .firstsection {
    flex-direction: column; /* Stack sections */
    align-items: center; /* Center items */
    margin: 20px 0; /* Add margin for spacing */
  }

  .firstsection > div {
    width: 90%; /* Full width on small screens */
    text-align: center; /* Center text for better readability */
  }

  .leftsection {
    font-size: 2rem; /* Adjust font size for smaller screens */
    margin-bottom: 20px; /* Add space below the left section */
  }

  .rightsection img {
    width: 100%; /* Full width for images */
    max-width: 300px; /* Limit max width for images */
    height: auto; /* Maintain aspect ratio */
  }

  .vertical {
    width: 100%; /* Full width for vertical items */
    margin-bottom: 20px; /* Add space between items */
  }

  nav {
    width: 100%;
    flex-direction: column; /* Stack nav items */
    align-items: center; /* Center nav items */
    padding: 10px 0; /* Add padding for better spacing */
  }

  nav ul {
    flex-direction: row; /* Stack nav links vertically */
    align-items: center; /* Center nav links */
  }

  nav ul li {
    margin: 0 -9px; /* Add margin for spacing */
  }
  nav ul li a {
    padding: 0 15px ; /* Add margin for spacing */
  }

  .footer {
    flex-direction: column; /* Stack footer items */
    align-items: center; /* Center footer items */
    padding: 20px 0; /* Add padding for better spacing */
  }

  .footer > div {
    width: 100%; /* Full width for footer items */
    text-align: center; /* Center text in footer */
    margin-bottom: 15px; /* Add space between footer sections */
  }
}

@media (max-width: 480px) {
  .leftsection {
    font-size: 1.5rem; /* Smaller font size for mobile */
  }

  .secondsection h1 {
    font-size: 1.5rem; /* Smaller heading */
  }

  .footer > div {
    width: 100%; /* Full width for footer items */
  }

  .footer h4 {
    font-size: 1.2rem; /* Adjust font size for footer headings */
  }

  .footer ul li {
    margin: 5px 0; /* Reduce margin for footer links */
  }
}
