/* Reset / base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050509;
  color: #f5f5f5;
  overflow-x: hidden; /* stop sideways scrolling */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-text {
  max-width: 520px;
}

.hero-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a8a3c0;
  margin-bottom: 6px;
}

.hero-text h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-text p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: #d7d3e0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.btn {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #f4dfaa, #f0c978);
  color: #181218;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.9);
}

.btn.subtle {
  border-color: #2a2938;
  background: #0d0c14;
}

.btn.subtle:hover {
  border-color: #403f54;
  background: #141322;
}

.hero-note {
  font-size: 0.82rem;
  color: #9f9ab5;
}

.hero-media {
  max-width: 460px;
  justify-self: flex-end;
}

.hero-media img {
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
  object-fit: cover;
  max-height: 340px;
  width: 100%;
}

/* PORTALS */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 22px;
  justify-content: center;
  justify-items: center;
}


.portal-card {
  background: #0b0b13;
  border-radius: 18px;
  border: 1px solid #222336;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.portal-card img {
  width: 100%;
  height: 160px; /* keeps these smaller */
  object-fit: cover;
}

.portal-body {
  padding: 12px 14px 14px;
}

.portal-body h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}

.portal-body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #c7c3d5;
}

.link {
  font-size: 0.85rem;
  color: #f0c978;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    justify-self: center;
    max-width: 100%;
    order: -1; /* image on top on mobile */
  }

  .hero-text h1 {
    font-size: 1.7rem;
  }
}
/* HOME ABOUT ME */

.home-about {
  margin-top: 32px;
}

.home-about-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #0b0b13;
  border-radius: 18px;
  border: 1px solid #222336;
  padding: 14px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.home-about-photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #f0c978;
}

.home-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about-text h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.home-about-text p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #cbc6d8;
}

.home-about-text a {
  font-size: 0.85rem;
  color: #f0c978;
  text-decoration: none;
}

.home-about-text a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .home-about-inner {
    align-items: flex-start;
  }
}
