/* Animações */
@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-x {
    animation: gradient-x 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-slow {
    animation: pulse-slow 2.5s infinite;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Previne overflow horizontal global */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Estilos para o formulário */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 194, 14, 0.2);
}

/* Ajustes de responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Previne overflow horizontal no mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Ajusta as linhas animadas para mobile */
    .lines {
        width: 100%;
        max-width: 100vw;
        padding: 0;
    }
    
    /* Garante que elementos não saiam da tela */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ajusta background-attachment no mobile */
    .hero-bg-mobile {
        background-attachment: scroll !important;
    }
    
    /* Ajustes de tipografia em mobile */
    h1 {
        font-size: clamp(1.875rem, 5vw, 3rem) !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: clamp(1.25rem, 3.5vw, 2rem) !important;
    }
    
    /* Padding ajustado para mobile */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Espaçamento entre cards */
    .gap-8 {
        gap: 1.5rem !important;
    }
    
    /* Padding de cards */
    .p-8 {
        padding: 1.5rem !important;
    }
    
    /* Botões ajustados */
    .btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Formulários ajustados */
    input, textarea, select {
        font-size: 16px !important; /* Previne zoom no iOS */
    }
    
    /* Header ajustado */
    header {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Cards ajustados em mobile */
    .rounded-2xl {
        border-radius: 1rem !important;
    }
    
    /* Gap reduzido em mobile */
    .gap-12 {
        gap: 2rem !important;
    }
}

/* Breakpoint tablet */
@media (min-width: 640px) and (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Background do Hero - Desktop */
.hero-bg-mobile {
    background-image: url('../images/maior-especialista-anuncios-clinicas-de-reabilitacao-do-brasil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Desktop específico - garante que a imagem apareça */
@media (min-width: 769px) {
    .hero-bg-mobile {
        background-image: url('../images/maior-especialista-anuncios-clinicas-de-reabilitacao-do-brasil.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* Mobile específico */
@media (max-width: 768px) {
    .hero-bg-mobile {
        background-image: url('../images/maior-especialista-anuncios-clinicas-de-reabilitacao-do-brasil-mobile.png');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* Tablet específico */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .py-20 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Efeitos de hover */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Gradientes */
.gradient-text {
    background: linear-gradient(to right, #ffc20e, #ffd54f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Efeitos de transição */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Ajustes de z-index */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Efeitos de backdrop */
.backdrop-blur-sm {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Opacidade */
.opacity-20 {
    opacity: 0.2;
}

.opacity-30 {
    opacity: 0.3;
}

/* Bordas */
.border-zinc-800 {
    border-color: rgba(39, 39, 42, 0.5);
}

/* Cores personalizadas */
.bg-[#ffc20e] {
    background-color: #ffc20e;
}

.bg-[#ffd54f] {
    background-color: #ffd54f;
}

.bg-[#1a0a0f] {
    background-color: #1a0a0f;
}

.text-[#ffc20e] {
    color: #ffc20e;
}

.text-[#ffd54f] {
    color: #ffd54f;
}

.border-[#ffc20e] {
    border-color: #ffc20e;
}

.border-[#ffc20e]/30 {
    border-color: rgba(255, 194, 14, 0.3);
}

.border-[#ffc20e]/10 {
    border-color: rgba(255, 194, 14, 0.1);
}

.border-[#ffc20e]/20 {
    border-color: rgba(255, 194, 14, 0.2);
}

.bg-[#ffc20e]/5 {
    background-color: rgba(255, 194, 14, 0.05);
}

.bg-[#ffc20e]/10 {
    background-color: rgba(255, 194, 14, 0.1);
}

.bg-[#ffc20e]/20 {
    background-color: rgba(255, 194, 14, 0.2);
}

.bg-[#ffc20e]/30 {
    background-color: rgba(255, 194, 14, 0.3);
}

/* Efeito Holográfico para Botões */
.btn {
    position: relative;
    padding: 1.5rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hologram {
    border: 2px solid rgba(0, 255, 255, 0.5);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hologram span {
    position: relative;
    z-index: 2;
    display: block;
}

.hologram span::before,
.hologram span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: transparent;
    z-index: -1;
}

.hologram span::before {
    animation: glitch 3s infinite linear alternate-reverse;
    color: #ff00ff;
    text-shadow: 2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
}

.hologram span::after {
    animation: glitch 2s infinite linear alternate-reverse;
    color: #00ffff;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
    animation: scan 2s linear infinite;
    z-index: 1;
}

@keyframes glitch {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: skew(0.15deg);
    }
    5% {
        clip: rect(12px, 9999px, 59px, 0);
        transform: skew(0.25deg);
    }
    10% {
        clip: rect(48px, 9999px, 29px, 0);
        transform: skew(0.1deg);
    }
    15% {
        clip: rect(42px, 9999px, 73px, 0);
        transform: skew(0.4deg);
    }
    20% {
        clip: rect(63px, 9999px, 27px, 0);
        transform: skew(0.15deg);
    }
    25% {
        clip: rect(34px, 9999px, 55px, 0);
        transform: skew(0.2deg);
    }
    30% {
        clip: rect(86px, 9999px, 73px, 0);
        transform: skew(0.25deg);
    }
    35% {
        clip: rect(20px, 9999px, 20px, 0);
        transform: skew(0.15deg);
    }
    40% {
        clip: rect(26px, 9999px, 60px, 0);
        transform: skew(0.1deg);
    }
    45% {
        clip: rect(25px, 9999px, 66px, 0);
        transform: skew(0.3deg);
    }
    50% {
        clip: rect(57px, 9999px, 98px, 0);
        transform: skew(0.4deg);
    }
    55% {
        clip: rect(5px, 9999px, 46px, 0);
        transform: skew(0.25deg);
    }
    60% {
        clip: rect(82px, 9999px, 31px, 0);
        transform: skew(0.2deg);
    }
    65% {
        clip: rect(54px, 9999px, 27px, 0);
        transform: skew(0.3deg);
    }
    70% {
        clip: rect(28px, 9999px, 99px, 0);
        transform: skew(0.15deg);
    }
    75% {
        clip: rect(45px, 9999px, 69px, 0);
        transform: skew(0.1deg);
    }
    80% {
        clip: rect(23px, 9999px, 85px, 0);
        transform: skew(0.4deg);
    }
    85% {
        clip: rect(54px, 9999px, 84px, 0);
        transform: skew(0.35deg);
    }
    90% {
        clip: rect(45px, 9999px, 47px, 0);
        transform: skew(0.25deg);
    }
    95% {
        clip: rect(37px, 9999px, 20px, 0);
        transform: skew(0.4deg);
    }
    100% {
        clip: rect(4px, 9999px, 91px, 0);
        transform: skew(0.1deg);
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Efeito de Linhas Animadas para o Background */
.lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    margin: auto;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: space-between;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.line {
    position: relative;
    width: 1px;
    height: 100%;
    background: linear-gradient(45deg, transparent, #0ff, transparent);
    animation: drop 2s linear infinite;
    opacity: 0.3;
}

.line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(45deg, transparent, #0ff, transparent);
    animation: drop 2s linear infinite;
    animation-delay: -1s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 128, 0.3), transparent);
}

.line:nth-child(1)::after {
    background: linear-gradient(45deg, transparent, rgba(255, 0, 128, 0.5), transparent);
}

.line:nth-child(2) {
    animation-delay: 0.2s;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 128, 0.3), transparent);
}

.line:nth-child(2)::after {
    background: linear-gradient(45deg, transparent, rgba(0, 255, 128, 0.5), transparent);
}

.line:nth-child(3) {
    animation-delay: 0.4s;
    background: linear-gradient(45deg, transparent, rgba(128, 0, 255, 0.3), transparent);
}

.line:nth-child(3)::after {
    background: linear-gradient(45deg, transparent, rgba(128, 0, 255, 0.5), transparent);
}

.line:nth-child(4) {
    animation-delay: 0.6s;
    background: linear-gradient(45deg, transparent, rgba(255, 128, 0, 0.3), transparent);
}

.line:nth-child(4)::after {
    background: linear-gradient(45deg, transparent, rgba(255, 128, 0, 0.5), transparent);
}

.line:nth-child(5) {
    animation-delay: 0.8s;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.line:nth-child(5)::after {
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.5), transparent);
}

.line:nth-child(6) {
    animation-delay: 1s;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 128, 0.3), transparent);
}

.line:nth-child(6)::after {
    background: linear-gradient(45deg, transparent, rgba(255, 0, 128, 0.5), transparent);
}

.line:nth-child(7) {
    animation-delay: 1.2s;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 128, 0.3), transparent);
}

.line:nth-child(7)::after {
    background: linear-gradient(45deg, transparent, rgba(0, 255, 128, 0.5), transparent);
}

.line:nth-child(8) {
    animation-delay: 1.4s;
    background: linear-gradient(45deg, transparent, rgba(128, 0, 255, 0.3), transparent);
}

.line:nth-child(8)::after {
    background: linear-gradient(45deg, transparent, rgba(128, 0, 255, 0.5), transparent);
}

.line:nth-child(9) {
    animation-delay: 1.6s;
    background: linear-gradient(45deg, transparent, rgba(255, 128, 0, 0.3), transparent);
}

.line:nth-child(9)::after {
    background: linear-gradient(45deg, transparent, rgba(255, 128, 0, 0.5), transparent);
}

.line:nth-child(10) {
    animation-delay: 1.8s;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.3), transparent);
}

.line:nth-child(10)::after {
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.5), transparent);
}

@keyframes drop {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Utilitários adicionais */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 10;
}


