@media (max-width: 1300px) {
  .hero-grid {
    margin-top: 5rem;
    gap: 20px;
  }

  .hero-box {
    max-width: 100%;
    text-align: center;
  }

  .hero-box h1 {
    text-align: left;
    font-size: 2.7rem;
    line-height: 3.5rem;
  }

  .hero-memoji-img {
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 200px;
  }

}

@media (max-width: 1174px) {
  .about-container {
    flex-direction: column;
    gap: 40px;
    height: auto;
    padding: 20px;
    /* allow height to grow naturally */
  }

  .about-pic {
    width: 300px;
    height: 400px;
    margin-bottom: 0;
    /* already has gap */
  }

  .about-txt {
    margin: 0;
    text-align: left;
  }

  .about-txt-container {
    width: 100%;
  }

  .about-pic-container {
    display: flex;
    justify-content: center;
  }

  .rotating-image {
    position: absolute;
    bottom: -82px;
    right: -30px;
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 1000px) {
  .hero-grid {
    flex-direction: column-reverse;
    gap: 40px;
    margin-top: 6rem;
  }

  .hero-box {
    max-width: 100%;
    text-align: center;
  }

  .hero-box h1 {
    text-align: center;
    font-size: 2.8rem;
    line-height: 3.8rem;
  }

  .hero-memoji-img {
    background-size: cover;
    background-position: center;
    height: 200px;
    width: 200px;
  }

  .case-container {
    row-gap: 5rem;
  }

  .case-top {
    grid-template-columns: 1fr;
    row-gap: 90px;
  }

  
  .case-box {
    width: 100%;
  }

  .case-bottom {
    width: 100%;
    height: auto;
  }

  .case-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .bottom-case {
    margin-top: 1rem;
    margin-bottom: 3rem;
  }

}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    height: auto;
    width: 100%;
    margin: 0 auto;
  }

  .about-pic-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about-pic {
    width: 100%;
    /* Make image responsive */
    max-width: 350px;
    /* Limit maximum size */
    height: auto;
    margin-bottom: 20px;
  }

  .rotating-image {
    position: absolute;
    bottom: -60px;
    right: -22px;
    width: 75px;
    height: 75px;
  }

  .about-txt-container {
    width: 100%;
    text-align: center;
  }

  .about-txt {
    font-size: 1.02rem;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto;
    padding-bottom: 3rem;
    width: 100%;
    /* Keep space on left & right */
  }

  .title {
    font-size: 1.7rem;
    text-align: center;
    padding: 1rem 0;
  }

  .about-link {
    transition: none;
    /* Disable hover animation */
    transform: none;
  }

  .about-link:hover {
    transform: none !important;
    /* Ensure hover effect is removed */
  }

  /* General Container Styles for Both Sections */
  .skills-container,
  .software-container {
    display: flex;
    flex-direction: column;
    /* Stack elements */
    align-items: center;
    /* Align text to left */
    text-align: center;
    gap: 3rem;
    /* Reduce gap between title and content */
    max-width: 90%;
    /* Keep space on left & right */
    margin: 0 auto 6rem;
    /* Maintain spacing below */
  }

  /* Ensure the skill/software lists take full width */
  .skill-list-a,
  .skill-list-b,
  .soft-list-a,
  .soft-list-b {
    width: 100%;
  }


  /* Adjust List Items */
  .skills-container ul,
  .software-container ul {
    padding: 0;
    margin: 0;
  }

  .skills-container li,
  .software-container li {
    font-size: 1.02rem;
    line-height: 1.6;
    list-style: none;
  }

  /* Software section subheadings */
  .software-container h3 {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.2rem;
    /* Reduce gap */
    color: #4e5784;
  }

  .heading-title h2 {
    font-size: 1.7rem;
    padding: 5rem 0 4rem;
    /* Reduce top padding */
    text-align: center;
    text-align: center;

  }

  /* Interest Section - Stack Images */
  .interests-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align to left */
    text-align: left;
    max-width: 90%;
    /* Maintain space like About section */
    margin: 0 auto 1rem;
    /* Bottom spacing */
  }

  .image-row {
    display: flex;
    flex-direction: column;
    /* Stack images */
    gap: 0rem;
    /* Reduce space between images */
    width: 100%;
  }

  .interest-item img {
    width: 80%;
    /* Scale down images */
    max-width: 300px;
    /* Set a max width */
    margin: 0 auto;
    /* Center images */
  }

  /* CTA */
  .window-wrapper {
    max-width: 80%;
    margin-bottom: 12%;
    margin-top: 16%;
  }

  .win-content {
    font-size: 14px;
  }


  /* Footer */

  .foot-wrapper {
    flex-direction: column;
    align-items: center;
    /* Align text to left */
    padding: 10% 30%;
    /* Adjust spacing */
    margin-bottom: 1rem;
  }

  .foot-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .foot-size {
    display: flex;
    flex-direction: column;
  }

  footer p {
    font-size: 12px;
    /* Reduce copyright text size */
    margin-bottom: 10%;
  }

  footer h2 {
    font-size: 1.2rem;
    /* Adjust "Let's Connect" size */
    margin-bottom: 5%;
  }

  .foot-mail {
    font-size: 1.3rem;
    /* Reduce email size */
  }

  .foot-links {
    margin-top: 1.5rem;
    /* Space above links */
    gap: 20px;
    margin-bottom: 15%;
  }

  .foot-links i {
    font-size: 27px;
    /* Reduce icon size */
  }

}

/* Move 600px below 768px so it applies correctly */
@media (max-width: 600px) {

  .index-main-container {
    padding: 0px 20px;
  }
  .hero-main-container {
    padding-top: 20px;
  }

  .hero-grid {
    flex-direction: column-reverse;
    gap: 40px;
    margin-top: 5rem;
  }

  .hero-box h1 {
    text-align: center;
    font-size: 2rem !important;
    line-height: 2.9rem;
  }

  .hello-btn {
    font-size: 2rem !important;
    margin-bottom: 1.5rem;
  }

  .hero-bottom-txt {
    font-size: 18px;
  }

  .hello-btn span {
    position: relative;
    top: 3px;
    left: -2px;
  }

  .stamp-card {
    aspect-ratio: 1.85;
    left: -14px;
  }

  .hero-memoji-img {
    background-size: cover;
    background-position: center;
    height: 150px;
    width: 150px;
  }

  .underline-img {
  position: absolute;
  left: 116px;
  bottom: 35px; 
  width: 104px; 
}

.surprise-img {
  position: absolute;
  right: 11px; 
  top: 4px;
  width: 20px; 
}

  .case-container {
    padding: 0px;
  }

 
}