/* Custom utility styles that complement Tailwind */

/* Smooth focus visible outlines */
*:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* Custom image loading placeholder */
img {
    background: linear-gradient(135deg, #0F1F3A 0%, #0A1628 100%);
}

/* Selection color */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #ffffff;
}

/* Gold accent line animation on hover for cards */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4A017, transparent);
    transition: width 0.4s ease;
}

.service-card:hover::after {
    width: 80%;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* Print styles */
@media print {
    .hero-section, #particles, .hero-glow {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .nav-scrolled {
        background: white !important;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    .hero-section h1 span {
        font-size: 1.5rem;
    }
    .counter-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(212,160,23,0.2);
        padding: 1rem 0;
    }
    .counter-item:last-child {
        border-bottom: none;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
    .service-card {
        padding: 2rem;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .service-card, .feature-card, .testimonial-card {
        border: 1px solid ButtonText;
    }
    .btn-gold {
        border: 2px solid ButtonText;
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}
