/* Large tablets and small laptops */
@media screen and (max-width: 1199px) {
  .main-container {
    max-width: 95%;
    padding: 0 20px;
  }

  h2,
  h3 {
    font-size: 0.9em;
  }

  .glow {
    font-size: 60px;
    top: -5%;
    left: 12%;
  }

  .steve-jobs-image {
    max-width: 320px;
    top: 15%;
  }

  .buttons-container {
    left: 12%;
    bottom: 0%;
  }

  .btn {
    min-width: 60px;
    max-width: 180px;
    padding: 0.8em 1.5em;
    font-size: 0.9em;
    margin: 15px;
  }
}

/* Medium tablets */
@media screen and (max-width: 1000px) {
  body {
    font-size: 18px;
  }

  .hero-container {
    height: 180px;
    padding: 15px 0 20px;
  }

  .main-container {
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .glow {
    left: 5%;
    font-size: 52px;
  }

  .steve-jobs-image {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    max-width: 250px;
    margin-bottom: 20px;
  }

  .buttons-container {
    position: relative;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-row1,
  .btn-row2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  .btn {
    min-width: 55px;
    max-width: 120px;
    padding: 0.7em 1.2em;
    font-size: 0.8em;
    margin: 8px;
  }
}

/* Small tablets and large phones */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .hero-container {
    height: auto;
    padding: 15px 0 10px;
  }

  h2 {
    font-size: 0.8em;
    line-height: 1.3;
  }

  h3 {
    font-size: 0.85em;
  }

  .glow {
    font-size: 45px;
    margin-bottom: 15px;
    left: 6%;
  }

  .steve-jobs-image {
    max-width: 200px;
    margin-bottom: 15px;
  }

  .btn-row1,
  .btn-row2 {
    gap: 8px;
    margin-bottom: 10px;
  }

  .btn {
    min-width: 50px;
    max-width: 100px;
    padding: 0.6em 1em;
    font-size: 0.7em;
    margin: 6px;
  }

  hr {
    width: 70%;
    margin: 30px auto 0;
  }

  p {
    font-size: 16px;
    padding: 30px 20px;
  }
}

/* Glow effect position change */
@media screen and (max-width: 650px) {
  .glow {
    position: relative;
    writing-mode: initial;
    transform: none;
    text-align: center;
    font-size: 40px;
    top: 0;
    left: 0;
    margin-bottom: 20px;
    line-height: 1.2;
  }
}

/* Large phones */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h2 {
    font-size: 0.7em;
    line-height: 1.2;
  }

  h3 {
    font-size: 0.75em;
  }

  .glow {
    font-size: 20px;
  }

  .steve-jobs-image {
    width: 170px;
    margin-bottom: 15px;
  }

  .btn-row1,
  .btn-row2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 380px;
  }

   .btn {
    min-width: auto;
    width: 100%;
    max-width: none;
    padding: 0.5em 0.8em;
    font-size: 0.6em;
    margin: 0;
    letter-spacing: 0.5px;
  }

  hr {
    width: 80%;
    margin: 20px auto 0;
  }

  p {
    font-size: 13px;
    padding: 20px;
    line-height: 1.4;
  }
}

/* Extra small phones */
@media screen and (max-width: 320px) {
  h2,
  h3 {
    font-size: 0.6em;
    margin: 1% 5% 0 0;
  }

  .steve-jobs-image {
    width: 150px;
    margin-bottom: 10px;
  }

  .btn-row1,
  .btn-row2 {
    max-width: 250px;
  }

  .btn {
    padding: 0.4em 0.6em;
    font-size: 0.55em;
  }

  p {
    font-size: 12px;
    padding: 15px 20px;
  }
}

/* Height-specific media queries for screens taller than 1201px */
@media screen and (min-height: 1201px) {
  .hero-container {
    height: 150px;
    padding: 20px 0;
  }

  .main-container {
    height: calc(100vh - 340px);
    min-height: auto;
  }

  .steve-jobs-image {
    max-width: 300px;
  }
}

/* Height-specific media queries for screens shorter than 1000px */
@media screen and (max-height: 999px) {
  .hero-container {
    height: auto;
    padding: 10px 0 15px;
  }

  .main-container {
    padding: 15px 20px 5px;
    min-height: calc(100vh - 180px);
  }

  .glow {
    font-size: 40px;
    top: -8%;
  }

  .steve-jobs-image {
    max-width: 200px;
  }

  p {
    font-size: 11px;
    padding: 20px;
  }
}

@media screen and (max-height: 800px) {
  .main-container {
    min-height: calc(100vh - 300px);
    height: auto;
  }

  .steve-jobs-image {
    max-width: 160px;
    margin-bottom: 12px;
  }

  .btn {
    padding: 0.5em 0.9em;
    margin: 5px;
  }

  hr {
    margin-top: 10px;
  }
}

@media screen and (max-height: 600px) {
  h2,
  h3 {
    font-size: 0.6em;
  }

  .glow {
    display: none;
  }

  .main-container {
    min-height: calc(100vh - 200px);
    height: auto;
  }

  .btn-row1,
  .btn-row2 {
    max-width: 250px;
    grid-template-columns: repeat(4, 1fr);
  }

.btn {
    padding: 0.4em 0.8em;
    font-size: 0.7em;
    margin: 4px;
  }
  
  hr {
    margin-bottom: 5px;
  }
}

@media screen and (max-height: 500px) {
  h2,
  h3 {
    font-size: 0.6em;
  }

  .steve-jobs-image {
    display: none;
  }

  .main-container {
    padding: 50px 0 20px;
  }
}

@media screen and (max-height: 400px) {
  .main-container {
    padding: 20px 0 0;
  }

  hr {
    margin-bottom: 0;
  }
}
