/* Custom Color Variables for Tailwind - Performance Optimized */
:root {
    --deep-dark: #0A0A0A;
    --electric-blue: #00D4FF;
    --neon-green: #39FF14;
    --ai-purple: #8B5CF6;
    --form-dark: #1F2937;
    --form-border: #374151;
    --bg-accent: #111827;
    --text-muted: #9CA3AF;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Improve rendering performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Reduce layout thrashing */
.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: 1000px;
}

/* Custom Tailwind Color Classes */
.text-electric-blue { color: var(--electric-blue) !important; }
.bg-electric-blue { background-color: var(--electric-blue) !important; }
.border-electric-blue { border-color: var(--electric-blue) !important; }

.text-neon-green { color: var(--neon-green) !important; }
.bg-neon-green { background-color: var(--neon-green) !important; }
.border-neon-green { border-color: var(--neon-green) !important; }

.text-ai-purple { color: var(--ai-purple) !important; }
.bg-ai-purple { background-color: var(--ai-purple) !important; }
.border-ai-purple { border-color: var(--ai-purple) !important; }

.bg-deep-dark { background-color: var(--deep-dark) !important; }
.text-deep-dark { color: var(--deep-dark) !important; }

.bg-form-dark { background-color: var(--form-dark) !important; }
.bg-form-border { background-color: var(--form-border) !important; }
.border-form-border { border-color: var(--form-border) !important; }

.bg-bg-accent { background-color: var(--bg-accent) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Color Opacity Variants */
.bg-deep-dark\/90 { background-color: rgba(10, 10, 10, 0.9) !important; }
.bg-deep-dark\/80 { background-color: rgba(10, 10, 10, 0.8) !important; }
.bg-deep-dark\/50 { background-color: rgba(10, 10, 10, 0.5) !important; }

.border-electric-blue\/20 { border-color: rgba(0, 212, 255, 0.2) !important; }
.border-electric-blue\/30 { border-color: rgba(0, 212, 255, 0.3) !important; }
.border-electric-blue\/50 { border-color: rgba(0, 212, 255, 0.5) !important; }
.bg-electric-blue\/20 { background-color: rgba(0, 212, 255, 0.2) !important; }
.bg-electric-blue\/80 { background-color: rgba(0, 212, 255, 0.8) !important; }
.hover\:bg-electric-blue:hover { background-color: var(--electric-blue) !important; }
.hover\:text-electric-blue:hover { color: var(--electric-blue) !important; }
.hover\:from-electric-blue\/80:hover { background-image: linear-gradient(to right, rgba(0, 212, 255, 0.8), var(--tw-gradient-to)) !important; }

.bg-neon-green\/20 { background-color: rgba(57, 255, 20, 0.2) !important; }
.bg-neon-green\/30 { background-color: rgba(57, 255, 20, 0.3) !important; }
.bg-neon-green\/80 { background-color: rgba(57, 255, 20, 0.8) !important; }
.border-neon-green\/20 { border-color: rgba(57, 255, 20, 0.2) !important; }
.border-neon-green\/30 { border-color: rgba(57, 255, 20, 0.3) !important; }
.border-neon-green\/50 { border-color: rgba(57, 255, 20, 0.5) !important; }
.hover\:bg-neon-green\/80:hover { background-color: rgba(57, 255, 20, 0.8) !important; }
.hover\:to-neon-green\/80:hover { background-image: linear-gradient(var(--tw-gradient-from), rgba(57, 255, 20, 0.8)) !important; }

.bg-ai-purple\/20 { background-color: rgba(139, 92, 246, 0.2) !important; }
.border-ai-purple\/20 { border-color: rgba(139, 92, 246, 0.2) !important; }
.border-ai-purple\/50 { border-color: rgba(139, 92, 246, 0.5) !important; }

.bg-form-dark\/50 { background-color: rgba(31, 41, 55, 0.5) !important; }

.hover\:text-deep-dark:hover { color: var(--deep-dark) !important; }

/* Gradient Classes */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)) !important; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important; }
.from-electric-blue { --tw-gradient-from: var(--electric-blue); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 212, 255, 0)) !important; }
.to-neon-green { --tw-gradient-to: var(--neon-green) !important; }
.to-ai-purple { --tw-gradient-to: var(--ai-purple) !important; }
.from-neon-green { --tw-gradient-from: var(--neon-green); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(57, 255, 20, 0)) !important; }
.from-ai-purple { --tw-gradient-from: var(--ai-purple); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(139, 92, 246, 0)) !important; }
.from-blue-600 { --tw-gradient-from: #2563eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0)) !important; }
.to-blue-700 { --tw-gradient-to: #1d4ed8 !important; }
.hover\:from-blue-700:hover { --tw-gradient-from: #1d4ed8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0)) !important; }
.hover\:to-blue-800:hover { --tw-gradient-to: #1e40af !important; }

/* Section spacing improvements */
section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* Hero section spacing */
#hero {
    padding-top: 8rem !important;
    min-height: calc(100vh + 2rem) !important;
}

/* Desktop macOS Optimization */
@media (min-width: 1024px) {
    /* Navigation enhancement for desktop */
    nav {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    /* Hero section desktop optimization */
    #hero {
        min-height: 100vh;
        padding-top: 5rem;
    }
    
    #hero h1 {
        font-size: 5rem;
        line-height: 1.1;
        margin-bottom: 2rem;
    }
    
    #hero p {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    /* Button optimization for desktop */
    button, .btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }
    
    button:hover, .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    }
    
    /* Services section desktop layout */
    #services .grid {
        gap: 2.5rem;
    }
    
    #services .bg-form-dark\/50 {
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    #services .bg-form-dark\/50:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    /* Typography scaling for desktop */
    .text-3xl { font-size: 2.5rem; }
    .text-4xl { font-size: 3rem; }
    .text-5xl { font-size: 4rem; }
    .text-6xl { font-size: 5rem; }
    .text-7xl { font-size: 6rem; }
    
    /* Container max widths for desktop */
    .max-w-7xl {
        max-width: 90rem;
    }
    
    /* FAQ section desktop optimization */
    #faq .space-y-6 > div {
        transition: all 0.3s ease;
    }
    
    #faq .space-y-6 > div:hover {
        transform: translateX(8px);
        box-shadow: 0 15px 30px rgba(0, 212, 255, 0.15);
    }
    
    /* Footer desktop optimization */
    footer {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    /* Form desktop optimization */
    #lead-capture-form input,
    #lead-capture-form select,
    #lead-capture-form button {
        transition: all 0.3s ease;
    }
    
    #lead-capture-form input:focus,
    #lead-capture-form select:focus {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
    }
    
    /* Chatbot desktop positioning */
    #chatToggle {
        bottom: 2rem;
        right: 2rem;
        width: 4rem;
        height: 4rem;
    }
    
    #chatWidget {
        bottom: 7rem;
        right: 2rem;
        width: 28rem;
        height: 32rem;
    }
    
    /* Smooth animations for desktop */
    * {
        scroll-behavior: smooth;
    }
    
    /* Enhanced glow effects for desktop */
    .glow-text {
        text-shadow: 
            0 0 20px rgba(0, 212, 255, 0.6),
            0 0 40px rgba(0, 212, 255, 0.4),
            0 0 60px rgba(0, 212, 255, 0.3),
            0 0 80px rgba(0, 212, 255, 0.2);
    }
    
    .neon-glow {
        box-shadow: 
            0 0 20px rgba(57, 255, 20, 0.4),
            0 0 40px rgba(57, 255, 20, 0.3),
            inset 0 0 20px rgba(57, 255, 20, 0.1);
    }
    
    .pulse-glow {
        animation: pulse-desktop 2s ease-in-out infinite alternate;
    }
    
    @keyframes pulse-desktop {
        from {
            box-shadow: 0 0 20px rgba(57, 255, 20, 0.4),
                        0 0 40px rgba(57, 255, 20, 0.3);
        }
        to {
            box-shadow: 0 0 30px rgba(57, 255, 20, 0.6),
                        0 0 50px rgba(57, 255, 20, 0.4),
                        0 0 70px rgba(57, 255, 20, 0.3);
        }
    }
}

/* Ultra-wide desktop optimization */
@media (min-width: 1440px) {
    .max-w-7xl {
        max-width: 100rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    #hero h1 {
        font-size: 6rem;
    }
    
    /* Larger spacing for ultra-wide */
    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    
    #hero {
        padding-top: 6rem;
    }
}

/* Retina/High-DPI optimization for macOS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glow-text,
    .neon-glow,
    .pulse-glow {
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Sharper borders for high-DPI */
    .border {
        border-width: 0.5px;
    }
}

/* Enhanced Mobile Optimization */
@media (max-width: 480px) {
    /* Extra small mobile devices */
    .container, .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Typography adjustments */
    h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
    h2 { font-size: 2rem !important; line-height: 1.2 !important; }
    h3 { font-size: 1.5rem !important; }
    
    /* Hero section mobile optimization */
    #hero h1 {
        font-size: 2.25rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    #hero p {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Button optimization */
    button, .btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 48px !important;
        touch-action: manipulation;
    }
    
    /* Form inputs mobile optimization */
    input, select, textarea {
        min-height: 48px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem !important;
    }
    
    /* Navigation mobile optimization */
    nav {
        padding: 0.5rem 1rem !important;
    }
    
    /* FAQ mobile optimization */
    #faq button {
        padding: 1.25rem !important;
        font-size: 1.125rem !important;
    }
    
    #faq .text-xl {
        font-size: 1.125rem !important;
    }
    
    /* Services grid mobile */
    .grid.md\\:grid-cols-2.lg\\:grid-cols-4 > div {
        margin-bottom: 1.5rem !important;
    }
    
    /* Stats mobile optimization */
    .text-5xl {
        font-size: 3rem !important;
    }
    
    /* Footer mobile optimization */
    footer {
        padding-top: 3rem !important;
        padding-bottom: 2rem !important;
    }
    
    footer .grid > div {
        margin-bottom: 2rem !important;
    }
    
    /* Lead capture form mobile */
    #lead-capture-form .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Phone container mobile */
    .phone-container {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .phone-container select,
    .phone-container input {
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Regular mobile devices */
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    #hero {
        padding-top: 6rem !important;
        min-height: calc(100vh + 1rem) !important;
    }
    
    /* Typography responsive */
    .text-4xl { font-size: 2.5rem !important; }
    .text-5xl { font-size: 3.5rem !important; }
    .text-6xl { font-size: 4rem !important; }
    .text-7xl { font-size: 4.5rem !important; }
    
    /* Button touch optimization */
    button, .btn, a.btn {
        min-height: 44px !important;
        padding: 0.75rem 1.5rem !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Navigation mobile hamburger menu */
    .md\\:block {
        display: none !important;
    }
    
    /* Mobile navigation toggle */
    .mobile-menu {
        display: block !important;
    }
    
    /* Form optimization */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom */
        padding: 0.75rem !important;
    }
    
    /* Grid responsive */
    .grid.md\\:grid-cols-2 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .grid.lg\\:grid-cols-4 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .grid.md\\:grid-cols-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Chatbot mobile positioning */
    #chatToggle {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 3.5rem !important;
        height: 3.5rem !important;
    }
    
    #chatWidget {
        bottom: 5.5rem !important;
        right: 1rem !important;
        width: calc(100vw - 2rem) !important;
        max-width: 24rem !important;
        height: 70vh !important;
        max-height: 28rem !important;
    }
    
    /* Lead capture mobile optimization */
    #lead-capture {
        padding: 3rem 1rem !important;
    }
    
    #lead-capture .max-w-2xl {
        max-width: 100% !important;
        padding: 1.5rem !important;
    }
    
    /* FAQ mobile optimization */
    #faq .max-w-4xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Footer improvements */
footer {
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}

@media (min-width: 768px) {
    footer {
        padding-top: 5rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (min-width: 1024px) {
    footer {
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Font Family Classes */
.font-orbitron { font-family: 'Orbitron', monospace !important; }
.font-inter { font-family: 'Inter', sans-serif !important; }

.glow-text {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.2);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

/* Enhanced glow animation */
@keyframes glow-pulse {
    from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.2); }
    to { text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 50px rgba(0, 212, 255, 0.5), 0 0 70px rgba(0, 212, 255, 0.3); }
}

/* Mobile-First Responsive Utilities */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

/* Improved tap targets for mobile */
@media (max-width: 768px) {
    a, button, [onclick], [role="button"] {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.1);
    }
    
    /* Prevent zoom on form inputs */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Optimize scroll behavior */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Mobile-optimized animations */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Phone container mobile optimization */
.phone-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-container select {
    background-color: rgb(55, 65, 81);
    border: 1px solid rgb(75, 85, 99);
    border-radius: 0.75rem;
    color: white;
    padding: 1rem;
    min-height: 48px;
    font-size: 16px;
}

.phone-container input {
    background-color: rgb(55, 65, 81);
    border: 1px solid rgb(75, 85, 99);
    border-radius: 0.75rem;
    color: white;
    padding: 1rem;
    min-height: 48px;
    font-size: 16px;
    flex: 1;
}

@media (min-width: 640px) {
    .phone-container {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .phone-container select {
        width: auto;
        min-width: 120px;
    }
}

/* Mobile menu styles */
#mobile-menu {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#mobile-menu a {
    transition: all 0.2s ease;
}

#mobile-menu a:hover,
#mobile-menu a:focus {
    background-color: rgba(0, 212, 255, 0.1);
    padding-left: 1.5rem;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced glow animation */
@keyframes glow-pulse {
    from { text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.2); }
    to { text-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 50px rgba(0, 212, 255, 0.5), 0 0 70px rgba(0, 212, 255, 0.3); }
}

.neon-glow {
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.gradient-bg {
    background: linear-gradient(135deg, #0A0A0A 0%, #1F2937 50%, #374151 100%);
}

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

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

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.3); }
    50% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.6); }
}

/* Chatbot Styles */
.typing-indicator {
    animation: fadeIn 0.5s ease-in;
}

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

.typing-dots {
    display: inline-flex;
    gap: 2px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(57, 255, 20, 0.7);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Enhanced chatbot message styles */
.message {
    animation: messageSlideIn 0.3s ease-out;
}

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

.quick-replies {
    animation: fadeIn 0.4s ease-out 0.2s both;
}

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

/* Improved chatbox scrolling */
#chatbox {
    scroll-behavior: smooth;
}

/* Original Chatbot message alignment - restored from backup */
.user {
    display: block;
    margin-bottom: 0.75rem;
    margin-left: auto;  /* Right alignment for user messages */
    text-align: right;
}

.bot {
    display: block;
    margin-bottom: 0.75rem;
    margin-right: auto;  /* Left alignment for bot messages */
    text-align: left;
}

/* Enhanced mobile chatbot positioning */
@media (max-width: 640px) {
    #chatWidget {
        width: calc(100vw - 0.5rem);
        height: 75vh;
        right: 0.25rem;
        bottom: 5rem;
    }
}

/* Phone container styles */
.phone-container {
    display: flex;
    border: 1px solid #4B5563;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #374151;
}

.phone-container select {
    background-color: #4B5563;
    border: none;
    padding: 1rem;
    color: white;
    outline: none;
    cursor: pointer;
}

.phone-container input {
    flex: 1;
    background-color: #374151;
    border: none;
    padding: 1rem;
    color: white;
    outline: none;
}

.phone-container input::placeholder {
    color: #9CA3AF;
}

.phone-container:focus-within {
    border-color: var(--electric-blue);
}

/* Security badge styles */
.gs-sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #374151;
    background-color: #1F2937;
    color: #9CA3AF;
}

.gs-sec-badge:hover {
    color: var(--electric-blue);
    border-color: rgba(0, 212, 255, 0.3);
}

.gs-sec-badge--ok {
    border-color: rgba(34, 197, 94, 0.3);
    background-color: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.gs-sec-badge--warn {
    border-color: rgba(251, 191, 36, 0.3);
    background-color: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
}

.gs-sec-badge__icon svg {
    width: 1rem;
    height: 1rem;
}

.gs-sec-badge__status {
    font-style: normal;
    font-weight: 600;
}

/* AI Grid Animation */
.ai-grid {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

/* Performance-optimized animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Optimize scrolling performance */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Performance optimizations */
.optimize-rendering {
    contain: layout style paint;
}

/* Fix any overflow issues */
body {
    overflow-x: hidden;
}

/* Ensure proper viewport handling */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Form Message Styling */
.form-message-success {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(57, 255, 20, 0.05));
    border: 1px solid rgba(57, 255, 20, 0.3);
    color: #39FF14;
    animation: fadeInSlideUp 0.3s ease-out;
}

.form-message-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    animation: fadeInSlideUp 0.3s ease-out;
}

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

/* Submit button loading state */
.submit-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: scale(0.98);
}

.submit-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid transparent;
    border-top-color: #0A0A0A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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