/* index.css - mobile-first, hacker-teal, frosted-glass theme with maroon stripes */

/* Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #eaffff;
  background-color: #1a0b0b;
  /* maroon striped background pattern */
  background-image: repeating-linear-gradient(135deg,
    rgba(122, 0, 0, 0.25) 0px,
    rgba(122, 0, 0, 0.25) 12px,
    rgba(0,0,0,0) 12px,
    rgba(0,0,0,0) 24px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Layout container styles (semantic sections in HTML) */
header { min-height: 60px; }

/* HERO GRID (mobile-first) */
.main, main { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "media"
    "title"
    "subhead"
    "cta";
  justify-items: center;
  align-items: center;
  text-align: center;
  gap: 1.3rem;
  padding: 2.25rem 1rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  /* Frosted glass card vibe for the textual content (applied to text blocks) */
  /* The glass panels help readability over the patterned background */
}
.hero-media { grid-area: media; display: flex; justify-content: center; width: 100%; }
.hero-media img {
  width: min(90%, 520px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.28);
  display: block;
}
.hero-grid > h1,
.hero-grid > .subhead,
.hero-grid > .cta {
  /* frosted glass effect on each textual element for readability over stripes */
  background: rgba(12, 20, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}
.hero-grid > h1 { grid-area: title; font-size: clamp(2rem, 4vw + 1rem, 3.75rem); line-height: 1.05; margin: 0; letter-spacing: .5px; }
.subhead { grid-area: subhead; font-size: clamp(1rem, 2vw + .8rem, 1.25rem); color: #d9fffb; opacity: 0.95; margin: 0; }
.cta { grid-area: cta; display: inline-block; padding: 0.95rem 1.75rem; font-size: 1.15rem; font-weight: 800; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #2ffbd6 0%, #0ec6b4 60%, #0b9a8a 100%);
  border-radius: 999px; border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:focus-visible { outline: 3px solid #2ee5bf; outline-offset: 2px; }

/* CTA focus and hover */
.cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0,0,0,.32); }

/* Accessibility tweaks for light/dark contrast in text on glass */
h1 { color: #eaffff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* Footer advertisement and note */
footer {
  padding: 1rem;
  text-align: center;
  color: #d7f7f2;
}
.footer-ad {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-ad a { color: #e6fffe; text-decoration: none; font-weight: 700; }
.footer-ad a:hover { text-decoration: underline; }

/* Desktop/tablet layout: image left, text right; CTA remains prominent */
@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas: "media title" "media subhead" "media cta";
    text-align: left;
    gap: 2rem;
    padding: 3rem 2rem;
    align-items: center;
  }
  .hero-media { justify-content: flex-end; padding-right: 1rem; }
  h1 { font-size: clamp(2.75rem, 1.2rem + 4vw, 4.25rem); }
  .subhead { font-size: 1.25rem; }
  .cta { justify-self: start; }
}

/* Extra-large screens: lock image size to maintain prominence */
@media (min-width: 1100px) {
  .hero-media img { width: 520px; }
} 

/* Purely aesthetic: ensure no accidental overflow on small devices */
@media (max-width: 420px) {
  .cta { width: max-content; padding: .95rem 1.4rem; }
  .hero-grid { padding: 1.75rem 1rem 2.25rem; }
}