/* Hero Animation Styles */

.duplicate-char {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

/* Scoped Hero Section */
.gsap-hero-section {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	height: 100svh;
	border-radius: 0 0 3rem 3rem;
	overflow: hidden;
  padding-bottom: 2rem;
}

.hero-img {
	position: absolute;
	inset: 0;
	z-index: -10;
}

.hero-img img, .hero-img video {
  will-change: transform;
  transform: scale(1.2);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--home-bg, #08111f) 0%, rgba(8, 17, 31, 0.4) 100%);
}

.gsap-hero-wrapper {
	padding-inline: clamp(1rem, 5vw, 2rem);
	max-width: 1440px;
	width: 100%;
	margin-inline: auto;
  position: relative;
  z-index: 2;
}

.gsap-hero-content {
	display: flex;
	justify-content: space-between;
  align-items: flex-end;
	gap: 20px;
	width: 100%;
}

@media (max-width: 900px) {
  .gsap-hero-section {
    height: auto;
    padding-top: 0;
    padding-bottom: 2rem;
    justify-content: flex-start;
    border-radius: 0 0 2rem 2rem;
  }

  .hero-img {
    position: relative;
    max-width: 48rem;
    width: min(100%, 90vw);
    margin: 2rem auto 0;
    perspective: 1000px;
    height: auto;
    overflow: visible;
    z-index: 2;
    box-shadow: none;
    border-radius: 0;
  }

  .hero-img picture,
  .hero-img .hero-img-inner {
    display: block;
    transform: rotateX(6deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--home-shadow-out, 0 20px 40px rgba(0,0,0,0.5)), 0 0 40px rgba(17, 106, 248, 0.12);
    border: 1px solid var(--home-border, rgba(255,255,255,0.1));
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .hero-img:hover picture,
  .hero-img:hover .hero-img-inner {
    transform: rotateX(0deg);
    box-shadow: var(--home-shadow-out, 0 20px 40px rgba(0,0,0,0.5)), 0 0 50px rgba(17, 106, 248, 0.18);
  }

  .hero-img img {
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1080 / 1350;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 24px;
  }

  .hero-img::after {
    display: none;
  }

  .gsap-hero-wrapper {
    padding-top: 2rem;
  }

  .gsap-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .content-main .sub-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .content-main h1 {
    font-size: clamp(3rem, 12vw, 4.5rem);
    line-height: 1;
  }

  .content-cta {
    max-width: 100%;
    width: 100%;
    border-radius: 24px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .content-cta .cta-text-wrapper {
    margin: 16px 20px 24px 20px;
  }

  .content-cta .register-button {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    border-radius: 0 0 24px 24px;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.05rem;
    box-shadow: none;
  }
}

.content-main .sub-title {
  max-width: 320px;
  color: #FFF;
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.content-main h1 {
  margin-left: -5px;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 95%; 
  letter-spacing: -0.04em;
}

.header-char {
	background: linear-gradient(180deg, #FFF 17.73%, rgba(255, 255, 255, 0.6) 92.44%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
  padding: 0.1em 0.05em;
  margin: -0.1em -0.05em;
}

.gsap-hero-content .hero-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* Light Theme Overrides */
[data-theme="light"] .content-main .sub-title {
  color: #08111f;
}

[data-theme="light"] .header-char {
  background: linear-gradient(180deg, #08111f 17.73%, rgba(8, 17, 31, 0.7) 92.44%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gsap-hero-content .hero-lead {
  color: rgba(8, 17, 31, 0.8);
}

.content-cta {
	position: relative;
	max-width: 300px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 54px 0 rgba(0, 0, 0, 0.5);
	overflow: hidden;
  padding-bottom: 80px;
}

.content-cta .cta-heading-container {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 16px;
}

.content-cta .cta-heading {
  color: var(--home-accent, #3b82f6);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.content-cta .cta-text-wrapper {
  margin: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.content-cta .register-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  white-space: nowrap;
}

[data-theme="light"] .content-cta {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 54px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .content-cta .cta-heading-container {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .content-cta .cta-heading {
  color: var(--home-accent, #2563eb);
}

[data-theme="light"] .content-cta .cta-text-wrapper {
  color: rgba(8, 17, 31, 0.8);
}


