/* ---- ---- Scroll Animations ---- ---- */

/* Prevent horizontal scrolling */
html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

/* Ensure full-width sections don't cause overflow */
section {
    overflow-x: hidden !important;
    position: relative;
}

/* Fix full-width sections with calc margins */
.hero,
.team,
.features,
.pricing,
.testimonials,
footer {
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

/* Ensure no element extends beyond viewport */
* {
    box-sizing: border-box;
}

/* Fix any absolutely positioned elements that might overflow */
[style*="position: absolute"] {
    max-width: 100vw;
    overflow: hidden;
}

/* Hero section animations that play immediately on page load */
@keyframes slideUpHero {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Fade in animations */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.animate-in {
    opacity: 1;
}

/* Slide up animations */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.scale-up {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger animations for multiple elements */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* Parallax elements */
.parallax-slow {
    transition: transform 0.1s ease-out;
}

.parallax-medium {
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    transition: transform 0.1s ease-out;
}

/* Floating animation for background elements */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

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

.floating-slow {
    animation: float 8s ease-in-out infinite;
}

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

/* Bounce in animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }

    70% {
        transform: scale(0.95) translateY(0px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0px);
    }
}

.bounce-in {
    opacity: 0;
    animation-fill-mode: forwards;
}

.bounce-in.animate-in {
    animation: bounceIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Typewriter effect */
@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid;
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s forwards, blink 1s infinite;
    width: 0;
}

/* Glow effect on scroll */
.glow-on-scroll {
    transition: all 0.8s ease;
}

.glow-on-scroll.animate-in {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Rotate in animation */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotate-in.animate-in {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Flip animation */
@keyframes flipIn {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

.flip-in {
    opacity: 0;
    animation-fill-mode: forwards;
}

.flip-in.animate-in {
    animation: flipIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Pulse animation */
@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

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

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    position: relative;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #c471f5);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.text-reveal.animate-in::after {
    transform: translateX(100%);
}

/* Counter animation */
.counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .animate-on-scroll,
    .fade-in,
    .slide-up,
    .slide-left,
    .slide-right,
    .scale-up,
    .bounce-in,
    .rotate-in,
    .flip-in {
        transition: none;
        animation: none;
        opacity: 1;
        transform: none;
    }

    .floating,
    .floating-slow,
    .floating-fast,
    .pulse-glow {
        animation: none;
    }
}/*
 Request Form Popup Animations */
#requestFormPopup {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#requestFormPopup > div {
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form input focus animations */
#requestFormPopup input:focus,
#requestFormPopup select:focus,
#requestFormPopup textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* Form placeholder styling */
#requestFormPopup input::placeholder,
#requestFormPopup textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Select dropdown styling */
#requestFormPopup select option {
    background: #1a1a2e !important;
    color: white !important;
}

/* Enhanced scrollbar styling for popup */
#requestFormPopup::-webkit-scrollbar {
    width: 12px;
}

#requestFormPopup::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 10px 0;
}

#requestFormPopup::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.6), rgba(196, 113, 245, 0.6));
    border-radius: 10px;
    border: 2px solid rgba(15, 15, 35, 0.8);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

#requestFormPopup::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.8), rgba(196, 113, 245, 0.8));
    box-shadow: inset 0 0 15px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

#requestFormPopup::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 1), rgba(196, 113, 245, 1));
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.6);
}

/* Firefox scrollbar styling */
#requestFormPopup {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.6) rgba(255, 255, 255, 0.05);
}
/*
 Success popup animations */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(16, 185, 129, 0.5);
    }
}

#successPopup {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#successPopup > div {
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Success popup show state */
#successPopup.show {
    opacity: 1;
}

#successPopup.show > div {
    transform: translate(-50%, -50%) scale(1);
}/* Request
 Form Popup Base Styles */
#requestFormPopup {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#requestFormPopup > div {
    transform: translate(-50%, -50%) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure popup is properly positioned */
#requestFormPopup > div > div {
    position: relative;
    z-index: 1;
}