/* Eficiência Service - Premium Styles */

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 2s ease-in-out infinite;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* ==========================================
   GLASSMORPHISM
   ========================================== */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   PREMIUM GRADIENTS
   ========================================== */

.gradient-premium {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 50%, #134e4a 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    min-height: 480px;
    padding-top: 6rem;
    padding-bottom: 16rem;
}

.gradient-solar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.gradient-mesh {
    background:
        radial-gradient(at 40% 20%, rgba(20, 184, 166, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(14, 165, 233, 0.2) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(236, 72, 153, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(20, 184, 166, 0.2) 0px, transparent 50%);
}

.text-gradient {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 50%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   SHADOWS & DEPTH
   ========================================== */

.shadow-premium {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shadow-glow {
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.3);
}

.shadow-glow-yellow {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

/* ==========================================
   HOVER EFFECTS
   ========================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
}

/* ==========================================
   BUTTONS PREMIUM
   ========================================== */

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::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-premium:hover::before {
    left: 100%;
}

.btn-outline-premium {
    position: relative;
    border: 2px solid currentColor;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-outline-premium:hover::after {
    opacity: 0.1;
}

/* ==========================================
   CARDS PREMIUM
   ========================================== */

.card-premium {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #14b8a6, #0d9488, #0f766e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-premium:hover::before {
    opacity: 1;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.15),
        0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   SECTION DIVIDERS
   ========================================== */

.divider-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.divider-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ==========================================
   TYPOGRAPHY PREMIUM
   ========================================== */

.heading-display {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-balance {
    text-wrap: balance;
}

/* ==========================================
   NUMBER COUNTERS
   ========================================== */

.counter {
    font-variant-numeric: tabular-nums;
}

/* ==========================================
   SCROLLBAR CUSTOM
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0d9488, #115e59);
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #0f766e;
}

/* ==========================================
   PAGE TRANSITIONS
   ========================================== */

.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
   ========================================== */

/* Mobile First Adjustments */
@media (max-width: 640px) {
    .gradient-hero {
        padding-top: 4rem;
        padding-bottom: 8rem;
        min-height: auto;
    }

    .heading-display {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .glass {
        padding: 1rem;
    }

    .card-premium {
        border-radius: 1rem;
    }

    /* Fix text overflow on small screens */
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Ensure buttons don't overflow */
    .btn-premium,
    .btn-outline-premium {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Reduce section padding on mobile */
    .py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Text sizes */
    .text-4xl {
        font-size: 1.75rem;
    }

    .text-3xl {
        font-size: 1.5rem;
    }

    .text-xl {
        font-size: 1.1rem;
    }

    /* Floating badge adjustments */
    .glass-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    /* Tablet adjustments */
    .gradient-hero {
        padding-top: 5rem;
        padding-bottom: 12rem;
    }

    /* Hide decorative elements on mobile */
    .animate-float {
        display: none;
    }

    /* Improve touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Stack grids on mobile */
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet landscape */
    .gradient-hero {
        padding-top: 5rem;
        padding-bottom: 14rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Focus states */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* ==========================================
   WHATSAPP BUTTON PREMIUM
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}


/* ==========================================
   LOADING STATES
   ========================================== */

.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}