/* Estilos customizados para a landing page Farma GO! */

:root {
    --farma-purple: #6366f1;
    --farma-purple-dark: #4f46e5;
    --farma-purple-light: #a5b4fc;
    --farma-green: #10b981;
    --farma-blue: #3b82f6;
    --farma-gray: #6b7280;
    --farma-light-gray: #f8fafc;
    --farma-dark: #1e293b;
    --farma-accent: #f1f5f9;
}

/* Smooth scrolling para toda a página */
html {
    scroll-behavior: smooth;
}

/* Modern card shadows */
.modern-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

/* Modern gradients */
.gradient-modern {
    background: linear-gradient(135deg, var(--farma-purple) 0%, var(--farma-blue) 100%);
}

.gradient-subtle {
    background: linear-gradient(135deg, var(--farma-light-gray) 0%, var(--farma-accent) 100%);
}

/* Hero section styles */
.hero-bg {
    background: linear-gradient(135deg, var(--farma-purple) 0%, var(--farma-blue) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

/* Animações de fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Aplicar animações aos elementos */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-in-out;
}

/* Efeito hover personalizado para cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(107, 70, 193, 0.2);
}

/* Gradient animado para o hero */
.gradient-bg {
    background: linear-gradient(-45deg, #1f2937, #374151, #4c1d95, #1e40af);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Estilo para botões com efeito ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

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

/* Floating animation para ícones */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

/* Efeito parallax sutil */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Loader personalizado */
.loader {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6b46c1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Estilo para formulários */
.form-input:focus {
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* Navbar glassmorphism */
.navbar-glass {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Mobile menu styles */
.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(31, 41, 55, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 40;
    }

    .mobile-menu.open {
        transform: translateY(0);
    }
}

/* Pulse animation for CTA buttons */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(107, 70, 193, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #553c9a;
}

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #6b46c1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container de vídeo responsivo */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Dark mode utilities */
.dark-surface {
    background: #1f2937;
    border: 1px solid #374151;
}

.dark-surface-hover:hover {
    background: #374151;
    border-color: #4b5563;
}

/* Feature card special effects */
.feature-card {
    background: linear-gradient(145deg, #374151, #1f2937);
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: #6b46c1;
}

/* Price card highlight */
.price-card-popular {
    position: relative;
    border: 2px solid #6b46c1;
    background: linear-gradient(145deg, #6b46c1, #553c9a);
}

.price-card-popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6b46c1, #3b82f6, #06b6d4, #10b981);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Testimonial card styles */
.testimonial-card {
    background: linear-gradient(145deg, #374151, #1f2937);
    border-left: 4px solid #6b46c1;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-left-color: #3b82f6;
    transform: scale(1.02);
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Responsive font sizes */
@media (max-width: 640px) {
    .text-hero {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .text-hero {
        font-size: 3rem;
        line-height: 1.1;
    }
}

@media (min-width: 769px) {
    .text-hero {
        font-size: 4rem;
        line-height: 1.1;
    }
}
