/* SEO Performance Optimizations */

/* Lazy Loading Images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Critical CSS for above-the-fold content */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-title {
    font-display: swap;
    line-height: 1.2;
}

/* Optimize font loading */
@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
}

/* Preload critical resources */
.preload-critical {
    position: relative;
}

.preload-critical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Optimize images for SEO */
img {
    max-width: 100%;
    height: auto;
}

/* Critical path CSS for mobile-first */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Service cards optimization */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Optimize animations for performance */
.aos-animate {
    will-change: transform, opacity;
}

/* Breadcrumb schema styling */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Schema.org structured data styling */
.schema-organization {
    display: none;
}

/* Performance optimizations */
.btn {
    will-change: transform;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Optimize for Core Web Vitals */
.container {
    contain: layout style;
}

.card {
    contain: layout;
}

/* Reduce layout shift */
.img-placeholder {
    background-color: #f8f9fa;
    display: inline-block;
}

/* Optimize for mobile performance */
@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Service page specific optimizations */
.service-detail {
    line-height: 1.6;
    font-size: 1.1rem;
}

.service-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* FAQ Schema styling */
.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Contact form optimization */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}