:root {
    --primary-red: #b91c1c;
    --dark-red: #991b1b;
    --light-gray: #e0e0e0;
}

/* Estilos para o modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.bg-glass-light {
    background: rgba(255, 255, 255, 0.12);
}

.border-glass-border {
    border-color: rgba(255, 255, 255, 0.1);
}

.text-primary {
    color: #3b82f6;
}

.text-primary-light {
    color: #60a5fa;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@keyframes brilho-ida {
    0% {
        transform: translateX(-100%) skewX(-12deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) skewX(-12deg);
        opacity: 0;
    }
}

/* Aplica a animação só no hover */
.group:hover .brilho-ida {
    animation: brilho-ida 0.7s ease-out forwards;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
    border: 1px solid rgba(185, 28, 28, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
}

@keyframes wave {
    0% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }

    50% {
        transform: scaleY(1.8);
        opacity: 1;
    }

    100% {
        transform: scaleY(0.5);
        opacity: 0.7;
    }
}

.wave-bar {
    width: 3px;
    height: 15px;
    background-color: #e67e7e;
    margin: 0 2px;
    border-radius: 3px;
    transform-origin: bottom center;
}

.playing .wave-bar:nth-child(1) {
    animation: wave 1s ease-in-out infinite;
}

.playing .wave-bar:nth-child(2) {
    animation: wave 1.2s ease-in-out infinite 0.2s;
}

.playing .wave-bar:nth-child(3) {
    animation: wave 0.8s ease-in-out infinite 0.4s;
}

.playing .wave-bar:nth-child(4) {
    animation: wave 1.1s ease-in-out infinite 0.1s;
}

.playing .wave-bar:nth-child(5) {
    animation: wave 0.9s ease-in-out infinite 0.3s;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(230, 126, 126, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 126, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 126, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 126, 0);
    }
}

.rotate {
    animation: rotate 0.6s ease;
}

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

    to {
        transform: rotate(360deg);
    }
}

.tooltip {
    position: relative;
}

.warn {
    color: #f8e789;
}

  .iframe-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Limita a largura para manter compacto */
    margin: 0 auto;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
  }

  .iframe-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 6px solid #e60023; /* Vermelho vibrante */
    border-radius: 20px;
    pointer-events: none;
    z-index: 10;
  }
.ft {
    font-size: medium;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
}

.audio-container {
    transition: all 0.3s ease;
}

.hidden-player {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) translateX(-50%);
}

.visible-player {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) translateX(-50%);
}

@media (max-width: 767px) {
    #audio-player {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
    }
}

.m-morse {

    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);

}

.close-modal:hover {
    color: #e67e7e;
}

.timeline-container {
    margin-top: 20px;
}

.timeline-item {
    position: relative;
    padding: 15px 0 15px 30px;
    border-left: 2px solid #e67e7e;
    margin-left: 20px;
}

.mensagem-item {
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.mensagem-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.1);
}

.ler-mais-btn {
    transition: all 0.2s ease;
}

.ler-mais-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.abrir-modal-btn {
    transition: all 0.2s ease;
}

.abrir-modal-btn:hover {
    opacity: 0.8;
}

.short-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

#pesquisa-mensagens::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#limpar-pesquisa {
    transition: color 0.2s ease;
}

#limpar-pesquisa:hover {
    color: #e67e7e;
}

/* Estilos para o modal de mensagem */
.mensagem-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.mensagem-modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    box-shadow: 0 0 20px rgba(185, 28, 28, 0.3);
    border: 1px solid rgba(185, 28, 28, 0.3);
    position: relative;
}

.heart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-mensagem-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.close-mensagem-modal:hover {
    color: #e67e7e;
}


.timeline-item:last-child {
    border-left: 2px solid transparent;
}

.timeline-date {
    font-weight: bold;
    color: #e67e7e;
    margin-bottom: 5px;
}

.timeline-content {
    color: #f1f5f9;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    left: -9px;
    top: 20px;
    background: #e67e7e;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section-title {
    color: #e67e7e;
    border-bottom: 1px solid rgba(230, 126, 126, 0.3);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

body {
    overflow-x: hidden;
    background-color: #000000;
    color: #f1f5f9;
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"width="100%"height="100%"> <filter id="grain"> <feTurbulence type="fractalNoise"baseFrequency="0.7"numOctaves="3"stitchTiles="stitch"/> </filter> <rect width="100%"height="100%"filter="url(%23grain)"opacity="0.05"/> </svg>');
    pointer-events: none;
    z-index: -1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.opacity-50 {
    opacity: 0.5;
}



button:disabled:hover {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(214, 46, 46, 0.4) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(214, 46, 46, 0.15);
    border-color: rgba(214, 46, 46, 0.3);
}

.hero-title {
    text-shadow: 0 0 15px rgba(185, 28, 28, 0.5);
}

.section-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.section-card-modal {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.15);
    border-color: rgba(185, 28, 28, 0.3);
}

/* Estilo para o underline emphasis */
.underline-emphasis {
    text-decoration: underline;
    text-decoration-color: #df2727;
    text-decoration-style: wavy;
    text-underline-offset: 4px;
    animation: pulse-underline 2s infinite;
}

@keyframes pulse-underline {

    0%,
    100% {
        text-decoration-color: #df2727;
    }

    50% {
        text-decoration-color: #ff6b6b;
    }
}

.underline-emphasis {
    text-decoration: underline;
    text-decoration-color: #df2727;
    text-decoration-style: wavy;
    text-underline-offset: 4px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animações para os botões */
.cta-button,
#encodeBtn,
#decodeBtn,
#copyResultBtn,
#playMorseBtn,
#stopMorseBtn,
#clearAllBtn,
#downloadMorseBtn {
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

/* Efeito de clique em todos os botões */
.cta-button:active,
#encodeBtn:active,
#decodeBtn:active,
#copyResultBtn:active,
#playMorseBtn:active,
#stopMorseBtn:active,
#clearAllBtn:active,
#downloadMorseBtn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(214, 46, 46, 0.4);
}

/* Efeito de ripple para todos os botões */
.cta-button::after,
#encodeBtn::after,
#decodeBtn::after,
#copyResultBtn::after,
#playMorseBtn::after,
#stopMorseBtn::after,
#clearAllBtn::after,
#downloadMorseBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.cta-button:focus:not(:active)::after,
#encodeBtn:focus:not(:active)::after,
#decodeBtn:focus:not(:active)::after,
#copyResultBtn:focus:not(:active)::after,
#playMorseBtn:focus:not(:active)::after,
#stopMorseBtn:focus:not(:active)::after,
#clearAllBtn:focus:not(:active)::after,
#downloadMorseBtn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Animação específica para o botão de reprodução quando está tocando */
.playing {
    box-shadow: 0 0 0 0 rgba(214, 46, 46, 0.7);
}


.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(185, 28, 28, 0.6);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(185, 28, 28, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(185, 28, 28, 0);
    }
}

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

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

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

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

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin: 60px 0;
}

.morse-code {
    font-family: monospace;
    letter-spacing: 5px;
    font-weight: bold;
}

.morse-blink {
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-red);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-red)
    }
}

.text-link {
    color: #ADD8E6;
    text-decoration: underline;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0.75rem #d62e2e);
    }

    50% {
        filter: drop-shadow(0 0 1.5rem #000000);
    }
}

.animate-glow {
    animation: glow 1.5s infinite ease-in-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    border-radius: 2em;
}

::-webkit-scrollbar-thumb {
    background-color: #6e2a2a9e;
    border-radius: 2em;
}

::-webkit-scrollbar-thumb:hover {
    background: #f25757;
}

/* Garantir quebra de palavras */
.word-wrap {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}





.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"width="100%"height="100%"> <filter id="grain"> <feTurbulence type="fractalNoise"baseFrequency="0.7"numOctaves="3"stitchTiles="stitch"/> </filter> <rect width="100%"height="100%"filter="url(%23grain)"opacity="0.05"/> </svg>');
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    text-shadow: 0 0 15px rgba(214, 46, 46, 0.5);
}

.section-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(214, 46, 46, 0.15);
    border-color: rgba(214, 46, 46, 0.3);
}

.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: rgba(214, 46, 46, 0.4);
    z-index: -1;
    transform: skewX(-15deg);
}


.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(214, 46, 46, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(214, 46, 46, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(214, 46, 46, 0);
    }
}

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

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

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

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


.glow-text {
    text-shadow: 0 0 10px rgba(214, 46, 46, 0.7);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d62e2e 0%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.bubble {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-red);
}

.quote2 {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.08);
}

.step-card {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.step-card::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.disclaimer-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(214, 46, 46, 0.3);
    border-radius: 12px;
    padding: 25px;
}

.quote {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(214, 46, 46, 0.15);
    border-color: rgba(214, 46, 46, 0.3);
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 87%;
    top: -30%;
    left: 0;
    background: radial-gradient(circle, rgba(214, 46, 46, 0.1) 0%, rgba(16, 16, 26, 0) 60%);
    z-index: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
}

.cta-section {
    background: rgba(23, 23, 23, 0.28);
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

.animate-glow {
    animation: glow 1.5s infinite ease-in-out;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 0.75rem #d62e2e);
    }

    50% {
        filter: drop-shadow(0 0 1.5rem #000000);
    }
}

.osint-source {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary-red);
    transition: all 0.3s ease;
}

.osint-source:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.paradox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.paradox-item {
    background: rgba(214, 46, 46, 0.1);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-red);
}

/* Estilo para botão desabilitado */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #4B5563 !important;
    /* gray-700 */
}

/* Estilo para botão habilitado */
button:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.btn-p {
    background: linear-gradient(135deg, #4ec7737a, #3a9d5cbd);
    transition: all 0.3s ease;
}

/* Estilo específico para o botão Stop quando habilitado */
#stopMorseBtn:not(:disabled) {
    background-color: #DC2626 !important;
    /* red-600 */
}

/* Estilo específico para o botão Play quando está reproduzindo */
#playMorseBtn.playing {
    background-color: #e67e7e !important;
    /* emerald-600 */
}


@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .platform-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .stat-card {
        padding: 20px;
    }

    .heart {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
}