/* ============================================
   responsive.css — Mobile-First Breakpoints
   ============================================ */

/* ========================
   BASE (MOBILE) — < 640px
   ======================== */

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

.hamburger {
  display: flex;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 15, 28, 0.95);
  z-index: 999;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-links.active a {
  font-size: 20px;
}

/* Hero */
.hero-content {
  padding: 0 24px;
}

.hero-name {
  font-size: 2.5rem;
}

/* About */
.about-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.about-photo-wrapper {
  margin: 0 auto;
}

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

/* Timeline */
.timeline::before {
  left: 0;
}

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

.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
  left: 0 !important;
  text-align: left !important;
}

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

.timeline-item:nth-child(odd) .timeline-card ul li {
  padding-left: 16px;
  padding-right: 0;
}

.timeline-item:nth-child(odd) .timeline-card ul li::before {
  left: 0;
  right: auto;
}

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

/* Skills */
.skills-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

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

/* Contact */
.contact-grid {
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Education */
.edu-grid {
  grid-template-columns: 1fr;
}

/* Footer */
.footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.footer-brand p {
  max-width: none;
}

/* Section spacing */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
}

/* Hero typed text */
.hero-typed {
  font-size: 20px;
}

.hero-tagline {
  font-size: 16px;
}

/* Certifications */
.cert-grid {
  grid-template-columns: 1fr;
}


/* ========================
   SMALL TABLETS — >= 640px
   ======================== */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-typed {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }
}


/* ========================
   TABLETS — >= 768px
   ======================== */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 350px 1fr;
    text-align: left;
  }

  .about-photo-wrapper {
    margin: 0;
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .hero-typed {
    font-size: 28px;
  }

  .hero-tagline {
    font-size: 18px;
  }
}


/* ========================
   DESKTOP — >= 1024px
   ======================== */
@media (min-width: 1024px) {
  /* Navbar desktop layout */
  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .nav-links.active {
    position: static;
    flex-direction: row;
    background-color: transparent;
    gap: 32px;
  }

  .nav-links.active a {
    font-size: 14px;
  }

  /* Projects 3 columns */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Timeline alternating layout */
  .timeline::before {
    left: 50%;
  }

  .timeline-item {
    width: 50%;
    padding: 0 40px;
  }

  .timeline-item:nth-child(odd) {
    left: 0 !important;
    text-align: right !important;
  }

  .timeline-item:nth-child(even) {
    left: 50% !important;
    text-align: left !important;
  }

  .timeline-item:nth-child(odd) .timeline-dot {
    right: -7px !important;
    left: auto !important;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -7px !important;
    right: auto !important;
  }

  .timeline-item:nth-child(odd) .timeline-card ul li {
    padding-left: 0;
    padding-right: 16px;
  }

  .timeline-item:nth-child(odd) .timeline-card ul li::before {
    left: auto;
    right: 0;
  }

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

  /* Hero content */
  .hero-content {
    padding: 0 120px;
  }

  /* Full section padding */
  .section {
    padding: 100px 0;
  }

  .section-title {
    font-size: 40px;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    text-align: left;
  }

  .footer-brand p {
    max-width: 300px;
  }
}


/* ========================
   LARGE DESKTOP — >= 1280px
   ======================== */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }

  .hero-content {
    max-width: 800px;
  }
}
