/* Additional Premium Enhancements for 10/10 Excellence */

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stagger-child {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-child.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM EFFECTS
   ═══════════════════════════════════════════ */

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(0, 61, 130, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════
   ENHANCED BUTTON RIPPLE EFFECT
   ═══════════════════════════════════════════ */

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════ */

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════
   PULSE ANIMATION
   ═══════════════════════════════════════════ */

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* ═══════════════════════════════════════════
   HOVER GLOW EFFECT
   ═══════════════════════════════════════════ */

.hover-glow {
    position: relative;
    transition: all 0.3s ease;
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: var(--gradient-accent);
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.3s ease;
}

.hover-glow:hover::before {
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   3D CARD EFFECTS
   ═══════════════════════════════════════════ */

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d:hover {
    transform: translateZ(20px);
}

/* ═══════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--light-gray) 25%,
        var(--off-white) 50%,
        var(--light-gray) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ═══════════════════════════════════════════
   ENHANCED TESTIMONIALS
   ═══════════════════════════════════════════ */

.testimonial-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-orange);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: var(--light-gray);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   STATS COUNTER
   ═══════════════════════════════════════════ */

.stat-counter {
    text-align: center;
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--medium-gray);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   INTERACTIVE ELEMENTS
   ═══════════════════════════════════════════ */

.interactive-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 82, 171, 0.3);
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS INDICATOR
   ═══════════════════════════════════════════ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-accent);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ═══════════════════════════════════════════
   IMAGE LAZY LOADING
   ═══════════════════════════════════════════ */

img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   PREMIUM GRADIENTS
   ═══════════════════════════════════════════ */

.gradient-overlay {
    position: relative;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 61, 130, 0.8) 0%,
        rgba(255, 120, 40, 0.6) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-overlay:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY ENHANCEMENTS
   ═══════════════════════════════════════════ */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus visible styles */
:focus-visible {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════ */

/* GPU acceleration for animations */
.gpu-accelerate {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Contain layout shifts */
.contain {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */

@media print {
    .header,
    .footer,
    .top-bar,
    .sticky-phone,
    .nav-menu {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    a {
        text-decoration: none;
        color: black;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        color: #666;
    }
}

/* ═══════════════════════════════════════════
   DARK MODE SUPPORT (Future Enhancement)
   ═══════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --off-white: #2a2a2a;
        --light-gray: #3a3a3a;
        --dark-gray: #e0e0e0;
        --black: #ffffff;
    }

    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
}

/* ═══════════════════════════════════════════
   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;
    }
}
