/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #067CC5, #0891b2);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0891b2, #067CC5);
    box-shadow: 0 2px 8px rgba(6, 124, 197, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: #067CC5;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #067CC5 #f1f5f9;
}

/* Mobile viewport fixes */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body { 
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 3.5rem; /* 56px for mobile header */
    line-height: 1.7;
}

p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    body {
        padding-top: 4rem; /* 64px for desktop header */
    }
}

/* Prevent horizontal scroll */
* {
    box-sizing: border-box;
}

/* Fix container widths on mobile */
@media (max-width: 768px) {
    .max-w-7xl, .max-w-6xl, .max-w-5xl, .max-w-4xl, .max-w-3xl {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Ensure all sections have proper mobile padding */
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Fix grid layouts on mobile */
    .grid {
        gap: 1rem !important;
    }
    
    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Make images responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix video/iframe elements */
    video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Prevent wide elements from causing overflow */
    .demo-container, .pricing-card, .feature-card {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Reduce font sizes on mobile for better fit */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    /* Fix button spacing on mobile */
    .flex.flex-col.sm\:flex-row {
        gap: 0.75rem !important;
    }
    
    /* Ensure proper spacing for mobile buttons */
    .sm\:flex-row > * {
        width: 100% !important;
        text-align: center !important;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.animate-bounce {
    animation: bounce 2s infinite;
}

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

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

.animate-gentle-pulse {
    animation: gentle-pulse 3s ease-in-out infinite;
}

/* Scroll Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.scroll-reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.scroll-reveal-fade.revealed {
    opacity: 1;
}

/* Stagger animation delays */
.scroll-reveal.delay-100 { transition-delay: 0.1s; }
.scroll-reveal.delay-200 { transition-delay: 0.2s; }
.scroll-reveal.delay-300 { transition-delay: 0.3s; }
.scroll-reveal.delay-400 { transition-delay: 0.4s; }
.scroll-reveal.delay-500 { transition-delay: 0.5s; }
.scroll-reveal.delay-600 { transition-delay: 0.6s; }

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

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

.marquee-container {
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(239, 246, 255, 1), rgba(239, 246, 255, 0.8), rgba(239, 246, 255, 0));
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(239, 246, 255, 1), rgba(239, 246, 255, 0.8), rgba(239, 246, 255, 0));
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 100px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    border-radius: 1rem;
    margin-top: 0.5rem;
    min-width: 1000px;
    max-width: 1100px;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
    border-left: 2px solid rgba(59, 130, 246, 0.5);
    transform: translateX(2px);
}

.mega-menu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    flex-shrink: 0;
    margin-right: 0.875rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mega-menu-icon i {
    font-size: 1.25rem;
}

.mega-menu-content {
    flex: 1;
}

.mega-menu-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-content p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item-with-mega {
    position: static;
}

.nav-item-with-mega > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mega menu container positioning */
@media (min-width: 768px) {
    nav {
        position: relative;
    }
}

/* Accordion Styles */
.accordion-item {
    transition: all 0.3s ease;
}

.accordion-header {
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8fafc;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 200px;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.rotate {
    transform: rotate(180deg);
}

/* Scroll Animation Styles */
.fade-in-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.fade-in-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Initial hidden state for scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hover animations */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive viewport height utilities */
.min-h-screen-safe {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
}

.h-screen-safe {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
}

/* Section viewport adjustments */
@media (max-height: 600px) {
    .section-responsive {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-height: 700px) and (min-height: 601px) {
    .section-responsive {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 768px) {
    .section-mobile {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Prevent content overflow on small screens */
@media (max-height: 500px) {
    .content-fit {
        font-size: 0.875rem;
    }
    .text-4xl {
        font-size: 1.875rem !important;
    }
    .text-3xl {
        font-size: 1.5rem !important;
    }
}

/* Hero Section Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
    opacity: 0;
}

/* Advanced AI Waveform Animation */
@keyframes ai-wave-advanced {
    0%, 100% {
        transform: scaleY(0.3);
        opacity: 0.6;
    }
    25% {
        transform: scaleY(1.2);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.8);
        opacity: 0.8;
    }
    75% {
        transform: scaleY(1.5);
        opacity: 1;
    }
}

.ai-wave-advanced {
    animation: ai-wave-advanced 1.5s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

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

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

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

/* Gradient Animation */
@keyframes gradient {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Particle Animation */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.6;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle-2 {
    top: 40%;
    left: 20%;
    animation: particleFloat 18s infinite ease-in-out 2s;
}

.particle-3 {
    top: 60%;
    left: 30%;
    animation: particleFloat 20s infinite ease-in-out 4s;
}

.particle-4 {
    top: 30%;
    right: 15%;
    animation: particleFloat 17s infinite ease-in-out 1s;
}

.particle-5 {
    top: 50%;
    right: 25%;
    animation: particleFloat 22s infinite ease-in-out 3s;
}

.particle-6 {
    top: 70%;
    right: 35%;
    animation: particleFloat 19s infinite ease-in-out 5s;
}

.particle-7 {
    bottom: 20%;
    left: 40%;
    animation: particleFloat 16s infinite ease-in-out 2.5s;
}

.particle-8 {
    bottom: 30%;
    right: 20%;
    animation: particleFloat 21s infinite ease-in-out 4.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(50px, -50px) scale(1.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-30px, -100px) scale(1);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.7;
    }
}

/* Demo Container Styles */
.demo-container {
    max-height: 500px;
}

@media (max-width: 768px) {
    .demo-container {
        max-height: none;
    }
}

.recording-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: recording-pulse 1.5s ease-in-out infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Recording Waves Animation */
.recording-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    background: linear-gradient(135deg, #067CC5 0%, #0891b2 100%);
    border-radius: 8px;
    padding: 8px;
}

.wave-bar {
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: wave-animation 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; height: 12px; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; height: 18px; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; height: 20px; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 14px; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; height: 22px; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; height: 18px; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; height: 16px; }
.wave-bar:nth-child(10) { animation-delay: 0.9s; height: 12px; }

@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
    50% { transform: scaleY(1.5); opacity: 1; }
}

.typing-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

#transcriptionBox::-webkit-scrollbar,
#notesBox::-webkit-scrollbar {
    width: 6px;
}

#transcriptionBox::-webkit-scrollbar-track,
#notesBox::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#transcriptionBox::-webkit-scrollbar-thumb,
#notesBox::-webkit-scrollbar-thumb {
    background: #067CC5;
    border-radius: 10px;
}

#notesContent h4 {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

#notesContent p, #notesContent ul {
    font-size: 0.7rem;
    line-height: 1.4;
}

#notesContent ul {
    margin-left: 0.5rem;
}

#notesContent > div {
    margin-bottom: 0.75rem;
}

/* Features Carousel Styles */
.features-carousel {
    position: relative;
}

.features-track {
    width: 1400%; /* 14 slides * 100% */
}

.feature-slide {
    width: 7.14%; /* 100% / 14 slides */
    min-height: auto;
}

.feature-slide .grid {
    min-height: auto;
}

.feature-slide .bg-white {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.indicator.active {
    background-color: #067CC5 !important;
    transform: scale(1.2);
}

.indicator {
    transition: all 0.3s ease;
}

.indicator:hover {
    transform: scale(1.1);
}

/* Animation for sound waves */
@keyframes pulse-wave {
    0%, 100% { height: 8px; }
    50% { height: 20px; }
}

.animate-pulse {
    animation: pulse-wave 1s ease-in-out infinite;
}

/* Pricing Toggle Styles */
#billing-toggle:checked + label .dot {
    transform: translateX(24px);
    background-color: #3b82f6;
}

#billing-toggle:checked + label > div {
    background-color: #3b82f6;
}

.dot {
    transition: transform 0.3s ease;
}

/* Pricing Animation */
.pricing-container {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.yearly-price,
.monthly-price {
    transition: opacity 0.3s ease;
}

/* Mobile Menu Styles */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

#mobile-menu.hidden {
    display: none !important;
}

/* Ensure mobile menu button is clickable */
#mobile-menu-button {
    z-index: 50;
    position: relative;
}

/* Mobile menu positioning */
#mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
}

/* Header responsive adjustments */
#header img {
    transition: none !important; /* Prevent size transitions */
}

@media (max-width: 640px) {
    #header {
        height: 3.5rem; /* 56px */
    }
    
    #header .flex {
        height: 3.5rem;
    }
    
    /* Ensure logo doesn't overflow on small screens */
    #header img {
        height: 1.75rem !important; /* Fixed height on mobile */
        max-height: 1.75rem !important;
        max-width: 100px !important;
        width: auto !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #header img {
        height: 2rem !important; /* Fixed height on tablet */
        max-height: 2rem !important;
        max-width: 120px !important;
        width: auto !important;
    }
}

@media (min-width: 769px) {
    #header img {
        height: 2rem !important; /* Fixed height on desktop */
        max-height: 2rem !important;
        width: auto !important;
    }
}

/* Demo Popup Styles */
.demo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.demo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-popup-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
}

.demo-popup-overlay.active .demo-popup-content {
    transform: scale(1) translateY(0);
}

.demo-popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 1.25rem;
}

.demo-popup-close:hover {
    background: #067CC5;
    color: white;
    transform: rotate(90deg);
}

.demo-popup-body {
    padding: 3rem;
}

@media (max-width: 768px) {
    .demo-popup-body {
        padding: 2rem 1.5rem;
    }
    
    .demo-popup-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }
}

/* Exit Intent Popup Styles */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(-50px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(6, 124, 197, 0.2);
}

.exit-popup-overlay.active .exit-popup-content {
    transform: scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 1.25rem;
}

.exit-popup-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.exit-popup-header {
    background: linear-gradient(135deg, #067CC5, #0891b2);
    padding: 2rem;
    text-align: center;
}

.exit-popup-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.exit-popup-image svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
}

.exit-popup-scroll-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.exit-popup-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.75rem;
    text-align: center;
    background: linear-gradient(135deg, #067CC5, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exit-popup-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

.exit-popup-features {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.exit-popup-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.exit-popup-feature:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.exit-popup-feature i {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.exit-popup-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #92400e;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.exit-popup-badge i {
    font-size: 1.125rem;
}

.exit-popup-footer {
    padding: 0 2rem 2rem;
}

.exit-popup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #067CC5, #0891b2);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(6, 124, 197, 0.3);
}

.exit-popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(6, 124, 197, 0.4);
    background: linear-gradient(135deg, #0891b2, #067CC5);
}

.exit-popup-cta i {
    font-size: 1.25rem;
    animation: rocket-bounce 1.5s ease-in-out infinite;
}

@keyframes rocket-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Scrollbar for popup content */
.exit-popup-scroll-content::-webkit-scrollbar {
    width: 8px;
}

.exit-popup-scroll-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.exit-popup-scroll-content::-webkit-scrollbar-thumb {
    background: #067CC5;
    border-radius: 4px;
}

.exit-popup-scroll-content::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .exit-popup-content {
        border-radius: 1.5rem;
        max-width: 95%;
    }
    
    .exit-popup-header {
        padding: 1.5rem;
    }
    
    .exit-popup-image {
        width: 150px;
        height: 150px;
    }
    
    .exit-popup-scroll-content {
        padding: 1.5rem;
    }
    
    .exit-popup-title {
        font-size: 1.5rem;
    }
    
    .exit-popup-subtitle {
        font-size: 0.9375rem;
    }
    
    .exit-popup-footer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .exit-popup-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Responsive iframe styles for contact form */
.responsive-iframe-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.responsive-iframe {
    width: 100%;
    min-height: 800px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .responsive-iframe {
        min-height: 900px;
    }
}

@media (max-width: 640px) {
    .responsive-iframe {
        min-height: 1000px;
    }
}
