/* Animated Hero Styles */
.animated-hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  background: black;
  overflow: hidden;
}

.animated-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.animated-hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.animated-hero-text {
  width: 100%;
}

@media (min-width: 768px) {
  .animated-hero-text {
    width: 50%;
  }
}

.animated-hero-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}

@media (min-width: 768px) {
  .animated-hero-title {
    font-size: 3.75rem;
  }
}

.animated-hero-description {
  color: #d1d5db;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 65ch;
}

@media (min-width: 768px) {
  .animated-hero-description {
    margin-top: 1.25rem;
    font-size: 1.125rem;
  }
}

.animated-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .animated-hero-actions {
    margin-top: 2rem;
  }
}

.animated-hero-btn-primary {
  padding: 12px 20px;
  border-radius: 16px;
  background: #dc2626;
  color: white;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
  display: inline-block;
}

.animated-hero-btn-primary:hover {
  background: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 20px 25px -5px rgba(220, 38, 38, 0.4);
}

.animated-hero-btn-ghost {
  padding: 12px 20px;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fca5a5;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.animated-hero-btn-ghost:hover {
  color: white;
  border-color: #f87171;
}

.animated-hero-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.4) 100%);
  z-index: 5;
}

/* Dark mode adjustments for Material theme */
[data-md-color-scheme="slate"] .animated-hero-section {
  background: #1a1a1a;
}

[data-md-color-scheme="slate"] .animated-hero-title {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .animated-hero-description {
  color: #e5e7eb;
}

/* Custom styles for animated hero in homepage */
.hero-right .animated-hero-section {
	height: 300px !important;
	min-height: 300px !important;
	background: transparent !important;
	position: relative;
	display: block;
}

.hero-right .animated-hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	z-index: 1;
	display: block;
}

.hero-right .animated-hero-vignette {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 50%, rgba(0,0,0,0.2) 100%);
	z-index: 5;
	pointer-events: none;
}

/* Ensure hero-right has proper dimensions */
.hero-right {
	flex: 0 auto;
	position: relative;
	overflow: hidden;
	min-height: 300px;
	width: 50%;
}

/* Fix hero content flex alignment */
.hero-content-flex {
	grid-column-gap: 3rem;
	grid-row-gap: 3rem;
	justify-content: space-between;
	align-items: stretch;
	display: flex;
	position: relative;
	bottom: 50px;
}

/* Mobile responsive adjustments for animated hero */
@media screen and (max-width: 991px) {
	.hero-right {
		width: 100%;
		min-height: 250px;
	}
	
	.hero-content-flex {
		grid-row-gap: 24px;
		bottom: 0;
	}
}

@media screen and (max-width: 767px) {
	.hero-right {
		min-height: 200px;
	}
	
	.hero-right .animated-hero-section {
		height: 200px !important;
		min-height: 200px !important;
	}
	
	.hero-content-flex {
		grid-row-gap: 20px;
	}
}

@media screen and (max-width: 479px) {
	.hero-right {
		min-height: 180px;
	}
	
	.hero-right .animated-hero-section {
		height: 180px !important;
		min-height: 180px !important;
	}
	
	.hero-content-flex {
		grid-row-gap: 16px;
	}
}

/* Mobile dark theme text fixes */
@media screen and (max-width: 767px) {
	[data-md-color-scheme="slate"] .hero-subtext,
	[data-md-color-scheme="slate"] .hero-subtext-bold {
		color: #e5e7eb !important;
	}
	
	[data-md-color-scheme="slate"] .feature-paragraph {
		color: #e5e7eb !important;
	}
	
	[data-md-color-scheme="slate"] div.main p {
		color: #e5e7eb !important;
	}
}
