@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --cor-principal: #a3fb53 !important;
    --texto-primario: #bdbdbd !important;
    --cor-secundaria: #282828 !important;
    --texto-hover: #ffffff !important;

    --font-titulo: "Oswald", serif;
    --font-padrao: "Roboto", serif;
}

body {
    background: var(--cor-secundaria);
    color: var(--texto-primario);
    font-family: var(--font-padrao);
}

.tela-centralizada {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    text-align: center;
    gap: 80px;
}

.texto-principal {
    text-align: center;
}

h1 span,
h2 span {
    color: #282828;
    background: var(--cor-principal);
    border-radius: 33px;
    padding: 0px 17px;

}

.texto-principal h1 {
    font-size: 4.5rem !important;
    color: #fff;
}

.texto-principal h2 {
    font-size: 4.5rem !important;
    text-align: center;
    color: #fff;
}

.texto-principal-segundo p {
    max-width: 280px;
    font-size: 11px;
    text-align: start;
    margin-bottom: 0px !important;
    color: #fff;
    padding: 14px 0px;
    font-size: 41px;

}

.texto-principal-segundo {
    display: flex;
    gap: 27px;
    margin: 15px 0px;
}

.texto-principal-terceiro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.since-img {
    width: 100px;
    margin-left: 10px;
}

.since-img img {
    width: 100px;
}

.imagem-girando {
    animation: girar 8s linear infinite;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Navbar Personalizada */
.custom-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #00000096;
    border-radius: 12px;
    padding: 10px 20px;
    margin-top: 21px;
    position: relative;
}

/* Logo */
.navbar-brand {
    height: 42px;
}

.logo-link {
    display: block;
    height: 100%;
}

.logo-img {
    height: 100%;
    transition: filter 0.3s ease-in-out;
}

.logo-img:hover {
    filter: brightness(155%);
}

/* Menu Desktop */
.desktop-menu {
    display: flex;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon {
    color: var(--texto-primario);
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    color: var(--cor-principal);
}

.github-icon {
    border-right: 2px solid #101010;
    padding-right: 16px;
    margin-right: 8px;
}

/* Dropdown de Contato Desktop */
.dropdown-contact {
    position: relative;
}

.contact-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1f1f1f;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 12px 0;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.dropdown-contact:hover .contact-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--texto-primario);
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: #2a2a2a;
    color: var(--cor-principal);
}

.contact-item svg {
    color: var(--cor-principal);
    flex-shrink: 0;
}

.contact-item span {
    font-size: 14px;
    font-weight: 400;
}

/* Botão Hambúrguer */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--texto-primario);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu Mobile */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f1f1f;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mobile-nav-icon {
    color: var(--texto-primario);
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-icon:hover {
    color: var(--cor-principal);
    background: #2a2a2a;
}

.mobile-contact-info {
    display: none;
    padding-top: 15px;
    border-top: 1px solid #3a3a3a;
}

.mobile-contact-info.active {
    display: block;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--texto-primario);
    font-size: 14px;
}

.mobile-contact-item svg {
    color: var(--cor-principal);
    flex-shrink: 0;
}

.btn-padrao {
    background: #272626;
    color: #bdbdbd;
    font-size: 18px;
    box-shadow: 4px 4px 10px rgb(0 0 0 / 74%);
    border-top: 2px solid #4b4b4b;
    border-left: 2px solid #4b4b4b;
    padding: 8px 21px;
}

.div-btns {
    display: flex;
    gap: 23px;
    margin-top: 26px;
}

.titulo-inicial {
    font-size: 62px;
    margin-bottom: 34px;
    font-family: var(--font-titulo)
}

.texto-inicial {
    font-size: 19px;
}

.titulo-inicial span {
    color: #f7f7f7;
}

.primeira-secao {
    margin-top: 140px;
}


/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cor-secundaria);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease-in-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
}

.logo-container {
    margin-bottom: 30px;
}

.loading-logo {
    width: 120px;
    height: auto;
    animation: logoFloat 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(163, 251, 83, 0.3));
}

.loading-spinner {
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid var(--cor-principal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-text {
    color: var(--texto-primario);
    font-size: 18px;
    font-weight: 300;
    margin-top: 20px;
    animation: textPulse 1.5s ease-in-out infinite alternate;
}

/* Animações */
@keyframes logoFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textPulse {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Media Queries para Responsividade */



/* Responsividade da Navbar */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .img-invaderzim {
        width: 50%;
        height: 50%;
        object-fit: cover;
    }

    .img-invaderzim img {
        width: 80%;
        height: 50%;
        object-fit: cover;
    }

    .tela-centralizada {
        flex-direction: column;
        gap: 20px;
    }

    .texto-principal h1 {
        font-size: 2.4rem !important;
    }

    .texto-principal h2 {
        font-size: 2.4rem !important;
    }

    .texto-principal-segundo p {
        font-size: 25px !important;
        padding: 6px 0px;

    }

    .texto-principal-terceiro {
        flex-direction: column;
    }

    .texto-principal-segundo {

        margin: 1px 0px;
    }

    .custom-navbar {
        margin-top: 15px;
        padding: 15px 20px;
    }

    .desktop-menu {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Dropdown desktop escondido no mobile */
    .dropdown-contact:hover .contact-dropdown {
        opacity: 0;
        visibility: hidden;
    }


    /* Dropdown de contato mobile */
    .dropdown-contato-menu {
        position: static !important;
        width: 100%;
        margin-top: 10px;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: all 0.3s ease;
    }

    .dropdown-contato-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown-contato:hover .dropdown-contato-menu {
        opacity: 0;
        visibility: hidden;
    }
}

/* Smartphones pequenos */
@media (max-width: 576px) {
    .custom-navbar {
        padding: 12px 15px;
    }

    .navbar-brand {
        height: 35px;
    }

    .hamburger-btn {
        width: 25px;
        height: 25px;
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
    }

    .mobile-social-icons {
        gap: 15px;
    }

    .mobile-nav-icon {
        padding: 10px;
    }


    .loading-logo {
        width: 80px;
    }

    .loading-text {
        font-size: 16px;
    }
}