/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 0;
    margin-bottom: 40px;
  }

  .hero-image-wrapper {
    width: 300px;
    height: 350px;
    overflow: hidden;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-title {
    font-size: 2.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

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

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .stat {
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.05rem;
    color: var(--text-primary);
  }

  .nav-cta {
    text-align: center;
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .card-1 {
    top: 10px;
    right: -10px;
  }

  .card-2 {
    bottom: 30px;
    left: -10px;
  }

  .hero-floating-card {
    display: none;
  }

  .hero-avatar-icon {
    font-size: 4rem;
  }

  .hero-image-wrapper {
    width: 250px;
    height: 280px;
    overflow: hidden;
  }

  /* Timeline mobile */
  .htimeline-years {
    padding: 0 20px;
  }

  .htimeline-content {
    padding: 0 20px;
  }

  .htimeline-nav {
    display: none;
  }

  .htimeline-card-body {
    padding: 20px;
  }

  .htimeline-autoplay {
    right: 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Small Mobile ---- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-image-wrapper {
    width: 200px;
    height: 240px;
  }

  .hero-avatar-icon {
    font-size: 3.5rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .htimeline-year-label {
    font-size: 0.7rem;
  }
}


/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary, #fff);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary, #0a0a0a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.25rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

