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

html,
body {
  height: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-bottom: 16px;
  font-family: "popM", sans-serif;
}

@font-face {
  font-family: "popM";
  src: url(../fonts/Poppins-Medium.ttf);
}
@font-face {
  font-family: "popB";
  src: url(../fonts/Poppins-Bold.ttf);
}

nav {
  background-color: #a5b4fc;
  font-size: 24px;
  font-family: popM;
  padding-left: 3rem;
  width: 80%;
  margin: 0 auto;
  border-radius: 20px;
  position: relative;
  top: 50px;
  z-index: 1;
}

nav ul {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 40px;
}

nav ul li {
  list-style: none;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 20px;
}

nav a:hover {
  color: #a5b4fc;
  background-color: white;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}
.logo {
  background-image: url(../images/oddJob_Logo.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 80px;
  width: 80px;
}
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.hero {
  background-image: url(../images/hero.gif);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
  width: 700px;
  position: relative;
  margin: 0 auto;
  right: 300px;
}

.title {
  position: absolute;
  top: 40%;
  left: 70%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  color: rgb(0, 0, 0);
  font-family: popB;
}

.tag {
  position: absolute;
  top: 52%;
  left: 64%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: rgb(0, 0, 0);
  font-family: popM;
  margin-top: 10px;
}

button {
  position: absolute;
  top: 60%;
  left: 59%;
  transform: translate(-50%, -50%);
  background-color: #a5b4fc;
  color: white;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

button a {
  text-decoration: none;
  color: white;
}

button:hover {
  color: #a5b4fc;
  background-color: #4f46e5;
  padding: 10px 20px;
  border-radius: 20px;
  transition: all 0.3s ease-in-out;
}

main {
  margin: 100px;
  background: linear-gradient(300deg, #4f46e5, #a5b4fc, #ffffff);
  background-size: 240% 240%;
  animation: gradient-animation 24s ease infinite;
  position: relative;
  height: auto;
  padding: 50px;
  border-radius: 30px;
}
.How h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #333;
}

.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #666;
}

.bubbles-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-bottom: 100px;
}

.bubble1,
.bubble2,
.bubble3 {
  background: #f0f8ff;
  border: 2px solid #4f46e5;
  border-radius: 30px;
  padding: 2rem;
  width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.bubble1:hover,
.bubble2:hover,
.bubble3:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.bubble1 h2,
.bubble2 h2,
.bubble3 h2 {
  font-size: 2rem;
  color: #4f46e5;
  margin-bottom: 0.5rem;
}

.bubble1 p,
.bubble2 p,
.bubble3 p {
  font-size: 1.2rem;
  color: #555;
}
.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.suggestion-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  width: 300px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.actions-container {
  display: none;
  position: relative;
  left: 15px;
}

.suggest-job h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
  justify-content: center;
}

.suggest-job form {
  display: flex;
  flex-direction: column;
  width: 60%;
  margin: 0 auto;
  border: #3e38b5;
  border-radius: 20px;
}

.suggest-job input,
.suggest-job textarea {
  padding: 10px;
  margin: 5px 0;
  border: #3e38b5;
  border-radius: 20px;
  font-family: popM;
}

.sugbtnsub {
  background-color: #4f46e5;
  color: white;
  border: none;
  cursor: pointer;
  position: relative;
  margin: 0 auto;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* sugg added styles */

.suglist {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #4f46e5;
  position: relative;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
  height: 130px !important;
  margin-top: 100px;
  max-width: 600px; /* constrain width on large screens */
  margin-left: auto;
  margin-right: auto;
}

.suglist h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
  color: #333;
}

.suglist p {
  color: #555;
  font-size: 16px;
}

.suglist p:last-of-type {
  margin-bottom: 16px;
}

.sug-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  right: -150px;
  gap: 10px;
  flex-wrap: nowrap;
}

.sug-btns button {
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.delete-sug-btn {
  background-color: #ef4444;
  color: #fff;
  margin-left: 262px;
}

.delete-sug-btn:hover {
  background-color: #a92e2e;
  color: #fff;
}

.sug-details-wrapper {
  margin-top: 90px;
  padding: 0 60px;
}

.sugdetails {
  border: 1px solid #4f46e5;
  border-radius: 8px;
  padding: 20px 20px 20px 90px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.sugdetails h2 {
  color: #4f46e5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .suggestion-card {
    width: 45%;
  }

  .suggest-job form {
    width: 80%;
  }

  .suglist {
    max-width: 90%;
    height: auto !important;
    padding: 15px;
  }

  .sug-btns {
    position: static;
    width: auto;
    margin-top: 10px;
    right: 0;
    justify-content: flex-start;
    gap: 8px;
  }

  .delete-sug-btn {
    margin-left: 0;
  }

  .sugdetails {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .suggestion-card {
    width: 100%;
  }

  .suggest-job h2 {
    font-size: 2rem;
  }

  .suggest-job form {
    width: 95%;
  }

  .suglist {
    height: auto !important;
    max-width: 100%;
    margin-top: 50px;
    padding: 15px;
  }

  .sug-btns {
    flex-direction: column;
    align-items: stretch;
    position: static;
    width: 100%;
    margin-top: 15px;
    right: 0;
  }

  .sug-btns button {
    width: 100%;
    margin-bottom: 10px;
  }

  .delete-sug-btn {
    margin-left: 0;
  }

  .sug-details-wrapper {
    padding: 0 20px;
    margin-top: 40px;
  }

  .sugdetails {
    padding: 15px;
  }
}


@media (max-width: 1600px) {
  nav {
    width: 95%;
    padding-left: 3rem;
    font-size: 22px;
  }

  .hero {
    height: 500px;
    background-size: contain;
  }

  .title {
    font-size: 50px;
    top: 30%;
    left: 80%;
    transform: translateX(-50%);
    width: 50%;
  }

  .tag {
    font-size: 22px;
    top: 50%;
    width: 50%;
    left: 80%;
    transform: translateX(-50%);
  }

  button {
    font-size: 18px;
    top: 60%;
    left: 60%;
    transform: translateX(-50%);
  }

  main {
    margin: 60px;
    padding: 40px;
  }

  .suggest-job form {
    width: 70%;
  }

  .suggest-job button {
    width: 70%;
  }

  .suglist {
    margin-top: 70px;
    height: auto !important;
  }

}
@media (max-width: 1500px) {
  nav {
    width: 95%;
    padding-left: 3rem;
    font-size: 22px;
  }

  .hero {
    height: 500px;
    background-size: contain;
  }

  .title {
    font-size: 50px;
    top: 30%;
    left: 80%;
    transform: translateX(-50%);
    width: 50%;
  }

  .tag {
    font-size: 22px;
    top: 50%;
    width: 50%;
    left: 80%;
    transform: translateX(-50%);
  }

  button {
    font-size: 18px;
    top: 60%;
    left: 60%;
    transform: translateX(-50%);
  }

  main {
    margin: 60px;
    padding: 40px;
  }

  .suggest-job form {
    width: 70%;
  }

  .suggest-job button {
    width: 70%;
  }

  .suglist {
    margin-top: 70px;
    height: auto !important;
  }

}
@media (max-width: 1285px) {
  nav {
    width: 90%;
    padding-left: 2rem;
    font-size: 20px;
  }

  nav ul {
    gap: 22px;
    
  }

  nav ul li a {
    font-size: 16px;
  }

  .hero {
    width: 100%;
    right: 0;
    background-size: contain;
    height: 600px;
  }
  

  .title {
    font-size: 40px;
    left: 50%;
    top: 35%;
    background-color: rgb(168, 196, 235);
    padding: 20px;
    color: white;
    border-radius: 20px;
    margin-bottom: 200px;
    justify-content: center;
    text-align: center;
  }

  .tag {
    font-size: 18px;
    left: 50%;
    top: 55%;
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    justify-content: center;
    text-align: center;
  }

  button {
    font-size: 16px;
    top: 65%;
    left: 50%;
    background-color: rgb(146, 187, 248);
    padding: 20px;
    border-radius: 20px;
  }

  main {
    margin: 50px;
    padding: 30px;
    margin-top: 100px;
  }

  .suggest-job form {
    width: 80%;
  }

  .suggest-job button {
    width: 80%;
  }

  .suglist {
    margin-top: 60px;
    height: auto !important;
  }
  .sug-btns {
    right: -100px;
  }

}
@media (max-width: 1000px) {
  nav{
    height: 100px;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 1rem;
    border-radius: 0 0 20px 20px;
    z-index: 1000;

    .logo{
      display: block;
    }
  }

  nav ul.active {
    display: flex;
    height: auto;
    background-color: #a5b4fc;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 2rem;
    top: 50%;
    font-size: 30px;
    transform: translateY(-50%);
    color: white;
  }
}

@media (max-width: 768px) {


  .hero {
    height: 300px;
    width: 90%;
    right: 0;
    background-size: cover;
  }

  .title {
    font-size: 36px;
    top: 35%;
    left: 50%;
  }

  .tag {
    font-size: 16px;
    top: 50%;
    left: 50%;
  }

  button {
    font-size: 16px;
    padding: 8px 16px;
    top: 65%;
    left: 50%;
  }

  main {
    margin: 50px;
    padding: 30px;
  }

  .bubbles-container {
    gap: 1rem;
    padding-bottom: 50px;
  }

  .bubble1,
  .bubble2,
  .bubble3 {
    width: 80%;
    padding: 1.5rem;
  }

  .suggest-job form {
    width: 80%;
  }

  .suggest-job button {
    width: 100%;
  }

  .suggestion-card {
    width: 90%;
  }

  .suglist {
    height: auto;
    margin-top: 50px;
  }

  .sugdetails {
    padding: 20px;
  }
}


@media (max-width: 480px) {
  
  .hero {
    height: 60vh;
    width: 90%;
    background-size: contain;
    right: 0;
  }

  .title {
    font-size: 28px;
    top: 30%;
    left: 50%;
    width: 90%;
  }

  .tag {
    font-size: 14px;
    top: 45%;
    left: 50%;
  }

  button {
    font-size: 14px;
    padding: 20px 15px;
    top: 60%;
    left: 50%;
  }

  main {
    margin: 30px 20px;
    padding: 20px;
  }

  .bubble1,
  .bubble2,
  .bubble3 {
    width: 100%;
    padding: 1rem;
  }

  .suggest-job form {
    width: 90%;
  }

  .suggest-job button {
    width: 100%;
  }

  .suggestion-card {
    width: 100%;
  }

  .suglist {
    height: auto;
    margin-top: 30px;
  }

  .sugdetails {
    padding: 10px;
  }

}