@import url("https://fonts.googleapis.com/css2?family=Madimi+One&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

/* Welcome Page Styles */
body {
  font-family: "Nunito Sans", sans-serif;
  color: #000000;
}
* { -webkit-tap-highlight-color: rgba(255,255,255,0.15); }
a, button, [role="button"] { touch-action: manipulation; }

.welcome-section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.welcome-section h1 {
  font-family: "Madimi One", sans-serif;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: #203580 !important;
}

.welcome-section h2 {
  font-family: "Madimi One", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2d5a9e !important;
}

.welcome-section h3 {
  font-family: "Madimi One", sans-serif;
}

.welcome-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

/* Section-specific styles */
#hero {
  padding-top: 2rem;
  min-height: auto;
  display: flex;
  align-items: center;
}

#features {
  background-color: rgba(32, 53, 128, 0.03);
}

#insights {
  background-color: var(--color-white);
}

#call-to-action {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-light) 100%
  );
  color: white;
}

#call-to-action h2,
#call-to-action p {
  color: white !important;
}

/* Image styles */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin: 0 auto;
}

/* Container for tall images (3:4 aspect ratio) */
.image-container:has(.fade-image) {
  aspect-ratio: 3/4;
  max-height: 500px;
  width: 100%;
}

/* Container for wide images (16:9 aspect ratio) */
.image-container:has(.image-wide) {
  aspect-ratio: 16/9;
  max-height: 250px;
  width: 100%;
}

.image-wide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-tall {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fade-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-image.active {
  opacity: 1;
}

/* Feature cards */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: transform 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(32, 53, 128, 0.1);
}

.feature-card p {
  color: #000000;
}

.feature-card:hover {
  transform: translateY(-5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .welcome-section {
    padding: 3rem 0;
  }

  .welcome-section h1 {
    font-size: 2.5rem;
  }

  .welcome-section h2 {
    font-size: 2rem;
  }

  .image-container {
    max-height: 400px;
  }

  .image-wide {
    height: 200px;
  }
}

/* Animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button styles */
.btn-memori {
  background: linear-gradient(135deg, var(--color-accent) 0%, #00894e 100%);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 104, 56, 0.25);
}

.btn-memori:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, #009e5c 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 104, 56, 0.3);
}

.btn-memori:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 104, 56, 0.2);
}

/* Blog styles */
.blog-post {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(32, 53, 128, 0.1);
}

.blog-post h2 {
  color: var(--color-primary);
  margin-top: 1rem;
}

.blog-post .text-muted {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #6c757d;
}

.blog-post p {
  margin-bottom: 1.5rem;
  color: #000000;
}

.blog-post .lead {
  font-size: 1.2rem;
  color: #000000;
}

/* Additional utility class for light backgrounds */
.bg-light {
  background-color: rgba(32, 53, 128, 0.03);
}

/* Beta request form */
.beta-form-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
  margin-top: 0;
}

.beta-form-wrapper.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 2rem;
}

.beta-input {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.beta-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.beta-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.slider-section {
  margin: 1rem 0;
}

.slider-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.slider-container {
  position: relative;
  margin: 0.75rem 0;
  height: 40px;
  display: flex;
  align-items: center;
}

.slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  opacity: 0.8;
  transition: opacity 0.2s;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-accent, #00a85a);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
  background: #009e5c;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-accent, #00a85a);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
  background: #009e5c;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.beta-success {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1.5rem;
  animation: flash-appear 0.3s ease-out;
}

@keyframes flash-appear {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.beta-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  z-index: 9999;
  max-width: 500px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.beta-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
