@media screen and (max-width: 1000px) {
  p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .grid-3 {
    gap: 1rem;
  }

  .skills-right ul li {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 825px) {
  /* Burger */
  .burger {
    display: block;
    cursor: pointer;
    z-index: 10;
    position: fixed;
    right: 5%;
    top: 30px;
    background: var(--secondaryBackgroundColor);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .toggle-burger .line-1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle-burger .line-2 {
    opacity: 0;
  }

  .toggle-burger .line-3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Navigation */
  nav {
    position: fixed;
    width: 60%;
    right: 0;
    top: 0;
    height: 100vh;
    background: var(--secondaryBackgroundColor);
    border-left: 2px solid #fef08a;
    z-index: 9;
    transform: translateX(100%);
    transition: 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
  }

  nav ul {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  nav ul li a {
    color: var(--primaryTextColor);
    font-size: 1.2rem;
    font-weight: 500;
  }

  .nav-active {
    transform: translateX(0);
  }
  /* End of Navigation */

  :root {
    --sectionPadding: 4rem 0;
  }

  /* Titles */
  .section-title {
    font-size: 1.6rem;
    margin: 0.6rem 0 2.5rem;
  }

  .pre-title {
    font-size: 0.8rem;
  }

  /* Hero Section */
  #hero {
    grid-template-columns: 1fr;
    height: auto;
    padding: 4rem 0;
    text-align: center;
  }

  .hero-right {
    order: -1;
    margin-bottom: 3rem;
  }

  .photo-wrapper {
    width: 260px;
    height: 260px;
  }

  .hero-right img {
    width: 220px;
    height: 220px;
  }

  .hero-left {
    text-align: center;
    padding-bottom: 0;
  }

  .hero-left .pre-title {
    text-align: center;
    margin: 0 auto 1rem;
  }

  .hero-left p {
    margin: 0 auto;
  }

  .hero-name {
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
  }

  /* Education Section */
  .education-grid {
    gap: 1.5rem;
  }

  .education {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .line {
    display: none;
  }

  /* Footer */
  footer {
    padding: 2rem 0;
  }
}

/* Mobile Size */
@media screen and (max-width: 640px) {
  /* Titles */
  .section-title {
    font-size: 1.3rem;
  }

  .pre-title {
    font-size: 0.7rem;
  }
}
