/* Additional Non-Critical Styles */

/* Enhanced Button Interactions */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced Card Hover Effects */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* FAQ Enhanced Styling */
details[open] summary span {
    transform: rotate(180deg);
}

details summary {
    outline: none;
}

details summary:focus {
    box-shadow: 0 0 0 2px var(--accent);
    border-radius: 4px;
}

/* Form Styles (if needed) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neutral-dark);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--neutral-mid); }

.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-light { background-color: var(--neutral-light); }

.border-radius-sm { border-radius: 4px; }
.border-radius-md { border-radius: 8px; }
.border-radius-lg { border-radius: 12px; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); }

/* Parallax Enhancement */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .trust-logo,
    .card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .trust-bar,
    footer {
        display: none !important;
    }

    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Dark Mode Support (for future) */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-dark: #F8F8F6;
        --neutral-light: #1A1A1A;
        --neutral-mid: #9CA3AF;
        --shadow: rgba(255, 255, 255, 0.1);
        --border: rgba(255, 255, 255, 0.15);
    }

    .card {
        background: #262626;
        color: var(--neutral-dark);
    }

    .header {
        background: rgba(26, 26, 26, 0.9);
    }
}

/* Advanced Responsive Design */
@media (max-width: 480px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta a:last-child {
        margin-left: 0 !important;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Feature-specific animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.slide-in-right {
    animation: slideInFromRight 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

/* Enhanced Focus States for Better Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

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

/* Enhanced typography */
.lead {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-mid);
}

.small {
    font-size: 14px;
    color: var(--neutral-mid);
}

/* Micro-interactions */
.hover-lift {
    transition: transform 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-online {
    background-color: #10B981;
}

.status-offline {
    background-color: #EF4444;
}

.status-busy {
    background-color: #F59E0B;
}