/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
    color: #ffffff;
    position: relative;
}

/* Tela de Loading */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    backdrop-filter: blur(10px);
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 153, 204, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 153, 204, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    filter: blur(15px);
    z-index: -1;
}

.svg-calLoader {
    width: 230px;
    height: 230px;
    transform-origin: 115px 115px;
    animation: 6s ease-in-out infinite loader-float;
    filter: drop-shadow(0 0 15px rgba(0, 153, 204, 0.6));
}

.cal-loader__plane {
    fill: #0099cc;
    animation: 3s ease-in-out infinite plane-tilt;
}

.cal-loader__path {
    stroke: #FFFFFF;
    animation: 5s ease-in-out infinite loader-path;
}

@keyframes loader-float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(0px) rotate(5deg);
    }
    75% {
        transform: translateY(10px) rotate(3deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes plane-tilt {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(-2deg) scale(1.03);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes loader-path {
    0% {
        stroke-dasharray: 0, 580, 0, 0, 0, 0, 0, 0, 0;
        opacity: 0.8;
    }
    30% {
        stroke-dasharray: 0, 450, 10, 30, 10, 30, 10, 30, 10;
        opacity: 1;
    }
    70% {
        stroke-dasharray: 0, 450, 10, 30, 10, 30, 10, 30, 10;
        opacity: 1;
    }
    100% {
        stroke-dasharray: 0, 580, 0, 0, 0, 0, 0, 0, 0;
        opacity: 0.8;
    }
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Animação de Fundo Futurista */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.5; /* Reduzido para não interferir tanto com a janela do avião */
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.matrix-column {
    position: absolute;
    top: -100px;
    width: 1px;
    height: 80px;
    background: linear-gradient(transparent, #00ff41, transparent);
    animation: matrixFall 4s linear infinite;
}

.matrix-column:nth-child(1) { left: 10%; animation-delay: 0s; }
.matrix-column:nth-child(2) { left: 30%; animation-delay: 1s; }
.matrix-column:nth-child(3) { left: 50%; animation-delay: 2s; }
.matrix-column:nth-child(4) { left: 70%; animation-delay: 0.5s; }
.matrix-column:nth-child(5) { left: 90%; animation-delay: 1.5s; }

@keyframes matrixFall {
    to {
        transform: translateY(100vh);
    }
}

/* Floating Geometric Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.03;
    animation: floatShape 12s ease-in-out infinite;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid #00ffff;
    top: 20%;
    left: 80%;
    animation-delay: -2s;
}

.hexagon {
    width: 50px;
    height: 29px;
    background: #ff00ff;
    position: relative;
    top: 60%;
    left: 20%;
    animation-delay: -4s;
}

.hexagon:before,
.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
}

.hexagon:before {
    bottom: 100%;
    border-bottom: 14px solid #ff00ff;
}

.hexagon:after {
    top: 100%;
    border-top: 14px solid #ff00ff;
}

.diamond {
    width: 40px;
    height: 40px;
    background: #ffff00;
    transform: rotate(45deg);
    top: 40%;
    left: 60%;
    animation-delay: -6s;
}

.circle {
    width: 60px;
    height: 60px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    top: 80%;
    left: 40%;
    animation-delay: -3s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Neon Grid */
.neon-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

.grid-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: neonPulse 4s ease-in-out infinite;
}

.grid-line.horizontal {
    width: 100%;
    height: 1px;
}

.grid-line.horizontal:nth-child(1) {
    top: 25%;
    animation-delay: 0s;
}

.grid-line.horizontal:nth-child(2) {
    top: 75%;
    animation-delay: 2s;
}

.grid-line.vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(0deg, transparent, #ff00ff, transparent);
}

.grid-line.vertical:nth-child(3) {
    left: 25%;
    animation-delay: 1s;
}

.grid-line.vertical:nth-child(4) {
    left: 75%;
    animation-delay: 3s;
}

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.05;
        box-shadow: 0 0 3px currentColor;
    }
    50% {
        opacity: 0.15;
        box-shadow: 0 0 10px currentColor;
    }
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation-delay: -1s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 20%;
    animation-delay: -3s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 30%;
    animation-delay: -2s;
}

.circle-4 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 30%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Header Futurista */
.header {
    padding: 1rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.logo-container {
    animation: logoEntrance 2s ease-out;
    position: relative;
    display: inline-block;
}

.logo-frame {
    position: relative;
    display: inline-block;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2); /* Reduzido de 0.35 para 0.2 para aumentar a transparência */
    border-radius: 30px;
    border: 2px solid rgba(0, 255, 255, 0.4); /* Borda um pouco mais brilhante */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(0, 255, 255, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.15),
        inset 0 -2px 0 rgba(0, 255, 255, 0.15);
    transition: all 0.5s ease;
    backdrop-filter: blur(02px); /* Alterado de 20px para 10px */
    overflow: hidden;
    z-index: 5; /* Garantir que fica acima do fundo */
}

/* Removido efeito hover do logo-frame */

.logo-halo {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: 
        conic-gradient(from 0deg, 
            rgba(0, 255, 255, 0.2) 0deg,
            rgba(255, 0, 255, 0.2) 120deg,
            rgba(0, 255, 0, 0.1) 240deg,
            rgba(0, 255, 255, 0.2) 360deg);
    border-radius: 50px;
    filter: blur(15px);
    animation: rotateHalo 20s linear infinite;
    z-index: -2;
}

@keyframes rotateHalo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.3) 0%, rgba(255, 0, 255, 0.1) 50%, transparent 80%);
    border-radius: 45px;
    filter: blur(12px);
    animation: enhancedGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes enhancedGlow {
    0% {
        opacity: 0.3;
        filter: hue-rotate(0deg) brightness(1);
    }
    25% {
        opacity: 0.5;
        filter: hue-rotate(30deg) brightness(1.1);
    }
    50% {
        opacity: 0.7;
        filter: hue-rotate(60deg) brightness(1.15);
    }
    75% {
        opacity: 0.5;
        filter: hue-rotate(30deg) brightness(1.1);
    }
    100% {
        opacity: 0.3;
        filter: hue-rotate(0deg) brightness(1);
    }
}

@keyframes logoBreathing {
    0%, 100% {
        filter: 
            drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4))
            drop-shadow(0 0 30px rgba(0, 255, 255, 0.4))
            drop-shadow(0 0 60px rgba(255, 0, 255, 0.2))
            brightness(1.2)
            contrast(1.2)
            saturate(1.15);
    }
    50% {
        filter: 
            drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4))
            drop-shadow(0 0 40px rgba(0, 255, 255, 0.6))
            drop-shadow(0 0 80px rgba(255, 0, 255, 0.4))
            brightness(1.25)
            contrast(1.25)
            saturate(1.2);
    }
}

@keyframes subtleGlow {
    0% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.logo-scanner {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 0, 255, 0.2) 75%,
        transparent 100%);
    animation: enhancedScan 6s ease-in-out infinite;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Segundo scanner perpendicular para efeito cruzado */
.logo-frame::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 255, 255, 0.15) 25%,
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 0, 255, 0.15) 75%,
        transparent 100%);
    animation: verticalScan 7s ease-in-out 1s infinite;
    border-radius: 30px;
    pointer-events: none;
}

@keyframes enhancedScan {
    0% {
        left: -100%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes verticalScan {
    0% {
        top: -100%;
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.logo {
    max-height: 300px; /* Alterado de 400px para 350px */
    max-width: 300px; /* Alterado de 400px para 350px */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: 
        drop-shadow(0 8px 25px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 30px rgba(0, 255, 255, 0.4))
        drop-shadow(0 0 50px rgba(255, 0, 255, 0.2))
        brightness(1.2)
        contrast(1.2)
        saturate(1.15);
    position: relative;
    z-index: 2;
    animation: logoBreathing 10s ease-in-out infinite;
}

/* Removido efeito hover da logo */

.logo-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00ffff;
    border-radius: 50%;
    animation: gentleFloat 4s ease-in-out infinite;
    box-shadow: 0 0 6px currentColor;
    opacity: 0.6;
}

.particle:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    background: #00ffff;
}

.particle:nth-child(2) {
    top: 85%;
    left: 95%;
    animation-delay: 1s;
    background: #ff00ff;
}

.particle:nth-child(3) {
    top: 50%;
    left: 2%;
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.8);
}

.particle:nth-child(4) {
    top: 25%;
    left: 98%;
    animation-delay: 3s;
    background: rgba(255, 255, 255, 0.6);
}

.particle:nth-child(5) {
    top: 75%;
    left: 50%;
    animation-delay: 1.5s;
    background: #00ffff;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-12px) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Main Content */
.main-content {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
}

.hero-section {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Contact Information */
.contact-container {
    animation: fadeInUp 1s ease-out 0.9s both;
    margin-top: 0;
    position: relative;
}

.contact-methods {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 10, 30, 0.6); /* Escurecido para melhor contraste */
    backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 1.2rem 1.8rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3); /* Borda com cor neon */
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 255, 0.15);
    z-index: 5; /* Garantir que fica acima do fundo */
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-btn i {
    font-size: 1.3rem;
}

.contact-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.whatsapp-btn:hover {
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    border-color: #25d366;
}

.email-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
    border-color: #00ffff;
}

/* Footer */
.footer {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Animações */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Airplane Window Background */
.airplane-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
    opacity: 0.9;
}

.window-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50% / 15%;
    max-height: 100vh;
}

.window-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/wplane.jpg') no-repeat center center;
    background-size: cover;    animation: slowPan 18s ease-in-out infinite;
}

.window-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0) 20%, 
                rgba(255, 255, 255, 0) 80%,
                rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 15px;
    z-index: 2;
    opacity: 0.7;
}

/* .clouds removido */

@keyframes moveClouds {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(50%);
    }
}

@keyframes slowPan {
    0% {
        transform: scale(1.2) translateX(5%);
        filter: brightness(0.8) contrast(1.2) saturate(1.1) blur(0.5px);
    }
    25% {
        transform: scale(1.18) translateX(2%);
        filter: brightness(0.8) contrast(1.2) saturate(1.1) blur(0.5px);
    }
    45% {
        transform: scale(1.16) translateX(-3%);
        filter: brightness(0.8) contrast(1.2) saturate(1.1) blur(0.5px);
    }
    50% {
        transform: scale(1.16) translateX(-5%);
        filter: brightness(0.9) contrast(1.3) saturate(1.2) blur(0.1px);
    }
    55% {
        transform: scale(1.16) translateX(-3%);
        filter: brightness(0.8) contrast(1.2) saturate(1.1) blur(0.5px);
    }
    75% {
        transform: scale(1.18) translateX(2%);
        filter: brightness(0.8) contrast(1.2) saturate(1.1) blur(0.5px);
    }
    100% {
        transform: scale(1.2) translateX(5%);
        filter: brightness(0.8) contrast(1.2) saturate(1.1) blur(0.5px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex: 0;
    }
      .logo {
        max-height: 300px;
        max-width: 300px;
    }
    
    .logo-frame {
        padding: 20px;
    }
    
    .main-content {
        padding: 1rem;
    }
      .contact-wrapper {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .contact-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .floating-shapes,
    .matrix-rain,
    .neon-grid {
        display: none;
    }
    
    .logo-particles {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        max-height: 220px;
        max-width: 220px;
    }
    
    .logo-frame {
        padding: 15px;
    }
    
    .contact-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }    
    .contact-btn i {
        font-size: 1.1rem;
    }
}
