/* ===================================
   RESPONSIVE BREAKPOINTS
   Mobile First Approach
   =================================== */

/* ===================================
   Base (< 576px) - Mobile phones
   =================================== */
.hero-name {
  font-size: 2.2rem;
}

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

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

.hero-canvas-wrapper {
  height: 280px;
  margin-top: 40px;
}

.terminal-lines {
  font-size: 0.68rem;
  line-height: 1.5;
}

.terminal-body {
  padding: 12px 14px;
}

.terminal-header {
  padding: 10px 14px;
}

.hero-stats {
  gap: 20px;
}

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

.section {
  padding: 60px 0;
}

.section-number {
  font-size: 5rem;
  top: -30px;
}

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

.section-header {
  margin-bottom: 40px;
}

.info-item {
  flex-direction: column;
  gap: 2px;
}

.info-item dt {
  min-width: auto;
}

.portfolio-item {
  width: 100%;
}

.portfolio-image {
  height: 200px;
}

.contact-form {
  margin-top: 20px;
}

.footer-socials {
  justify-content: center;
  margin-top: 12px;
}

.back-to-top {
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
}

/* ===================================
   Small devices (576px and up)
   =================================== */
@media (min-width: 576px) {
  .hero-name {
    font-size: 2.8rem;
  }

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

  .hero-canvas-wrapper {
    height: 320px;
  }

  .terminal-lines {
    font-size: 0.72rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .info-item {
    flex-direction: row;
    gap: 8px;
  }

  .info-item dt {
    min-width: 130px;
  }

  .portfolio-item {
    width: 50%;
  }

  .portfolio-image {
    height: 220px;
  }
}

/* ===================================
   Medium devices (768px and up)
   =================================== */
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-number {
    font-size: 6rem;
    top: -40px;
  }

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

  .section-header {
    margin-bottom: 50px;
  }

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

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

  .hero-canvas-wrapper {
    height: 380px;
  }

  .terminal-lines {
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .terminal-body {
    padding: 16px 20px;
  }

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

  .portfolio-image {
    height: 240px;
  }

  .footer-socials {
    justify-content: flex-end;
    margin-top: 0;
  }
}

/* ===================================
   Large devices (992px and up)
   =================================== */
@media (min-width: 992px) {
  .section {
    padding: var(--section-padding);
  }

  .section-number {
    font-size: 8rem;
    top: -60px;
  }

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

  .section-header {
    margin-bottom: 60px;
  }

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

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

  .hero-canvas-wrapper {
    height: 460px;
    margin-top: 0;
  }

  .terminal-lines {
    font-size: 0.82rem;
    line-height: 1.7;
  }

  .hero-stats {
    gap: 40px;
  }

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

  .portfolio-item {
    width: 33.333%;
  }

  .portfolio-image {
    height: 260px;
  }

  .nav-actions {
    display: flex;
  }

  .contact-form {
    margin-top: 0;
  }
}

/* ===================================
   Extra large devices (1200px and up)
   =================================== */
@media (min-width: 1200px) {
  .hero-name {
    font-size: 3.8rem;
  }

  .hero-canvas-wrapper {
    height: 500px;
  }
}

/* ===================================
   Inner page responsive
   =================================== */

/* Base mobile */
.page-header {
  padding: 120px 0 40px;
}

.page-header h1 {
  font-size: 1.8rem;
}

.service-detail-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
}

.service-detail-icon i {
  font-size: 2.5rem;
}

.service-detail h2 {
  font-size: 1.5rem;
}

.service-features {
  grid-template-columns: 1fr;
}

.post-featured-image {
  height: 200px;
}

.post-navigation {
  flex-direction: column;
}

.post-author-bio {
  flex-direction: column;
  text-align: center;
}

.cta-section {
  padding: 60px 0;
}

.cta-section h2 {
  font-size: 1.6rem;
}

@media (min-width: 576px) {
  .page-header h1 {
    font-size: 2.2rem;
  }

  .post-featured-image {
    height: 250px;
  }

  .post-author-bio {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .page-header {
    padding: 140px 0 60px;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .service-detail-icon {
    width: 130px;
    height: 130px;
  }

  .service-detail-icon i {
    font-size: 3.5rem;
  }

  .service-features {
    grid-template-columns: 1fr 1fr;
  }

  .post-featured-image {
    height: 300px;
  }

  .post-navigation {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .page-header h1 {
    font-size: 2.8rem;
  }

  .service-detail-icon {
    width: 160px;
    height: 160px;
    margin-bottom: 0;
  }

  .service-detail-icon i {
    font-size: 4rem;
  }

  .service-detail h2 {
    font-size: 2rem;
  }

  .post-featured-image {
    height: 350px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-section h2 {
    font-size: 2.2rem;
  }
}

/* ===================================
   Mobile landscape fix
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section .row {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .scroll-indicator {
    display: none;
  }
}
