* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

#particles-js {
    position: fixed;
    width: 100vw;
    height: 100vh;

    top: 0;
    left: 0;

    z-index: -1;

    background: #0a0a14;
}



/* ========= NAVBAR ========= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;

    background: linear-gradient(
        90deg,
        rgba(10, 10, 20, 0.85),
        rgba(20, 20, 40, 0.85)
    );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: 0.4s ease;
}

.navbar.scrolled {
    backdrop-filter: blur(20px);
    padding: 10px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* LOGO */
.logo a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;

    display: inline-block;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.08);
}

.logo a:hover {
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.05);
}

/* zoom suave */
.logo a:hover {
    transform: scale(1.08);
    font-weight: 1000;
}

/* MENU DESKTOP */
.menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu li {
    position: relative;
}

/* LINKS */
.menu a {
    color: #eaeaea;
    text-decoration: none;
    position: relative;
    padding: 5px 2px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: 0.3s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    transition: 0.4s ease;
    border-radius: 2px;
}

.menu a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.menu a:hover::after {
    width: 100%;
}

.menu i {
    margin-right: 8px;
    transition: 0.3s ease;
}

.menu a:hover i {
    transform: scale(1.2);
    color: #00e5ff;
}

/* ========= DROPDOWN ========= */
.dropdown-menu {
    position: absolute;
    top: 130%;
    left: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(8px);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;

    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 10px 15px;
    transition: 0.3s;
}

.dropdown-menu a {
    font-size: 14px;
}

.dropdown-menu li:hover {
    transform: translateX(5px);
}

/* ========= HAMBURGER ========= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========= MOBILE ========= */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        background: linear-gradient(
            180deg,
            rgba(15, 15, 25, 0.95),
            rgba(25, 25, 45, 0.95)
        );

        backdrop-filter: blur(20px);

        padding: 30px 25px;
        gap: 10px;

        transition: 0.4s ease;
        opacity: 0;
    }

    .menu.active {
        left: 0;
        opacity: 1;
    }

    .menu li {
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .menu.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .menu.active li:nth-child(6) { transition-delay: 0.35s; }

    .menu a {
        font-size: 18px;
        padding: 12px 0;
        width: 100%;
        display: block;
    }

    .menu a:hover {
        transform: translateX(5px);
        color: #00e5ff;
    }

    /* DROPDOWN MOBILE */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        padding: 0;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        padding-left: 15px;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #00e5ff, #7c4dff);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   font-size: 36px;
}

.footer {
    position: relative;
    background: rgba(10,10,20,0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 80px 20px 30px;
    margin-top: 120px;
    overflow: hidden;
}

.footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(90deg, #00e5ff, #7c4dff, #00e5ff);
    background-size: 200%;

    animation: moveGradient 4s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

/* layout */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 50px;
}

/* LOGO */
.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 10px;

    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #aaa;
    max-width: 300px;
}

/* LINKS */
.footer-links h4,
.footer-social h4 {
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: #aaa;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #00e5ff;
    transform: translateX(8px);
    text-shadow: 0 0 10px rgba(0,229,255,0.6);
}

/* SOCIAL */
.social-icons a {
    margin-right: 15px;
    font-size: 22px;
    color: #aaa;
    transition: 0.3s;
}

/* glow nos ícones */
.social-icons a:hover {
    color: #7c4dff;
    transform: scale(1.3);
    text-shadow: 0 0 15px #7c4dff;
}

/* bottom */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    font-size: 14px;
    color: #777;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    margin-top: 40px;
    margin-bottom: 20px;
}

/* logos */
.footer-logos img {
    height: 50px;
    opacity: 0.7;
    transition: 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;

    margin-top: 50px;
    padding: 20px;

    background: rgba(255,255,255,0.02);
    border-radius: 12px;
}

/* ================= RESPONSIVO EXTRA ================= */
@media (max-width: 1024px) {

    .navbar {
        padding: 15px 25px;
    }

    .menu {
        gap: 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .welcome {
        font-size: 55px;
    }

    .grafico-card {
        padding: 25px;
    }

    canvas {
        height: 300px !important;
    }
}

@media (max-width: 768px) {

    /* HERO */
    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero .welcome {
        font-size: 42px;
    }

    /* INTRO */
    .intro {
        padding: 80px 15px;
    }

    .intro h2 {
        font-size: 28px;
    }

    .intro p {
        font-size: 16px;
    }

    /* GRAFICO */
    .grafico {
        padding: 80px 15px;
    }

    .grafico-card {
        padding: 20px;
    }

    canvas {
        height: 250px !important;
    }

    .timeline-content {
        width: 100% !important;
        margin: 0 !important;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item::before {
        left: 20px;
    }

    /* FOOTER */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-logos {
        flex-direction: column;
        gap: 20px;
    }

    .footer-logos img {
        height: 40px;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: 22px;
    }

    .hero .welcome {
        font-size: 34px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .navbar {
        padding: 10px 15px;
    }
}

/* ========= SOBRE ========= */
.sobre {
    padding: 120px 20px;
    color: white;
    display: flex;
    justify-content: center;
}

.sobre-container {
    max-width: 1100px;
    text-align: center;
    padding-top: 60px;
}

/* descrição */
.sobre-desc {
    max-width: 700px;
    margin: 20px auto 60px;
    color: #bbb;
    line-height: 1.6;
    font-size: 18px;
}

/* GRID */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARDS */
.sobre-card {
    padding: 30px;

    background: rgba(20,20,40,0.5);
    backdrop-filter: blur(15px);

    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);

    transition: 0.4s ease;
}

/* ícones */
.sobre-card i {
    font-size: 30px;
    margin-bottom: 15px;

    background: linear-gradient(90deg, #00e5ff, #7c4dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* hover brutal */
.sobre-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px rgba(124,77,255,0.3);
}

/* ========= RESPONSIVO ========= */
@media (max-width: 1024px) {
    .sobre-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr;
    }

    .sobre-desc {
        font-size: 16px;
    }
}