
:root {
  --bg: #0b0f14;
  --card: #12171f;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --brand: #38bdf8; 
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
}

/* Technologies section */
.tech-section {
  background: #050505;
  padding: 80px 0;
}

.tech-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.tech-kicker {
  letter-spacing: 0.16em;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
}

.tech-title {
  font-weight: 800;
  font-size: clamp(2.25rem, 2vw + 1.5rem, 3.5rem);
  color: #ffffff;
}

.tech-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  justify-items: center;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px;
}

.tech-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.tech-label {
  font-weight: 600;
  color: #f8fafc;
}

.tech-icon-invert {
  filter: invert(1);
}

/* Project cards */
.project-card {
  min-height: 320px;
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
/* Focus outlines for accessibility */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
/* Simple container constraint when tailwind isn't available */
.container {
  max-width: 1100px;
  margin-inline: auto;
}
/* Helper class for glassy cards */
.glass {
  background: rgba(18, 23, 31, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* Code block overflow */
pre {
  white-space: pre-wrap;
}
/* Hide element visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.25rem !important;
  }

  .container {
    padding: 0 1rem;
  }

  /* Hide desktop nav on mobile */
  nav:not([aria-label="Mobile"]) {
    display: none !important;
  }

  /* Show mobile menu button */
  #menu-btn {
    display: inline-flex !important;
  }

  /* Mobile grid adjustments */
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .grid-cols-6 {
    grid-template-columns: 1fr !important;
  }

  /* Adjust gaps on mobile */
  .gap-6 {
    gap: 1rem !important;
  }

  .gap-10 {
    gap: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.125rem !important;
  }

  /* Full width buttons on mobile */
  .btn {
    width: 100%;
  }

  /* Stack flex items */
  .flex-row {
    flex-direction: column !important;
  }

  /* Padding adjustments */
  .px-4 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* TABLET & LANDSCAPE */
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* LARGE SCREENS */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
  }
}
