/* Additional CSS for enhanced functionality */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .process-step {
        min-width: 150px !important;
    }
}

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

/* Navigation active states */
.nav-list a.active {
    color: #00d4ff;
    border-bottom: 2px solid #00d4ff;
}

/* Form validation */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff6b6b;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

/* Error message */
.error-message {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

/* File upload styling */
input[type="file"] {
    background: rgba(255,255,255,0.1) !important;
    border: 1px dashed rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

input[type="file"]:hover {
    background: rgba(255,255,255,0.2) !important;
    border-color: #00d4ff !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 60, 114, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2a5298, #00d4ff);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

/* Enhanced animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card hover effects */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

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

/* Process timeline enhancement */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: scale(1.05);
}

.step-number {
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1) rotate(360deg);
}

/* Contact form focus effects */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

/* Social media links */
.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Certificate badges hover */
.certification-badge {
    transition: all 0.3s ease;
}

.certification-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Industry card enhancement */
.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Pricing card enhancement */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* FAQ enhancement */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(42, 82, 152, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
}

.faq-toggle {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

/* Testimonial card enhancement */
.testimonial {
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Material category enhancement */
.material-category {
    transition: all 0.3s ease;
}

.material-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Footer enhancement */
.footer-section {
    transition: all 0.3s ease;
}

.footer-section:hover h3,
.footer-section:hover h4 {
    color: #00d4ff;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive improvements */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .hero .subtitle {
        font-size: 1rem !important;
    }
    
    .section {
        padding: 40px 0 !important;
    }
    
    .service-card,
    .industry-card,
    .testimonial {
        padding: 1.5rem !important;
    }
    
    .process-step {
        padding: 1rem 0.5rem !important;
    }
    
    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
}