/* -------------------------------------------------- */
/* FULL-WIDTH WRAPPER                                 */
/* -------------------------------------------------- */
.hero-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* -------------------------------------------------- */
/* FULLSCREEN HERO                                     */
/* -------------------------------------------------- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 2rem;
  box-sizing: border-box;

  background: var(--hero-bg);

  border-radius: 2rem;
  overflow: hidden;
}

/* -------------------------------------------------- */
/* LAYOUT                                              */
/* -------------------------------------------------- */
.hero-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

/* -------------------------------------------------- */
/* TEXT                                                */
/* -------------------------------------------------- */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--hero-title);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--hero-text);
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* -------------------------------------------------- */
/* BUTTONS                                             */
/* -------------------------------------------------- */
.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.hero-btn {
  min-height: 48px;
  padding: 0.9rem 1.8rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Primary button */
.hero-btn.primary {
  background: var(--md-accent-fg-color);
  color: white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.hero-btn.primary:hover {
  background: var(--md-accent-fg-color--hover, var(--md-accent-fg-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Secondary button */
.hero-btn.secondary {
  border: 2px solid var(--md-accent-fg-color);
  color: var(--md-accent-fg-color);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero-btn.secondary::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--md-accent-fg-color);
  transition: width 0.3s ease;
}

.hero-btn.secondary:hover {
  transform: translateY(-2px);
}

.hero-btn.secondary:hover::after {
  width: 100%;
}

/* -------------------------------------------------- */
/* IMAGE                                               */
/* -------------------------------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 420px;
  max-width: 100%;
  border-radius: 1rem;
  object-fit: contain;
  padding: 0.25rem;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.25));

  animation: heroFloat 3.5s ease-in-out infinite;
}

/* Dark mode tint */
[data-md-color-scheme="slate"] .hero-img {
  filter:
    brightness(0.85)
    saturate(1.1)
    drop-shadow(0 15px 30px rgba(0,0,0,0.35));
  opacity: 0.95;
}

/* -------------------------------------------------- */
/* RESPONSIVENESS                                      */
/* -------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    width: 300px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* -------------------------------------------------- */
/* COLOR SCHEMES (FIXED & CORRECT)                     */
/* -------------------------------------------------- */

/* Light theme */
:root,
[data-md-color-scheme="default"] {
  --hero-bg: linear-gradient(135deg, #e3e8ff, #d6e2ff);
  --hero-title: #1a1a1a;
  --hero-text: #333;
}

/* Dark theme */
[data-md-color-scheme="slate"] {
  --hero-bg: linear-gradient(135deg, #4a64ff33, #0e1628ff);
  --hero-title: #fff;
  --hero-text: #ddd;
}

/* -------------------------------------------------- */
/* HERO IMAGE FLOAT ANIMATION                          */
/* -------------------------------------------------- */

@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
