/* Custom CSS for Autsmart AI Landing Page with Tailwind */

/* Root Variables - Tailwind Compatible */
:root {
    --primary: #00c851;
    --primary-dark: #007e33;
    --secondary: #2ed573;
    --secondary-dark: #1e7e34;
    --accent: #7bed9f;
    --dark-green: #1a5f3f;
    --light-green: #a8e6cf;
    --emerald: #50c878;
}

/* Animated Background Patterns */
.hero-background {
    position: relative;
    overflow: hidden;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 200, 81, 0.03) 50%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 200, 81, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(46, 213, 115, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 75% 25%, rgba(123, 237, 159, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 25% 75%, rgba(26, 95, 63, 0.04) 0%, transparent 25%);
    animation: float 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-dot {
    position: absolute;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    opacity: 0.1;
    animation: floatUp 8s ease-in-out infinite;
}

.floating-dot:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.floating-dot:nth-child(2) {
    width: 12px;
    height: 12px;
    top: 60%;
    left: 80%;
    animation-delay: -4s;
}

.floating-dot:nth-child(3) {
    width: 6px;
    height: 6px;
    top: 80%;
    left: 20%;
    animation-delay: -6s;
}

.floating-dot:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 30%;
    left: 70%;
    animation-delay: -1s;
}

@keyframes floatUp {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Section Background Enhancements */
.section-bg-pattern {
    position: relative;
    overflow: hidden;
}

.section-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, transparent 50%, rgba(0, 200, 81, 0.02) 50%),
        linear-gradient(0deg, transparent 50%, rgba(46, 213, 115, 0.02) 50%);
    background-size: 60px 60px;
    animation: patternSlide 25s linear infinite;
    z-index: 0;
}

@keyframes patternSlide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Card Hover Effects */
.card-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 200, 81, 0.1),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.card-enhanced:hover::before {
    left: 100%;
}

.card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 200, 81, 0.1);
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--secondary),
        var(--accent),
        var(--primary)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

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

/* Global Styles - Tailwind Compatible */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Custom Tailwind Additions */
.text-light-green {
    color: var(--light-green);
}

.text-emerald {
    color: var(--emerald);
}

.border-primary {
    border-color: var(--primary);
}

.bg-primary {
    background-color: var(--primary);
}

.hover\:bg-primary:hover {
    background-color: var(--primary);
}

.hover\:text-primary:hover {
    color: var(--primary);
}

/* Navigation Effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus and Accessibility */
.focus\:outline-primary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.focus\:ring-primary:focus {
    --tw-ring-color: var(--primary);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .text-6xl {
        font-size: 3rem;
    }

    .text-7xl {
        font-size: 3.5rem;
    }
}

/* Additional Utilities */
.backdrop-blur-custom {
    backdrop-filter: blur(10px);
}

/* Container Utilities */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

/* Print Styles */
@media print {
    .fixed { position: static !important; }
    .no-print { display: none !important; }
}