/* RESET */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&display=swap");

/* Estilo global */
body {
    font-family: "Source Sans 3", sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #000;
    background-color: #efede9;
    margin: 0;
    padding: 0;
}

/* Títulos principais */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 0.5em;
}

/* Subtítulos ou destaques menores */
h3,
h4 {
    font-weight: 600;
    color: #333333;
}

/* Texto normal */
p,
li,
span {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    color: #4a4a4a;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Links e botões de destaque */
a,
button {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 500;
    text-decoration: none;
    color: #2d6a8a;
    transition: color 0.3s ease;
}

a:hover,
button:hover {
    color: #000;
}

a:hover,
button:focus {
    color: #000;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

.logo-sub {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
}

.footer-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

/* NAVBAR FIXA */
.navbar {
    background: #efede9;
    min-height: 38px;
}

/* LAYOUT */
.layout {
    display: flex;
}

/* SIDEBAR */
#sidebar {
    position: fixed;
    top: 37px;
    left: 0;
    width: 280px;
    height: calc(100vh - 56px);
    background: #efede9;
    z-index: 1050;
    transition: left 0.35s ease;
}

#sidebar.active {
    left: 0;
}

.sidebar-inner nav {
    height: 100%;
    overflow-y: auto;
    padding-bottom: 2rem;
    padding-left: 2.5rem;
}

#sidebar.active ~ .content {
    margin-left: 280px;
}

/* Círculo antes do item ativo */
.btn-custom.active::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #000; /* cor do círculo */
    margin-right: 8px;
    vertical-align: middle;
}

/* Submenu escondido */
.submenu {
    display: none;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

/* Submenu ativo */
.submenu.active {
    display: block;
}

/* Estilo seta SVG */
.arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Gira quando ativo */
.toggle-submenu.active .arrow {
    transform: rotate(180deg);
}

.btn-custom {
    font-size: 16px;
    background: none;
    border: none;
    padding: 10px;
    color: #000;
}

.frist-title {
    font-weight: 600;
}

/* CONTEÚDO */
.content {
    flex: 1;
    padding: 0px 20px 40px;
    margin-left: 280px;
    transition: margin-left 0.35s ease;
}

.content-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: none;
}

.content-section.active {
    opacity: 1;
    transform: translateY(0);
    display: block !important;
}

/* Botão hamburguer só aparece no mobile */
#toggleSidebar {
    display: none;
}

/* LIGHTBOX */
#lightboxModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#lightboxModal {
    background: #efede9;
}

#lightboxImage {
    max-height: 90vh;
    width: auto;
    object-fit: contain;
}

.modal-content {
    border: none;
}

/* Esconde o botão X */
#lightboxModal .modal-header {
    display: none;
}

/* Botões de navegação fixos */
#prevBtn,
#nextBtn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    background: transparent;
    border: none;
    font-size: 50px;
    padding: 0.5rem 1rem;
    color: #000;
    margin: auto -40px;
}

#prevBtn,
#nextBtn:hover {
    background: transparent;
    color: #000;
}

#prevBtn {
    left: 20px;
}
#nextBtn {
    right: 20px;
}

@media (min-width: 1100px) {
    #prevBtn {
        left: 15%;
    }
    #nextBtn {
        right: 15%;
    }
}

/* MASONRY */
.masonry {
    column-count: 4;
    column-gap: 0.2rem;
    margin-top: 20px;
}

.masonry-item {
    width: 100%;
    margin-bottom: 0.2rem;
    border-radius: 0px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(15px);
    filter: blur(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.masonry-item.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Seção inicial centralizada */
.content.home-padding-reset {
    padding: 0;
}

.home-wrapper {
    height: calc(100vh - 56px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efeito fade-in para a home */
.home-wrapper > div {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.home-wrapper.visible > div {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor de digitação para o nome */
#intro-name::after {
    content: "|";
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

.img-sobre {
    max-width: 100%;
    max-height: 90vh;
}

@keyframes blink {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .masonry {
        column-count: 2;
    }
    #sidebar {
        width: 240px;
    }
}

@media (max-width: 576px) {
    .masonry {
        column-count: 1;
    }
    #sidebar {
        width: 220px;
    }
}

@media (max-width: 768px) {
    #sidebar.active ~ .content {
        margin-left: 240px;
    }
}

@media (max-width: 576px) {
    #sidebar.active ~ .content {
        margin-left: 220px;
    }

    .img-fluid {
        max-width: 80%;
        margin-top: 30px;
    }

    .text-start {
        text-align: center !important;
    }
}

@media (max-width: 991.98px) {
    #sidebar {
        left: -280px;
        top: 47px;
    }
    #sidebar.active {
        left: 0;
    }
    .content {
        margin-left: 0;
    }
    #toggleSidebar {
        display: block;
    }
}

/* Mobile Navbar */
.mobile-navbar {
    background: #efede9;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
}

/* Mobile Sidebar */
.mobile-sidebar {
    background: #efede9;
    position: relative;
    top: 56px;
    left: 0;
    right: 0;
    display: block;
    z-index: 1040;
    overflow: hidden;
    max-height: 0; /* Inicialmente colapsada */
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave e gradativa */
}

.mobile-sidebar.active {
    max-height: 500px; /* Altura suficiente para exibir todos os itens */
}

/* Ajuste para o conteúdo ser empurrado */
body.mobile-sidebar-expanded .content {
    transition: margin-top 0.6s cubic-bezier(0.4, 0, 0.2, 1); /* Transição suave */
}

/* Responsividade */
@media (min-width: 992px) {
    .mobile-navbar,
    .mobile-sidebar {
        display: none;
    }
}
