/* Dr. João Landing Page - Enhanced Custom Styles */

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

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

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

/* ===== ENHANCED HEADER ===== */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(39, 57, 103, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== HERO CAROUSEL ===== */
#hero-track {
    transition: transform 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-dot:hover {
    transform: scale(1.2);
}

/* ===== ENHANCED CARDS ===== */
.group {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(4px);
}

/* ===== TESTIMONIALS CAROUSEL ===== */
#testimonials-track {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.testimonial-dot:hover {
    transform: scale(1.3);
}

/* ===== FAQ ACCORDION ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out;
    opacity: 0;
}

.faq-answer.open {
    max-height: 400px;
    padding-bottom: 1rem;
    opacity: 1;
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

.faq-question {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    background: rgba(39, 57, 103, 0.05);
    transform: translateX(4px);
}

/* ===== ENHANCED BUTTONS ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.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%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(39, 57, 103, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* ===== WHATSAPP BUTTON ENHANCED ===== */
#whatsapp-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

#whatsapp-btn a {
    position: relative;
    overflow: hidden;
}

#whatsapp-btn a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

#whatsapp-btn a:hover::before {
    width: 100px;
    height: 100px;
}

#whatsapp-btn:hover {
    animation: bounce 0.6s ease-in-out;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== ENHANCED MOBILE MENU ===== */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
    opacity: 0;
}

#mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu a:hover {
    transform: translateX(8px);
    color: #273967;
}

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

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-bg-1 {
    background: linear-gradient(135deg, #273967 0%, #0097B1 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, rgba(39, 57, 103, 0.05) 0%, rgba(0, 151, 177, 0.05) 100%);
}

/* ===== ENHANCED TYPOGRAPHY ===== */
.text-gradient {
    background: linear-gradient(135deg, #273967 0%, #0097B1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ENHANCED SHADOWS ===== */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ===== ENHANCED BORDERS ===== */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #273967, #0097B1) border-box;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .group:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    #whatsapp-btn {
        animation: none;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #whatsapp-btn {
        animation: none;
    }
}

/* ===== FOCUS STATES ===== */
button:focus,
a:focus {
    outline: 2px solid #0097B1;
    outline-offset: 2px;
}

/* ===== ENHANCED LOADING ===== */
body.loaded .scroll-animate {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ===== PARALLAX EFFECTS ===== */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* ===== ENHANCED TESTIMONIALS ===== */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 57, 103, 0.05), transparent);
    transition: left 0.6s;
}

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

.testimonial-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ===== ENHANCED ICONS ===== */
.icon-bounce {
    animation: bounce 2s infinite;
}

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

/* ===== ENHANCED GRADIENTS ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #273967 0%, #0097B1 50%, #76BD82 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, rgba(39, 57, 103, 0.1) 0%, rgba(0, 151, 177, 0.1) 100%);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #273967;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0097B1;
}

/* ===== ENHANCED FORM ELEMENTS ===== */
input:focus,
textarea:focus {
    outline: none;
    border-color: #0097B1;
    box-shadow: 0 0 0 3px rgba(0, 151, 177, 0.1);
    transform: translateY(-1px);
}

/* ===== ENHANCED NAVIGATION ===== */
nav a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0097B1;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after {
    width: 100%;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .group {
        border: 2px solid #000;
    }
    
    button,
    a[class*="bg-"] {
        border: 2px solid #000;
    }
}

