/* --- Global Resets --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-green: #122620;
  --brand-white: #ffffff;
  --brand-cream: #f9f7f2;
  --text-dark: #2d2d2d;
  --text-light: #666666;
  --header-blur: rgba(255, 255, 255, 0.05);
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--brand-white);
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- Hero Section --- */
.hero-section {
  background-color: var(--brand-green);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 200px;

  /* Full-bleed background photo */
  background-image: url("images/METANOIHER_screenshot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Deep green overlay — sits between the photo and the content.
   Tweak the last value (0.82) to make the image more or less visible. */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 38, 32, 0.82);
  z-index: 0;
}

/* All direct children sit above the overlay */
.hero-section > * {
  position: relative;
  z-index: 1;
}

header {
  position: absolute;
  top: 40px;
  z-index: 100;
  width: 90%;
  max-width: 800px;
  background: var(--header-blur);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 20px 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.head-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: opacity 0.3s ease;
}

.head-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.head-link:hover::after {
  width: 100%;
}

.hero-content {
  margin-top: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

#logo-img {
  height: 140px;
  margin-bottom: 36px;
  /* Fix dark square: mix-blend-mode makes the logo blend into the background */
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* The old floating image card — no longer used */
#hero-img-container {
  display: none;
}

.hero-tagline {
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  color: var(--brand-white);
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 700px;
}

.hero-subtext {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 48px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta-primary {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--brand-white);
  color: var(--brand-green);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-cta-secondary {
  display: inline-block;
  padding: 16px 40px;
  background-color: transparent;
  color: var(--brand-white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.hero-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

/* --- About Section (The Overlap) --- */
.about {
  position: relative;
  z-index: 10;
  margin-top: -140px;
  background-color: var(--brand-white);
  border-radius: 80px 80px 0 0;
  padding: 120px 0;
}

.about-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.sub-headline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-green);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 3.2rem;
  color: var(--brand-green);
  line-height: 1.1;
  margin-bottom: 30px;
}

.about-description {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--brand-green);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(18, 38, 32, 0.2);
}

.secondary-img-wrapper {
  width: 100%;
  height: 550px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.about-secondary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 2.6rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 12px;
  }
}
