/* Responsive improvements */
@media (max-width: 900px) {
  .skills,
  .testimonials {
    flex-direction: column;
    align-items: center;
  }
  .timeline {
    padding-left: 1rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .timeline {
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
  }
  .timeline-dot {
    left: -1.1rem;
    width: 1rem;
    height: 1rem;
  }
  .about-content {
    gap: 1rem;
  }
  .personal-details {
    padding: 1rem;
  }
  .personal-details h3 {
    font-size: 1.2rem;
  }
  .detail-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .detail-item p {
    font-size: 0.9rem;
  }
  .skills h3 {
    font-size: 1.2rem;
  }
  .skill-cards {
    gap: 0.5rem;
  }
  .skill-card {
    min-width: 100px;
    max-width: 120px;
    padding: 0.75rem 0.5rem;
  }
  .skill-icon {
    font-size: 2rem;
  }
  .skill-title {
    font-size: 1rem;
  }
  main {
    padding: 0 0.5rem;
  }
  section h2 {
    font-size: 1.3rem;
  }
  .experience h3 {
    font-size: 1.2rem;
  }
  .timeline-item {
    margin-bottom: 2rem;
  }
  .timeline-title {
    font-size: 1.1rem;
  }
  .timeline-date {
    font-size: 0.8rem;
  }
  .timeline-desc {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .header-right {
    gap: 1rem;
  }
  .header-nav {
    gap: 1.5rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
  .main-header {
    padding: 1rem;
  }
  .profile-img-large {
    width: 200px;
    height: 200px;
  }
  .home-profile-info h1 {
    font-size: 1.8rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  main {
    padding: 0 1rem;
  }
  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }
  section h2 {
    font-size: 2rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .skill-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .skill-card {
    min-width: 120px;
    max-width: 140px;
    padding: 1rem 1rem;
  }
}

@media (max-width: 760px) {
  .header-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-brand h1 {
    font-size: 1.2rem;
  }
  .nav-link {
    font-size: 0.9rem;
  }
  .profile-img-large {
    width: 150px;
    height: 150px;
  }
  .home-profile-info h1 {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }
  .profile-bio-home {
    font-size: 0.85rem;
  }
  main {
    margin: 2rem auto;
    padding: 0 0.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  section h2 {
    font-size: 1.5rem;
  }
  .contact-wrapper {
    gap: 1rem;
  }
  .contact-intro h3 {
    font-size: 1.5rem;
  }
  .contact-intro p {
    font-size: 0.9rem;
  }
  .about-content {
    gap: 1rem;
  }
}

/* Mobile nav styles */
.header-nav.nav-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(79, 73, 73, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

body.beige-theme .header-nav.nav-open {
  background: rgba(232, 217, 195, 0.95);
}

.header-nav.nav-open .nav-link {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #fafafa;
  transition: all 0.3s ease;
}

body.beige-theme .header-nav.nav-open .nav-link {
  color: #5a5a5a;
  border-bottom-color: rgba(0, 0, 0, 0.2);
}

.header-nav.nav-open .nav-link:hover,
.header-nav.nav-open .nav-link.active {
  background: rgba(0, 0, 0, 0.05);
  color: #e5e1e1;
  border-bottom-color: #ff3f3f;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.beige-theme .header-nav.nav-open .nav-link:hover,
body.beige-theme .header-nav.nav-open .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #333;
  border-bottom-color: #8b6f47;
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-nav.nav-open .nav-link:last-child {
  border-bottom: none;
}
