/* UI Component styles - ClarvoTech */

/* 1. Header & Navigation */
header.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: padding 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  padding: var(--space-md) 0;
}

header.sticky-header.scrolled,
body:not(.home-page) header.sticky-header {
  padding: var(--space-sm) 0;
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="dark"] header.sticky-header.scrolled,
[data-theme="dark"] body:not(.home-page) header.sticky-header {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05) !important;
}

header.sticky-header.scrolled .nav-links a,
body:not(.home-page) header.sticky-header .nav-links a {
  color: #0F172A !important;
}
header.sticky-header.scrolled .nav-links a:hover,
body:not(.home-page) header.sticky-header .nav-links a:hover {
  color: var(--accent-blue) !important;
}

[data-theme="dark"] header.sticky-header.scrolled .nav-links a,
[data-theme="dark"] body:not(.home-page) header.sticky-header .nav-links a {
  color: #0F172A !important;
}

header.sticky-header.scrolled .logo-wrapper span,
body:not(.home-page) header.sticky-header .logo-wrapper span {
  color: #0F172A !important;
}

[data-theme="dark"] header.sticky-header.scrolled .logo-wrapper span,
[data-theme="dark"] body:not(.home-page) header.sticky-header .logo-wrapper span {
  color: #0F172A !important;
}

header.sticky-header.scrolled .theme-toggle-btn,
body:not(.home-page) header.sticky-header .theme-toggle-btn {
  color: #0F172A !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

header.sticky-header.scrolled .mobile-menu-toggle,
body:not(.home-page) header.sticky-header .mobile-menu-toggle {
  color: #0F172A !important;
}

[data-theme="dark"] header.sticky-header.scrolled .mobile-menu-toggle,
[data-theme="dark"] body:not(.home-page) header.sticky-header .mobile-menu-toggle {
  color: #0F172A !important;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 300ms ease;
  border: none;
}

header.sticky-header.scrolled .nav-cta-btn,
body:not(.home-page) header.sticky-header .nav-cta-btn {
  background: var(--blue-purple-gradient);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

header.sticky-header.scrolled .nav-cta-btn:hover,
body:not(.home-page) header.sticky-header .nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  filter: brightness(1.05);
}

body.home-page header.sticky-header:not(.scrolled) .nav-cta-btn {
  background-color: #ffffff;
  color: #0F172A !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

body.home-page header.sticky-header:not(.scrolled) .nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
  background-color: #f8fafc;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo-wrapper svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--brand-gradient);
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* 2. Scroll Depth Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand-gradient);
  z-index: 1002;
  transition: width 0.1s linear;
}

/* 3. Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), border var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.theme-toggle-btn .sun-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .moon-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .sun-icon { display: block; }

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast), background var(--transition-fast), border var(--transition-fast);
  border: none;
  gap: var(--space-sm);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-glass:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}

.btn-accent:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 5. Glass Cards & Hover glow */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* The hover glow effect overlay, driven by JS mousemove */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--glass-glow);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover::before {
  opacity: 1;
}

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

.glass-card-content {
  position: relative;
  z-index: 1;
}

/* 6. Service Specific Styles */
.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.tag-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(156, 163, 175, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Tab filter styles for Services */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
}

/* 7. Industry Badge styling */
.industry-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.industry-card:hover {
  border-color: #3b82f6;
  background: var(--bg-surface-elevated);
  transform: scale(1.02);
}

.industry-icon {
  font-size: 1.4rem;
  color: #3b82f6;
}

/* 8. Tech Stack Grid & Filters */
.tech-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.2rem;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.tech-badge svg {
  width: 20px;
  height: 20px;
}

/* 9. Case Studies / Portfolio Cards */
.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  transition: background var(--transition-normal);
}

[data-theme="light"] .portfolio-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
}

.portfolio-overlay-content {
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay-content {
  transform: translateY(0);
}

.portfolio-card h3 {
  color: #ffffff;
}

.portfolio-card p {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

/* 10. Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
}

.client-info h4 {
  font-size: 1rem;
  margin: 0;
}

.client-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stars {
  color: #fbbf24;
  margin-bottom: var(--space-sm);
  display: flex;
  gap: 2px;
}

/* 11. Contact Form & Map/Info Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xxl);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

.contact-form-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-status {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  display: none;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: block;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.info-icon {
  font-size: 1.5rem;
  color: #3b82f6;
}

.info-text h4 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.info-text p, .info-text a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.info-text a:hover {
  color: #3b82f6;
}

/* 12. Footer Styling */
footer.footer-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--space-xxl) 0 var(--space-xl) 0;
  margin-top: var(--space-giant);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

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

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

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: var(--space-xs);
}

.footer-links a {
  transition: all var(--transition-fast);
}

.social-icons-row {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--text-primary);
  color: var(--bg-main);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}

/* 13. Mobile Drawer overlay navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 999;
  transition: right 400ms cubic-bezier(0.16, 1, 0.3, 1), visibility 400ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-lg) 100px var(--space-lg);
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav-overlay.active {
  right: 0;
  visibility: visible;
}

.mobile-nav-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: space-between;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  align-items: flex-start;
}

.mobile-nav-links li {
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 100ms; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 150ms; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 200ms; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 250ms; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 300ms; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 350ms; }
.mobile-nav-overlay.active .mobile-nav-links li:nth-child(7) { transition-delay: 400ms; }

.mobile-nav-links a {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.mobile-nav-footer {
  margin-top: var(--space-xl);
  width: 100%;
}

.mobile-cta-fixed {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem;
  background: var(--brand-gradient);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* 14. Mega Menu Dropdown Styles */
.has-mega-menu {
  position: relative;
}

.nav-links {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(100vw - 40px, 1000px);
  background: #FFFFFF !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15) !important;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
  z-index: 1000;
  pointer-events: none;
}

[data-theme="light"] .mega-menu {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="dark"] .mega-menu {
  background: #FFFFFF !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15) !important;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.chevron-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  margin-left: 4px;
  transition: transform 250ms ease;
  vertical-align: middle;
}

.has-mega-menu:hover .chevron-icon {
  transform: rotate(180deg);
}

.mega-menu-grid {
  display: grid;
  gap: var(--space-lg);
}

.mega-menu-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.mega-menu-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.mega-menu-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569 !important;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  padding-bottom: var(--space-xs);
}

.mega-menu-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.mega-menu-col ul li a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155 !important;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 200ms ease;
}

.mega-menu-col ul li a::after {
  display: none !important;
}

.mega-menu-col ul li a span {
  font-size: 1.1rem;
}

.mega-menu-col ul li a:hover {
  color: #06B6D4 !important;
  background: rgba(6, 182, 212, 0.05) !important;
  transform: translateX(4px);
}

[data-theme="dark"] .mega-menu-col ul li a:hover {
  background: rgba(6, 182, 212, 0.05) !important;
}

/* 15. Sticky & Floating Conversion CTAs */
.floating-desktop-cta {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 99;
  background: var(--brand-gradient);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.floating-desktop-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

.floating-desktop-cta:active {
  transform: translateY(-1px) scale(0.98);
}

.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.6rem 1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  z-index: 98;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .sticky-mobile-bar {
  background: rgba(9, 13, 26, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  flex-shrink: 0;
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #2563eb;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  text-decoration: none;
  flex-shrink: 0;
}

.mobile-whatsapp-btn svg, .mobile-call-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mobile-expert-btn {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1rem;
  background: var(--brand-gradient);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
  .floating-desktop-cta {
    display: none !important;
  }
  .sticky-mobile-bar {
    display: flex !important;
  }
  body {
    padding-bottom: 70px !important;
  }
}

@media (max-width: 1150px) {
  .nav-links,
  .nav-cta-desktop {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: block !important;
  }
}

/* Home Page transparent header mobile toggle button color (before scroll) */
.home-page header.sticky-header:not(.scrolled) .mobile-menu-toggle {
  color: #ffffff !important;
}

/* Header style when mobile menu is active to prevent invisible white text on white menu background */
header.sticky-header.mobile-menu-open {
  background-color: var(--bg-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: none !important;
}

header.sticky-header.mobile-menu-open .logo-wrapper span,
header.sticky-header.mobile-menu-open .mobile-menu-toggle,
header.sticky-header.mobile-menu-open .theme-toggle-btn {
  color: var(--text-primary) !important;
}

header.sticky-header.mobile-menu-open .theme-toggle-btn {
  border-color: var(--border-color) !important;
}

