/* ========================================================================== */
/* Responsive Design & Print Styles */
/* ========================================================================== */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .about-image {
    display: none;
  }

  .image-container {
    width: 300px;
    height: 300px;
  }

  .hero-name {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .about-content,
  .projects-grid,
  .skills-grid,
  .contact-content {
    gap: 2.5rem;
    padding: 1.5rem 0;
  }

  .contact-content {
  flex-direction: column !important;
  display: flex !important;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    transition: var(--transition-medium);
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    padding-top: 100px;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    justify-content: center;
  }

  .detail-row {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-stats {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .tech-list {
    justify-content: center;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-marker {
    left: -16px;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  .floating-element {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certification-card {
    padding: 1.5rem;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .expertise-item {
    padding: 1rem;
  }

  .expertise-category {
    margin-bottom: 2rem;
  }
}

@media print {

  .navbar,
  .scroll-top,
  .hero-social,
  .contact-form,
  .footer {
    display: none;
  }

  .hero,
  section {
    page-break-inside: avoid;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

}
