/*
  Animated landing page background and layout styles.
  - Provides layout, centering, and background gradients for the landing page.
  - Floating lights are handled in floating-lights.css.
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* Animated dark background for .bg using rgb(5 6 20 / var(--tw-bg-opacity)), tainting to main blue */
.bg {
  width: 100%;
  height: 100vh;
  display: block;
  align-items: center;
  justify-content: center;
  background-size: 300% 300%;
  --tw-bg-opacity: 1;
  background-image: linear-gradient(
    135deg,
    rgb(5 6 20 / var(--tw-bg-opacity)) 0%,
    #111 10%,
    #0ea5e9 100%
  );
  animation: bg-move 10s linear infinite alternate;
}

@keyframes bg-move {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

html,
body {
  position: relative;
  background: #111;
  color: #fff;
  margin: 0;
  padding: 0;
  display: block;
  font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-weight: 400;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

h1 {
  font-size: 3em;
  margin-bottom: 0.2em;
}

h2 {
  font-size: 2em;
}

.main {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  min-height: 100vh;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

/* Remove pseudo-element blob decorations and their animations */
.main:before,
.main:after {
  display: none;
}

.social-icons {
  position: fixed;
  top: 2.2rem;
  right: 2.2rem;
  display: flex;
  gap: 2.2rem;
  z-index: 100;
}
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  box-shadow: none;
  width: 32px;
  height: 32px;
  text-decoration: none;
  color: #fff;
}
.icon-link:hover {
  box-shadow: none;
  transform: scale(1.08);
  color: #0ea5e9;
}
.icon-link i {
  font-size: 24px;
  line-height: 1;
}
@media (max-width: 600px) {
  .social-icons {
    top: 1.2rem;
    right: 1.2rem;
    gap: 3.2rem;
  }
  .icon-link {
    width: 40px;
    height: 40px;
  }
  .icon-link i {
    font-size: 32px;
  }
}

/* Fix profile image stacking + rounding */

.profile-blob-container {
  position: relative;
  margin: 2.5rem auto 0 auto;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transform: translateY(32px);
  animation: profile-fade-float-in 1.6s cubic-bezier(0.77, 0, 0.18, 1) 1.6s forwards;
  border-radius: 50%;
  overflow: visible;
}

@keyframes profile-fade-float-in {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-blob-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 70% 90% at 60% 50%,
    #0ea5e9 0%,
    #06b6d4 60%,
    #8b5cf6 100%,
    #111 120%
  );
  filter: blur(0.5px) brightness(1.1) saturate(1.2);
  animation: none;
  z-index: 1;
  width: 140px;
  height: 140px;
}

.profile-face-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 2;
  border-radius: 50% !important;
  overflow: hidden;
  display: block;
}

/* Caption below the profile blob (last element in landing) */
.profile-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  z-index: 3;

  /* Match the blob's entrance: hidden before animation, then fade/float in */
  opacity: 0;
  transform: translateY(32px);
  animation: profile-fade-float-in 1.6s cubic-bezier(0.77, 0, 0.18, 1) 1.6s forwards;
}

/* Center headline and subtitle based on full viewport width and improve responsive layout for content blocks */

.block-effect.fullwidth-block-effect {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

.block-reveal.block-reveal-letters {
  width: 100%;
  text-align: center;
  display: inline-block;
}

.subtitle-fade.block-reveal-letters {
  width: 100%;
  text-align: center;
  display: block;
  margin: 0 auto 2.5em auto;
  font-size: clamp(1.1rem, 2.5vw, 2.2rem);
}

@media (max-width: 900px) {
  .block-effect.fullwidth-block-effect,
  .block-reveal.block-reveal-letters,
  .subtitle-fade.block-reveal-letters {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

.scroll-content {
  width: 100%;
  box-sizing: border-box;
  padding: 8em 0 8em 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-blocks {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2.25em;
  align-items: center;
  box-sizing: border-box;
}

.content-block {
  width: 90%;
  max-width: 480px;
  min-width: 0;
  box-sizing: border-box;
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: 2.5em 1em;
}

.content-block.right {
  text-align: center;
}

@media (max-width: 900px) {
  .block-effect.fullwidth-block-effect,
  .block-reveal.block-reveal-letters,
  .subtitle-fade.block-reveal-letters {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
}

@media (max-width: 600px) {
  .content-blocks {
    max-width: 100%;
    gap: 1.5em;
  }
  .content-block {
    width: 98%;
    max-width: 98%;
    padding: 1.5em 0.5em;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }
}

/* Add styles for main-content-container to ensure correct layout and sequential reveal */

.main-content-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  /* Animate out after main animation if needed */
}

/* Landing section takes one full viewport; scroll content is revealed on first scroll */

.landing {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep the hero content centered within landing */
.landing .main {
  min-height: 100vh;
  padding-top: 10vh;
  padding-bottom: 10vh;
}

/* Profile blob belongs to the landing section now */
.landing .profile-blob-container {
  position: relative;
  margin: 3vh auto 0 auto;
}

/* Scroll content is hidden until JS toggles .is-visible */
.scroll-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

.scroll-content.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure <main> starts after the landing header and never overlaps it */

header.landing {
  position: relative;
  width: 100%;
}

main {
  position: relative;
  display: block;
  width: 100%;
  /* extra breathing room after the landing hero */
  padding-top: 6vh;
}

.section-header {
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
  box-sizing: border-box;
  margin: 0 auto 0.5rem auto;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
}

.content-block h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1em;
  font-weight: 600;
}

.content-block p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.45;
}
