/**
 * Modern Design Enhancements - Premium UI/UX
 * Advanced animations, scroll effects, micro-interactions
 */

/* ============================================
   SCROLL ANIMATIONS & INTERSECTION OBSERVER
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-fade-up {
    transform: translateY(40px);
}

.scroll-animate.animate-fade-left {
    transform: translateX(-40px);
}

.scroll-animate.animate-fade-right {
    transform: translateX(40px);
}

.scroll-animate.animate-scale {
    transform: scale(0.9);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ============================================
   SMOOTH SCROLLING & PERFORMANCE
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GLASSMORPHISM & MODERN EFFECTS
   ============================================ */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 194, 203, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================
   GRADIENT TEXT & ACCENTS
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #03989e 0%, #00c2cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #00c2cb 0%, #03989e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ANIMATED BACKGROUNDS
   ============================================ */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Gradient Mesh Background */
.gradient-mesh {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0f9fa 100%);
}

.gradient-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 194, 203, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(3, 152, 158, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   ADVANCED HOVER EFFECTS
   ============================================ */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(0, 194, 203, 0.4);
    transform: scale(1.05);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   PULSE & ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* ============================================
   SECTION ENHANCEMENTS
   ============================================ */
section {
    position: relative;
    overflow: hidden;
}

.section-divider {
    position: relative;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 194, 203, 0.2), transparent);
    margin: 4rem 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #00c2cb;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 194, 203, 0.5);
}

/* ============================================
   MODERN INPUT FOCUS
   ============================================ */
.form-control:focus,
.form-select:focus {
    border-color: #00c2cb;
    box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus::placeholder {
    color: rgba(0, 194, 203, 0.5);
}

/* ============================================
   LOADING STATES & SHIMMER
   ============================================ */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ============================================
   MODERN BADGES & CHIPS
   ============================================ */
.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #03989e 0%, #00c2cb 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(3, 152, 158, 0.3);
    transition: all 0.3s ease;
}

.modern-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 152, 158, 0.4);
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

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

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 3px solid #00c2cb;
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #00c2cb;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   STATISTICS & NUMBERS
   ============================================ */
.stat-number {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(135deg, #03989e 0%, #00c2cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   MODERN CARD HOVER EFFECTS
   ============================================ */
.testimonial-card,
.client-logo-card,
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before,
.client-logo-card::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;
}

.testimonial-card:hover::before,
.client-logo-card:hover::before {
    left: 100%;
}

.testimonial-card:hover,
.client-logo-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ============================================
   GRADIENT OVERLAY
   ============================================ */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 152, 158, 0.05) 0%, rgba(0, 194, 203, 0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.gradient-overlay > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    footer,
    .btn,
    .whatsapp-float {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ============================================
   MODERN SHADOWS
   ============================================ */
.shadow-modern {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-modern-lg {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-modern-xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-primary {
    box-shadow: 0 10px 25px rgba(3, 152, 158, 0.2);
}

.shadow-primary-lg {
    box-shadow: 0 20px 40px rgba(3, 152, 158, 0.3);
}
