/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: 'Inter', sans-serif;
  background-color: #0e0e0e;
  color: #ffffff;
  line-height: 1.6;
}

/* Hero */
header {
  text-align: center;
  padding: 80px 20px 40px;
}
header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}
header p {
  font-size: 1.25rem;
  color: #aaaaaa;
  max-width: 700px;
  margin: 0 auto 40px;
}
.entry-box {
  margin-top: 20px;
}
.entry-box button {
  background: rgb(3, 169, 244);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.entry-box button:hover {
  background: #0288d1;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto 40px;
  background: linear-gradient(to bottom, #121212, #181818);
  border-radius: 12px;
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #61dafb;
}
/* Subtitle under "Meet Your Advisors" */
.section-subtitle {
  text-align: center;
  color: #bbbbbb;
  margin-top: -10px;
  font-size: 1rem;
}

/* Avatar Preview */
.avatar-preview {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.avatar-card {
  background-color: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
}
.avatar-card:hover {
  transform: scale(1.05);
}
/* Avatar Image Fit */
.avatar-card .avatar-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.avatar-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 12px;
}
.avatar-role {
  font-size: 0.9rem;
  color: #bbbbbb;
  margin-top: 4px;
}
.voice-sample {
  margin-top: 12px;
  color: #61dafb;
  cursor: pointer;
}

/* Testimonials & Carousel */
.testimonial-section {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  flex-wrap: nowrap;
}
.testimonial-section::-webkit-scrollbar {
  display: none;
}
.testimonial {
  background-color: #181818;
  border-radius: 10px;
  padding: 20px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(97,218,251,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(97,218,251,0.3);
}
.testimonial p {
  font-size: 0.95rem;
  color: #dddddd;
}
.testimonial-author {
  color: #888888;
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
}

/* Carousel Nav */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 1100px;
}
.carousel-nav {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background 0.2s;
}
.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.5);
}
.left-nav {
  left: -20px;
}
.right-nav {
  right: -20px;
}
/* Note under carousel */
.carousel-note {
  text-align: center;
  color: #999999;
  font-size: 0.9rem;
  margin-top: 30px;
}

/* Lead Capture */
.lead-capture {
  background-color: #202020;
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #2a2a2a;
  margin-bottom: 40px;
}
.lead-capture-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.lead-capture-actions input[type="email"] {
  padding: 12px;
  width: 300px;
  border-radius: 6px;
  border: 1px solid #444444;
  font-size: 1rem;
}
.lead-capture-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #aaaaaa;
}

/* Buttons */
.cta-button {
  background-color: #03a9f4;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #0288d1;
}

/* Footer */
.footer {
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #888888;
  border-top: 1px solid #2a2a2a;
}

.footer-text {
  text-align: center;
  color: #888888;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  font-family: 'Inter', sans-serif;
}

.footer-text a {
  color: #888888;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 600px) {
  .cta-button,
  .lead-capture-actions input[type="email"] {
    width: 100%;
    margin: 10px 0;
  }
  .carousel-nav {
    display: none;
  }
}

/* 1. Ensure sections fill the viewport nicely */
section {
  padding: 40px 16px;
}

/* 2. Scale down your hero text */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 24px;
  }
}

/* 3. Avatar cards: full width on narrow screens */
@media (max-width: 600px) {
  .avatar-preview {
    flex-direction: column;
    gap: 20px;
  }
  .avatar-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* 4. Testimonials: make them wrap instead of horizontal scroll */
@media (max-width: 600px) {
  .testimonial-section {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }
  .testimonial {
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
  }
  .carousel-nav {
    display: none; /* hide arrows on mobile */
  }
}

/* 5. Lead capture: stack fields vertically */
@media (max-width: 600px) {
  .lead-capture-actions {
    flex-direction: column;
  }
  .lead-capture-actions input[type="email"],
  .lead-capture-actions button {
    width: 100%;
    margin: 8px 0;
  }
}

/* 6. Adjust font sizing lightly for readability */
@media (max-width: 400px) {
  body {
    font-size: 0.9rem;
  }
}
.advisor-video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #000;
}




.avatar-card video {
  display: block;
}

/* Additional CSS for Enhanced Authentication Flow */

/* Auth loading overlay */
.auth-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 14, 14, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.auth-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(97, 218, 251, 0.3);
  border-top: 3px solid #61dafb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.auth-loading-overlay p {
  color: #61dafb;
  font-size: 1rem;
  font-weight: 600;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Auth status message */
.auth-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #aaaaaa;
  text-align: center;
  min-height: 20px;
  transition: all 0.3s ease;
}

.auth-status.logged-in {
  color: #4CAF50;
}

.auth-status.error {
  color: #ff6b6b;
}

/* Enhanced button states */
.entry-box button:disabled {
  background: #666666;
  cursor: not-allowed;
  transform: none;
}

.entry-box button.loading {
  position: relative;
  color: transparent;
}

.entry-box button.loading::after {
  content: attr(data-loading-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
}

.entry-box button.authenticated {
  background: #4CAF50;
}

.entry-box button.authenticated:hover {
  background: #45a049;
}

/* Ensure page is hidden until auth check completes */
body {
  visibility: hidden;
}

body.loaded {
  visibility: visible;
}

/* Enhanced responsive design for auth elements */
@media (max-width: 600px) {
  .auth-loading-overlay p {
    font-size: 0.9rem;
    padding: 0 20px;
    text-align: center;
  }
  
  .auth-status {
    font-size: 0.8rem;
    padding: 0 20px;
  }
}

