/* ========================================
   FINAL POLISH & REFINEMENTS
   ======================================== */

/* Enhanced Visual Depth */
.service-con .service-box,
.benefit-con .benefit_wrapper ul li,
.contactinfo-con .contact-box {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.03);
}

.service-con .service-box:hover,
.benefit-con .benefit_wrapper ul li:hover,
.contactinfo-con .contact-box:hover {
    box-shadow: 
        0 4px 8px rgba(59, 130, 246, 0.1),
        0 16px 32px rgba(59, 130, 246, 0.15),
        0 32px 64px rgba(59, 130, 246, 0.1);
}

/* Typography Fine-Tuning */
h1, h2, h3, h4, h5, h6 {
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p, li, span {
    font-feature-settings: 'kern' 1;
}

/* Button Enhancements */
.all_button,
.header .contact_us {
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    will-change: transform, box-shadow;
}

.all_button:active,
.header .contact_us:active {
    transform: translateY(0) scale(0.98);
}

/* Card Content Spacing */
.service-con .service-box h4,
.benefit-con .benefit_wrapper ul li h5 {
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-con .service-box p,
.benefit-con .benefit_wrapper ul li p {
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Icon Refinements */
.service-con .service-box .icon,
.benefit-con .benefit_wrapper ul li .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-con .service-box .icon img,
.benefit-con .benefit_wrapper ul li .icon img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation Enhancements */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-item a {
    padding: 10px 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Banner Content Refinements */
.banner-con .banner_content {
    max-width: 900px;
}

.banner-con .banner_content h1 {
    line-height: 1.15;
    margin-bottom: 28px;
}

.banner-con .banner_content p {
    line-height: 1.75;
    margin-bottom: 36px;
    opacity: 0.95;
}

.banner-con .banner_content .button_wrapper {
    gap: 16px;
}

/* About Section Refinements */
.about-con .about_content {
    padding-top: 80px;
}

.about-con .about_content h2 {
    line-height: 1.25;
}

.about-con .about_content p {
    line-height: 1.8;
}

/* Benefit Section Grid */
.benefit-con .benefit_wrapper ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.benefit-con .benefit_wrapper ul li {
    display: flex;
    flex-direction: column;
}

/* Service Grid Optimization */
.service-con .row {
    row-gap: 32px;
}

/* Choose Section Enhancements */
.choose-con .choose_content {
    padding-right: 60px;
}

.choose-con .choose_wrapper ul {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-end;
}

/* FAQ Accordion Refinements */
.faq-con .accordion-card {
    margin-bottom: 16px;
}

.faq-con .accordion-card .btn-link {
    padding: 20px 24px;
    font-weight: 600;
}

.faq-con .accordion-card .card-body {
    padding: 20px 24px 24px;
}

/* Testimonial Enhancements */
.testimonial-con .testimonial-box {
    padding: 48px;
}

.testimonial-con .testimonial-box p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.testimonial-con .carousel-indicators {
    margin-top: 48px;
}

.testimonial-con .carousel-indicators li {
    margin: 0 12px;
}

/* Footer Refinements */
.footer-con .middle_portion {
    padding: 100px 0 80px;
}

.footer-con .middle_portion h4 {
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 18px;
}

.footer-con .middle_portion .links li {
    margin-bottom: 12px;
}

.footer-con .middle_portion .contact .text {
    margin-bottom: 20px;
}

.footer-con .copyright {
    padding: 32px 0;
}

/* Contact Form Refinements */
.contact-con .contact_form input,
.contact-con .contact_form select,
.contact-con .contact_form textarea {
    font-size: 15px;
    padding: 16px 20px;
    border-radius: 12px;
}

.contact-con .contact_form .submit_now {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
}

/* Back to Top Button Refinements */
#button {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    bottom: 32px;
    right: 32px;
}

#button::after {
    font-size: 18px;
}

/* Preloader Refinements */
.loader-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 60px;
    height: 60px;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .benefit-con .benefit_wrapper ul {
        grid-template-columns: 1fr;
    }
    
    .choose-con .choose_content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .choose-con .choose_wrapper ul {
        justify-content: center;
    }
    
    .testimonial-con .testimonial-box {
        padding: 32px;
    }
}

@media (max-width: 767px) {
    .banner-con .banner_content h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .banner-con .banner_content p {
        font-size: 16px;
    }
    
    .banner-con .banner_content .button_wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .banner-con .banner_content .all_button {
        width: 100%;
        max-width: 280px;
    }
    
    .service-con .service-box,
    .benefit-con .benefit_wrapper ul li {
        padding: 32px 24px;
    }
    
    .testimonial-con .testimonial-box {
        padding: 24px;
    }
    
    .footer-con .middle_portion {
        padding: 60px 0 40px;
    }
    
    #button {
        width: 48px;
        height: 48px;
        bottom: 24px;
        right: 24px;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a, a:visited {
        text-decoration: underline;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 2cm;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .all_button,
    .header .contact_us {
        border: 2px solid currentColor;
    }
    
    .service-con .service-box,
    .benefit-con .benefit_wrapper ul li {
        border: 2px solid var(--text-primary);
    }
}

/* Focus Improvements for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-blue);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-light) 0%,
        var(--border-light) 50%,
        var(--bg-light) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error States */
.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message::before {
    content: '⚠';
}

/* Success States */
.success-message {
    color: #10b981;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.success-message::before {
    content: '✓';
}

/* Utility Classes */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass-effect {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shadow-soft {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.shadow-hard {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}
