/* HERO ANIMATIONS */

.hero-right .tagline { animation: fadeUp .6s ease .1s both; }

.hero-right .hero-name { animation: fadeUp .6s ease .2s both; }

.hero-right .typewriter-container { animation: fadeUp .6s ease .3s both; }

.hero-right .hero-bio { animation: fadeUp .6s ease .4s both; }

.hero-right .btn-group { animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) .7s both; }

.hero-left { animation: fadeLeft .8s ease .1s both; }



.hero-photo {

    width: 100%;

    max-width: 450px;

    height: auto;

    display: block;

    background: transparent;

    filter: drop-shadow(0 15px 30px rgba(124,58,237,0.3));

    animation: floatPhoto 4s ease-in-out infinite;

}



@keyframes floatPhoto {

    0%   { transform: translateY(0px); }

    50%  { transform: translateY(-10px); }

    100% { transform: translateY(0px); }

}



h1, h2, h3, .syne-font {

    font-family: 'Plus Jakarta Sans', sans-serif;

    font-weight: 800;

    letter-spacing: -0.5px;

}





/* ANIMATIONS */

@keyframes scSlideInRight {

  from { opacity:0; transform: translateX(60px); }

  to   { opacity:1; transform: translateX(0); }

}

@keyframes scSlideInLeft {

  from { opacity:0; transform: translateX(-60px); }

  to   { opacity:1; transform: translateX(0); }

}

@keyframes scSlideOutLeft {

  from { opacity:1; transform: translateX(0); }

  to   { opacity:0; transform: translateX(-60px); }

}

@keyframes scSlideOutRight {

  from { opacity:1; transform: translateX(0); }

  to   { opacity:0; transform: translateX(60px); }

}



.anim-in-right { animation: scSlideInRight 400ms ease forwards; }

.anim-in-left  { animation: scSlideInLeft 400ms ease forwards; }

.anim-out-left { animation: scSlideOutLeft 400ms ease forwards; }

.anim-out-right{ animation: scSlideOutRight 400ms ease forwards; }


/* ── 4. HERO PHOTO — 3D Tilt + Floating ── */

.hero-photo-container {

    perspective: 800px;

    display: inline-block;

    will-change: transform;

}

.hero-photo-container .hero-photo {
    will-change: transform;
    transition: filter 0.4s ease, transform 0.4s ease;
    border-radius: 0;
    box-shadow: none;
}

.hero-photo-container:hover .hero-photo {
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 30px rgba(0, 229, 255, 0.5)) drop-shadow(0 20px 50px rgba(124, 58, 237, 0.4));
}



/* ── 10. SECTION ENTER ANIMATIONS ── */

.section-entering .section-title,

.section-entering .syne-font,

.section-entering h2:not(.section-title):not(.syne-font) {

    animation: sectionHeadingIn 0.5s ease 0.1s both;

}

@keyframes sectionHeadingIn {

    from { opacity: 0; transform: translateX(-40px); }

    to   { opacity: 1; transform: translateX(0); }

}



.section-entering .tagline {

    animation: sectionHeadingIn 0.45s ease 0.05s both;

}



.section-entering .accent-line {

    animation: sectionHeadingIn 0.4s ease 0.15s both;

}



/* Staggered content blocks */

.section-entering > *:nth-child(1)  { animation: sectionFadeUp 0.5s ease 0.10s both; }

.section-entering > *:nth-child(2)  { animation: sectionFadeUp 0.5s ease 0.20s both; }

.section-entering > *:nth-child(3)  { animation: sectionFadeUp 0.5s ease 0.30s both; }

.section-entering > *:nth-child(4)  { animation: sectionFadeUp 0.5s ease 0.40s both; }

.section-entering > *:nth-child(5)  { animation: sectionFadeUp 0.5s ease 0.50s both; }



@keyframes sectionFadeUp {

    from { opacity: 0; transform: translateY(18px); }

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

}



/* Card inner content stagger (children) */

.card.section-entering .card-inner > * { animation: sectionFadeUp 0.45s ease both; }

.card.section-entering .card-inner > *:nth-child(1) { animation-delay: 0.08s; }

.card.section-entering .card-inner > *:nth-child(2) { animation-delay: 0.16s; }

.card.section-entering .card-inner > *:nth-child(3) { animation-delay: 0.24s; }

.card.section-entering .card-inner > *:nth-child(4) { animation-delay: 0.32s; }



/* Section-entering zoom-out reveal (scale 1.05 → 1.0) */

.card.section-entering {

    animation: sectionZoomOut 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;

}

@keyframes sectionZoomOut {

    from { opacity: 0; transform: translateX(0) scale(1.05); }

    to   { opacity: 1; transform: translateX(0) scale(1); }

}



/* ── LOADING SCREEN ── */

#mb-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  pointer-events: none;
}

#mb-panel-left {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  background: #060B14;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.76,0,0.24,1);
  will-change: transform;
}

#mb-panel-right {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: #060B14;
  z-index: 2;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.76,0,0.24,1);
  will-change: transform;
}

#mb-loader-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

#mb-name {
  font-family: 'Space Grotesk', 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  animation: mbFadeUp 0.6s ease forwards;
}

#mb-subtitle {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  color: #00D4FF;
  letter-spacing: clamp(2px, 0.4vw, 4px);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  max-width: 90vw;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0;
  animation: mbFadeUp 0.6s ease 0.3s forwards;
}

@keyframes mbFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

#mb-rocket-wrap {

  margin-top: 28px;

  filter: drop-shadow(0 0 12px rgba(0, 229, 255,0.55));

  animation: mbBob 0.9s ease-in-out infinite;

}

#mb-rocket-wrap.launching {

  animation: mbLaunch 1.2s cubic-bezier(0.3, 0, 0.1, 1) forwards !important;

}

@keyframes mbBob {

  0%, 100% { transform: translateY(0); }

  50%       { transform: translateY(-14px); }

}

@keyframes mbLaunch {

  0%   { transform: translateY(0) scale(1); opacity: 1; }

  20%  { transform: translateY(-25px) scale(1.06); opacity: 1; }

  100% { transform: translateY(-140vh) scale(0.1); opacity: 0; }

}

#mb-fl-o {

  animation: mbFl1 0.13s ease-in-out infinite alternate;

  transform-origin: center top;

}

#mb-fl-i {

  animation: mbFl2 0.1s ease-in-out infinite alternate-reverse;

  transform-origin: center top;

}

@keyframes mbFl1 {

  from { transform: scaleY(1) scaleX(1); opacity: .85; }

  to   { transform: scaleY(1.3) scaleX(.85); opacity: 1; }

}

@keyframes mbFl2 {

  from { transform: scaleY(.9) scaleX(1.1); opacity: .9; }

  to   { transform: scaleY(1.2) scaleX(.88); opacity: 1; }

}



/* ── SECTION TRANSITION ELEMENTS ── */

#mb-trans-left,

#mb-trans-right {

  position: fixed;

  top: 0;

  width: 50%;

  height: 100%;

  background: #0a0a1a;

  z-index: 99998;

  pointer-events: none;

  will-change: transform;

}

#mb-trans-left  { left: 0;  transform: translateX(-100%); }

#mb-trans-right { right: 0; transform: translateX(100%); }

#mb-trans-rocket {

  position: fixed;

  bottom: -120px;

  left: 50%;

  transform: translateX(-50%);

  z-index: 99999;

  pointer-events: none;

  opacity: 0;

  filter: drop-shadow(0 0 18px rgba(0, 229, 255,0.75)) drop-shadow(0 0 35px rgba(255,107,0,0.5));

}

#mb-trans-rocket svg {

  width: 80px !important;

  height: auto !important;

}

@keyframes mbTransLaunch {
  0%   { bottom: -120px; opacity: 0; transform: translateX(-50%) scale(0.8); }
  15%  { opacity: 1; }
  100% { bottom: 110vh; opacity: 0; transform: translateX(-50%) scale(0.4); }
}

@keyframes mbTransLaunchDown {
  0%   { bottom: 110vh; opacity: 0; transform: translateX(-50%) rotate(180deg) scale(0.8); }
  15%  { opacity: 1; }
  100% { bottom: -120px; opacity: 0; transform: translateX(-50%) rotate(180deg) scale(0.4); }
}



