/* Responsive styles for the portfolio site */

/* Mobile-first approach */
body {
  font-size: 16px;
  line-height: 1.5;
}

/* Typography responsive adjustments */
h1 {
  font-size: 1.875rem; /* 30px */
}

h2 {
  font-size: 1.5rem; /* 24px */
}

h3 {
  font-size: 1.25rem; /* 20px */
}

/* Mobile optimizations */
.is-mobile .animate-complex {
  animation: none !important;
}

.is-mobile .stagger-item {
  opacity: 1 !important;
  transform: none !important;
}

.is-mobile .hover-card {
  transition: none;
}

/* Optimize images for mobile */
img {
  max-width: 100%;
  height: auto;
}

/* GitHub activity mobile fix */
@media (max-width: 767px) {
  #github-activity-container {
    display: block !important;
    max-height: 400px !important;
    overflow-y: auto !important;
  }
  
  /* Fix month labels spacing in contribution chart */
  #github-contributions .months-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.7rem;
  }
  
  #github-contributions .months-labels .month-label {
    flex: 0 0 auto;
    width: calc(100% / 12) !important;
    text-align: center;
    padding: 0 !important;
    overflow: hidden;
    white-space: nowrap;
  }
}

/* Simplified animations for mobile */
.animate-simple {
  animation-duration: 0.3s;
  animation-timing-function: ease-out;
}

/* Responsive space adjustments */
.is-mobile .py-8 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.is-mobile .px-6 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Tablet and up */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2.25rem; /* 36px */
  }
  
  h2 {
    font-size: 1.75rem; /* 28px */
  }
  
  h3 {
    font-size: 1.5rem; /* 24px */
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2.5rem; /* 40px */
  }
  
  h2 {
    font-size: 2rem; /* 32px */
  }
  
  h3 {
    font-size: 1.5rem; /* 24px */
  }
  
  .container {
    max-width: 1280px;
  }
}

/* Optimize for print */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  nav, footer, button, .no-print {
    display: none !important;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}
