
/* =========================================================
   SABRE DE PLEIADES
   HOME PAGE CSS
========================================================= */

/* =========================================================
   ROOT
========================================================= */

:root {
  --midnight: #04081b;
  --deep-blue: #070d27;
  --cosmic-blue: #0b1437;

  --gold: #d7b45a;
  --gold-light: #f0d78a;

  --white: #f5f3ed;
  --soft-white: #d9d9d5;

  --muted: #9da5bb;

  --border: rgba(215, 180, 90, 0.22);
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* =========================================================
   BUTTONS
========================================================= */

.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 26px;
  background: var(--gold);
  color: #050a20;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.gold-button:hover {
  color: #050a20;
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(215, 180, 90, 0.18);
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 14px 25px;
  border: 1px solid rgba(240, 215, 138, 0.45);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: 0.35s ease;
}

.outline-button:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 4px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  position: relative;
  min-height: 100vh;
  height: 900px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(3, 7, 24, 0.55),
    rgba(3, 7, 24, 0.25) 45%,
    rgba(3, 7, 24, 0.92)
  );
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.45;

  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    radial-gradient(circle, rgba(215, 180, 90, 0.7) 1px, transparent 1px);

  background-size:
    130px 130px,
    210px 210px;

  background-position:
    20px 10px,
    70px 90px;

  animation: starsMove 35s linear infinite;
}

@keyframes starsMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-130px);
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(850px, 90%);
  text-align: center;
  margin-top: 40px;
}

.hero-logo {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  animation: logoFloat 5s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  transform: scale(2);
  transform-origin: center center;
  filter: drop-shadow(0 0 22px rgba(215, 180, 90, 0.35));
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-eyebrow {
  color: var(--gold-light);
  font-size: 0.67rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: 2px;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.55);
}

.hero-title span {
  display: block;
  color: var(--gold-light);
}

.hero-description {
  max-width: 650px;
  margin: 25px auto 35px;
  color: #d4d6de;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.scroll-indicator {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.58rem;
  letter-spacing: 3px;
}

.scroll-indicator i {
  color: var(--gold);
  animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(7px);
    opacity: 1;
  }
}

/* =========================================================
   HERO POSITIONING
========================================================= */

.hero-logo,
.hero-divider,
.hero-eyebrow,
.hero-title,
.hero-description,
.hero-buttons {
  position: relative;
  top: -50px;
}

/* =========================================================
   INTRODUCTION
========================================================= */

.intro-section {
  position: relative;
  padding: 150px 0;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 10% 50%,
      rgba(33, 58, 135, 0.2),
      transparent 35%
    ),
    var(--midnight);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.intro-heading h2 {
  margin-top: 20px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.2;
}

.intro-heading h2 span {
  display: block;
  color: var(--gold-light);
}

.intro-content {
  padding-left: 50px;
  border-left: 1px solid var(--border);
}

.intro-content .intro-lead {
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.55;
  text-align: justify;
  text-indent: 40px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.text-link span {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.text-link:hover {
  color: var(--gold-light);
}

.text-link:hover span {
  background: var(--gold);
  color: var(--midnight);
  transform: translateX(5px);
}

.cosmic-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
}

.glow-one {
  left: -220px;
  top: 100px;
  background: #425dcc;
}

.glow-two {
  right: -220px;
  bottom: 30px;
  background: var(--gold);
}

/* =========================================================
   AUTHOR
========================================================= */

.author-section {
  padding: 150px 0;
  background: #04081b;
}

.author-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.author-image-wrapper {
  position: relative;
  width: min(420px, 100%);
  margin: auto;
}

.author-image {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.author-frame {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 18px;
  left: 18px;
  border: 1px solid var(--gold);
  opacity: 0.45;
}

.author-content h2 {
  margin-top: 20px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
}

.author-content h2 span {
  display: block;
  color: var(--gold-light);
}

.author-lead {
  margin-top: 20px;
  color: var(--gold-light) !important;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem !important;
}

.author-content > p {
  max-width: 600px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.9;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
  text-align: center;

  background:
    radial-gradient(
      circle at center,
      rgba(27, 48, 115, 0.4),
      transparent 60%
    ),
    var(--midnight);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: auto;
}

.cta-content .section-label {
  justify-content: center;
}

.cta-content h2 {
  margin-top: 20px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1.18;
}

.cta-content h2 span {
  display: block;
  color: var(--gold-light);
}

.cta-content > p {
  margin: 22px 0 35px;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.reveal {
  transform: translateY(50px);
}

.reveal-left {
  transform: translateX(-70px);
}

.reveal-right {
  transform: translateX(70px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* =========================================================
   HERO ANIMATION
========================================================= */

.hero-reveal {
  opacity: 0;
  transform: translateY(35px);
  animation: heroAppear 1s ease forwards;
}

.hero-reveal:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-reveal:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-reveal:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-reveal:nth-child(4) {
  animation-delay: 0.8s;
}

.hero-reveal:nth-child(5) {
  animation-delay: 1s;
}

@keyframes heroAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
  .intro-grid,
  .author-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .intro-content {
    padding-left: 0;
    padding-top: 35px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .author-content {
    text-align: center;
  }

  .author-content .section-label {
    justify-content: center;
  }

  .author-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .author-image-wrapper {
    max-width: 380px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    min-height: 780px;
    height: 100vh;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-eyebrow {
    font-size: 0.55rem;
    letter-spacing: 3px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-description {
    font-size: 1.15rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .gold-button,
  .outline-button {
    width: 100%;
  }

  .scroll-indicator {
    display: none;
  }

  .intro-section,
  .author-section,
  .cta-section {
    padding: 100px 0;
  }

  .intro-heading h2,
  .author-content h2 {
    font-size: 2.3rem;
  }

  .author-frame {
    top: 12px;
    left: 12px;
  }

  .cta-content h2 {
    font-size: 2.2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
