/* Apple-inspired Modern CSS for Vocally AI */

/* Inter Font Base */
.font-inter, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Remove any old SF Pro Display references */
.font-sf {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* VAPI Widget z-index fix */
vapi-widget {
  z-index: 9999 !important;
  position: relative !important;
  display: inline-block !important;
}

.star-border vapi-widget {
  position: relative !important;
}

/* Hero section image fix */
.hero-section img {
  z-index: 1 !important;
  opacity: 0.7 !important;
  display: block !important;
}

/* Hero section button spacing */
.hero-section .flex {
  gap: 2rem !important;
}

.hero-section .star-border {
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* VAPI container overlay */
#hero-vapi-container {
  pointer-events: all !important;
}

#hero-vapi-container vapi-widget {
  z-index: 100000 !important;
  position: relative !important;
}

/* Inter Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Mobile Navigation Styles */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1C4910;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 20px 20px 20px;
  z-index: 40;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.mobile-nav-menu.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-nav-links a, .mobile-nav-links button {
  color: #D1D5DB;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  width: 100%;
}

.mobile-nav-links a:hover, .mobile-nav-links button:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-legal-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-legal-menu.active {
  display: flex;
}

.mobile-lang-toggle {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop Legal Dropdown Styles */
.legal-dropdown {
  position: relative;
  display: inline-block;
}

.legal-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 12rem;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease-in-out;
  z-index: 50;
}

.legal-dropdown:hover .legal-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.legal-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  color: #D1D5DB;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
}

.legal-dropdown-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.legal-dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.legal-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

/* Desktop Navigation Font Size */
.desktop-nav-links a,
.desktop-nav-links button {
  font-size: 26px;
}

/* Navbar Logo Size */
nav a img {
  height: 128px;
  width: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
    z-index: 51;
  }
  
  .desktop-nav-links {
    display: none !important;
  }
  
  .desktop-lang-toggle {
    display: none !important;
  }
  
  nav .flex.items-center.justify-between {
    position: relative;
  }
  
  /* Logo responsive sizing on mobile */
  nav img {
    height: 70px !important;
    width: auto !important;
    max-width: 200px !important;
  }
  
  /* Mobile navigation font size */
  .mobile-nav-links a,
  .mobile-nav-links button {
    font-size: 22px !important;
  }
  
  /* Ensure navigation has proper height on mobile */
  nav {
    min-height: 80px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  
  /* Mobile navigation positioning */
  .mobile-nav-menu {
    top: 80px !important;
    margin-top: 20px;
    padding-top: 24px;
  }
  
  /* Mobile navigation container spacing */
  nav .max-w-7xl {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Ensure mobile menu button is properly positioned */
  .mobile-menu-button {
    margin-left: auto;
    flex-shrink: 0;
  }
  
  /* Mobile navbar spacing */
  section.pt-32,
  div.pt-32,
  .pt-32 {
    padding-top: 120px !important;
  }
  
  /* Reduce title font sizes on mobile by 6px */
  h1 {
    font-size: calc(100% - 6px) !important;
  }
  
  .text-6xl {
    font-size: calc(3.75rem - 6px) !important;
  }
  
  .text-5xl {
    font-size: calc(3rem - 6px) !important;
  }
  
  .text-4xl {
    font-size: calc(2.25rem - 6px) !important;
  }
  
  .text-3xl {
    font-size: calc(1.875rem - 6px) !important;
  }
}

/* Global navbar height and scroll padding */
:root { 
  --nav-h: 140px; 
}

html, body { 
  scroll-padding-top: var(--nav-h); 
}

/* Color variables moved to theme-specific files (theme-dark.css & theme-light.css) */

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body styling moved to theme files - kept here for structural properties only */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Typography */
.font-sf {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Icon Box Gradient Classes - Mobile-Safe Fallbacks */
.gradient-blue-purple {
  background: linear-gradient(135deg, var(--azure), var(--coral)) !important;
}

.gradient-purple-pink {
  background: linear-gradient(135deg, var(--coral), var(--peach)) !important;
}

.gradient-green-blue {
  background: linear-gradient(135deg, var(--forest), var(--azure)) !important;
}

.gradient-cyan-green {
  background: linear-gradient(135deg, var(--azure), var(--butter)) !important;
}

.gradient-orange-red {
  background: linear-gradient(135deg, var(--coral), var(--butter)) !important;
}

.gradient-pink-purple {
  background: linear-gradient(135deg, var(--peach), var(--coral)) !important;
}

.gradient-yellow-orange {
  background: linear-gradient(135deg, var(--butter), var(--coral)) !important;
}

.gradient-teal-cyan {
  background: linear-gradient(135deg, var(--azure), var(--butter)) !important;
}

.gradient-purple-blue {
  background: linear-gradient(135deg, var(--navy), var(--azure)) !important;
}

/* Star Border Component Styles - Updated with Coral Azure theme */
.star-border {
  position: relative;
  display: inline-block;
  padding: 1px;
  overflow: hidden;
  border-radius: 20px;
}

.star-border::before {
  content: '';
  position: absolute;
  width: 300%;
  height: 50%;
  bottom: -11px;
  right: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--azure), transparent 10%);
  opacity: 0.4;
  animation: star-movement-bottom 6s linear infinite;
  z-index: 0;
}

.star-border::after {
  content: '';
  position: absolute;
  width: 300%;
  height: 50%;
  top: -10px;
  left: -250%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--azure), transparent 10%);
  opacity: 0.4;
  animation: star-movement-top 6s linear infinite;
  z-index: 0;
}

.star-border-content {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(217, 108, 63, 0.4);
  text-align: center;
  padding: 16px 24px;
  border-radius: 20px;
  background: linear-gradient(to bottom, var(--bg-main), var(--bg-accent));
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.star-border:hover .star-border-content {
  background: linear-gradient(to bottom, var(--bg-accent), var(--surface));
  border-color: rgba(217, 108, 63, 0.6);
}

/* Primary button star border (coral theme) */
.star-border-primary::before,
.star-border-primary::after {
  background: radial-gradient(circle, var(--coral), transparent 10%);
}

.star-border-primary .star-border-content {
  border-color: rgba(217, 108, 63, 0.4);
  background: linear-gradient(to bottom, var(--coral), var(--peach));
  color: var(--bg-main);
  font-weight: 500;
}

.star-border-primary:hover .star-border-content {
  background: linear-gradient(to bottom, var(--butter), var(--coral));
  border-color: rgba(217, 108, 63, 0.6);
}

/* Secondary button star border (green theme) */
.star-border-secondary::before,
.star-border-secondary::after {
  background: radial-gradient(circle, #10B981, transparent 10%);
}

.star-border-secondary .star-border-content {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(31, 41, 55, 0.8));
  color: #FFFFFF;
  font-weight: 300;
}

.star-border-secondary:hover .star-border-content {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(31, 41, 55, 0.9));
  border-color: rgba(16, 185, 129, 0.6);
}

/* Tertiary Star Border (Chat Demo) */
.star-border-tertiary::before,
.star-border-tertiary::after {
  background: radial-gradient(circle, #14B8A6, transparent 10%);
}

.star-border-tertiary .star-border-content {
  border-color: rgba(20, 184, 166, 0.4);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(31, 41, 55, 0.8));
  color: #FFFFFF;
  font-weight: 300;
}

.star-border-tertiary:hover .star-border-content {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(31, 41, 55, 0.9));
  border-color: rgba(20, 184, 166, 0.6);
}

/* Small button star border variants */
.star-border-small {
  padding: 0.5px;
  border-radius: 16px;
}

.star-border-small::before,
.star-border-small::after {
  width: 200%;
  height: 40%;
  animation-duration: 4s;
}

.star-border-small .star-border-content {
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
}

/* Language button variant */
.star-border-lang::before,
.star-border-lang::after {
  background: radial-gradient(circle, var(--coral), transparent 8%);
  opacity: 0.3;
}

.star-border-lang .star-border-content {
  border-color: rgba(217, 108, 63, 0.3);
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-weight: 300;
  padding: 8px 12px;
  font-size: 0.75rem;
}

.star-border-lang:hover .star-border-content {
  background: #B85A35;
  border-color: rgba(184, 90, 53, 0.8);
  color: var(--bg-main);
}

.star-border-lang.active .star-border-content {
  background: var(--success);
  border-color: rgba(45, 106, 32, 0.8);
  color: #FFFFFF;
}

/* Demo button variant (coral azure) */
.star-border-demo::before,
.star-border-demo::after {
  background: radial-gradient(circle, var(--coral), transparent 10%);
}

.star-border-demo .star-border-content {
  border-color: rgba(217, 108, 63, 0.4);
  background: linear-gradient(to bottom, var(--coral), rgba(217, 108, 63, 0.8));
  color: #FFFFFF;
  font-weight: 500;
}

.star-border-demo:hover .star-border-content {
  background: linear-gradient(to bottom, var(--coral), var(--peach));
}

/* Purple button variant */
.star-border-purple::before,
.star-border-purple::after {
  background: radial-gradient(circle, #8B5CF6, transparent 10%);
}

.star-border-purple .star-border-content {
  border-color: rgba(139, 92, 246, 0.4);
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.9), rgba(109, 40, 217, 0.9));
  color: #FFFFFF;
  font-weight: 500;
}

.star-border-purple:hover .star-border-content {
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.95), rgba(109, 40, 217, 0.95));
}

/* Green button variant */
.star-border-green::before,
.star-border-green::after {
  background: radial-gradient(circle, #10B981, transparent 10%);
}

.star-border-green .star-border-content {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  color: #FFFFFF;
  font-weight: 500;
}

.star-border-green:hover .star-border-content {
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
}

/* White button variant */
.star-border-white::before,
.star-border-white::after {
  background: radial-gradient(circle, #FFFFFF, transparent 10%);
}

.star-border-white .star-border-content {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(243, 244, 246, 0.95));
  color: #000000;
  font-weight: 500;
}

.star-border-white:hover .star-border-content {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(243, 244, 246, 1));
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Star Border Animations */
@keyframes star-movement-bottom {
  0% {
    transform: translateX(-100%) rotate(0deg);
  }
  100% {
    transform: translateX(100%) rotate(360deg);
  }
}

@keyframes star-movement-top {
  0% {
    transform: translateX(100%) rotate(0deg);
  }
  100% {
    transform: translateX(-100%) rotate(-360deg);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 122, 255, 0.6);
  }
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4), 0 0 40px rgba(34, 211, 238, 0.2);
  }
  50% { 
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.8), 0 0 60px rgba(34, 211, 238, 0.4);
  }
}

@keyframes spin-slow {
  from { 
    transform: rotate(0deg); 
  }
  to { 
    transform: rotate(360deg); 
  }
}

@keyframes spin-reverse {
  from { 
    transform: rotate(360deg); 
  }
  to { 
    transform: rotate(0deg); 
  }
}

/* Animation classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-card-in {
  animation: scale-in 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 8s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

.animate-spin-reverse {
  animation: spin-reverse 15s linear infinite;
}

/* Delay classes */
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }

/* Glass morphism effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
}

/* Button styles */
.hero-cta-primary {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3);
}

.hero-cta-primary:hover {
  box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.hero-cta-secondary {
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.demo-call-button {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.demo-call-button:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.cta-button {
  box-shadow: 0 10px 30px rgba(88, 86, 214, 0.4);
}

.cta-button:hover {
  box-shadow: 0 15px 40px rgba(88, 86, 214, 0.6);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #007AFF, #5856D6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0056CC, #4A47A3);
}

/* Loading spinner */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Focus states */
button:focus,
.hero-cta-primary:focus,
.hero-cta-secondary:focus,
.demo-call-button:focus,
.cta-button:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
}

/* Hover effects for sections */
section {
  transition: transform 0.3s ease;
}

/* Enhanced backdrop blur support */
.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, #007AFF, #5856D6, #AF52DE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-cta-primary,
  .hero-cta-secondary,
  .demo-call-button,
  .cta-button {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .animate-card-in {
    animation-duration: 0.4s;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #D4D4D8;
  }
}

/* Print styles */
@media print {
  .hero-cta-primary,
  .hero-cta-secondary,
  .demo-call-button,
  .cta-button,
  #loading-overlay,
  #success-modal {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Enhanced visual effects */
.premium-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
  background: var(--primary-gradient);
}

.bg-gradient-secondary {
  background: var(--secondary-gradient);
}

.bg-gradient-accent {
  background: var(--accent-gradient);
}

/* Floating orb animations */
.orb {
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.orb:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 6s;
}

/* Text selection */
::selection {
  background: rgba(0, 122, 255, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(0, 122, 255, 0.3);
  color: white;
}

/* Performance optimizations */
.will-change {
  will-change: transform, opacity;
}

/* Enhanced button interactions */
button {
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* Improved accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
}

/* Language toggle styles - moved to theme-specific files (theme-light.css, theme-dark.css) */

/* Language transition animations */
[data-en][data-it] {
  transition: opacity 0.3s ease;
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
  /* Already optimized for dark mode */
}

/* VAPI Widget Styling - Ensure proper z-index and visibility */
vapi-widget {
  z-index: 9999 !important;
  position: relative !important;
}

vapi-widget div,
vapi-widget iframe,
vapi-widget [role="dialog"] {
  z-index: 9999 !important;
}

/* Ensure VAPI widget modal appears above other content */
vapi-widget * {
  z-index: 9999 !important;
}

/* VAPI Widget Hero Section Styling - Make it fit within StarBorder */
.star-border-content vapi-widget {
  width: 100% !important;
  display: inline-block !important;
}

.star-border-content vapi-widget > div {
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  text-align: center !important;
}

/* Ensure VAPI widget button text is centered and styled properly */
.star-border-content vapi-widget button {
  background: transparent !important;
  border: none !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  width: 100% !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cta-button-secondary {
  background: transparent;
  border: 2px solid #6B7280;
  color: white;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.cta-button-secondary:hover {
  border-color: #9CA3AF;
  background: rgba(156, 163, 175, 0.1);
  transform: translateY(-2px);
}
/* === Flip Cards Implementation === */

/* Card container setup */
.industries-grid .card {
  perspective: 1200px;
  aspect-ratio: 1; /* Square cards (height = width) */
}

.industries-grid .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  transform: rotateY(0deg);
}

/* Card faces positioning */
.industries-grid .card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1rem;
}

/* Front face (visible by default) */
.industries-grid .card-front {
  transform: rotateY(0deg);
}

/* Back face (hidden by default) */
.industries-grid .card-back {
  transform: rotateY(180deg);
}

/* Flip on hover */
.industries-grid .card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Optional: Add subtle shadow on hover */
.industries-grid .card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Font size increases (+3px) */
.industries-grid .card h3 {
  font-size: calc(1.125rem + 3px) !important; /* was text-lg (1.125rem) */
}

.industries-grid .card p {
  font-size: calc(0.875rem + 3px) !important; /* was text-sm (0.875rem) */
}

.industries-grid .card .text-4xl {
  font-size: calc(2.25rem + 3px) !important; /* was text-4xl (2.25rem) */
}

.industries-grid .card .text-2xl {
  font-size: calc(1.5rem + 3px) !important; /* was text-2xl (1.5rem) */
}

/* Sticky Widget Container - Fixed to bottom-right */
.sticky-widget-container {
  position: fixed;
  bottom: 2rem; /* Positioned at bottom */
  right: 2rem; /* Positioned at right */
  z-index: 45; /* Below navbar (z-50) but above content */
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: all 0.3s ease;
}

/* Make widget button responsive */
@media (max-width: 768px) {
  .sticky-widget-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Make VAPI widget button more rounded to match language switcher (rounded-full) */
vapi-widget button,
vapi-widget button *,
vapi-widget div[role="button"],
vapi-widget div[role="button"] *,
.sticky-widget-container vapi-widget button,
.sticky-widget-container vapi-widget button *,
.sticky-widget-container vapi-widget div[role="button"],
.sticky-widget-container vapi-widget div[role="button"] *,
vapi-widget > div,
vapi-widget > div > *,
vapi-widget > div > * > *,
vapi-widget iframe,
vapi-widget [data-testid],
vapi-widget [class*="button"],
vapi-widget [class*="pill"] {
  border-radius: 9999px !important; /* Same as Tailwind's rounded-full */
}

/* Ensure VAPI button container also has rounded corners */
.sticky-widget-container vapi-widget > div,
.sticky-widget-container vapi-widget > div > div,
.sticky-widget-container vapi-widget > div > div > div {
  border-radius: 9999px !important;
}

/* Core Benefits Section - Bordered Grid Design */
.benefits-bordered-grid {
  position: relative;
}

.benefit-card {
  position: relative;
  padding: 2.5rem;
  transition: all 0.2s ease;
}

/* Borders for 3x3 grid */
/* Right border for columns 1 and 2 (not the 3rd column) */
.benefit-card[data-index="0"],
.benefit-card[data-index="1"],
.benefit-card[data-index="3"],
.benefit-card[data-index="4"],
.benefit-card[data-index="6"],
.benefit-card[data-index="7"] {
  border-right: 1px solid var(--border-subtle);
}

/* Bottom border for rows 1 and 2 (not the 3rd row) */
.benefit-card[data-index="0"],
.benefit-card[data-index="1"],
.benefit-card[data-index="2"],
.benefit-card[data-index="3"],
.benefit-card[data-index="4"],
.benefit-card[data-index="5"] {
  border-bottom: 1px solid var(--border-subtle);
}

/* Left border for first column */
.benefit-card[data-index="0"],
.benefit-card[data-index="3"],
.benefit-card[data-index="6"] {
  border-left: 1px solid var(--border-subtle);
}

/* Gradient overlay effect - appears from bottom for top row */
.benefit-card[data-index="0"]::before,
.benefit-card[data-index="1"]::before,
.benefit-card[data-index="2"]::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to top, rgba(198, 107, 74, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

/* Gradient overlay effect - appears from top for middle and bottom rows */
.benefit-card[data-index="3"]::before,
.benefit-card[data-index="4"]::before,
.benefit-card[data-index="5"]::before,
.benefit-card[data-index="6"]::before,
.benefit-card[data-index="7"]::before,
.benefit-card[data-index="8"]::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(198, 107, 74, 0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

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

/* Icon styling */
.benefit-icon {
  position: relative;
  z-index: 10;
  filter: grayscale(0.2);
  transition: filter 0.2s ease;
}

.benefit-card:hover .benefit-icon {
  filter: grayscale(0);
}

/* Title with left accent bar */
.benefit-title {
  position: relative;
  z-index: 10;
  padding-left: 0;
}

.benefit-title::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 1.5rem;
  width: 4px;
  background: var(--border-subtle);
  border-radius: 0 999px 999px 0;
  transition: all 0.2s ease;
  transform-origin: center;
}

.benefit-card:hover .benefit-title::before {
  height: 2rem;
  background: var(--coral);
}

.benefit-title span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.benefit-card:hover .benefit-title {
  transform: translateX(0.5rem);
}

/* Description list styling */
.benefit-card ul {
  position: relative;
  z-index: 10;
}

/* Mobile: Remove borders */
@media (max-width: 768px) {
  .benefit-card {
    border: 1px solid var(--border-subtle) !important;
    border-radius: 1rem;
    margin-bottom: 1rem;
  }
  
  .benefit-card[data-index="8"] {
    margin-bottom: 0;
  }
}
/* Dropdown Menu Styling */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 1000;
  border: 1px solid var(--border-subtle);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-dropdown-content a:hover {
  background: var(--bg-accent);
  color: var(--coral);
}

.nav-dropdown-content a .demo-icon {
  font-size: 1.25rem;
}

.nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 0.25rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Mobile dropdown */
.mobile-dropdown-content {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown-content.active {
  display: block;
}

.mobile-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.mobile-dropdown-content a:hover {
  color: var(--coral);
}

