/* ========== Base Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== Page Base ========== */
body {
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

/* Prevent page scroll behind modal on mobile + desktop */
body.modal-open{
  overflow: hidden;
  touch-action: none;
}

/* ========== Minimal Header ========== */
.minimal-header {
  position: relative;
  height: 80px;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== Main Layout ========== */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}

.container {
  text-align: center;
  max-width: 800px;
}

/* Gamer Style Title - Minimalist */
.gamer-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 60px;
  color: #ffffff;
}

.titles {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

.title-item {
  margin: 20px 0;
  opacity: 0.9;
}

/* ========== Responsive Base ========== */
@media (max-width: 768px) {
  .minimal-header {
    height: 60px;
  }

  main {
    min-height: calc(100vh - 60px);
  }

  .gamer-title {
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 40px;
  }

  .titles {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .gamer-title {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .titles {
    font-size: 18px;
  }
}

/* ========== Hire Button (Top Right) ========== */
.hire-badge{
  position: absolute;
  top: 22px;
  right: 22px;

  padding: 10px 14px;
  border-radius: 999px;

  color: #ffffff;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;

  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);

  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  cursor: pointer;

  animation: hirePulse 1.6s ease-in-out infinite;
}

.hire-badge:hover{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

@keyframes hirePulse{
  0%,100% { opacity: 0.75; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
  50%     { opacity: 1;    box-shadow: 0 0 22px rgba(255,255,255,0.18), 0 10px 30px rgba(0,0,0,0.45); }
}

/* ========== Blur Background When Modal Opens ========== */
body.modal-open main,
body.modal-open header{
  filter: blur(10px);
  transform: scale(0.995);
  transition: filter 180ms ease, transform 180ms ease;
}

/* ========== Hard Guarantee: hidden means hidden ========== */
#hireOverlay[hidden],
#hireModal[hidden]{
  display: none !important;
}

/* ========== Modal Overlay ========== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  z-index: 999;
}

/* ========== Modal Wrapper ========== */
.hire-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 18px;
}

/* ========== Linux Window Style ========== */
.hire-window{
  width: min(720px, 92vw);
  max-height: calc(100vh - 48px);

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);

  background: rgba(10,10,14,0.86);
  backdrop-filter: blur(14px);

  box-shadow: 0 25px 90px rgba(0,0,0,0.75);
  overflow: hidden;

  animation: popIn 180ms ease;
}

@keyframes popIn{
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.hire-window-bar{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.hire-dots{ display:flex; gap: 8px; }
.dot{ width: 10px; height: 10px; border-radius: 50%; opacity: 0.9; }
.dot.red{ background: #ff5f57; }
.dot.yellow{ background: #febc2e; }
.dot.green{ background: #28c840; }

.hire-window-title{
  flex: 1;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hire-close{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: white;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.hire-close:hover{ background: rgba(255,255,255,0.10); }

/* Scrollable body if needed */
.hire-window-body{
  padding: 18px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========== Cards Grid ========== */
.hire-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Base card */
.hire-card{
  display: block;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  overflow: hidden;
}

.hire-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}

/* Image logo cards */
.image-card{
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.image-card:hover img{
  transform: scale(1.05);
  filter: brightness(1.15);
}

/* ========== Responsive Modal / Cards ========== */
@media (max-width: 720px){
  .hire-grid{ grid-template-columns: 1fr; }
  .hire-badge{ top: 16px; right: 16px; }
}

/* Make cards smaller on mobile */
@media (max-width: 480px){
  .hire-window{
    width: min(420px, 92vw);
    border-radius: 14px;
  }

  .hire-window-bar{
    padding: 10px 12px;
  }

  .hire-window-body{
    padding: 12px;
  }

  /* Smaller image-button height on mobile */
  .image-card{
    aspect-ratio: 16 / 6;
    border-radius: 12px;
  }

  .hire-card{
    border-radius: 12px;
  }
}
