/* ============================================
   SYNERA - Custom Styles & Micro-interactions
   ============================================ */

/* Loading animation for stats */
.stat-number.counted {
    animation: countIn 0.6s ease both;
}

@keyframes countIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Smooth reveal animations */
.animate-on-scroll.visible {
    animation: fadeInUp 0.8s ease both;
}

/* Hero stats animation */
.hero-stat-number.counted {
    animation: countUp 0.6s ease both;
}

/* Scroll progress indicator in hero */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Card hover effects */
.diff-card, .benefit-card, .pillar-card, .solution-category, .sector-item {
    position: relative;
    overflow: hidden;
}

.diff-card::after, .benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--synera-green), var(--synera-navy));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.diff-card:hover::after, .benefit-card:hover::after {
    transform: translateX(0);
}

/* Glass effect on header */
.header.scrolled {
    background: rgba(6, 26, 64, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Mobile menu animation */
.header-nav.active {
    animation: slideDown 0.3s ease both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button glow effect on hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--synera-green), transparent, var(--synera-green));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
    animation: glowPulse 1.5s ease infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--synera-gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--synera-navy);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--synera-green);
}

/* Selection style */
::selection {
    background: var(--synera-green);
    color: var(--synera-white);
}

/* Focus styles */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--synera-green);
    outline-offset: 2px;
}

/* Accessibility - reduced motion */
@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;
    }
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .header, .whatsapp-float, .hero-bg, .hero-overlay {
        display: none !important;
    }
    .hero {
        min-height: auto !important;
        padding: 40px 0 !important;
    }
    .section {
        padding: 30px 0 !important;
        break-inside: avoid;
    }
}
