/* ============================================================
   PORTAL ALMA — Animations & Special Effects
   ============================================================ */

/* ══ KEYFRAMES ════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@-webkit-keyframes fadeUp {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rotateSlow {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes rotateSlowReverse {
  to { transform: translate(-50%,-50%) rotate(-360deg); }
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(20px,-15px) scale(1.04); }
  100% { transform: translate(-10px,10px) scale(.97); }
}
@keyframes drift2 {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-18px,12px) scale(1.03); }
  100% { transform: translate(12px,-8px) scale(.98); }
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: .65; }
  50%      { transform: scaleY(.5); opacity: .2; }
}
@keyframes starTwinkle {
  0%,100% { opacity: .4; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.3); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ══ HERO SECTION ═════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--purple-hero) 0%, #2D0F60 50%, #1B0840 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 6rem;
}

/* Ambient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(130,84,206,.35) 0%, transparent 70%);
  top: -150px; right: -150px;
  animation: drift 16s ease-in-out infinite;
}
.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(206,156,82,.20) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: drift2 20s ease-in-out infinite;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(174,145,237,.20) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation: drift 25s ease-in-out infinite reverse;
}

/* Rotating arcs */
.hero__arc {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
}
.hero__arc--1 {
  width: 600px; height: 600px;
  border-width: 1px;
  border-color: rgba(206,156,82,.15);
  animation: rotateSlow 80s linear infinite;
}
.hero__arc--1::before {
  content: '✦';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: .5;
  font-size: .75rem;
}
.hero__arc--2 {
  width: 800px; height: 800px;
  border-width: 1px;
  border-color: rgba(174,145,237,.08);
  animation: rotateSlowReverse 110s linear infinite;
}
.hero__arc--3 {
  width: 440px; height: 440px;
  border-width: 1px;
  border-color: rgba(206,156,82,.10);
  border-style: dashed;
  animation: rotateSlow 50s linear infinite reverse;
}

/* Star field */
.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  animation: starTwinkle ease-in-out infinite;
}

/* Hero content */
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  width: 100%;
}
.hero__eyebrow {
  will-change: opacity, transform;
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp .8s .2s both;
}
.hero__logo-wrap {
  will-change: opacity, transform;
  margin: 0 auto 2rem;
  /* Big, prominent — user will swap in a transparent-bg PNG */
  width: clamp(280px, 46vw, 520px);
  opacity: 0;
  animation: fadeUp 1s .4s both;
  position: relative;
  z-index: 3;
}
.hero__logo-wrap img {
  width: 100%;
  height: auto;
  /* Glow that makes the logo feel like it belongs to the star field */
  filter:
    drop-shadow(0 0 40px rgba(206,156,82,.55))
    drop-shadow(0 0 80px rgba(174,145,237,.35))
    drop-shadow(0 0 120px rgba(130,84,206,.25));
  /* Transparent-bg PNG will blend perfectly.
     mix-blend-mode:screen makes any residual black invisible. */
  mix-blend-mode: screen;
  animation: logoPulse 6s ease-in-out 1.4s infinite alternate;
}
@keyframes logoPulse {
  from { filter:
    drop-shadow(0 0 40px rgba(206,156,82,.55))
    drop-shadow(0 0 80px rgba(174,145,237,.35))
    drop-shadow(0 0 120px rgba(130,84,206,.25)); }
  to   { filter:
    drop-shadow(0 0 55px rgba(206,156,82,.75))
    drop-shadow(0 0 110px rgba(174,145,237,.50))
    drop-shadow(0 0 160px rgba(130,84,206,.40)); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  color: #fff;
  line-height: 1;
  margin-bottom: .3rem;
  opacity: 0;
  animation: fadeUp .9s .7s both;
}
.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(.9rem, 2vw, 1.15rem);
  font-style: italic;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  margin-bottom: .4rem;
  opacity: 0;
  animation: fadeUp .9s .9s both;
}
.hero__author {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--gold-light);
  margin-bottom: .5rem;
  opacity: 0;
  animation: fadeUp .9s 1s both;
}
.hero__ornament {
  opacity: 0;
  animation: fadeUp .8s 1.1s both;
  margin: 1.8rem 0;
}
.hero__tagline {
  will-change: opacity, transform;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.70);
  max-width: 600px;
  margin: 1.4rem auto 2.8rem;
  opacity: 0;
  animation: fadeUp .9s 1.1s both;
}
.hero__tagline em {
  font-style: italic;
  color: rgba(255,255,255,.9);
}
.hero__actions {
  will-change: opacity, transform;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp .9s 1.4s both;
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeIn 1s 2.2s both;
  pointer-events: none;
}
.hero__scroll span {
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ══ ABOUT SECTION ════════════════════════════════════════ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-frame {
  position: relative;
  width: 360px; height: 440px;
  flex-shrink: 0;
}
.about-frame__shape {
  width: 100%; height: 100%;
  border-radius: 180px 180px 0 0;
  background: linear-gradient(160deg, var(--purple-pale) 0%, var(--purple-ghost) 100%);
  border: 1px solid rgba(174,145,237,.30);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-frame__placeholder {
  font-size: 8rem;
  opacity: .12;
  animation: float 5s ease-in-out infinite;
  user-select: none;
}
.about-frame__ring {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(206,156,82,.30);
  bottom: -25px; right: -25px;
  animation: rotateSlow 30s linear infinite;
}
.about-frame__badge {
  position: absolute;
  bottom: -10px; right: -10px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--purple-hero);
  box-shadow: var(--shadow-gold);
  z-index: 2;
}
.about-frame__badge strong { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.about-frame__badge span { font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.3; font-weight: 600; }

.about-content__label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.about-content__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--purple-deep);
  line-height: 1.2;
  margin-bottom: .4rem;
}
.about-content__title em { font-style: italic; color: var(--purple); }
.about-content__name {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.about-content p {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.85;
  color: #5a5070;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-frame { width: 280px; height: 340px; margin: 0 auto; }
}

/* ══ HERO QUOTE STRIP ═════════════════════════════════════ */
.quote-strip {
  background: var(--purple-ghost);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-strip::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 20rem;
  color: rgba(130,84,206,.06);
  position: absolute;
  top: -4rem; left: 2rem;
  line-height: 1;
  pointer-events: none;
  font-style: italic;
}
.quote-strip__text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  color: var(--purple-deep);
  max-width: 780px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.quote-strip__author {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ══ CTA SECTION ══════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(150deg, var(--purple-hero) 0%, var(--purple-deep) 100%);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 25% 50%, rgba(206,156,82,.10), transparent),
    radial-gradient(ellipse 55% 70% at 75% 50%, rgba(174,145,237,.12), transparent);
}
.cta-section__inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: .5rem;
  line-height: 1;
}
.cta-section__subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255,255,255,.6);
  margin-bottom: 3rem;
}
.cta-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
