:root {
  --primary-color: #384546;
  --primary-hover: #1A365D;
  --text-color: #333;
  --background-color: #f9f9f9;
  --card-background: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  min-height: 100vh;
  align-items: center;
}

.left-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 220px;
  position: relative;
  /* Ensures enough space for the carousel */
  padding-left: 40px; /* Make space for vertical dots */
}

.right-section {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 120px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #ef6c00;
  text-align: center;
}

.tagline {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
}

.description {
  font-size: 1.2rem;
  margin-top: 2rem;
  font-weight: 400;
  color: #666;
  text-align: center;
  max-width: 600px;
}

.input-group {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem 0;
}

.email-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.notify-btn {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.notify-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Carousel Indicators */
.carousel-container {
  width: 100%;
  max-width: 630px;
  height: 630px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.indicator {
  background-color: var(--card-background);
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  opacity: 1;
  margin-bottom: 0;
}

.indicator-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  justify-content: flex-start;
}

.indicator-content h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-align: center;
}

.indicator-canvas {
  width: 540px;
  height: 400px;
  background-color: #f0f0f0;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.indicator-content p {
  color: #666;
  font-size: 1.05rem;
  text-align: center;
  margin-top: auto;
}

@media (max-width: 1250px) {
  .container {
    flex-direction: column;
    gap: 3rem;
  }
  .left-section {
    padding-left: 0;
    order: 2;
    margin-top: 2rem;
  }
  .right-section {
    order: 1;
    text-align: center;
  }
  .carousel-dots {
    display: none !important;
  }
  .carousel-container {
    max-width: 100%;
    height: auto;
    overflow: visible;
  }
  .carousel-track {
    position: static;
    display: block;
  }
  .indicator {
    height: auto;
    min-height: auto;
    margin-bottom: 2rem;
    width: 100%;
    padding: 1.5rem;
  }
  .indicator-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    max-width: 540px;
  }
}

@media (max-width: 600px) {
  .carousel-container {
    max-width: 100%;
  }
  .indicator {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .indicator-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    max-width: 420px;
  }
  .dot {
    width: 9px;
    height: 9px;
  }
}

.social-icons {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s;
  filter: grayscale(100%);
}

.social-icons a:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
}

.social-icons svg {
  display: block;
  width: 32px;
  height: 32px;
  stroke: #111;
  fill: none;
}

@media (max-width: 600px) {
  .social-icons {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .social-icons svg {
    width: 24px;
    height: 24px;
  }
}

.carousel-dots {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  z-index: 10; /* Ensure dots are above carousel */
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #3f51b5; /* primary-hover color */
}

.dots-pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dots-pause-btn .pause-icon,
.dots-pause-btn .play-icon {
  width: 16px;
  height: 16px;
  fill: #555; /* Icon color */
}

/* Financial Metrics Styles */
.financial-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
}

.metric {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.metric:hover {
  transform: translateY(-2px);
}

.metric h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0.5rem 0;
}

.metric-value .per-month {
  font-size: 0.7em;
  font-weight: 500;
}

.metric-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-status.healthy {
  background: #e8f5e9;
  color: #2e7d32;
}

.metric-status.ok {
  background: #fff3e0;
  color: #ef6c00;
}

.metric-status.poor {
  background: #ffebee;
  color: #c62828;
}

.metric-status.great {
  background: #e3f2fd;
  color: #1565c0;
}

.metric-status.risky {
  background: #ffebee;
  color: #c62828;
}

.metric-status.warning {
  background: #fff3e0;
  color: #ef6c00;
}

.metric-description {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.metric-ranges {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
}

.metric-ranges span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-ranges span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.metric-ranges .healthy::before {
  background: #4caf50;
}

.metric-ranges .ok::before {
  background: #ff9800;
}

.metric-ranges .poor::before {
  background: #f44336;
}

.metric-ranges .great::before {
  background: #2196f3;
}

.metric-ranges .risky::before {
  background: #f44336;
}

.metric-ranges .warning::before {
  background: #ff9800;
}

/* Wealth Chart Styles */
.wealth-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#wealth-bar-chart {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-bottom: 1rem;
}

.wealth-message {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
  margin-top: 1rem;
}

/* Smaller wealth chart for education card */
.wealth-chart-container.small {
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: #f0f7f4;
  box-shadow: none;
}

.wealth-message.small {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .financial-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wealth-chart-container {
    padding: 1rem;
  }

  .wealth-message {
    font-size: 1rem;
  }

  .metric {
    padding: 1rem;
  }

  .metric-value {
    font-size: 1.75rem;
  }

  .metric-value .per-month {
    font-size: 0.7em;
    font-weight: 500;
  }
}


html, body {
  overflow-x: hidden;
}

.container,
.carousel-track,
.left-section {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 1250px) {
  .container {
    flex-direction: column;
    gap: 3rem;
    padding: 1rem;
  }

  .left-section {
    width: 100%;
    padding-left: 0;
    order: 2;
    margin-top: 2rem;
  }

  .carousel-track {
    width: 100%;
    overflow-x: hidden;
  }
}

.metric {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.financial-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

@media (max-width: 360px) {
  .input-group {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  
  .email-input {
    width: 100%;
  }
  
  .notify-btn {
    width: 100%;
  }
}
