/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100vw;
}

/* Variáveis CSS */
:root {
    --primary-blue: #2B324E;
    --secondary-blue: #404668;
    --accent-color: #666F98;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.3s ease;
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(43, 50, 78, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 2rem;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Menu hamburger para mobile */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Seção Hero - Layout principal */

.hero-section {
    height: 100vh;
    display: flex;
    background: var(--primary-blue);
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin: 0 auto;
 
}

/* Área lateral esquerda */

.hero-left {
    width: 510px;
    height: 100vh;
    background: var(--secondary-blue);
    padding: 15px 60px 0px 60px;
    display: flex;
    flex-direction: column;
    gap: 3%;
    overflow: hidden;
    flex-shrink: 0;
    justify-content: center;
    
        
}

/* Remover scrollbar da área lateral */

.hero-left::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.hero-left {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Título Portfólio */

.portfolio-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 7px;
    margin-left: 0%;
}

.portfolio-icon {
    color: var(--white);
    font-size: 12px;
    margin-top: 1px;
}

.portfolio-title h2 {
    color: var(--white);
    font-size: 11pt;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

/* Seção de informações pessoais */

.personal-info {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
}

.name-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

/*.fa-fingerprint {
    color: var(--white);
    font-size: 16px;
    margin-top: 10px;
}
*/

.name-content {
    flex: 1;
}

.hero-title {
    font-size: 22pt;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 14pt;
    font-weight: 300;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

/* Descrição */

.description {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0px;
}

.description p {
    margin-bottom: 0px;
}

.saiba {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-decoration: none;
}
.saiba:hover {
    color: var(--accent-color);
}

/* Seção de contato */

.contact-section {
    margin: 0 auto;
    width: 100%;
    justify-content: center;

}

.contact-title {
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.form-input {
    width: 100%;
    max-width: 100%;
    height: 32px;
    background: var(--accent-color);
    border: 0px solid var(--accent-color);
    border-radius: 5px;
    padding: 0 12px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 11pt;
    font-weight: 300;
    transition: var(--transition);
}

.form-input::placeholder {
    color: var(--white);
    opacity: 0.8;
}

.form-input:focus {
    outline: none;
    border-color: var(--white);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.form-textarea {
    width: 100%;
    max-width: 100%;
    height: 85px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    padding: 10px 12px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 11pt;
    font-weight: 300;
    resize: vertical;
    transition: var(--transition);
}

.form-textarea::placeholder {
    color: var(--ehite);
    opacity: 0.8;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--white);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.form-button {
    width: 90px;
    height: 32px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11pt;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
}

.form-button:hover {
    background: var(--white);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Ícones de redes sociais */

.social-icons {
    margin-top: 15%;
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
}

.social-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 25px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
}

/* Área direita para foto */

.hero-right {
    flex: 1;
    height: 100vh;
    background: var(--primary-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container da foto */

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.5;
    mix-blend-mode: multiply;
    filter: contrast(1.2) brightness(1.1);
    margin-top: 70px;
}

/* Label PORTFÓLIO sobre a imagem */

.portfolio-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.portfolio-label span {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 24pt;
    font-weight: 400;
    letter-spacing: 0.6em;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    border: 2px solid var(--accent-color);
    padding: 15px 30px;
    display: inline-block;
    background: rgba(43, 50, 78, 0.3);
    backdrop-filter: blur(5px);
}

/* Seções gerais */

.section {
    padding: 3rem 1rem 1rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100vw;
    overflow-x: hidden;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-color));
    border-radius: 2px;
}

/* Seção Sobre */

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
    font-family: 'Montserrat', sans-serif;
}
.about-text p{
    margin-bottom: 20px;
}

/* Grid de portfólio */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.portfolio-item h3{
    font-size: 20pt;
}

/*.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}*/

/* Grid de posts */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-item {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Footer */

.footer {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    font-family: 'Montserrat', sans-serif;
    width: 100vw;
    overflow-x: hidden;
}

/* Botão voltar ao topo */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-color));
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(43, 50, 78, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43, 50, 78, 0.4);
}

/* Responsividade */

@media (max-width: 1200px) {
    
    .hero-left {
    width: 450px;
    padding: 120px 45px 45px 45px;
    }
    .description {
    line-height: 18px;
    }
    .description p {
    margin-bottom: 0px;
    }

    .form-input,
    .form-textarea {
    width: 100%;
    }
    
    .portfolio-label span {
    font-size: 28pt;
    padding: 20px 40px;
    }

    .social-icons {
    margin-top: 0%;
    }

    .social-icon {
    width: 30px;
    height: 30px;
    font-size: 20px;
    }

    .section {
    padding: 5rem 3rem 5rem 3rem;
    }
}


@media (max-width: 768px) {

    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-blue);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-section {
        flex-direction: column;
        height: auto;
    }
    
    .hero-left {
        width: 100%;
        height: auto;
        padding: 120px 80px 80px 80px;
        gap: 20px;
    }
    
    .hero-right {
        width: 100%;
        height: 100vh;
    }
    
    .description {
        width: 100%;
        max-width: 100%;
    }
    
    .form-input,
    .form-textarea {
        width: 100%;
        max-width: 100%;
    }

     .social-icons {
    margin-top: 35px;
    }
    
    .portfolio-label {
        bottom: 60px;
    }
    
    .portfolio-label span {
        font-size: 20pt;
        padding: 15px 30px;
        letter-spacing: 0.4em;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .portfolio-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .section {
    padding: 3rem 2rem 2rem 2rem;
    }

    .about-text{
        font-size: 12pt;
    }
}

@media (max-width: 480px) {

    .hero-title {
        font-size: 18pt;
    }
    
    .hero-subtitle {
        font-size: 12pt;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-title h2 {
        font-size: 16pt;
    }
    
    .description {
        font-size: 11px;
    }
    
    .hero-left {
        padding: 100px 50px 50px 50px;
        gap: 20px;
    }
    
    .portfolio-label span {
        font-size: 16pt;
        padding: 12px 25px;
    }
    .about-text{
    text-align: center;
    }
}

/* Garantir que não haja overflow horizontal */

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}



/* Galeria de imagens - Seção Branding */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-cover {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(43, 50, 78, 0.9));
    color: var(--white);
    padding: 1rem 0 0.5rem 1rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0rem;
    font-family: 'Montserrat', sans-serif;
}

.gallery-overlay p {
    font-size: 0,7rem;
    opacity: 0.9;
    font-family: 'Montserrat', sans-serif;
}

/* Modal/Pop-up da galeria */

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1400px;
    height: 90%;
    max-height: 700px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--primary-blue);
    font-size: 35px;
    font-display:auto;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-content {
    position: relative;
    margin: 2% auto;
    width: 90%;
    max-width: 1400px;
    height: 85%;
    max-height: 900px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.2rem 2rem;
    text-align: left;

}

.modal-body {
    position: relative;
    height: calc(100% - 70px);
    display: flex;
    flex-direction: column;
}

.carousel-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    min-height: 705px;
}

.carousel-images {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--white);
    gap: 0.5rem;
    min-height: 50px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(43, 50, 78, 0.8);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor:pointer;
    transition: var(--transition);
    z-index: 1001;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--accent-color);
}

/* Responsividade para a galeria */

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .modal-content {
        width: 95%;
        height: 85%;
        margin: 5% auto;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .close-btn {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .carousel-images {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        height: 200px;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
    
    .gallery-overlay h3 {
        font-size: 1.2rem;
    }
    
    .gallery-overlay p {
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 98%;
        height: 90%;
        margin: 2% auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
}

