/* Responsive Styles */

/* Large Screens (1200px and below) */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .portfolio-page {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  }
}

/* Medium Screens (992px and below) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 0;
  }

  .hero p {
    margin: 0 auto 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .typewriter-text {
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .contact-container {
    flex-direction: column;
    gap: 3rem;
  }

  .portfolio-page {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* Small Screens (768px and below) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .nav-links,
  .nav-right .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .btn-resume {
    display: none;
  }

  .mobile-menu .btn-resume {
    display: inline-block;
    margin-top: 2rem;
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  .hero-cta .btn {
    flex: 1;
    min-width: 40%;
  }

  .section-title {
    font-size: 2rem;
  }

  .portfolio-page {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: center;
  }

  .skills {
    padding: 60px 0;
  }

  .skill-item {
    flex: 0 0 100px;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .skills-carousel {
    gap: 1.5rem;
    animation-duration: 25s;
  }
}

/* Extra Small Screens (576px and below) */
@media (max-width: 576px) {
  .hero-image {
    width: 215px;
    height: 215px;
    border: 4px solid #199a8e;
    /* Boleh disesuaikan juga ukuran bordernya */
  }

  .dark-mode .hero-image {
    width: 215px;
    height: 215px;
    border: 4px solid #64ffda;
    /* Boleh disesuaikan juga ukuran bordernya */
  }

  .container {
    padding: 0 15px;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    /* fallback */
  }

  .hero-cta .btn {
    flex: 1;
    min-width: 45%;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content p {
    font-size: 1rem;
  }

  .portfolio-content h3 {
    font-size: 1.3rem;
  }

  .portfolio-content p {
    font-size: 0.95rem;
  }

  .social-links {
    justify-content: center;
  }

  .skills {
    padding: 40px 0;
  }

  .skill-item {
    flex: 0 0 80px;
    gap: 0.3rem;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }

  .skills-carousel {
    gap: 1rem;
    animation-duration: 25s;
  }

  .row-2 {
    margin-top: 1rem;
  }
}