/* E-ComKhwa Components & UI Styles */

/* ===================================
   1. Navbar Header
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light-gray);
  transition: all var(--transition-fast);
  pointer-events: auto;
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--border-light-gray);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a2744;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #d14926 0%, #b83d1c 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(209, 73, 38, 0.35);
}

.brand-logo span.accent {
  color: #d14926;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a2744;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #d14926;
  background: rgba(209, 73, 38, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(14, 21, 38, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.75rem 2rem 2.5rem 2rem;
    gap: 0.5rem;
    border-bottom: 2px solid var(--accent-emerald);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
  }

  .nav-link:active, .nav-link.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--border-emerald);
    color: var(--accent-emerald);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
  }
}

/* ===================================
   2. Hero Section & Stats Ticker
   =================================== */
.hero-section {
  position: relative;
  padding-top: 130px;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content h1 {
  font-size: 3.25rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-cta-group {
    justify-content: center;
  }
}

.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(245, 158, 11, 0.2) 100%);
  box-shadow: var(--shadow-lg);
}

.hero-media-card {
  position: relative;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: var(--bg-surface);
}

.hero-media-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-media-card:hover img {
  transform: scale(1.02);
}

.hero-badge-float {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: rgba(14, 21, 38, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-emerald);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-glow-emerald);
}

@media (max-width: 768px) {
  .hero-badge-float {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 1rem;
  }
}

.ticker-bar {
  background: var(--bg-surface);
  border-y: 1px solid var(--border-subtle);
  padding: 1.25rem 0;
  margin-top: 3rem;
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .ticker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ticker-item h4 {
  font-size: 1.8rem;
  color: var(--accent-emerald);
  margin-bottom: 0.2rem;
}

.ticker-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ===================================
   3. Service Explorer & Tabs
   =================================== */
.services-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
  border-color: var(--accent-emerald);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow-emerald);
}

.services-content-panel {
  display: none;
}

.services-content-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.4s ease-in-out;
}

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

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-emerald);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card.gold .service-icon-box {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.service-card.cyan .service-icon-box {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-feature-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.service-feature-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ===================================
   4. Interactive Quote Builder / Estimator
   =================================== */
.estimator-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
  .estimator-box {
    grid-template-columns: 1fr;
  }
}

.estimator-options h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.platform-select-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.platform-toggle-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.platform-toggle-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}

.custom-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-checkbox-card:hover {
  border-color: var(--border-light);
}

.custom-checkbox-card.selected {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.custom-checkbox-card input {
  margin-top: 0.25rem;
  accent-color: var(--accent-emerald);
}

.estimator-summary {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-display {
  margin: 1.5rem 0;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-emerald);
}

.price-timeframe {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.quote-services-list {
  margin-bottom: 1.5rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.quote-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ===================================
   5. PPC ROI & Revenue Growth Simulator
   =================================== */
.simulator-card {
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.95) 0%, rgba(22, 32, 54, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-glow-gold);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 992px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

.range-control-group {
  margin-bottom: 1.8rem;
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.range-value-badge {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
}

.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-dark);
  outline: none;
  accent-color: var(--accent-gold);
}

.sim-results-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.sim-metric-card {
  margin-bottom: 1.5rem;
}

.sim-metric-card:last-child {
  margin-bottom: 0;
}

.sim-metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-heading);
}

.meter-bar-wrapper {
  height: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.5rem;
}

.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  width: 65%;
  transition: width 0.4s ease;
}

/* ===================================
   6. LLC Roadmap Visualizer
   =================================== */
.timeline-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  margin-top: 3rem;
}

@media (max-width: 992px) {
  .timeline-stepper {
    grid-template-columns: 1fr;
  }
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
}

.timeline-step:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-4px);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 90, 95, 0.15);
  border: 1px solid var(--accent-coral);
  color: var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.timeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================
   7. Portfolio & Case Studies Grid
   =================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active {
  background: var(--accent-coral);
  color: #ffffff;
  border-color: var(--accent-coral);
  box-shadow: 0 4px 15px rgba(255, 90, 95, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.portfolio-card:hover {
  border-color: var(--border-light);
  transform: translateY(-5px);
}

.portfolio-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-body {
  padding: 1.8rem;
}

.portfolio-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.portfolio-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-metric-val {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.stat-metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================
   8. Testimonials & Modal Dialogs
   =================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.star-rating {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content-card {
  transform: scale(1);
}

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

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* Multi-step Wizard */
.wizard-steps-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 1;
}

.wizard-step-node.active {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
}

.wizard-step-node.completed {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-emerald);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--accent-emerald);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  background: #04060b;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===================================
   META AI AUTO CHAT WIDGET
   =================================== */
.meta-ai-trigger-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0084FF 0%, #A033FF 50%, #FF2A85 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(160, 51, 255, 0.5), 0 0 20px rgba(0, 132, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.meta-ai-trigger-btn:hover {
  transform: scale(1.1) rotate(5deg);
}

.meta-ai-trigger-btn i {
  font-size: 1.6rem;
}

.meta-ai-pulse-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10B981;
  border: 2px solid #070A12;
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.meta-ai-chat-box {
  position: fixed;
  bottom: 95px;
  left: 25px;
  z-index: 9998;
  width: 360px;
  max-width: calc(100vw - 50px);
  height: 480px;
  background: rgba(12, 17, 29, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(160, 51, 255, 0.3);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(160, 51, 255, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.meta-ai-chat-box.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.meta-ai-header {
  background: linear-gradient(135deg, rgba(0, 132, 255, 0.2), rgba(160, 51, 255, 0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-ai-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-ai-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0084FF, #A033FF, #FF2A85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(160, 51, 255, 0.6);
}

.meta-ai-header-title h4 {
  font-size: 0.95rem;
  margin: 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-ai-header-title span {
  font-size: 0.75rem;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-ai-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
}

.meta-ai-close-btn:hover {
  color: #fff;
}

.meta-ai-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.88rem;
}

.meta-ai-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  line-height: 1.5;
  word-break: break-word;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.meta-ai-msg.bot {
  align-self: flex-start;
  background: rgba(30, 41, 65, 0.9);
  border: 1px solid rgba(160, 51, 255, 0.2);
  color: #E2E8F0;
  border-bottom-left-radius: 4px;
}

.meta-ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.meta-ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(7, 10, 18, 0.4);
  border-top: 1px solid var(--border-subtle);
}

.meta-ai-pill-btn {
  background: rgba(160, 51, 255, 0.15);
  border: 1px solid rgba(160, 51, 255, 0.3);
  color: #D8B4FE;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.meta-ai-pill-btn:hover {
  background: rgba(160, 51, 255, 0.35);
  color: #fff;
  border-color: #A033FF;
}

.meta-ai-input-form {
  display: flex;
  padding: 0.75rem;
  gap: 0.5rem;
  background: rgba(7, 10, 18, 0.9);
  border-top: 1px solid var(--border-subtle);
}

.meta-ai-input-form input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.meta-ai-input-form input:focus {
  border-color: #A033FF;
}

.meta-ai-input-form button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0084FF, #A033FF);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.meta-ai-input-form button:hover {
  transform: scale(1.08);
}

/* ===================================
   FAQ Accordion & Team Section
   =================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  border-color: var(--border-emerald);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-indigo) 100%);
  box-shadow: var(--shadow-glow-emerald);
  border: 3px solid var(--bg-dark);
}

.team-avatar-img-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  overflow: hidden;
  border: 3px solid var(--accent-emerald);
  box-shadow: var(--shadow-glow-emerald);
  transition: transform var(--transition-fast);
}

.team-avatar-img-box:hover {
  transform: scale(1.06);
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-role-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-light);
}

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

.faq-question i {
  color: var(--accent-emerald);
  transition: transform var(--transition-fast);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Founder Spotlight Section */
.founder-spotlight-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(26, 39, 68, 0.95) 100%);
  border: 1px solid var(--border-coral);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: var(--shadow-glow-coral);
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .founder-spotlight-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    text-align: center;
  }
}

.founder-img-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--accent-coral);
  box-shadow: 0 15px 35px rgba(196, 75, 43, 0.35);
  margin: 0 auto;
}

.founder-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.founder-quote-mark {
  font-size: 3rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.founder-bio-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.founder-signature-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

@media (max-width: 992px) {
  .founder-signature-meta {
    justify-content: center;
  }
}

/* Policy Content Styling in Modals */
.policy-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.policy-body h4 {
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.policy-body p {
  margin-bottom: 0.75rem;
}


