/* ==========================================================================
   Rahul Kumar Purbey - Responsive Breakpoints & Mobile Stylesheet
   ========================================================================== */

/* Large Tablets & Small Laptops (Max 1024px) */
@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

/* Medium Tablets & Mobile Landscape (Max 768px) */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

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

  /* Navbar Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    padding: 3rem 2rem;
    transition: var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--glass-border);
  }

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

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  /* Hero Adjustments */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-badge, .hero-buttons, .hero-socials {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-typing-container {
    justify-content: center;
  }

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

  .hero-image-container {
    width: 260px;
    height: 260px;
  }

  .floating-tech-card {
    padding: 0.5rem 0.9rem;
  }

  .tech-card-1 {
    top: 0%;
    left: -10px;
  }

  .tech-card-2 {
    bottom: 0%;
    right: -10px;
  }

  /* Timeline Mobile Optimization */
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 3.5rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-start;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.9rem 0.5rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Skills & Certifications */
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

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

/* Small Mobile Devices (Max 480px) */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-typing-container {
    font-size: 1.15rem;
  }

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

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

  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .coursework-container {
    padding: 1.5rem 1rem;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
