/* Fundo fixo */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

/* Seções */
.section {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 2rem 0;
}

/* Cursor personalizado */
body {
    cursor: auto;
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%233B82F6;stop-opacity:1" /><stop offset="100%" style="stop-color:%239333EA;stop-opacity:1" /></linearGradient></defs><path d="M2 2l20 8-8 2-4-4-8 20z" fill="url(%23grad)"/></svg>'), auto;
}

.cursor {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(30, 64, 175, 0.6) 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(30, 64, 175, 0.3) 100%);
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease-out;
    mix-blend-mode: difference;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    body {
        width: 100vw !important;
        min-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    html {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }
    
    .cursor {
        display: none !important;
    }
    
    .cursor-trail {
        display: none !important;
    }
    
    .wave-effect {
        border-width: 2px;
    }
    
    @keyframes waveAnimation {
        0% {
            width: 0;
            height: 0;
            opacity: 1;
            transform: translate(-50%, -50%);
        }
        100% {
            width: 200px;
            height: 200px;
            opacity: 0;
            transform: translate(-50%, -50%);
        }
    }
}

.wave-effect {
    position: fixed;
    border: 4px solid rgba(59, 130, 246, 1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: waveAnimation 1.5s ease-out forwards;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

@keyframes waveAnimation {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* Triângulo diagonal dividindo a tela */
.diagonal-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.15) 50%, 
        transparent 50%
    );
}

/* Carrossel de tecnologias */
.carrosel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.carrosel:hover {
    filter: grayscale(0%);
}

/* Remove greyscale em dispositivos móveis */
@media (max-width: 768px) {
    .carrosel {
        filter: grayscale(0%) !important;
    }
    
    .carrosel:hover {
        filter: grayscale(0%) !important;
    }
}

.carrosel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

.carrosel-images {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: nowrap;
    overflow: hidden;
}

.carrosel-arrow {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
}

.carrosel-arrow:hover {
    transform: scale(1.1);
    opacity: 1;
}

.carrosel-arrow:active {
    transform: scale(0.9);
}

.carrosel-arrow:hover svg path {
    stroke: #1f2937;
}

.carrosel-arrow svg {
    transition: all 0.3s ease;
}

.carrosel h1 {
    margin-bottom: 1rem;
    text-align: center;
}

.tecnologias-title {
    background: linear-gradient(200deg, #9ca3af 0%, #6b7280 25%, #374151 50%, #1f2937 75%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.carrosel:hover .tecnologias-title {
    background: linear-gradient(200deg, #d1d5db 0%, #9ca3af 15%, #6b7280 25%, #374151 40%, #1f2937 60%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carrosel img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    width: auto;
    height: auto;
    flex-shrink: 0;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.postgres-logo {
    max-width: 60px !important;
    max-height: 60px !important;
}

@media (max-width: 768px) {
    .carrosel {
        max-width: 600px;
        margin: 2rem auto 0;
    }
    
    .carrosel-images {
        gap: 2rem;
    }
    
    .carrosel img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .postgres-logo {
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .carrosel {
        max-width: 400px;
        margin: 1.5rem auto 0;
    }
    
    .carrosel-images {
        gap: 2.5rem;
        justify-content: center;
    }
    
    .carrosel img {
        max-width: 100px;
        max-height: 100px;
    }
    
    .postgres-logo {
        max-width: 50px !important;
        max-height: 50px !important;
    }
}
.block {
    position: relative;
    width: 60px;
    height: 80px;
    background: linear-gradient(0deg, #000, #272727);
    border-radius: 1rem;
}

.block:before, .block:after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    background: linear-gradient(45deg, #42164E, #060635, #0753AA,#0799D9, #34C8CE, #FAC338, 
        #EC7855, #DD0905,#F68306, #760327);
    background-size: 400%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    animation: steam 20s linear infinite;
    border-radius: 1rem;
}

@keyframes steam {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.block:after {
    filter: blur(50px);
}

/* Cards com borda gradiente animada */
.card-gradient-border {
    position: relative;
}

.card-gradient-border:before, .card-gradient-border:after {
    content: '';
    position: absolute;
    left: -3px;
    top: -3px;
    background: linear-gradient(45deg, #42164E, #060635, #0753AA, #0799D9, #34C8CE, #FAC338, 
        #EC7855, #DD0905, #F68306, #760327);
    background-size: 400%;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    z-index: -1;
    animation: steam 20s linear infinite;
    border-radius: 1.5rem;
}

.card-gradient-border:after {
    filter: blur(20px);
    opacity: 0.7;
}

/* Estilos específicos para seções */
.section-1 {
    background: transparent;
}

.section-2 {
    background: transparent;
}

.section-3 {
    background: transparent;
}

.section-4 {
    background: transparent;
}

/* Animações suaves para transição entre seções */
.section {
    transition: all 0.3s ease-in-out;
}

/* Efeito de parallax sutil */
.section-2 {
    transform: translateZ(0);
}

.section-3 {
    transform: translateZ(0);
}

.section-4 {
    transform: translateZ(0);
}

/* Melhoria na responsividade das seções */
@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }
    
    .section h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section p {
        font-size: 1rem !important;
    }
    
    .section .grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
}

/* Cards com borda gradiente */
.card-gradient-1 {
    position: relative;
    background: #242424 padding-box,
                linear-gradient(135deg, #3B82F6, #9333EA, #06B6D4) border-box;
}

.card-gradient-2 {
    position: relative;
    background: #242424 padding-box,
                linear-gradient(135deg, #9333EA, #EC4899, #F59E0B) border-box;
    border: 3px solid transparent;
}

.card-gradient-3 {
    position: relative;
    background: #242424 padding-box,
                linear-gradient(135deg, #06B6D4, #10B981, #3B82F6) border-box;
    border: 3px solid transparent;
}

/* Estatísticas - Desktop padrão */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem; /* text-4xl */
    line-height: 1.2;
    display: inline-block;
}

.stat-symbol {
    font-size: 1.75rem; /* ligeiramente menor que o número */
    display: inline-block;
    margin-left: 0.125rem;
}

.stat-label {
    font-size: 1rem; /* text-base */
    text-align: center;
}

/* Media Query para Mobile - Cards Horizontais */
@media (max-width: 640px) {
    .stats-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .stat-card {
        background: #e5e7eb; /* bg-gray-200 */
        border: 2px solid #d1d5db;
        border-radius: 1rem;
        padding: 1.5rem !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: left !important;
        width: 100%;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem !important;
        line-height: 1;
        margin: 0 !important;
    }
    
    .stat-card .stat-symbol {
        font-size: 2rem !important;
        margin-left: 0.25rem !important;
    }
    
    .stat-card .stat-label {
        font-size: 1.5rem !important;
        margin-top: 0 !important;
        margin-left: 1rem;
        text-align: left !important;
        flex: 1;
    }
}

/* Media Query para Tablet */
@media (min-width: 641px) and (max-width: 768px) {
    .stat-number {
        font-size: 2.25rem; /* text-4xl */
    }
    
    .stat-symbol {
        font-size: 1.875rem; /* text-3xl */
    }
    
    .stat-label {
        font-size: 1rem; /* text-base */
    }
}

/* Menu Mobile Hambúrguer */
#mobile-menu {
    transform: translateX(100%);
}

#mobile-menu.translate-x-0 {
    transform: translateX(0);
}

#mobile-menu.translate-x-full {
    transform: translateX(100%);
}

@media (min-width: 640px) {
    #mobile-menu {
        display: none !important;
    }
}

/* Esconde a navbar no mobile */
@media (max-width: 639px) {
    #navbar {
        display: none !important;
    }
}

/* Ajuste de alinhamento da seção de contato no mobile */
@media (max-width: 640px) {
    #contato {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    #contato .max-w-6xl {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    #contato .grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Footer - Mesma aparência no mobile e desktop */
footer {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

footer .max-w-6xl {
    margin-left: auto;
    margin-right: auto;
}

footer .grid {
    gap: 2rem;
}

footer h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p,
footer li {
    font-size: 0.875rem;
}

footer .border-t {
    border-color: rgba(0, 0, 0, 0.2);
}