/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
  }

  .timeline-dot {
    left: 21px !important;
  }

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

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

/* Mobile devices (768px) */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    border-right: 1px solid var(--glass-border);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

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

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

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

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

  .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 1.5rem;
  }

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

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    padding-left: 60px;
    padding: 1.5rem;
    padding-left: 60px;
  }

  .timeline-dot {
    left: 11px !important;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

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

  .glass-card {
    padding: 1.5rem;
  }

  .about-text .glass-card {
    padding: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem;
  }

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

  .project-content {
    padding: 1rem;
  }

  .timeline-item {
    padding: 1.5rem;
    padding-left: 60px;
  }

  .timeline-item h3 {
    font-size: 1.3rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .stat-item h4 {
    font-size: 2rem;
  }
}

/* Extra small devices (360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 2rem;
  }

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

  .nav-container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* Landscape mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 6rem 2rem 3rem;
  }

  .hero-scroll {
    display: none;
  }

  .nav-menu {
    overflow-y: auto;
  }
}

/* High resolution displays */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }

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

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

/* Print styles */
@media print {
  .navbar,
  .hamburger,
  .theme-toggle,
  .hero-buttons,
  .contact-form,
  .background-3d {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    border: 1px solid #ddd;
    background: white;
  }
}