/* ========================================
   Google Fonts Import
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&display=swap');

/* ========================================
   Theme Color Schemes
   ======================================== */

:root {
  --md-primary-fg-color: #1976d2;
  --md-accent-fg-color: #1565c0;
  --md-primary-fg-color--light: #1976d21a;
  --md-primary-fg-color--dark: #1565c0;
}

[data-theme="blue"] {
  --md-primary-fg-color: #1976d2;
  --md-accent-fg-color: #1565c0;
  --md-primary-fg-color--light: #1976d21a;
  --md-primary-fg-color--dark: #1565c0;
}

[data-theme="red"] {
  --md-primary-fg-color: #e53935;
  --md-accent-fg-color: #c62828;
  --md-primary-fg-color--light: #e539351a;
  --md-primary-fg-color--dark: #c62828;
}

[data-theme="yellow"] {
  --md-primary-fg-color: #f9a825;
  --md-accent-fg-color: #f57f17;
  --md-primary-fg-color--light: #f9a8251a;
  --md-primary-fg-color--dark: #f57f17;
}

/* ========================================
   Header Styling with Theme Colors
   ======================================== */

/* Header background uses theme color */
.md-header {
  background-color: var(--md-primary-fg-color);
}

/* Tabs use theme color */
.md-tabs {
  background-color: var(--md-primary-fg-color);
}

/* Active tab indicator */
.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
}

/* Links use theme accent */
.md-typeset a {
  color: var(--md-primary-fg-color);
}

.md-typeset a:hover {
  color: var(--md-accent-fg-color);
}

/* ========================================
   Hero Section - Full Width Parallax
   ======================================== */

.mdx-hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Banner images container */
.mdx-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
}

/* Individual banner images - hidden by default */
.mdx-hero__banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show banner based on theme */
[data-theme="blue"] .mdx-hero__banner[data-banner="blue"] {
  opacity: 1;
}

[data-theme="red"] .mdx-hero__banner[data-banner="red"] {
  opacity: 1;
}

[data-theme="yellow"] .mdx-hero__banner[data-banner="yellow"] {
  opacity: 1;
}

/* Default fallback - show blue if no theme set */
html:not([data-theme]) .mdx-hero__banner[data-banner="blue"] {
  opacity: 1;
}

/* Dark overlay for text readability */
.mdx-hero__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

/* Hero content */
.mdx-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.mdx-hero__content h1 {
  font-family: 'Goldman', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
}

.mdx-hero__content h1 .theme-accent {
  color: var(--md-primary-fg-color);
}

.mdx-hero__content p {
  font-family: 'Goldman', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  margin: 0 0 2.5rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-decoration: underline;
  text-decoration-color: var(--md-primary-fg-color);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.3rem;
}

.mdx-hero__content .md-button {
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
  border-radius: 0.3rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mdx-hero__content .md-button--primary {
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  color: white;
}

.mdx-hero__content .md-button--primary:hover {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Scroll indicator */
.mdx-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mdx-hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}

.mdx-hero__scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  animation: scroll-indicator 2s infinite;
}

@keyframes scroll-indicator {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(12px);
  }
}

/* ========================================
   Parallax Scroll Effect
   ======================================== */

@supports (background-attachment: fixed) {
  .mdx-hero__image {
    background-attachment: fixed;
  }

  .mdx-hero__banner {
    position: fixed;
    top: 0;
    height: 100vh;
  }
}

/* ========================================
   Content Section Styling
   ======================================== */

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.content-section h2 {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

/* ========================================
   Smooth Scrolling
   ======================================== */

html {
  scroll-behavior: smooth;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media screen and (max-width: 768px) {
  .mdx-hero__content h1 {
    font-size: 2.5rem;
  }

  .mdx-hero__content p {
    font-size: 1.2rem;
  }

  .mdx-hero__content .md-button {
    font-size: 1rem;
    padding: 0.7rem 2rem;
  }

  /* Disable fixed positioning on mobile for better performance */
  .mdx-hero__banner {
    position: absolute;
    height: 100%;
  }
}

@media screen and (max-width: 480px) {
  .mdx-hero__content h1 {
    font-size: 2rem;
  }

  .mdx-hero__content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}
