/* Custom CSS for HTML5 version */

/* Tailwind CSS custom configurations */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar with orange/purple theme */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f97316, #a855f7);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ea580c, #9333ea);
}

/* Enhanced gradient animations */
@keyframes gradient-x {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

@keyframes gradient-xy {
    0%, 100% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 4s ease infinite;
}

.animate-gradient-y {
    background-size: 200% 200%;
    animation: gradient-y 4s ease infinite;
}

.animate-gradient-xy {
    background-size: 400% 400%;
    animation: gradient-xy 8s ease infinite;
}

/* Enhanced floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

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

/* Floating particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #f97316, #a855f7);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 30%;
    animation-delay: 2s;
}
/* Floating particles */
.floating-particles2 {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .floating-particles2::before,
    .floating-particles2::after {
        content: '';
        position: absolute;
        width: 15px;
        height: 15px;
        background: linear-gradient(45deg, #f97316, #a855f7);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite;
    }

    .floating-particles2::before {
        top: 40%;
        right: 30%;
        animation-delay: 0s;
    }

    .floating-particles2::after {
        top: 20%;
        right: 70%;
        animation-delay: 2s;
    }

/* Floating particles */
.floating-particles3 {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .floating-particles3::before,
    .floating-particles3::after {
        content: '';
        position: absolute;
        width: 7px;
        height: 7px;
        background: linear-gradient(45deg, #78f916, #f75582);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite;
    }

    .floating-particles3::before {
        top: 20%;
        left: 30%;
        animation-delay: 0s;
    }

    .floating-particles3::after {
        top: 40%;
        right: 50%;
        animation-delay: 2s;
    }


/* Floating particles */
.floating-particles4 {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .floating-particles4::before,
    .floating-particles4::after {
        content: '';
        position: absolute;
        width: 13px;
        height: 13px;
        background: linear-gradient(45deg, #78f916, #f75582);
        border-radius: 50%;
        animation: float 8s ease-in-out infinite;
    }

    .floating-particles4::before {
        top: 10%;
        left: 50%;
        animation-delay: 0s;
    }

    .floating-particles4::after {
        top: 50%;
        right: 15%;
        animation-delay: 2s;
    }
/* Technology scrolling animations */
.tech-scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.tech-scroll-track {
    display: flex;
    animation: scroll-left 30s linear infinite;
    gap: 2rem;
    width: max-content;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
}

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

.tech-category {
    margin-bottom: 4rem;
}

.tech-category:hover .tech-scroll-track {
    animation-play-state: paused;
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

    .slider-slide img {
        width: 100%;
        height: 100%;
        /*object-fit: cover;*/
        display: block;
    }

/* Navigation Arrows */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0.5rem;
}

.slider-next {
    right: 0.5rem;
}

.image-slider:hover .slider-prev,
.image-slider:hover .slider-next {
    opacity: 1;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
}

/* Auto-slide animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-slide.active {
    animation: slideIn 0.5s ease-in-out;
}

/* Mobile responsiveness for sliders */
@media (max-width: 768px) {
    .slider-prev,
    .slider-next {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .slider-prev {
        left: 0.25rem;
    }
    
    .slider-next {
        right: 0.25rem;
    }
    
    .slider-dots {
        bottom: 0.25rem;
        gap: 0.25rem;
    }
    
    .slider-dot {
        width: 0.375rem;
        height: 0.375rem;
    }
}

/* Glass effect styles */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-button {
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px 0 rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Enhanced card hover effects */
.card-hover-3d {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-hover-3d:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(249, 115, 22, 0.2),
        0 0 60px rgba(168, 85, 247, 0.1);
}

/* Service card animations */
.service-card {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    transition: opacity 0.7s ease;
    border-radius: inherit;
}

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

/* Pricing card styles */
.pricing-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.pricing-card.popular {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Button hover effects */
.btn-hover-3d {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.btn-hover-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-hover-3d:hover::before {
    left: 100%;
}

.btn-hover-3d:hover {
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* Text shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, #f97316, #a855f7, #ec4899, #f97316);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* Smooth reveal animations */
@keyframes reveal-3d {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(20deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

.reveal-3d {
    animation: reveal-3d 1s ease-out forwards;
}

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

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

/* Notification slide animation */
.notification-slide-in {
    transform: translateX(0) !important;
}

.notification-slide-out {
    transform: translateX(100%) !important;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Pinterest-style columns layout */
.columns-1 {
    column-count: 1;
}

.columns-2 {
    column-count: 2;
}

.columns-3 {
    column-count: 3;
}

.break-inside-avoid {
    break-inside: avoid;
    page-break-inside: avoid;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-scroll-track {
        gap: 1rem;
    }

    .tech-logo-item {
        min-width: 60px;
    }

    .columns-3 {
        column-count: 1;
    }

    .columns-2 {
        column-count: 1;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-scroll-track {
        animation-duration: 20s;
    }
}

@media (min-width: 768px) {
    .columns-2 {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .columns-3 {
        column-count: 3;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .tech-scroll-track {
        animation: none;
    }
    
    .slider-track {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-900 {
        background-color: #000000;
    }
    
    .text-gray-400 {
        color: #ffffff;
    }
    
    .border-gray-800 {
        border-color: #ffffff;
    }
}

/* Print styles */
@media print {
    .fixed,
    .sticky {
        position: static !important;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br,
    .bg-gradient-to-b {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* Spline viewer custom styles */
spline-viewer {
    border-radius: 20px;
    overflow: hidden;
}

/* Custom utility classes */
.perspective-1000 {
    perspective: 1000px;
}

.transform-style-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

/* Enhanced focus indicators */
.focus-visible:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 3px;
    border-radius: 8px;
}

/* Custom animations for specific elements */
.hero-stats-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-stats-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Service icon animations */
.service-icon {
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* Process step animations */
.process-step {
    position: relative;
    transition: all 0.7s ease;
}

.process-step:hover {
    transform: translateY(-10px) scale(1.03);
}

.process-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #f97316, #a855f7);
    transform: scaleX(0);
    transition: transform 0.7s ease;
    border-radius: 1px;
}

.process-step:hover::after {
    transform: scaleX(1);
}

/* Testimonial card enhancements */
.testimonial-card {
    transition: all 0.6s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.2);
}

/* Pricing plan highlights */
.pricing-plan.popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 400% 400%;
    animation: gradient-xy 4s ease infinite;
    border-radius: inherit;
    z-index: -1;
}

/* Add-on service cards */
.addon-card {
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.addon-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.addon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(236, 72, 153, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

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

/* Contact form enhancements */
.contact-form {
    position: relative;
}

.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.15);
}

/* Modal animations */
.modal-enter {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

.modal-enter-active {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.3s ease;
}

.modal-exit {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-exit-active {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

/* Success states */
.success-state {
    animation: successPulse 0.6s ease-out;
}

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

/* Error states */
.error-state {
    animation: errorShake 0.5s ease-out;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Loading states */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Lazy loading support */
/*img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}*/

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #f97316;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 6px;
}

/* High contrast focus indicators */
@media (prefers-contrast: high) {
    *:focus {
        outline: 3px solid #ffffff !important;
        outline-offset: 2px !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .animate-spin,
    .animate-bounce,
    .animate-float,
    .animate-gradient-x,
    .animate-gradient-y,
    .animate-gradient-xy {
        animation: none !important;
    }
    
    .transition-all,
    .transition-colors,
    .transition-transform {
        transition: none !important;
    }
}

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

.will-change-opacity {
    will-change: opacity;
}

/* GPU acceleration for smooth animations */
.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}
.dot {
    position: relative;
}
.dot ::after, .dot ::before {
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 10px;
    height: 10px;
    background: rgb(251 146 60 / var(--tw-text-opacity, 1));
}