/* =======================================================
   GLOBAL
======================================================= */

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  background: rgb(250, 250, 250);
  color: #202020;
  font-family: 'Jost', sans-serif;
}

/* Uniwersalna cienka linia */
.animated-line {
  width: 48px;
  height: 1px;
  margin: 24px auto 0;
  background: rgba(0, 0, 0, 0.2);
}


/* =======================================================
   HERO SECTION
======================================================= */

.hero-section {
  position: relative;
  height: 100vh;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-section h1 {
  margin: 0;
  font-size: 60px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-line {
  width: 48px;
  height: 1px;
  margin: 12px auto 24px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1px;
}

.hero-section p {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #737373;
}

.hero-author {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #737373;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.hero-author:hover {
  opacity: 1;
}

/* --- Hero Animation --- */

.hero {
  opacity: 0;
  transform: translateY(40px);
}

.hero.visible {
  animation: heroFadeUp 1.2s ease forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =======================================================
   SCROLL INDICATOR
======================================================= */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  animation: scrollLineMove 1.8s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.4; }
}


/* =======================================================
   ACADEMY SECTION
======================================================= */

.academy-wrapper {
  padding: 140px 24px; /* consistent top/bottom spacing */
  background-color: white;
}

.academy-section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.academy-title {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.academy-tagline {
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.55;
}

.academy-intro {
  max-width: 720px;
  margin: 60px auto 0; /* consistent spacing */
}

.academy-intro p {
  margin-top: 22px;
  font-size: 17px;
  line-height: 2;
  opacity: 0.85;
}

/* --- Pillars --- */

.academy-pillars {
  margin-top: 100px; /* consistent spacing */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  text-align: center;
}

.pillar {
  padding: 0 20px;
}

.pillar h3 {
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.6;
}

.pillar h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 16px auto 0;
  background: rgba(0, 0, 0, 0.2);
}

.pillar p {
  max-width: 260px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.8;
}

/* --- Academy For --- */

.academy-for {
  max-width: 600px;
  margin: 120px auto 0; /* consistent spacing */
}

.academy-for h3 {
  margin-bottom: 36px; /* consistent spacing */
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.6;
}

.academy-for ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.academy-for li {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.9;
  opacity: 0.8;
}

.academy-cta {
  margin-top: 100px; /* consistent spacing */
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.95;
}


/* =======================================================
   PROGRAM SECTION
======================================================= */

.program-wrapper {
  padding: 140px 24px; /* same as academy-wrapper */
  background: linear-gradient(to bottom, rgb(250, 250, 250), #fafafa);
}

.program-header {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
}

.program-header h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.program-header p {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.7;
}

/* --- Modules --- */

.modules {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.module-card {
  position: relative;
  padding: 48px 40px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  overflow: hidden;

  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: box-shadow 0.3s ease, transform 0.4s ease, opacity 0.4s ease;
}

.module-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.module-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bg-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 96px;
  font-weight: 200;
  color: rgba(0, 0, 0, 0.05);
}

.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
}

.module-card h3 {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 500;
}

.hover-line {
  margin-top: 12px;
  width: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  transition: width 0.5s ease;
}

.module-card:hover .hover-line {
  width: 64px;
}

.module-card p {
  margin-top: 20px;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.7;
}


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

@media (max-width: 900px) {

  .academy-pillars {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .pillar p {
    max-width: 100%;
  }

  .academy-intro p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {

  /* Hero */
  .hero-section h1 {
    font-size: 36px;
    letter-spacing: 0.15em;
  }

  .hero-section p {
    font-size: 12px;
    letter-spacing: 0.25em;
    margin-top: 18px;
  }

  .scroll-indicator {
    bottom: 90px;
  }

  .scroll-line {
    height: 32px;
  }

  /* Academy section */
  .academy-wrapper {
    padding: 100px 20px; /* proportional spacing */
  }

  .academy-intro {
    margin-top: 50px; /* proportional */
  }

  .academy-pillars {
    margin-top: 80px; /* proportional */
  }

  .academy-for {
    margin-top: 100px; /* proportional */
  }

  .academy-for h3 {
    margin-bottom: 32px;
  }

  .academy-title {
    font-size: 18px;
    letter-spacing: 0.18em;
  }

  /* Program section */
  .program-wrapper {
    padding: 100px 20px; /* same as academy-wrapper */
  }
  
  .program-header h2 {
    font-size: 18px;
    letter-spacing: 0.18em;
  }

  .program-header p {
    font-size: 14px;
    line-height: 1.7;
  }

  .animated-line {
    width: 36px;
  }

  /* Modules */
  .modules {
    gap: 18px;
  }

  .module-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .bg-number {
    font-size: 56px;
    top: 18px;
    right: 18px;
  }

  .label {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .module-card h3 {
    font-size: 18px;
  }

  .module-card p {
    font-size: 14px;
    line-height: 1.7;
  }
}
