:root {
    --bg-dark: #080a0f;
    --card-bg: rgba(17, 25, 40, 0.75);
    --accent: #00ed64;
    /* Verde Spring */
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.125);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Efeito de Luz no Fundo */
.glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 237, 100, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 10%;
    align-items: center;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.logo span {
    color: var(--accent);
}

.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    gap: 50px;
}

.content h1 {
    font-size: 3.5rem;
    max-width: 700px;
    line-height: 1.1;
    margin: 1.5rem 0;
}

.content h1 span {
    background: linear-gradient(90deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    border: 1px solid var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    font-family: 'JetBrains Mono', monospace;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.primary-btn {
    background: var(--accent);
    color: #000;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    box-shadow: 0 0 20px rgba(0, 237, 100, 0.4);
}

.stack-section {
    position: relative;
    background: #05070a;
    height: 400vh;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1200px;
}

.stack-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(-500px) scale(0.5);
    transition: opacity 0.3s ease-out;
    will-change: transform, opacity;
}

.btn-contact {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 237, 100, 0.4);
}

.stack-item img {
    width: 150px;
    filter: drop-shadow(0 0 20px rgba(0, 237, 100, 0.2));
    margin-bottom: 20px;
}

.stack-item h2 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.scroll-instruction {
    text-align: center;
    padding-top: 50px;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.terminal-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #05070a;
    perspective: 1000px;
}

.monitor-frame {
    width: 80%;
    max-width: 900px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    transform: rotateX(5deg);
    /* Leve inclinação 3D */
    border: 1px solid #333;
}

.monitor-screen {
    background: #0c0c0c;
    border-radius: 5px;
    overflow: hidden;
    height: 450px;
    border: 2px solid #222;
    position: relative;
}

.monitor-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.terminal-header {
    background: #252525;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-title {
    color: #888;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1.5;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent);
}

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

/* --- Seção de Arquitetura Sistêmica (Flow Section) --- */

:root {
    --client-color: #8be9fd;
    --nginx-color: #ffb86c;
    --kafka-color: #bd93f9;
    --database-color: #f1fa8c;
    --ok-color: #50fa7b;
    --arrow-color: #2a2d3e;
}

.flow-section {
    position: relative;
    background: #05070a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.flow-instruction {
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.flow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 95%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.flow-section.active .flow-container,
.flow-section.active .flow-instruction {
    opacity: 1;
    transform: translateY(0);
}

.flow-node {
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid;
    background: rgba(17, 25, 40, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    z-index: 2;
}

.flow-node.client {
    color: var(--client-color);
    border-color: var(--client-color);
}

.flow-node.nginx {
    color: var(--nginx-color);
    border-color: var(--nginx-color);
}

.flow-node.kafka {
    color: var(--kafka-color);
    border-color: var(--kafka-color);
}

.flow-node.microservice {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 237, 100, 0.2);
}

.flow-node.database {
    color: var(--database-color);
    border-color: var(--database-color);
}

.flow-node.status-ok {
    background: var(--ok-color);
    color: #000;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flow-arrow {
    width: 50px;
    height: 2px;
    background: var(--arrow-color);
    position: relative;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--arrow-color);
}

.flow-arrow.active::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    top: -4px;
    left: 0;
    filter: blur(2px);
    box-shadow: 0 0 10px var(--accent);
    animation: moveData 1.5s infinite linear;
}

.flow-arrow.return {
    transform: rotate(180deg);
}

.flow-arrow.return.active::before {
    background: var(--ok-color);
    box-shadow: 0 0 10px var(--ok-color);
}

@keyframes moveData {
    0% {
        left: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .flow-container {
        flex-direction: column;
        gap: 40px;
    }

    .flow-arrow {
        width: 2px;
        height: 40px;
    }

    .flow-arrow::after {
        transform: rotate(90deg);
        top: auto;
        bottom: -5px;
        right: -4px;
    }

    @keyframes moveData {
        0% {
            top: 0;
            opacity: 0;
        }

        100% {
            top: 100%;
            opacity: 0;
        }
    }
}

.footer-section {
    position: relative;
    background: #05070a;
    text-align: center;
    padding: 120px 10% 40px;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-content h2 span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 237, 100, 0.3);
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
}

.social-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 20px 40px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.social-card img {
    width: 30px;
}

.social-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 237, 100, 0.1);
}


.footer-bottom {
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 30px;
    }

    .content h1 {
        font-size: 2.2rem;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .glass-card {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg) !important;
        width: 100%;
        max-width: 320px;
        padding: 1.5rem;
        font-size: 0.8rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .social-card {
        
        padding: 10px 20px;
        
    }
}

.icon-white {
    filter: brightness(0) invert(1);
}
