/* Tablet Responsive */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .journey-timeline {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .journey-timeline::before {
    display: none;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Navigation */
  .nav-links {
    display: none;
  }

  nav {
    padding: 0 1rem;
    justify-content: center;
  }

  .logo {
    height: 40px;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

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

  .hero-title-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

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

  .hero-role-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-arrow {
    font-size: 2rem;
    display: none;
  }

  .hero-dynamic-role {
    font-size: 1.8rem;
    min-height: 60px;
  }

  .hero p {
    font-size: 0.95rem;
    text-align: left;
  }

  .cta-buttons {
    justify-content: flex-start;
  }

  .social-button {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  /* Sections */
  section {
    padding: 3rem 1rem;
    min-height: auto;
  }

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

  /* About */
  .about {
    padding: 4rem 0;
  }

  .about-content {
    gap: 2rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 1rem;
    text-align: left;
  }

  .role-tags {
    justify-content: center;
    gap: 0.5rem;
  }

  .role-tag {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .about-highlight {
    padding: 1.5rem;
  }

  .about-highlight h4 {
    font-size: 1.1rem;
  }

  .about-journey {
    padding: 2rem 1rem;
  }

  .journey-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .journey-icon {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .journey-step h6 {
    font-size: 1rem;
  }

  .journey-step p {
    font-size: 0.85rem;
  }

  /* Skills */
  .skills-nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 20px;
    max-width: 100%;
  }

  .skills-nav-btn {
    padding: 0.8rem 1rem;
    justify-content: center;
    border-radius: 15px;
    font-size: 0.9rem;
  }

  .subsection-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .skills-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
  }

  .skill-icon img,
  .skill-icon svg {
    width: 35px;
    height: 35px;
  }

  .skill-item-modern span {
    font-size: 0.8rem;
  }

  /* Experience */
  .experience-container {
    padding: 1.5rem;
  }

  .experience-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .experience-title {
    font-size: 1.2rem;
  }

  .experience-date {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .experience-description {
    font-size: 0.9rem;
  }

  .experience-highlights li {
    font-size: 0.85rem;
    padding-left: 1rem;
  }

  .tech-tags {
    gap: 0.4rem;
  }

  .tech-tagline {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  /* Certificates */
  .certificates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certificate-preview {
    height: 180px;
  }

  .certificate-info {
    padding: 1rem;
  }

  .certificate-info h4 {
    font-size: 1rem;
  }

  .certificate-info p {
    font-size: 0.85rem;
  }

  /* Modal */
  .modal {
    padding-top: 40px;
  }

  .modal-content {
    max-width: 95%;
    max-height: 80%;
  }

  .close {
    top: 10px;
    right: 20px;
    font-size: 35px;
  }

  #caption {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-content h4 {
    font-size: 1.2rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .project-links-overlay {
    gap: 0.5rem;
  }

  .project-link {
    width: 45px;
    height: 45px;
  }

  .project-link svg {
    width: 20px;
    height: 20px;
  }

  .tech-tags {
    gap: 0.5rem;
  }

  .tag {
    width: 25px;
    height: 25px;
  }

  /* Contact */
  .contact-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .contact-container {
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .btn-submit {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .contact-item {
    padding: 1.5rem;
    gap: 1rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .contact-detail h4 {
    font-size: 1rem;
  }

  .contact-detail p {
    font-size: 0.85rem;
  }

  /* Footer */
  footer {
    padding: 1.5rem;
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-dynamic-role {
    font-size: 1.5rem;
    min-height: 50px;
  }

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

  .about-text h3 {
    font-size: 1.3rem;
  }

  .skills-grid-modern {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }

  .skill-icon img,
  .skill-icon svg {
    width: 30px;
    height: 30px;
  }
}