section.header-container
{
	position: relative;
	background-color: var(--background-color-secondary);
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	display: block;
}

/* Animation keyframes */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scrollDownIndicatorFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes slideInFromBottom {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInFromBottomHero {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

/* Initial states - elements hidden before animation */
.header-container
{
	opacity: 0;
	transition: opacity 0.3s ease-out;
}

nav a,
nav a img.page-logo,
header > div.hero-left h1,
header > div.hero-left div.small-border,
header > div.hero-left div.hero-social-content,
header > div.hero-right h6,
header > div.hero-right h2,
header > div.hero-right div.intro-video,
section.header-container img.hero-image,
.scroll-down-indicator {
	opacity: 0;
	transition-delay: .3s;
}

/* Animation classes */
.header-container.animate-header {
	opacity: 1;
}

.animate-logo {
	animation: fadeInDown 0.8s ease-out forwards;
}

.animate-link {
	animation: fadeInUp 0.8s ease-out forwards;
}

.animate-hero-title {
	animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.animate-hero-border {
	animation: scaleIn 0.6s ease-out 0.4s forwards;
}

.animate-hero-social {
	animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.animate-intro-label {
	animation: fadeInRight 0.8s ease-out 0.3s forwards;
}

.animate-intro-title {
	animation: fadeInRight 0.8s ease-out 0.5s forwards;
}

.animate-intro-video {
	animation: scaleIn 0.8s ease-out 0.7s forwards;
}

.animate-hero-image {
	animation: slideInFromBottomHero 1s ease-out 0.4s forwards;
}

section.header-container > header,
section.header-container > nav
{
	justify-content: space-between;
	padding: 5rem 12rem;
	display: flex;
}

/* Nav */
nav
{
	padding-bottom: 0 !important;
}

nav a
{
	position: relative;
	color: var(--text-color-primary);
	text-decoration: none;
	font-weight: 300;
	font-size: 1.25rem;
	transition: color 0.3s ease;
	display: inline-flex;
}

nav .nav-links
{
	display: flex;
	gap: 1.5rem;
}

nav .nav-links a
{
	line-height: 2rem;
}

nav a img.page-logo
{
	position: relative;
	height: clamp(2rem, 5vw, 3rem);
	transition: height 0.3s ease;
}

/* Header */
header {
	position: relative;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0 12rem 4rem;
	display: flex;
	z-index: 2;
}

header > div.hero-left
{
	margin-right: 1rem;
}

header > div.hero-left div.small-border
{
	width: 6rem;
	height: .5rem;
	border-radius: .25rem;
	background-image: linear-gradient(to right, var(--accent-color), var(--accent-color-alt));
}

header div.hero-social-content
{
	display: flex;
	gap: 1.25rem;
	margin: 5rem 0 4rem;
}

header div.hero-social-content a
{
	display: inline-flex;
}

header div.hero-social-content a img.social-icon
{
	width: 1rem;
	height: 1rem;
	filter: brightness(0) saturate(1) invert(1);
	opacity: .5;
}

header div.hero-social-content a:hover img.social-icon
{
	opacity: 1;
}

header > div.hero-right
{
	margin-left: 1rem;
}

header > div.hero-right div.intro-video
{
	--left-gradient-color: transparent;
	--right-gradient-color: transparent;
	--inner-border-color: rgba(255, 255, 255, 0.1);
	position: relative;
	width: 24rem;
	height: 13.5rem;
	border: 1px solid transparent;
	border-radius: 1rem;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.3s ease;
	backdrop-filter: blur(1rem) brightness(.75);
	box-shadow: 0 0 .5rem 0 rgba(0, 0, 0, .25);
	background-image: linear-gradient(to right, var(--left-gradient-color), var(--right-gradient-color));
}

/* Hover styles will be handled by jQuery - keeping box-shadow transition in CSS */
header > div.hero-right div.intro-video:hover
{
	border-color: var(--accent-color-average);
	--inner-border-color: var(--accent-color-average-transparent);
	box-shadow: 0 0 1rem 0 rgba(0, 0, 0, .5);
}

header > div.hero-right div.intro-video span.video-title
{
	position: absolute;
	top: 50%;
	left: 1rem;
	right: 1rem;
	transform: translateY(calc(50% + 1rem));
	text-align: center;
	color: var(--text-color-primary);
	font-size: 1.25rem;
	font-weight: 200;
}

/* Fullscreen overlay */
.fullscreen-overlay
{
	position: fixed;
	top: 0;
	left: 0;
	min-width: 300px;
	width: 100vw;
	height: 100vh;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	backdrop-filter: none;
	opacity: 0;
	zoom: calc(1 / var(--body-zoom, 1));
	transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
}

.fullscreen-overlay.active
{
	opacity: 1;
	backdrop-filter: blur(1rem) brightness(.125);
}

.fullscreen-video
{
	position: absolute;
	background-color: var(--background-color-primary);
	border-radius: 1rem;
	box-shadow: none;
	transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fullscreen-coming-soon
{
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	transform: translate(-50%, -50%);
	color: var(--text-color-primary);
	font-size: 1.5rem;
	font-weight: 200;
	text-align: center;
}

.fullscreen-overlay.active .fullscreen-video
{
	width: 90vw !important;
	height: 50.625vw !important; /* 16:9 aspect ratio */
	max-height: 90vh !important;
	max-width: calc(90vh * 16/9) !important;
	min-width: calc(270px) !important;
	min-height: calc(151.875px) !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	background-color: black;
}

.close-fullscreen
{
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 3rem;
	height: 3rem;
	background-color: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color 0.2s ease;
}

.close-fullscreen:hover
{
	border-color: var(--accent-color-alt);
	color: var(--accent-color-alt);
}

/* Hero image */
section.header-container img.hero-image
{
	position: absolute;
	bottom: 0;
	left: 45%;
	width: 37.5rem;
	transform: translateX(-50%);
	display: block;
	z-index: 1;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
	position: absolute;
	bottom: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	cursor: pointer;
	z-index: 3;
	opacity: 0;
	transition: all 0.3s ease;
}

.scroll-down-indicator:hover {
	transform: translateX(-50%) translateY(-5px);
}

.scroll-down-indicator .scroll-chevron {
	width: 100%;
	height: 100%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--background-color-secondary-transparent);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.scroll-down-indicator .scroll-chevron img {
	filter: brightness(0) invert(1);
}

.scroll-down-indicator:hover .scroll-chevron {
	--bloom-color: var(--accent-color-average);
	border-color: var(--accent-color-average);
	box-shadow: 0 0 1.5rem var(--accent-color-average-transparent);
}

.scroll-down-indicator .scroll-chevron svg {
	color: var(--text-color-primary);
	transition: all 0.3s ease;
}

.scroll-down-indicator:hover .scroll-chevron {
	transform: translateY(.5rem);
}

/* Bounce animation for scroll chevron */
@keyframes bounceChevron {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-5px);
	}
	60% {
		transform: translateY(-3px);
	}
}

.scroll-chevron svg {
	animation: bounceChevron 2s infinite;
}

/* Animation class for scroll indicator */
.animate-scroll-indicator {
	animation: scrollDownIndicatorFadeIn 0.8s ease-out 1s forwards;
}

/* Base mobile styles */
nav {
  padding: 2rem 1.5rem !important;
  flex-direction: column;
  gap: 1rem;
}

nav .nav-links {
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Header responsive styles */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    padding: 0 1.5rem 4rem !important;
    gap: 0rem;
    align-items: center;
    text-align: center;
  }

  header > div.hero-left {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  header > div.hero-left div.small-border {
    margin: 0 auto;
  }

  header div.hero-social-content {
    margin: 3rem 0 2rem;
    justify-content: center;
  }

  header > div.hero-right {
    margin-left: 0;
    width: 100%;
    max-width: 24rem;
  }

  header > div.hero-right div.intro-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-width: 24rem;
  }

  header > div.hero-right div.intro-video span.video-title {
    font-size: 1rem;
    transform: translateY(calc(50% + 0.5rem));
  }

  /* Hero image mobile adjustments */
  section.header-container img.hero-image {
    display: none;
  }

  /* Adjust hero title size for mobile */
  header > div.hero-left h1 {
    font-size: 3.5rem;
    line-height: 1;
  }

  header > div.hero-right h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  /* Adjust fullscreen coming soon text for mobile */
  .fullscreen-coming-soon {
    max-width: 15rem;
    font-size: 1.2rem;
  }
}

/* Tablet breakpoint */
@media (min-width: 768px) and (max-width: 1199px) {
  header {
    padding: 0 3rem 3rem !important;
    gap: 2rem;
  }

  header > div.hero-right div.intro-video {
    width: 20rem;
    height: 11.25rem;
  }

  /* Hero image tablet adjustments */
  section.header-container img.hero-image {
    width: 30rem;
    left: 45%;
  }

  /* Adjust hero title size for tablet */
  header > div.hero-left h1 {
    font-size: 4.5rem;
  }

  header > div.hero-right h2 {
    font-size: 1.75rem;
  }

  /* Adjust fullscreen coming soon text for tablet */
  .fullscreen-coming-soon {
    font-size: 1.6rem;
  }
}

@media (max-width: 1024px) {
	section.header-container img.hero-image
	{
		left: 42%;
	}
}

/* Tablet breakpoint */
@media (min-width: 768px) {
  nav {
    padding: 3rem 3rem !important;
    flex-direction: row;
    justify-content: space-between !important;
  }

  nav .nav-links {
    flex-direction: row;
    width: auto;
  }
}

/* Desktop breakpoint */
@media (min-width: 1200px) {
  nav {
    padding: 5rem 12rem !important;
  }

  header {
    padding: 0 12rem 4rem !important;
  }

  /* Hero image desktop positioning */
  section.header-container img.hero-image {
    position: absolute;
    bottom: 0;
    left: 45%;
    width: 37.5rem;
    transform: translateX(-50%);
  }

  /* Adjust fullscreen coming soon text for desktop */
  .fullscreen-coming-soon {
    font-size: 2rem;
  }
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  nav .nav-links {
    display: none;
  }

  nav .nav-links.active {
    display: flex;
  }
}

nav {
  container-type: inline-size;
}

@container (min-width: 600px) {
  nav .nav-links {
    flex-direction: row;
  }
}

nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 767px) {
  nav {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
}
