* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #1a3a52 50%, #164e63 75%, #1e1b4b 100%);
  background-attachment: fixed;
  color: #e2eaf6;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  mix-blend-mode: screen;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px);
  opacity: 0.3;
  z-index: 0;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 150px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 30px;
  z-index: 1;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  margin-bottom: 30px;
  background: rgba(3, 11, 29, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 24px 20px;
  z-index: 100;
  position: relative;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  color: #dbeafe;
  font-weight: 700;
}

.site-header p,
.site-footer p {
  color: #c0d6f6;
  margin: 6px 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
}

.stepper {
  display: flex;
  gap: 12px;
  margin-bottom: 35px;
  justify-content: center;
  z-index: 100;
  position: relative;
}

.step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #dbeafe;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.step.active {
  background: linear-gradient(135deg, #0ea5e9, #34d399);
  color: #0b1222;
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 0 2px rgba(220, 252, 231, 0.4), 0 8px 25px rgba(16, 185, 129, 0.25);
}

.page {
  position: relative;
  width: 100%;
  display: none;
  padding: 20px 0;
  overflow-y: visible;
  z-index: 10;
}

.page.active {
  display: block;
}

/* Animation utilities */
.animate { opacity: 0; transform: translateY(10px) scale(0.995); transition: opacity 420ms var(--ease, cubic-bezier(.2,.9,.25,1)), transform 420ms var(--ease, cubic-bezier(.2,.9,.25,1)); }
.animate.in { opacity: 1; transform: translateY(0) scale(1); }

@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.floaty { animation: floaty 4s ease-in-out infinite; }

/* slight shimmer for calls-to-action */
.cta-shimmer { position: relative; overflow: hidden; }
.cta-shimmer::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  transition: transform 1.6s ease;
}
.cta-shimmer:hover::after { transform: translateX(120%); }

/* stagger helper using CSS variable */
.stagger > * { opacity: 0; transform: translateY(8px); transition: opacity 420ms ease, transform 420ms ease; }
.stagger.in > * { opacity: 1; transform: translateY(0); }
.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

.card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow-y: visible;
  background: linear-gradient(180deg, rgba(15, 30, 55, 0.95), rgba(10, 25, 50, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(3, 5, 18, 0.45), inset 0 0 1px rgba(255,255,255,0.12);
  padding: 40px 32px;
  backdrop-filter: blur(4px);
  margin-bottom: 30px;
  z-index: 10;
}

h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: #ebf4ff;
  text-shadow: 0 2px 12px rgba(8, 29, 55, 0.65);
  font-weight: 700;
}

.box {
  background: rgba(30, 55, 90, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.box h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.15rem;
  color: #dbeafe;
  letter-spacing: 0.01em;
  font-weight: 600;
}

label {
  display: block;
  margin: 8px 0;
  font-size: 0.96rem;
  color: #e2ecff;
  cursor: pointer;
}

input[type='text'],
input[type='email'] {
  width: min(100%, 460px);
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(16, 23, 46, 0.8);
  color: #e6f3ff;
  font-size: 0.96rem;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='radio']:focus,
input[type='checkbox']:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

input[type='radio'],
input[type='checkbox'] {
  accent-color: #22c55e;
  margin-right: 8px;
  transform: translateY(1px);
}

.actions-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.dashboard .visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 25px 0 20px;
}

.recommended-card {
  background: rgba(20, 40, 70, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.recommended-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recommended-list li {
  color: #e4efff;
  margin: 6px 0;
  background: rgba(20, 35, 60, 0.65);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.dashboard .chart-card {
  background: rgba(20, 40, 70, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 18px;
}

.bar-row {
  margin-bottom: 12px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  color: #c5d8f7;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.bar-track {
  width: 100%;
  height: 12px;
  background: rgba(203, 213, 225, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  border-radius: 999px;
}

.interest-circle {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  color: #e3eeff;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.interest-circle span {
  font-size: 0.8rem;
  opacity: 0.82;
}

.interest-circle strong {
  font-size: 1.15rem;
  color: #fff;
}

.submission-popup {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: rgba(8, 18, 40, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.7);
  border-radius: 10px;
  color: #e9f2ff;
  padding: 10px 16px;
  min-width: 260px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(2, 9, 25, 0.5);
  backdrop-filter: blur(6px);
}

.submission-popup.show {
  display: block;
  animation: popupFade 0.4s ease;
}

.submission-popup[hidden] {
  display: none;
}

@keyframes popupFade {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

button,
button.primary,
button.secondary {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  font-size: 1rem;
}

button.primary {
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

button.secondary {
  background: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  padding: 12px 24px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

button:active {
  transform: translateY(0) scale(0.98);
}

/* Navigation Menu Styles */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(3, 11, 29, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(10px);
  z-index: 200;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  min-height: 120px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 90px;
  width: 90px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.profile-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15, 30, 55, 0.98), rgba(10, 25, 50, 0.99));
  border: 2px solid rgba(56, 189, 248, 0.6);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  animation: popupSlideIn 0.4s ease-out;
}

.profile-popup.show {
  display: block;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.profile-popup-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}

.profile-popup-backdrop.show {
  display: block;
}

.profile-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.profile-popup h2 {
  color: #38bdf8;
  margin: 0;
  font-size: 1.8em;
}

.profile-popup-close {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 1.8em;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.profile-popup-close:hover {
  color: #38bdf8;
}

.profile-popup p {
  color: #e2eaf6;
  font-size: 1em;
  line-height: 1.6;
  margin: 15px 0;
}

.profile-popup-contact {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(56, 189, 248, 0.3);
}

.profile-popup-contact a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.profile-popup-contact a:hover {
  color: #10b981;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.welcome-nav {
  text-align: center;
  margin-top: 20px;
}

.welcome-nav a {
  padding: 12px 25px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
  transition: all 0.3s ease;
  font-weight: 600;
}

.welcome-nav a:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    gap: 10px;
    padding: 12px 20px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    font-size: 0.95em;
  }
}

@media (max-width: 860px) {
  .actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stepper {
    justify-content: center;
  }

  .box,
  .card,
  .site-header,
  .site-footer {
    padding: 24px 16px;
  }

  input[type='text'],
  input[type='email'] {
    width: 100%;
  }

  .dashboard .visual-row {
    grid-template-columns: 1fr;
  }
}

/* Auto-Sliding Banner Styles */
.banner-slider {
  display: none;
}

.banner-container {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideAuto 12s infinite;
}

@keyframes slideAuto {
  0% { transform: translateX(0); }
  20% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  45% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  70% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  95% { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}

.banner-slide {
  min-width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(16, 185, 129, 0.1));
  border: none;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.banner-slide:nth-child(1) {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(100, 200, 255, 0.15));
}

.banner-slide:nth-child(2) {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(80, 220, 140, 0.15));
}

.banner-slide:nth-child(3) {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(200, 120, 255, 0.15));
}

.banner-slide:nth-child(4) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(120, 180, 255, 0.15));
}

.banner-content {
  z-index: 2;
}

.banner-content h2 {
  font-size: 2.2em;
  color: #38bdf8;
  margin: 0 0 15px 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.banner-content p {
  font-size: 1.1em;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
}

.banner-controls {
  display: none;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.3);
  border: 2px solid rgba(56, 189, 248, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-dot.active {
  background: #38bdf8;
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.banner-nav-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.2);
  border: 2px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.banner-nav-button:hover {
  background: rgba(56, 189, 248, 0.4);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.banner-nav-button.prev {
  left: 20px;
}

.banner-nav-button.next {
  right: 20px;
}

@media (max-width: 768px) {
  .banner-content h2 {
    font-size: 1.6em;
  }

  .banner-content p {
    font-size: 0.95em;
  }

  .banner-nav-button {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

  .banner-nav-button.prev {
    left: 10px;
  }

  .banner-nav-button.next {
    right: 10px;
  }

  .app-shell {
    padding-top: 70px;
  }
}

/* Welcome Images Grid Styles */
.welcome-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  width: 100%;
}

.welcome-image-card {
  background: rgba(20, 55, 85, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.welcome-image-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.2);
  background: rgba(25, 60, 95, 0.8);
}

.image-placeholder {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.image-placeholder:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.welcome-image-card h3 {
  font-size: 1.2em;
  color: #38bdf8;
  margin: 15px 0 10px;
}

.welcome-image-card p {
  font-size: 0.9em;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .welcome-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
  }

  .welcome-image-card {
    padding: 15px;
  }

  .image-placeholder {
    height: 180px;
    margin-bottom: 10px;
  }

  .welcome-image-card h3 {
    font-size: 1em;
  }

  .welcome-image-card p {
    font-size: 0.8em;
  }
}
