/* ==========================================
   HarMinis Landing Page - Styles
   Color Palette:
   - Steel Blue: #4F7CAC
   - Frozen Water: #C0E0DE
   - Jet Black: #162521
   - Iron Grey: #3C474B
   - Soft Cyan: #9EEFE5
   ========================================== */

/* CSS Variables */
:root {
  /* Colors */
  --steel-blue: #4f7cac;
  --frozen-water: #c0e0de;
  --jet-black: #162521;
  --iron-grey: #3c474b;
  --soft-cyan: #9eefe5;
  --white: #ffffff;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-smooth: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--jet-black);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
h4 {
  font-size: 1.125rem;
}

p {
  font-size: 1rem;
  color: var(--iron-grey);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--steel-blue);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #3d6288;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 124, 172, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--steel-blue);
}

.btn-accent {
  background-color: var(--soft-cyan);
  color: var(--jet-black);
}

.btn-accent:hover {
  background-color: #7ddcd0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(158, 239, 229, 0.4);
}

.btn-kickstarter {
  background-color: #05ce78;
  color: var(--white);
}

.btn-kickstarter:hover {
  background-color: #04b468;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 206, 120, 0.4);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(22, 37, 33, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--soft-cyan);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

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

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--steel-blue) 0%,
    var(--iron-grey) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  filter: brightness(0.25);
}

.hero-video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Grayscale so the old reindeer's red nose reads as neutral gray (no re-shoot needed) */
  filter: grayscale(100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 37, 33, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 20px;
  margin-top: 60px;
}

.hero-title {
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: 40px;
  opacity: 0.95;
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 2rem;
  color: var(--white);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Fade-in Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

.fade-in-delay {
  animation: fadeIn 1s ease-in 0.3s backwards;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease-in 0.6s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 15px;
  color: var(--jet-black);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--iron-grey);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Problem Section */
.problem-section {
  background-color: var(--white);
}

.three-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  color: var(--steel-blue);
}

/* How It Works Section */
.how-it-works-section {
  background-color: var(--frozen-water);
}

.steps-container {
  margin-top: 60px;
}

.step {
  display: flex;
  flex-direction: row-reverse;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.step:last-child {
  margin-bottom: 0;
}

.step-image,
.step-content {
  flex: 1;
}

.step-reverse {
  flex-direction: row-reverse;
}

.step-image {
  position: relative;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--iron-grey);
  font-size: 1rem;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.image-placeholder:has(img) {
  padding: 15px;
  aspect-ratio: auto;
  width: fit-content;
  max-width: 100%;
}

.image-placeholder img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: fill;
  border-radius: 8px;
}

.step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: var(--steel-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-content h3 {
  margin-bottom: 15px;
  color: var(--jet-black);
}

/* Characters Section - Carousel */
.characters-section {
  background-color: var(--frozen-water);
}

.carousel-container {
  position: relative;
  margin-top: 50px;
  padding: 0 60px;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 30px;
}

.character-card {
  flex: 0 0 calc(33.333% - 20px);
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  text-align: center;
}

.character-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(79, 124, 172, 0.2);
}

.character-image {
  position: relative;
  background-color: var(--frozen-water);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--iron-grey);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background-color: var(--soft-cyan);
  color: var(--jet-black);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-le {
  background-color: #e8b04b;
  color: var(--jet-black);
}

/* Character image ping-pong rotation */
.character-rotator {
  position: relative;
  width: 100%;
  height: 100%;
}

.rotator-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.rotator-frame.frame-visible {
  opacity: 1;
}

.character-name {
  padding: 20px 15px 10px;
  color: var(--jet-black);
}

.character-part {
  padding: 0 15px 6px;
  color: var(--iron-grey);
  font-size: 0.9rem;
}

.character-part-le {
  padding: 0 15px 20px;
  color: #b07d1a;
  font-size: 0.85rem;
  font-style: italic;
  z-index: 999;
}

.character-part-aka {
  padding: 0 15px 10px;
  color: var(--iron-grey);
  font-size: 0.78rem;
  font-style: italic;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border: 2px solid var(--steel-blue);
  border-radius: 50%;
  color: var(--steel-blue);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background-color: var(--steel-blue);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-btn span {
  line-height: 1;
  margin-top: -3px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--frozen-water);
  border: 2px solid var(--steel-blue);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background-color: var(--steel-blue);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background-color: var(--soft-cyan);
}

/* Features Section */
.features-section {
  background-color: var(--white);
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.features-image .image-placeholder.large {
  width: 100%;
  aspect-ratio: 4/3;
}

.features-image .image-placeholder.large:has(img) {
  width: 100%;
  padding: 0;
}

.features-image .image-placeholder.large img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.checkmark {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background-color: var(--steel-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-item h4 {
  margin-bottom: 5px;
  color: var(--jet-black);
}

.feature-item p {
  font-size: 0.95rem;
}

/* About Section */
.about-section {
  background-color: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-content + .about-content {
  margin-top: 60px;
}

.about-image .image-placeholder.circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin: 0 auto;
}

.about-image .image-placeholder.circle:has(img) {
  padding: 0;
  width: 250px;
}

.about-image .image-placeholder.circle img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.about-text h2 {
  margin-bottom: 25px;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-signature {
  font-style: italic;
  color: var(--steel-blue);
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--steel-blue) 0%,
    var(--iron-grey) 100%
  );
  color: var(--white);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta-subtitle {
  font-size: 1.125rem;
  margin-bottom: 40px;
  opacity: 0.95;
  color: var(--white);
}

.cta-kickstarter-btn {
  display: inline-block;
  font-size: 1.25rem;
  padding: 18px 48px;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.cta-divider::before,
.cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
}

.cta-email-label {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 50px auto 0;
}

.faq-item {
  border-bottom: 2px solid var(--frozen-water);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 25px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--jet-black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--steel-blue);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--steel-blue);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 25px;
  line-height: 1.8;
}

/* Footer */
.footer {
  background-color: var(--jet-black);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--white);
}

.footer-tagline {
  color: var(--frozen-water);
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--frozen-water);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--soft-cyan);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.social-links a {
  font-size: 1.5rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  transform: scale(1.2);
}

.footer-email {
  color: var(--frozen-water);
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--iron-grey);
  color: var(--frozen-water);
}

.footer-bottom a {
  color: var(--frozen-water);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--soft-cyan);
}

/* Responsive Design */
@media (max-width: 968px) {
  .step {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .step-reverse {
    flex-direction: column-reverse;
  }

  .features-layout,
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content {
    text-align: center;
  }

  .about-image .image-placeholder.circle {
    margin: 0 auto;
  }

  /* Carousel - Show 2 cards on tablet */
  .character-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--jet-black);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 30px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }

  /* Carousel - Show 1 card on mobile */
  .carousel-container {
    padding: 0 50px;
  }

  .character-card {
    flex: 0 0 100%;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 50px 0;
  }

  .three-col-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 20px;
  }

  /* Carousel - Smaller buttons on small mobile */
  .carousel-container {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.25rem;
  }

  .carousel-btn-prev {
    left: -5px;
  }

  .carousel-btn-next {
    right: -5px;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
