/* Estilos para a página home tecnológica */

:root {
    --primary-color: #0071e3;
    --primary-gradient: linear-gradient(135deg, #0071e3, #00a0ff);
    --dark-color: #121212;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --text-light-emphasis: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-effect: rgba(255, 255, 255, 0.1);
@keyframes rotate-icon {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.tech-pillar-icon i.rotating {
    animation: rotate-icon 1s ease;
}

/* Hero Section Tecnológica */
.hero-tech {
    position: relative;
    background-color: var(--dark-color);
    overflow: hidden;
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.glitch-wrapper {
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.tech-highlight {
    position: relative;
    color: var(--primary-color);
    display: inline-block;
}

.tech-highlight:before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    height: 8px;
    width: 100%;
    background: rgba(0, 113, 227, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-gradient:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: width 0.4s ease;
}

.btn-gradient:hover:before {
    width: 100%;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.3);
}

/* Tech Device Mockup */
.tech-device-mockup {
    position: relative;
    perspective: 1000px;
    max-width: 500px;
    margin: 0 auto;
}

.tech-device-frame {
    background: #1d1d1f;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: all 0.5s ease;
}

.tech-device-frame:hover {
    transform: rotateY(-10deg) rotateX(5deg) scale(1.02);
}

.tech-browser-header {
    margin-bottom: 15px;
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-address {
    background: #2c2c2e;
    color: #999;
    font-size: 12px;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
}

.tech-device-screen {
    background: #1d1d1f;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 300px;
}

.code-animation {
    padding: 15px;
    height: 100%;
    overflow: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #f8f9fa;
}

.code-animation::-webkit-scrollbar {
    width: 5px;
}

.code-animation::-webkit-scrollbar-track {
    background: #1d1d1f;
}

.code-animation::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 5px;
}

.code-keyword {
    color: #ff79c6;
}

.code-function {
    color: #50fa7b;
}

.code-tag {
    color: #8be9fd;
}

.code-string {
    color: #f1fa8c;
}

.code-comment {
    color: #6272a4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: wheel 1.5s infinite;
}

.arrow-scroll {
    margin-top: 15px;
}

.arrow-scroll span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
}

.arrow-scroll span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrow-scroll span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Tech Stack Section */
.tech-stack {
    background: #f8f9fa;
    overflow: hidden;
}

.tech-stack-container {
    width: 100%;
    overflow: hidden;
}

.tech-stack-scrolling {
    display: flex;
    animation: techScroll 25s linear infinite;
    white-space: nowrap;
}

.tech-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.tech-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 10px;
}

.tech-item span {
    font-weight: 500;
}

@keyframes techScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Tech Cards para Serviços */
.services-tech {
    position: relative;
}

.with-line {
    position: relative;
    padding-bottom: 15px;
}

.with-line:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 60px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.tech-card {
    position: relative;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tech-card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.tech-card-body {
    position: relative;
    z-index: 2;
}

.tech-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-card-icon {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-5px);
}

.tech-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tech-card-text {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tech-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f7ff;
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-card-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-card-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tech-card-link:hover i {
    transform: translateX(5px);
}

/* Tech Pillars Section */
.tech-pillars-section {
    position: relative;
    background: var(--dark-color);
    overflow: hidden;
}

.tech-pillars-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(135deg, rgba(0, 113, 227, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0) 50%, rgba(0, 113, 227, 0.1) 100%);
    z-index: 1;
}

.tech-pillars-section .container {
    position: relative;
    z-index: 2;
}

.tech-pillar {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.tech-pillar:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.tech-pillar:hover:before {
    transform: translateX(0);
}

.tech-pillar:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tech-pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 113, 227, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.tech-pillar:hover .tech-pillar-icon {
    background: var(--primary-gradient);
    color: white;
    transform: rotateY(180deg);
}

.tech-pillar-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.tech-pillar-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Tech Timeline */
.tech-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
}

.tech-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 113, 227, 0.2), rgba(0, 160, 255, 0.2));
    z-index: 1;
}

.tech-timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 50px;
    z-index: 2;
}

.tech-timeline-dot {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.tech-timeline-dot span {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tech-timeline-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.tech-timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-timeline-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tech-timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tech-timeline-content p {
    color: #666;
    margin-bottom: 0;
}

/* Featured Projects */
.featured-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.featured-project {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: white;
    transition: all 0.3s ease;
}

.featured-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-project-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.featured-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.featured-project:hover .featured-project-img img {
    transform: scale(1.1);
}

.featured-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.featured-project:hover .featured-project-overlay {
    opacity: 1;
}

.featured-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.featured-project-tech span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    backdrop-filter: blur(5px);
}

.featured-project-content {
    padding: 25px;
}

.featured-project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.featured-project-content p {
    color: #666;
    margin-bottom: 15px;
}

.featured-project-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.featured-project-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.featured-project-link:hover i {
    transform: translateX(5px);
}

/* CTA Section Tecnológica */
.cta-tech {
    position: relative;
    overflow: hidden;
}

.cta-tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    z-index: 1;
}

.cta-tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.cta-tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 113, 227, 0.1) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(0, 113, 227, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 3;
}

.cta-features {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cta-features li {
    display: flex;
    align-items: center;
}

.cta-features li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.cta-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
}

.cta-card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.cta-card h3 {
    color: white;
    font-weight: 700;
}

.cta-form .form-control,
.cta-form .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.cta-form .form-control:focus,
.cta-form .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 113, 227, 0.25);
}

.cta-form .form-floating label {
    color: rgba(255, 255, 255, 0.6);
}

/* Media Queries */
@media (min-width: 992px) {
    .tech-timeline:before {
        left: 50%;
        margin-left: -1px;
    }
    
    .tech-timeline-item {
        padding-left: 0;
        width: 50%;
    }
    
    .tech-timeline-item:nth-child(odd) {
        padding-right: 50px;
        text-align: right;
    }
    
    .tech-timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 50px;
    }
    
    .tech-timeline-dot {
        left: auto;
        right: -10px;
    }
    
    .tech-timeline-item:nth-child(even) .tech-timeline-dot {
        right: auto;
        left: -10px;
    }
    
    .tech-timeline-item:nth-child(odd) .tech-timeline-icon {
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .hero-tech {
        padding: 80px 0;
        min-height: auto;
    }
    
    .tech-device-mockup {
        margin-top: 50px;
    }
    
    .cta-features {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .featured-project-grid {
        grid-template-columns: 1fr;
    }
}

/* Animações */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.min-vh-80 {
    min-height: 80vh;
}

/* Efeito de gradiente animado */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.bg-primary-subtle {
    background-color: rgba(0, 113, 227, 0.1);
}
/* Estilos para o Tech Challenge Game */
.tech-game-section {
    background-color: rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.tech-game-container {
    height: 400px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(0, 113, 227, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                inset 0 0 50px rgba(0, 113, 227, 0.1);
    cursor: none; /* Esconde o cursor padrão */
}

.tech-game-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.6), transparent);
    z-index: 10;
}

.tech-game-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 0, 0, 0.5);
    z-index: 10;
}

/* Cursor personalizado */
.custom-cursor {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 113, 227, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000;
    transition: width 0.1s, height 0.1s;
    top: 0;
    left: 0;
}

.custom-cursor:before, 
.custom-cursor:after {
    content: '';
    position: absolute;
    background: rgba(0, 113, 227, 0.8);
}

.custom-cursor:before {
    top: 50%;
    left: -5px;
    right: -5px;
    height: 1px;
    transform: translateY(-50%);
}

.custom-cursor:after {
    left: 50%;
    top: -5px;
    bottom: -5px;
    width: 1px;
    transform: translateX(-50%);
}

.custom-cursor.active {
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 0, 0, 0.8);
}

.custom-cursor.active:before, 
.custom-cursor.active:after {
    background: rgba(255, 0, 0, 0.8);
}

.custom-cursor.clicked {
    animation: cursor-pulse 0.3s;
}

@keyframes cursor-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(2);
        box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

.tech-word {
    position: absolute;
    color: white;
    font-family: 'Consolas', monospace;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(0, 113, 227, 0.2);
    cursor: none;
    user-select: none;
    transition: all 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.3);
    border: 1px solid rgba(0, 113, 227, 0.2);
    font-weight: 500;
    transform: translateY(0) scale(1);
    z-index: 50; /* Valor de z-index para as palavras */
    will-change: transform;
    pointer-events: auto; /* Garante que os eventos do mouse sejam detectados */
}

.tech-word:hover {
    background: rgba(255, 0, 0, 0.9) !important; /* Vermelho quando na mira */
    transform: translateY(0) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    color: white;
    border-color: rgba(255, 0, 0, 0.4);
}

.tech-word.missed {
    background: rgba(255, 0, 0, 0.6);
    animation: missed-word 0.5s forwards;
}

.tech-word.captured {
    animation: capture-word 0.5s forwards;
}

@keyframes capture-word {
    0% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes missed-word {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

.game-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

.game-score {
    font-size: 1.1rem;
    font-weight: 600;
}

.game-score span {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.game-lives, .game-level, .game-missed {
    font-size: 1.1rem;
    padding: 5px 15px;
    background: rgba(0, 113, 227, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.game-lives i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.game-message {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: all 0.5s ease;
}

.game-message.hidden {
    opacity: 0;
    pointer-events: none;
}

.message-content {
    text-align: center;
    color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
}

.message-content h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.message-content p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.game-over-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.play-again-btn {
    margin-top: 20px;
}

.hit-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99;
    animation: hit-expand 0.5s forwards;
}

@keyframes hit-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
        border: 2px solid rgba(0, 255, 0, 0.8);
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
        border: 2px solid rgba(0, 255, 0, 0);
    }
}


.miss-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 99;
    animation: miss-effect 0.5s forwards;
    transform: translate(-50%, -50%); /* Centraliza o efeito */
}

.miss-effect:before, .miss-effect:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 0, 0, 0.8);
    top: 50%;
    left: 0;
}

.miss-effect:before {
    transform: translateY(-50%) rotate(45deg);
}

.miss-effect:after {
    transform: translateY(-50%) rotate(-45deg);
}

@keyframes miss-effect {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.level-up-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 113, 227, 0.9);
    color: white;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 10px;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    animation: level-up-fade 2s forwards;
}

@keyframes level-up-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes points-up {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

.pause-button {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pause-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.points-display {
    position: absolute;
    color: white;
    font-weight: bold;
    z-index: 100;
    animation: points-up 1s forwards;
}

.new-record-animation {
    animation: new-record-pulse 1.5s infinite;
}

@keyframes new-record-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 113, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

/* Estilos para a seção de recordes */
.top-record {
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.top-record:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.record-badge {
    margin-bottom: 10px;
}

.record-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Improved cursor styling */
.custom-cursor {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 113, 227, 0.8);
    pointer-events: none;
    z-index: 1000;
    transition: width 0.1s, height 0.1s;
    transform: translate(-50%, -50%);
}

.custom-cursor:before, 
.custom-cursor:after {
    content: '';
    position: absolute;
    background: rgba(0, 113, 227, 0.8);
}

.custom-cursor:before {
    top: 50%;
    left: -5px;
    right: -5px;
    height: 1px;
    transform: translateY(-50%);
}

.custom-cursor:after {
    left: 50%;
    top: -5px;
    bottom: -5px;
    width: 1px;
    transform: translateX(-50%);
}

.custom-cursor.active {
    width: 35px;
    height: 35px;
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 0, 0, 0.8);
}

.custom-cursor.active:before, 
.custom-cursor.active:after {
    background: rgba(255, 0, 0, 0.8);
}

.custom-cursor.clicked {
    animation: cursor-pulse 0.3s;
}

/* Improved game message layout */
.message-content {
    text-align: center;
    color: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 450px;
    background-color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Better vertical spacing */
.game-over-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.game-over-container p {
    margin: 0;
}

.final-score {
    font-size: 3rem;
    font-weight: 700;
    color: #0071e3;
    margin: 0;
    line-height: 1;
}

