/* ==========================================================================
   GROWTH WITH GYANENDRA - UI COMPONENTS STYLES
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.btn-whatsapp {
  background: var(--accent-whatsapp);
  color: #052e16;
  font-weight: 700;
  box-shadow: var(--shadow-glow-emerald);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: #20bd5a;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-glass-bright);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-indigo);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glass-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Glass Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-white);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.55rem 0;
  }
  .site-header .container {
    justify-content: center;
    text-align: center;
  }
  .site-header .nav-actions {
    display: none; /* Hide top CTA on mobile to prevent header overflow */
  }
  .brand-logo {
    font-size: 0.88rem;
    gap: 0.35rem;
    letter-spacing: -0.2px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
}

.brand-badge {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-white);
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

/* Audience Segment Switcher Pill */
.segment-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2.5rem 0;
}

.segment-pill {
  display: inline-flex;
  background: rgba(17, 24, 39, 0.9);
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass-bright);
}

.segment-btn {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.segment-btn.active {
  background: var(--grad-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
  .segment-switcher-wrapper {
    margin: 1rem 0 1.75rem 0;
    width: 100%;
  }
  
  .segment-pill {
    width: 100%;
    display: flex;
    gap: 0.2rem;
    padding: 0.25rem;
  }

  .segment-btn {
    flex: 1;
    padding: 0.6rem 0.4rem;
    font-size: 0.78rem;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
  }
}

/* Hero Section */
.hero-section {
  padding: 1.5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-pill);
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-gradient-text {
  background: var(--grad-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
}

@media (max-width: 600px) {
  .hero-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    max-width: 100%;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  .hero-headline {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  .hero-subheadline {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 600px) {
  .hero-portrait-card {
    max-width: 290px;
    margin: 1.5rem auto 0 auto;
  }
}

.hero-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass-bright);
  box-shadow: var(--shadow-lg);
}

.hero-portrait-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-portrait-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0) 100%);
  padding: 1.5rem 1.25rem 1rem 1.25rem;
}

.hero-portrait-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.hero-portrait-role {
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

/* Trust Stats Bar */
.trust-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .trust-stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-white);
  background: var(--grad-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .trust-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 0.85rem 0.65rem;
    gap: 0.75rem 0.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
  }

  .stat-item {
    padding: 0.65rem 0.35rem;
    background: rgba(30, 41, 59, 0.45);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .stat-number {
    font-size: 1.4rem;
    line-height: 1.15;
    margin-bottom: 0.2rem;
  }

  .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
  }
}

/* Leaders & Mentors Gallery & Auto-Scrolling Marquee */
.leader-marquee-wrapper {
  width: 100%;
}

.leader-marquee-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (min-width: 769px) {
  .leader-marquee-track > .leader-card:nth-child(n+10) {
    display: none; /* Hide duplicated set on desktop static 4-col grid */
  }
}

@media (max-width: 768px) {
  .leader-marquee-wrapper {
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }

  .leader-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: leaderMarqueeMobile 26s linear infinite;
  }

  .leader-marquee-track:hover,
  .leader-marquee-track:active {
    animation-play-state: paused; /* Pause on touch/tap so visitor can open photo */
  }

  .leader-marquee-track .leader-card {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
  }
}

@keyframes leaderMarqueeMobile {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.leader-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
}

.leader-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-normal);
}

.leader-card:hover img {
  transform: scale(1.06);
}

.leader-name-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.65rem 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  border-top: 1px solid var(--border-glass);
}

/* Clean Standard Mobile Responsiveness */
@media (max-width: 768px) {
  #roi-calculator .calc-glass-card {
    padding: 1.25rem 0.85rem !important;
    gap: 1.25rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .calc-slider-group {
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }

  /* Fix: label on its own full line, value on next line aligned right — prevents all clipping */
  .calc-slider-group .flex-between {
    flex-wrap: wrap !important;
    gap: 0.1rem 0 !important;
  }

  .calc-label {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  .calc-val {
    font-size: 0.9rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  #roi-calculator input[type="range"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0.35rem;
    height: 6px;
  }

  .calc-output-box {
    padding: 1.25rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
    background: rgba(9, 13, 22, 0.85) !important;
    box-sizing: border-box !important;
  }

  .calc-output-title {
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 0.35rem !important;
  }

  #estRevenue {
    font-size: 1.85rem !important;
    margin: 0.25rem 0 !important;
    line-height: 1.2 !important;
  }

  .calc-subtext {
    display: block !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-top: 0.35rem !important;
    margin-bottom: 1rem !important;
  }

  .calc-btn {
    padding: 0.75rem 1rem !important;
    font-size: 0.88rem !important;
    min-height: 44px !important;
  }

  .proof-img-box {
    height: 240px !important;
  }

  #free-resources .glass-card {
    padding: 1.5rem 1.25rem !important;
  }

  #free-resources .service-list {
    margin-bottom: 1.25rem;
  }

  #free-resources .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
}

/* Proof Card Screenshot Image Container */
.proof-img-box {
  width: 100%;
  height: 240px;
  background: #05080f;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.proof-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.proof-img-box:hover img {
  transform: scale(1.03);
}

.proof-img-box::after {
  content: '🔍 Click to view full image';
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(9, 13, 22, 0.85);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  pointer-events: none;
  border: 1px solid var(--border-glass-bright);
}

/* Lightbox Modal for Full Image Preview */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-bright);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  color: var(--text-white);
  font-size: 2.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Service Card Styling */
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

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

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-main);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.service-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Interactive ROI Calculator Slider */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
}

.slider-group {
  margin-bottom: 1.75rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.custom-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-indigo);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
}

.calc-result-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.result-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* Lead Qualification Quiz Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.quiz-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover,
.quiz-option-btn.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-indigo);
  color: var(--text-white);
}

/* Video Player Modal */
.video-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass-bright);
  background: #000;
}

.video-card-preview video {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

/* Accordion FAQ */
.faq-item {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-header {
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-body {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-item.active .faq-body {
  display: block;
}

.faq-icon {
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Ultra-Sleek Floating WhatsApp Widget (Bottom Right) */
.whatsapp-widget-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 995;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-tooltip-badge {
  background: rgba(9, 13, 22, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-bright);
  color: var(--text-white);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  animation: floatTooltip 3s ease-in-out infinite alternate;
}

.whatsapp-online-dot {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 8px #25d366;
}

.whatsapp-float-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Glowing Pulse Ring Animation */
.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsappPulse 2s infinite;
  opacity: 0;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.65);
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes floatTooltip {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .whatsapp-widget-wrapper {
    bottom: 72px;
    right: 12px;
  }
  
  .whatsapp-tooltip-badge {
    display: none; /* Hide text pill on mobile for clean screen */
  }

  .whatsapp-float-btn {
    width: 46px;
    height: 46px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-float-btn svg {
    width: 22px;
    height: 22px;
  }
}
