/* =============================================
   IRONLUNN — style.css
   Dark cinematic single-page bodybuilding site
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

/* === DESIGN TOKENS === */
:root {
  --bg:           #0a0a0a;
  --surface:      #1a1a1a;
  --accent:       #c0392b;
  --accent-dark:  #a93226;
  --text-primary: #f0f0f0;
  --text-muted:   #888888;
  --border:       #2a2a2a;
}

/* === TYPOGRAPHY === */
h1, h2, h3, .nav-logo, .section-label, .card-title {
  font-family: 'Bebas Neue', cursive;
  letter-spacing: 0.05em;
}
p { color: var(--text-primary); font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === SHARED COMPONENTS === */
.section-label {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  font-family: 'Bebas Neue', cursive;
}
.section-heading {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}
/* Journey, Program, Contact headings per spec */
#journey .section-heading,
#program .section-heading,
#contact .section-heading { font-size: 4rem; }

.section-heading.centered { text-align: center; }
.red-line {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0.5rem auto 3rem;
}
.section-header { text-align: center; }
section { padding: 6rem 2rem; }

/* === SCROLL REVEAL === */
section, .card, .gallery-item, .stats-row {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
section.visible, .card.visible, .gallery-item.visible, .stats-row.visible {
  opacity: 1;
  transform: none;
}

/* === BUTTON === */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  letter-spacing: 0.12em;
  padding: 1rem 2.5rem;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: scale(1.03);
}

/* === SOCIAL LINKS === */
.social-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.social-icon {
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.social-icon:hover { opacity: 1; }


/* ===================================================
   NAVIGATION
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: transparent;
  transition: background 0.3s ease;
}
#navbar.scrolled { background: #0f0f0f; }

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: 'Bebas Neue', cursive;
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay ul { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.mobile-overlay a {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}
.mobile-overlay a:hover { color: var(--accent); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}


/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('images/Martin1.png') center top / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  padding: 0 2rem;
}
.hero-title {
  font-size: 12rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-weight: 300;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.hero-socials { margin-top: 0.5rem; justify-content: center; }

/* Scroll chevron */
.scroll-chevron {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.5rem;
  color: var(--text-muted);
  animation: bounce 1s ease-in-out infinite;
  transition: opacity 0.4s ease;
  user-select: none;
}
.scroll-chevron.hidden { opacity: 0; pointer-events: none; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ===================================================
   ABOUT
   =================================================== */
#about { background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.about-image-wrap {
  border-left: 4px solid var(--accent);
  overflow: hidden;
  height: 600px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-text { padding-top: 1rem; }
.about-text p { color: var(--text-muted); }

/* Stats */
.stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
  font-family: 'Bebas Neue', cursive;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}
.stat-suffix { font-size: 2rem; }
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-family: 'Bebas Neue', cursive;
}


/* ===================================================
   GALLERY / JOURNEY
   =================================================== */
#journey { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.overlay-date {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.overlay-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem;
}


/* ===================================================
   PROGRAM
   =================================================== */
#program {
  background: var(--surface);
  position: relative;
}
#program::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC43NScgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
#program > * { position: relative; z-index: 1; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: #0f0f0f;
  border-top: 4px solid var(--accent);
  padding: 2rem;
}
.card-icon { margin-bottom: 1rem; }
.card-title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.card-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Program CTA strip */
.program-cta {
  background: var(--accent);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}
.cta-text {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 0.05em;
}


/* ===================================================
   CONTACT / FOOTER
   =================================================== */
#contact {
  background: var(--bg);
  text-align: center;
}
#contact .section-heading {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.contact-socials {
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.social-icon.large { opacity: 0.75; }
.contact-email {
  display: inline-block;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 3rem;
  transition: color 0.2s ease;
}
.contact-email:hover { color: var(--accent); }
.contact-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}


/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

/* Tablet: 768px – 1024px */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-title { font-size: 5rem; }
  .hero-tagline { font-size: 1rem; letter-spacing: 0.1em; }
  .btn-primary { font-size: 0.9rem; padding: 0.85rem 2rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image-wrap { height: 350px; }
  .section-heading { font-size: 2.5rem; }
  #journey .section-heading,
  #program .section-heading,
  #contact .section-heading { font-size: 2.8rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Stats */
  .stats-row { gap: 1rem; }
  .stat-value { font-size: 2rem; }
  .stat-suffix { font-size: 1.4rem; }

  /* Program CTA */
  .cta-text { font-size: 1.3rem; }
}
