/* ABOUTME: Styles for the Homara homepage */
/* ABOUTME: Contains base resets, navigation, sections, and scroll animation classes */

/* ============================================
   BASE RESETS
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #efe8d8;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-brand {
  font-size: 50px;
  font-family: 'Braun Linear', sans-serif;
  color: #000;
  font-weight: 300;
  line-height: normal;
  transition: opacity 0.1s ease;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.1s ease;
}

.nav-link {
  font-size: 24px;
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  color: #000;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 4px;
}

/* Underline appears on hover */
.nav-link:hover {
  text-decoration: underline;
}

/* Active link has underline only when nav-links is not being hovered */
.nav-links:not(:hover) .nav-link.active {
  text-decoration: underline;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-launch {
  width: 100vw;
  height: 100vh;
  background-color: #efe8d8;
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* ============================================
   DEFINITION SECTION
   ============================================ */
.section-definition {
  width: 100vw;
  min-height: 100vh;
  background-color: #efe8d8;
  position: relative;
  padding: 100px 5% 0px 5%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-definition.visible {
  opacity: 1;
  transform: translateY(0);
}

.definition-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.definition-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.definition-title {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 80px;
  color: #000;
  margin: 0;
  line-height: 1.1;
}

.definition-word {
  position: relative;
  display: inline-block;
}

.definition-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease-out;
}

.definition-parens {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 48px;
}

.definition-type {
  font-family: 'Braun Linear', 'Braun Linear Thin', sans-serif;
  font-weight: 100;
  font-size: 48px;
}

.definition-pronunciation {
  font-family: 'Braun Linear', 'Braun Linear Thin', sans-serif;
  font-weight: 100;
  font-size: 48px;
  color: #000;
  margin: 0 0 24px 0;
}

.definition-entries {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.definition-entry {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 40px;
  color: #000;
  margin: 0;
  line-height: 1.4;
}

.definition-number {
  font-family: 'Braun Linear', sans-serif;
  font-weight: 500;
}

.definition-logo {
  width: 180px;
  height: auto;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.section-pricing {
  width: 100vw;
  background-color: #efe8d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 2px 60px 2px;
  gap: 20px;
}

.pricing-box {
  width: 100%;
  max-width: 800px;
  border: 2px solid #2E315F;
  background-color: #efe8d8;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pricing-box-content {
  flex: 1;
}

.pricing-box-text {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  margin: 0;
  line-height: 1.5;
}

.pricing-box-text strong {
  font-weight: 700;
}

.pricing-see-more {
  font-weight: 700;
  cursor: pointer;
}

.pricing-see-more:hover {
  text-decoration: underline;
}

.pricing-box-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  transform: scale(3);
  transform-origin: center right;
}

.pricing-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.pricing-button {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #efe8d8;
  background-color: #2E315F;
  padding: 10px 16px;
  border-radius: 4px;
}

/* ============================================
   VALUES CAROUSEL SECTION
   ============================================ */
.section-values-carousel {
  width: 100vw;
  background-color: #efe8d8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 24px;
}

.carousel-image-frame {
  width: 100%;
  max-width: 650px;
  border: 2px solid #2E315F;
  background-color: #efe8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-image-frame.has-video {
  max-height: 400px;
}

.carousel-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

video.carousel-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.carousel-arrow {
  background: transparent;
  border: none;
  font-size: 96px;
  color: #708090;
  cursor: pointer;
  padding: 16px;
  transition: color 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  color: #2E315F;
}

.carousel-text-content {
  text-align: center;
  max-width: 700px;
  padding: 0 10px;
}

.carousel-title {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  text-decoration: underline;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  margin: 0 0 8px 0;
}

.carousel-description {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   EMAIL FORM SECTION
   ============================================ */
.section-email-form {
  width: 100vw;
  background-color: #efe8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.email-form-container {
  width: 100%;
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.email-form-title {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  font-weight: 400;
  font-size: 48px;
  color: #000;
  margin: 0;
  letter-spacing: 1px;
}

.email-form-description {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  margin: 0;
  line-height: 1.5;
}

.email-form {
  width: 100%;
}

.email-form-input-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
}

.email-form-input {
  flex: 1;
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  background-color: #fff;
  border: 2px solid #2E315F;
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s ease;
}

.email-form-input::placeholder {
  color: #999;
}

.email-form-input:focus {
  border-color: #000;
}

.email-form-button {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #efe8d8;
  background-color: #2E315F;
  border: 2px solid #2E315F;
  padding: 14px 32px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.email-form-button:hover:not(:disabled) {
  opacity: 0.85;
}

.email-form-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.email-form-message {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #2E315F;
  margin: 0;
  min-height: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.email-form-message.show {
  opacity: 1;
}

.email-form-message.error {
  color: #ef4444;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.section-footer {
  width: 100vw;
  min-height: 400px;
  background-color: #2E315F;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-brand {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  font-weight: 400;
  font-size: 48px;
  color: #EBC34B;
  margin: 0;
}

.footer-columns {
  display: flex;
  gap: 80px;
  justify-content: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-link {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.7;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* ============================================
   FLOATING FIGURES (ELLIPSES)
   ============================================ */
.floating-figure {
  position: absolute;
  width: 8%;
}

.floating-figure img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ============================================
   LAUNCH BUTTON
   ============================================ */
.launch-button {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #d32f2f;
  z-index: 100;
  transform: translate(-50%, -50%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  color: white;
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  transition: all 0.3s ease;
}

.launch-button:hover {
  background-color: #b71c1c;
  transform: translate(-50%, -50%) scale(1.05);
}

/* ============================================
   COMMUNITY MODAL
   ============================================ */
.community-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.community-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.community-modal-dialog {
  background: #efe8d8;
  border: 2px solid #000;
  padding: 40px 50px;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.community-modal-title {
  font-size: 32px;
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  color: #000;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.community-modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.community-modal-button {
  background: transparent;
  border: 1px solid #000;
  padding: 14px 24px;
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #000;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.community-modal-button:hover {
  background-color: #708090;
  color: #fff;
}

.community-modal-loading {
  color: #666;
  font-size: 16px;
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
}

.community-modal-error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 10px;
  display: block;
}

/* ============================================
   PRICING INFO MODAL
   ============================================ */
.pricing-info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pricing-info-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.pricing-info-modal-dialog {
  background: #efe8d8;
  border: 2px solid #2E315F;
  padding: 32px 40px;
  min-width: 300px;
  max-width: 450px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-info-modal-message {
  font-family: 'Braun Linear', 'Braun Linear Light', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #000;
  margin: 0;
  line-height: 1.5;
}

.pricing-info-modal-link {
  font-family: 'Braun Linear', 'Braun Linear Regular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #efe8d8;
  background-color: #2E315F;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.pricing-info-modal-link:hover {
  opacity: 0.85;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 768px) {
  /* Navigation - Fixed at top on mobile */
  .nav {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 15px 20px;
    background-color: #efe8d8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-brand {
    font-size: 28px;
    opacity: 1 !important; /* Always visible on mobile */
  }

  .nav-links {
    flex-direction: row;
    gap: 16px;
    transform: none !important; /* Disable scroll animation on mobile */
  }

  .nav-link {
    font-size: 16px;
  }

  /* Launch Section */
  .section-launch {
    min-height: 100vh;
    padding-top: 60px; /* Account for fixed nav */
  }

  .floating-figure {
    width: 12%;
  }

  .launch-button {
    width: 120px;
    height: 120px;
    font-size: 18px;
  }

  /* Definition Section */
  .definition-container {
    padding: 0 20px;
    gap: 50px;
  }

  .definition-title {
    font-size: 48px;
  }

  .definition-type {
    font-size: 32px;
  }

  .definition-parens {
    font-size: 32px;
  }

  .definition-pronunciation {
    font-size: 32px;
  }

  .definition-entry {
    font-size: 32px;
  }

  .definition-subtitle {
    font-size: 18px;
  }

  .definition-logo {
    width: 140px;
    margin-top: 30px;
  }

  /* Pricing Section */
  .section-pricing {
    padding: 40px 15px;
    gap: 16px;
  }

  .pricing-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .pricing-box-text {
    font-size: 14px;
  }

  .pricing-box-logo {
    display: none;
  }

  .pricing-buttons {
    justify-content: center;
  }

  /* Values Carousel Section */
  .section-values-carousel {
    padding: 40px 15px;
    gap: 16px;
  }

  .carousel-text-container {
    gap: 12px;
  }

  .carousel-arrow {
    font-size: 48px;
    padding: 12px;
  }

  .carousel-image-frame {
    max-width: 100%;
    aspect-ratio: auto;
  }

  .carousel-title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .carousel-description {
    font-size: 14px;
  }

  /* Email Form Section */
  .section-email-form {
    padding: 60px 20px;
  }

  .email-form-title {
    font-size: 36px;
  }

  .email-form-description {
    font-size: 14px;
  }

  .email-form-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .email-form-input,
  .email-form-button {
    width: 100%;
    font-size: 14px;
  }

  .email-form-message {
    font-size: 14px;
  }

  /* Footer Section */
  .section-footer {
    padding: 60px 20px;
    min-height: 300px;
  }

  .footer-brand {
    font-size: 36px;
  }

  .footer-columns {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .footer-links {
    align-items: center;
    text-align: center;
  }

  .footer-link {
    font-size: 24px;
  }

  /* Modals */
  .community-modal-dialog {
    padding: 30px 35px;
    min-width: 250px;
    max-width: 90%;
  }

  .community-modal-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .community-modal-button {
    font-size: 16px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  /* Navigation - Fixed at top on small mobile */
  .nav {
    padding: 12px 15px;
  }

  .nav-brand {
    font-size: 24px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 14px;
  }

  /* Launch Section */
  .floating-figure {
    width: 15%;
  }

  .launch-button {
    width: 100px;
    height: 100px;
    font-size: 16px;
  }

  /* Definition Section */
  .definition-container {
    padding: 0 15px;
    gap: 40px;
  }

  .definition-title {
    font-size: 48px;
  }

  .definition-type {
    font-size: 32px;
  }

  .definition-parens {
    font-size: 32px;
  }

  .definition-pronunciation {
    font-size: 32px;
  }

  .definition-entry {
    font-size: 32px;
  }

  .definition-subtitle {
    font-size: 16px;
  }

  .definition-logo {
    width: 120px;
    margin-top: 20px;
  }

  /* Pricing Section */
  .pricing-box-text {
    font-size: 13px;
  }

  .pricing-button {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Values Carousel */
  .carousel-arrow {
    font-size: 40px;
    padding: 10px;
  }

  .carousel-title {
    font-size: 12px;
  }

  .carousel-description {
    font-size: 12px;
  }

  /* Email Form Section */
  .section-email-form {
    padding: 40px 15px;
  }

  .email-form-title {
    font-size: 28px;
  }

  .email-form-description {
    font-size: 13px;
  }

  .email-form-input,
  .email-form-button {
    font-size: 13px;
    padding: 12px 16px;
  }

  .email-form-message {
    font-size: 13px;
  }

  /* Footer Section */
  .section-footer {
    padding: 40px 15px;
  }

  .footer-brand {
    font-size: 28px;
  }

  .footer-link {
    font-size: 20px;
  }

  /* Modals */
  .community-modal-dialog {
    padding: 25px 20px;
  }

  .community-modal-title {
    font-size: 20px;
  }

  .community-modal-button {
    font-size: 14px;
    padding: 10px 16px;
  }
}
