/* ===================================
   Custom CSS - Tiago Quevedo Website
   =================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #0d2e5e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #081d3c;
}

/* ===================================
   Floating WhatsApp Button
   =================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.floating-whatsapp .animate-ping {
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ===================================
   Testimonial Slider
   =================================== */
.testimonials-slider {
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 0 12px;
}

@media (min-width: 640px) {
    .testimonial-card {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 0 0 33.333%;
    }
}

.testimonial-card-inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
    border: 3px solid #e8f4fc;
}

.testimonial-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0d2e5e;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: #666666;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #333333;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #0d2e5e;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-status {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8f4fc;
}

.testimonial-status .emoji {
    font-size: 1.5rem;
    margin-right: 8px;
}

.testimonial-status span {
    font-size: 0.875rem;
    color: #4CAF50;
    font-weight: 500;
}

/* Slider dots */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8f4fc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #0d2e5e;
    transform: scale(1.2);
}

.dot:hover {
    background: #0d2e5e;
}

/* Slider navigation buttons */
#prev-btn,
#next-btn {
    transition: all 0.3s ease;
}

#prev-btn:hover,
#next-btn:hover {
    transform: translateY(-50%) scale(1.1);
}

#prev-btn:active,
#next-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ===================================
   Scroll Animations
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.reveal-active {
    opacity: 1;
    transform: translateX(0);
}

.stagger-card {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-card.stagger-active {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes fadeInDown {
    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 pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Apply animations */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease forwards;
}

/* ===================================
   Utility Classes
   =================================== */
.text-gradient {
    background: linear-gradient(135deg, #0d2e5e, #6dc8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d2e5e 0%, #2a6ab8 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #e8f4fc 0%, #c8e8f8 100%);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(13, 46, 94, 0.3);
}

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

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* ===================================
   Loading State
   =================================== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===================================
   Mobile Menu
   =================================== */
#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

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

/* ===================================
   Form Styling
   =================================== */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 46, 94, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #999999;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 100%;
    }

    #prev-btn,
    #next-btn {
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .floating-whatsapp,
    #mobile-menu-btn,
    #mobile-menu,
    #prev-btn,
    #next-btn {
        display: none !important;
    }
}
