#home {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 750px) {
  #home {
    padding: 0;
    isolation: isolate;
    flex-direction: column;
    align-items: start;
    justify-content: flex-end;
  }

  aside {
    padding-left: 2rem !important;
    margin-bottom: 8vh;
  }

  h1 {
    font-size: 11vw !important;
  }

  h2 {
    font-size: 7vw !important;
  }

  .home-greeting {
    font-size: 3.5vw !important;
  }

  .home-tagline {
    font-size: 3.8vw !important;
    max-width: 85vw;
  }

  .home-stack {
    font-size: 3.2vw !important;
  }

  .home-impact {
    font-size: 3vw !important;
  }

  .home-typing {
    font-size: 3.2vw !important;
  }

  .cta-primary,
  .cta-secondary {
    font-size: 3.8vw !important;
  }

  .home-available {
    font-size: 3vw !important;
  }

  .image-container {
    position: absolute;
    height: 100vh;
    height: 100dvh;
    z-index: -1;
    width: 100vw;
  }

  .image-container > .spacer {
    min-width: 0 !important;
  }

  .image-container::before {
    background-image: linear-gradient(0deg, #101010 0%, rgba(16, 16, 16, 0) 100%) !important;
  }
}

aside {
  display: flex;
  flex-direction: column;
  overflow: visible;
  align-items: start;
  justify-content: center;
  margin-top: -10%;
  padding-left: 7rem;
}

h1 {
  font-size: 7vw;
  margin-top: 0.25rem;
  font-weight: 800;
  white-space: nowrap;
}

h2 {
  font-size: 2.9vw;
  font-weight: 700;
}

/* ── Greeting ── */
.home-greeting {
  font-size: 1rem;
  color: #888;
  font-weight: 400;
  margin: 0;
}

/* ── Tagline ── */
.home-tagline {
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  color: #ccc;
  line-height: 1.6;
  margin-top: 0.5rem;
  font-weight: 400;
  max-width: 420px;
}

/* ── Tech stack ── */
.home-stack {
  font-size: clamp(0.75rem, 0.9vw, 0.9rem);
  color: #EB4468;
  font-weight: 700;
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
}

/* ── Impact line ── */
.home-impact {
  font-size: clamp(0.7rem, 0.8vw, 0.82rem);
  color: #666;
  margin-top: 0.4rem;
  font-style: italic;
  font-weight: 400;
}

/* ── Typing effect ── */
.home-typing {
  margin-top: 1.25rem;
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  color: #aaa;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.typing-prefix {
  color: #777;
  font-size: inherit;
}

.typing-word {
  color: #EB4468;
  font-weight: 700;
  font-size: inherit;
  min-width: 1ch;
}

.typing-cursor-blink {
  color: #EB4468;
  font-size: inherit;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── CTA buttons ── */
.home-ctas {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55em 1.5em;
  border-radius: 0.5em;
  font-weight: 600;
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.cta-primary:hover,
.cta-secondary:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.cta-primary {
  background-color: #EB4468;
  color: #fff;
  border: 2px solid #EB4468;
}

.cta-secondary {
  background-color: transparent;
  color: #e0e0e0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

/* ── Availability indicator ── */
.home-available {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: clamp(0.7rem, 0.8vw, 0.8rem);
  color: #888;
  font-weight: 400;
}

.available-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px #4ade80; }
  50%       { box-shadow: 0 0 12px #4ade80, 0 0 22px rgba(74, 222, 128, 0.4); }
}

a.curriculum {
  display: flex;
  align-items: center;
  padding: .2rem 1rem;
  margin-top: 3rem;
  border-radius: .5rem;
  background-color: #EB4468;
  border: none;
  outline: none;
  width: fit-content;
  text-decoration: none;
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: linear-gradient(90deg, #101010 40%, rgba(16, 16, 16, 0) 100%);
}

@media (min-width: 1200px) {
  .image-container::before {
    background-image: linear-gradient(90deg, #101010 calc(100% - 80vh), rgba(16, 16, 16, 0) 100%);
  }
}

.image-container {
  position: absolute;
  display: flex;
  justify-content: flex-end;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  width: 100vw;
}

.image-container .spacer {
  min-width: 40vw;
  height: 100%;
}

.image-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

img.banner-image {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* ── Tech stack row & button ── */
.home-stack-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.home-stack-row .home-stack {
  margin: 0;
}

.home-stack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1.5px solid #EB4468;
  background: transparent;
  color: #EB4468;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  flex-shrink: 0;
}

.home-stack-btn:hover {
  background: #EB4468;
  color: #fff;
  transform: scale(1.12);
}

/* ── Tech Stack modal ── */
#tech-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#tech-modal.open {
  opacity: 1;
  pointer-events: all;
}

.tech-modal-card {
  position: relative;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: .75rem;
  width: min(88vw, 520px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.5rem 2rem 3rem;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 220ms ease;
}

#tech-modal.open .tech-modal-card {
  transform: scale(1) translateY(0);
}

.tech-modal-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3.2rem;
  bottom: 2rem;
  width: 3px;
  background: #EB4468;
  border-radius: 0 2px 2px 0;
}

.tech-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.tech-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  padding-right: .5rem;
}

.tech-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #EB4468;
  flex-shrink: 0;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28em 0.75em;
  border-radius: 999px;
  border: 1px solid #353535;
  background: transparent;
  color: #aaa;
  font-size: 0.78rem;
  font-weight: 500;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.tech-chip:hover {
  border-color: #EB4468;
  background: rgba(235, 68, 104, 0.1);
  color: #fff;
}

@media (max-width: 750px) {
  #tech-modal {
    align-items: flex-end;
  }

  .tech-modal-card {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    padding: 2rem 1.25rem 1.5rem 1.75rem;
    transform: translateY(16px);
  }

  #tech-modal.open .tech-modal-card {
    transform: translateY(0);
  }

  .tech-modal-card::before {
    display: none;
  }

  .tech-modal-card .card-topbar {
    margin: -2rem -1.25rem .75rem -1.75rem;
  }

  .home-stack-btn {
    width: 1.2rem;
    height: 1.2rem;
    font-size: 0.8rem;
  }
}