*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #fff;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Hero — full viewport with background image */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/DSC3273.jpg") center/cover no-repeat fixed;
  background-color: #0a0a0a; /* fallback while image loads */
}

/* Dark gradient overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

/* Content sits above overlay */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 600px;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

/* Card grid */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Glass-morphism cards */
.card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover,
.card:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.card svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Disable parallax on mobile (performance) */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
  }
}

/* Wider screens: horizontal card layout */
@media (min-width: 640px) {
  .links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    flex: 0 1 auto;
  }
}
