/* Home Page Specific Styles */

/* Prevent Horizontal Scroll */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all sections don't overflow */
section {
    overflow-x: hidden;
}

/* Blob Animation Keyframes */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Video Player Styles - Clean look without hover effects */

/* Video Controls Animation */
#video-controls {
    transition: transform 0.3s ease-in-out;
}

#video-controls.hidden {
    transform: translateY(100%);
}

/* Remove hover effects for cleaner look */
#video-container:hover #video-controls {
    transform: translateY(0);
}

/* Loading Spinner */
#loading-spinner {
    transition: opacity 0.3s ease-in-out;
}

/* Progress Bar Hover Effect */
#progress-container:hover #progress-bar {
    background: linear-gradient(to right, #a855f7, #38bdf8);
}

/* Button Hover Effects */
#play-pause-btn:hover,
#fullscreen-btn:hover {
    transform: scale(1.1);
    color: #a855f7;
}

/* Video Quality Indicator */
#quality-indicator {
    transition: opacity 0.3s ease-in-out;
}

/* Responsive Video Controls */
@media (max-width: 768px) {
    #video-controls .flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #video-controls .flex > div {
        justify-content: center;
    }
}

/* Hero Section Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

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

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

/* Feature Cards Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Pricing Card Hover Effects */
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Gradient Text Animation */
.gradient-text {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #9333ea, #ec4899, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Button Gradient Animation */
.btn-gradient {
    background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #38bdf8 100%);
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
}

/* Form Input Focus Effects */
input:focus,
textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

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

/* Custom Scrollbar for Webkit Browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #9333ea, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7e22ce, #db2777);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .animate-blob,
    .animate-fade-in,
    .animate-slide-up,
    .gradient-text {
        animation: none;
    }
    
    .card-hover:hover,
    .pricing-card:hover,
    .btn-gradient:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    #video-container,
    #video-controls {
        display: none !important;
    }
}

/* Step Card Animations */
.step-card {
    transition: all 0.3s ease;
}

/* Testimonial Card Animations */
.testimonial-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Trust Badge Animations */
.trust-badge {
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.trust-badge.animate-fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Demo Shimmer Animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }
    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

.demo-shimmer {
    animation: shimmer 3s infinite;
}

/* FAQ Animations */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer:not(.hidden) {
    max-height: 500px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

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

/* Smooth Element Reveal on Scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animations for grid items */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }

.trust-badge:nth-child(1) { animation-delay: 0.1s; }
.trust-badge:nth-child(2) { animation-delay: 0.15s; }
.trust-badge:nth-child(3) { animation-delay: 0.2s; }
.trust-badge:nth-child(4) { animation-delay: 0.25s; }
.trust-badge:nth-child(5) { animation-delay: 0.3s; }
.trust-badge:nth-child(6) { animation-delay: 0.35s; }

.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }

/* Stats Counter Animation */
.stats-item {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats-item.counted {
    opacity: 1;
    transform: scale(1);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .faq-question span {
        font-size: 1.125rem;
    }
    
    .testimonial-card,
    .step-card {
        margin-bottom: 1rem;
    }
    
    /* Fix container overflow on mobile */
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Limit decorative blob sizes on mobile */
    section .absolute.w-96 {
        width: 12rem !important;
        height: 12rem !important;
    }
    
    /* Ensure grid layouts don't overflow */
    .grid {
        overflow-x: hidden;
    }
    
    /* Fix absolute positioned decorative elements causing overflow */
    .absolute.-left-4,
    .absolute.-right-4,
    .absolute.-left-32,
    .absolute.-right-32 {
        display: none;
    }
    
    /* Fix video container */
    #video-container {
        max-width: 100%;
    }
    
    /* Ensure all text and headings fit */
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix forms on mobile */
    form {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    input, textarea, button {
        max-width: 100%;
    }
}

/* Mobile Hero Section Improvements */
@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .min-h-screen {
        min-height: 100vh;
        padding-top: 5rem;
        padding-bottom: 2rem;
        display: flex;
        align-items: center;
    }
    
    /* Container adjustments for mobile */
    .container.mx-auto.px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Hero content spacing */
    .max-w-4xl.mx-auto {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Hero Title Mobile */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem;
    }
    
    /* Hero Subtitle Mobile */
    .hero-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Hero Buttons Mobile */
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 0.75rem !important;
        text-align: center !important;
    }
    
    /* Button hover effects for mobile */
    .hero-buttons .btn-gradient {
        background: linear-gradient(135deg, #9333ea 0%, #a855f7 50%, #38bdf8 100%) !important;
        border: none !important;
        box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3) !important;
    }
    
    .hero-buttons .bg-gray-800 {
        background-color: rgba(31, 41, 55, 0.9) !important;
        border: 1px solid rgba(75, 85, 99, 0.3) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* Video Container Mobile */
    .hero-video-container {
        margin-top: 1.5rem !important;
        padding: 0 1rem;
    }
    
    .hero-video-container .relative {
        border-radius: 1rem !important;
        border: none !important;
        max-width: 100% !important;
        /* overflow: hidden; */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    }
    
    #video-container {
        aspect-ratio: 16/9 !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Video Play Button Mobile */
    #play-overlay {
        padding: 1rem !important;
    }
    
    #play-overlay .text-center {
        padding: 0 0.5rem;
    }
    
    #play-overlay h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }
    
    #play-overlay p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        opacity: 0.9 !important;
    }
    
    /* Play Button Mobile */
    .w-32.h-32 {
        width: 4rem !important;
        height: 4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .w-24.h-24 {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .fa-play {
        font-size: 1.25rem !important;
        margin-left: 0.125rem !important;
    }
    
    /* Pulsing rings mobile */
    .absolute.animate-ping,
    .absolute.animate-pulse {
        width: 4rem !important;
        height: 4rem !important;
    }
}

/* Extra small devices - Additional fixes */
@media (max-width: 576px) {
    /* Make heading text smaller to prevent overflow */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    /* Hero specific for very small screens */
    .hero-title {
        font-size: 1.875rem !important;
        padding: 0 0.5rem;
        line-height: 1.15 !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 0.5rem;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        padding: 0 0.5rem;
        gap: 0.75rem !important;
    }
    
    .hero-buttons a {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        max-width: 260px !important;
    }
    
    .hero-video-container {
        padding: 0 0.5rem;
        margin-top: 1.25rem !important;
    }
    
    /* Video adjustments for very small screens */
    #play-overlay h3 {
        font-size: 1.125rem !important;
    }
    
    #play-overlay p {
        font-size: 0.85rem !important;
    }
    
    .w-32.h-32 {
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    
    .w-24.h-24 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
    
    .fa-play {
        font-size: 1rem !important;
    }
    
    /* Ensure images and videos fit */
    img, video {
        max-width: 100%;
        height: auto;
    }
}

/* Header Dropdown Arrow Rotation */
.header-dropdown-arrow {
    transition: transform 0.2s ease;
}

.header-dropdown-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* Header Dropdown Animation */
#header-user-dropdown:not(.hidden) {
    animation: dropdown-slide 0.2s ease;
}

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

/* Mobile Testimonial Horizontal Scroll Styles */
.testimonial-scroll-container {
    /* Hide scrollbar for webkit browsers */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Smooth scrolling behavior */
.testimonial-scroll-container {
    scroll-behavior: smooth;
}

/* Mobile testimonial cards styling */
@media (max-width: 1023px) {
    .testimonial-scroll-container .testimonial-card {
        min-width: 280px;
        max-width: 300px;
    }
    
    /* Add subtle shadow for depth */
    .testimonial-scroll-container .testimonial-card {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    /* Smooth hover effects */
    .testimonial-scroll-container .testimonial-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    }
}

/* Touch-friendly scrolling indicators */
.testimonial-scroll-container::before,
.testimonial-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 10;
}

.testimonial-scroll-container::before {
    left: 1rem;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.9), transparent);
}

.testimonial-scroll-container::after {
    right: 1rem;
    background: linear-gradient(to left, rgba(17, 24, 39, 0.9), transparent);
}

/* Mobile scroll snap */
@media (max-width: 1023px) {
    .testimonial-scroll-container {
        scroll-snap-type: x mandatory;
    }
    
    .testimonial-scroll-container > div > div {
        scroll-snap-align: start;
    }
    
    /* Ensure proper spacing for mobile testimonials */
    .testimonial-scroll-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .testimonial-scroll-container > div {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}