/* Firefox Compatibility Fixes */

/* Animation State Classes */
.animate-hidden {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.6s ease !important;
}

.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Form State Classes */
.btn-loading .btn-loader {
    display: inline-block !important;
}

.form-message-visible {
    display: block !important;
}

.form-message-hidden {
    display: none !important;
}

/* News Footer Styles */
.news-footer {
    grid-column: 1/-1;
    text-align: center;
    color: #94a3b8;
}

.news-footer p {
    font-size: 0.9em;
    margin-top: 0.5rem;
}

/* Body Scroll Control */
.body-no-scroll {
    overflow: hidden !important;
}

/* Button Specific Styles */
.btn-large {
    font-size: 1.25rem !important;
    padding: 1.25rem 3rem !important;
}

/* Enterprise AI Images Styling */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.7) 50%, rgba(51, 65, 85, 0.6) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-dashboard {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.hero-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.8);
    border-color: rgba(59, 130, 246, 0.6);
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Section with AI Icons */
.service-ai-icon {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Analytics Dashboard Integration */
.analytics-showcase {
    background: url('/analytics-dashboard.png') center/cover;
    min-height: 400px;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.analytics-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
}

/* Team Collaboration Section */
.team-visual {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Professional React-style Icons */
.service-icon svg {
    color: #4f46e5;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg,
.feature-card:hover .service-icon svg {
    color: #6366f1;
    transform: scale(1.05);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(99, 102, 241, 0.05));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.service-card:hover .service-icon,
.feature-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(99, 102, 241, 0.1));
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

/* Contact Form CSS Fixes */
.contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-form-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
}

.contact-info {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Tech Icons Styling */
.tech-icon svg {
    color: #6b7280;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon svg {
    color: #4f46e5;
    transform: scale(1.1);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 2rem;
    }
}

/* Responsive design for hero images */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-right {
        order: -1;
    }
    
    .hero-dashboard {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Firefox Specific Fixes */
@-moz-document url-prefix() {
    .service-card, .stat-card, .news-card {
        transition: all 0.6s ease !important;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .nav-links.mobile-active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}