/* CSS Variables */
:root {
    --bg-dark: #111111;
    --bg-red: #E82E52;
    --bg-black: #000000;
    --text-light: #fff;
    --accent: #207fe5;
    --beige: #f5e9da;
    --card-bg: #181818;
    --border-radius: 12px;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --font-main: 'Trattarello';
    --silver: #e8e8e8;
}
/* ========================================= */
/* INSTALAÇÃO DE FONTES CUSTOMIZADAS         */
/* ========================================= */
@font-face {
    font-family: 'Trattarello';
    src: local('Trattarello'), 
         url('fonts/Trattarello.ttf') format('truetype'),
         url('fonts/Trattarello.ttf'); 
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-black);
    color: var(--text-light);
    font-family: var(--font-main);
    letter-spacing: 0.02em;
    min-height: 100vh;
    overflow-x: hidden; 
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 110px;
    z-index: 1000;
    transition: height 0.4s cubic-bezier(.4,0,.2,1);
}

.navbar::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0) 100%);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    transform: translateY(0);
}

.navbar-section {
    display: flex;
    align-items: center;
    flex: 1;
}
.navbar-section.center {
    justify-content: center;
}
.navbar-section.right {
    justify-content: flex-end;
    gap: 1.2rem;
}

.navbar-section.left,
.navbar-section.right {
    transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s cubic-bezier(.4,0,.2,1);
}

/* Modo Scrolled */
.navbar.scrolled {
    height: 80px; 
}
.navbar.scrolled::before {
    transform: translateY(-100%);
}
.navbar.scrolled .navbar-section.left,
.navbar.scrolled .navbar-section.right {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
.navbar.scrolled .navbar-logo {
    width: 117px; 
    height: 35px; 
}

/* Modo Hover no Scroll */
.navbar.scrolled:hover {
    height: 110px;
}
.navbar.scrolled:hover::before {
    transform: translateY(0);
}
.navbar.scrolled:hover .navbar-section.left,
.navbar.scrolled:hover .navbar-section.right {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.navbar.scrolled:hover .navbar-logo {
    width: 235px;
    height: 70px;
}

/* Navbar Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    text-transform: lowercase;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--accent);
}
/* Esconde os links extras de navegação no Desktop */
.mobile-nav-item {
    display: none !important;
}

/* Navbar Logo */
.navbar-logo {
    position: relative;
    width: 235px;
    height: 70px;
    display: block;
    transition: width 0.4s cubic-bezier(.4,0,.2,1), height 0.4s cubic-bezier(.4,0,.2,1);
}
.navbar-logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 0; 
    box-shadow: none; 
    cursor: pointer;
    transition: opacity 0.4s ease-in-out;
}
#logo-img-default { opacity: 1; }
#logo-img-hover { opacity: 0; }
#logo-img-scrolled { opacity: 0; }

.navbar-logo:hover #logo-img-default { opacity: 0; }
.navbar-logo:hover #logo-img-scrolled { opacity: 0; }
.navbar-logo:hover #logo-img-hover { opacity: 1; }

.navbar.scrolled:not(:hover) #logo-img-default { opacity: 0; }
.navbar.scrolled:not(:hover) #logo-img-hover { opacity: 0; }
.navbar.scrolled:not(:hover) #logo-img-scrolled { opacity: 1; }

.social-icons {
    display: flex;
    gap: 0.8rem;
}
.social-icons img {
    width: 22px;
    height: 22px;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.8;
    transition: filter var(--transition), opacity var(--transition);
}
.social-icons img:hover {
    filter: none;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 110px;
    overflow: hidden;
    z-index: 0;
}
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.4;
}
.hero-bg-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh; 
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.2;
}
.hero-content {
    position: relative;
    margin: 0 auto;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    z-index: 2;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--silver);
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
    font-family: 'Syne', sans-serif;
}

.hero-title-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
    width: 100%;
}
.main-hero-logo {
    width: 100%;
    max-width: 600px; 
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-subdesc {
    font-size: 1.15rem;
    color: var(--silver);
    margin-bottom: 1rem;
    max-width: 500px;
    letter-spacing: 0.03em;
    font-family: 'Syne', sans-serif;
}
.hero-btn {
    background: var(--accent);
    color: #111;
    border: none;
    border-radius: 24px;
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition);
    font-family: 'Syne', sans-serif;
}
.hero-btn:hover {
    background: var(--bg-red);
    color: var(--text-light);
    transform: translateY(-2px) scale(1.04);
}

/* Portfolio Grid */
.portfolio {
    padding: 4rem 0 2rem 0; 
    background: var(--bg-dark);
}
.portfolio-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: normal; 
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-family: 'Trattarello';
    font-size: 23px;
    letter-spacing: 0.05em;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    display: block;
    text-decoration: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover {
    transform: scale(1.035) translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.portfolio-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background-color: #222; 
}
.portfolio-card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 64, 45, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}
.portfolio-card:hover .portfolio-card-content {
    background: var(--accent);
    opacity: 1;
}
.portfolio-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important; 
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    font-family: 'Syne', sans-serif;
}
.portfolio-card-desc {
    font-size: 1rem;
    color: #ffffff !important;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    font-family: 'Syne', sans-serif;
}
.portfolio-card:hover .portfolio-card-title,
.portfolio-card:hover .portfolio-card-desc {
    transform: translateY(0);
}

/* SESSÃO DESIGN SLIDER (TELA CHEIA) */
.design-slide-section {
    padding: 0 0 4rem 0; 
    background: var(--bg-dark);
    width: 100%;
}
.slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-track-container {
    overflow: hidden;
    width: 100%;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    width: 100%;
    max-height: 85vh; 
    object-fit: contain; 
    aspect-ratio: 16/9;
    display: block;
    background-color: var(--bg-dark);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
    transition: background var(--transition), transform var(--transition);
}
.slider-btn:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.prev-btn { left: 30px; }
.next-btn { right: 30px; }


/* ========================================= */
/* SESSÃO SOBRE MIM INTRO & DECK DE CARTAS   */
/* ========================================= */
.about {
    padding: 4rem 2rem;
    background: var(--bg-black);
    width: 100%;
}
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}
.about-image {
    flex: 1;
    max-width: 400px;
    position: relative;
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-deck {
    position: relative;
    width: 100%;
    height: 100%;
}
.about-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: -5px 15px 35px rgba(0, 0, 0, 0.85); 
    transform: rotate(var(--rot));
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    background-color: var(--bg-dark);
}
.about-card.fade-out {
    opacity: 0;
    transform: translateY(-40px) rotate(var(--rot)) scale(1.05);
}
.about-text {
    flex: 1;
}
.about-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--silver);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    font-family: 'Syne', sans-serif; 
}
.about-text strong {
    color: var(--text-light);
    font-weight: 700;
}


/* ========================================= */
/* HISTÓRIA (BLOCOS ALTERNADOS)              */
/* ========================================= */
.hidden {
    display: none !important;
}

#historia-completa {
    width: 100%;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-band {
    padding: 5rem 2rem;
    width: 100%;
}

.time-band.black-bg {
    background-color: var(--bg-black);
    color: var(--text-light);
}

.time-band.red-bg {
    background-color: var(--bg-red);
    color: #ffffff; 
}

.time-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.time-container.reverse {
    flex-direction: row-reverse;
}

.time-text {
    flex: 1;
}

.time-text p {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.time-band.black-bg .time-text p {
    color: var(--silver);
}

.timeline-label {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.time-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

img.img-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.time-band.red-bg img.img-placeholder {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.time-logo {
    width: 100%;
    max-width: 280px;
    object-fit: contain;
}


/* ========================================= */
/* GALERIA DE INTERCÂMBIO (SLIDER REDONDO)   */
/* ========================================= */
.gallery-slider-container {
    position: relative;
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #1a1a1a;
}
.gallery-track-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
    transition: background var(--transition);
}
.gallery-btn:hover { background: var(--accent); }
.prev-gallery { left: 10px; }
.next-gallery { right: 10px; }

.expand-gallery {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    border-radius: 6px;
    z-index: 10;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.expand-gallery:hover { background: var(--accent); }

/* Modal do Lightbox Expandido */
#modal-gallery .modal-content {
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 90vw;
}
#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
    transition: background var(--transition);
}
.modal-gallery-nav:hover { background: var(--accent); }
.prev-modal-gallery { left: -60px; }
.next-modal-gallery { right: -60px; }


/* Seção Final de Atualização */
.now-section {
    padding-bottom: 8rem; 
}
.now-section h4 {
    font-family: 'Syne', sans-serif;
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
}
.date-updated {
    font-family: 'Syne', sans-serif;
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: -0.5rem;
}
.now-text {
    max-width: 600px;
    margin: 0 auto;
}


/* Footer */
footer {
    background: var(--bg-black);
    color: var(--text-light);
    text-align: center;
    padding: 2.2rem 0 1.2rem 0;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}
.footer-social a {
    display: inline-block;
}
.footer-social img {
    width: 22px !important;
    height: 22px !important;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.85;
    transition: filter var(--transition), opacity var(--transition);
    object-fit: contain;
}
.footer-social img:hover {
    filter: none;
    opacity: 1;
}
.footer-copyright {
    color: #bbb;
    font-size: 1rem;
    margin-top: 0.7rem;
    font-family: 'Syne', sans-serif;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; 
    height: 40px;
    cursor: pointer;
    z-index: 1100;
    outline: none; 
    -webkit-tap-highlight-color: transparent; 
    overflow: visible; 
}
.hamburger span {
    display: block;
    width: 26px; 
    height: 2px; 
    background-color: #ffffff !important;
    margin: 5px 0; 
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--bg-red) !important;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--bg-red) !important;
}

.mobile-only { display: none !important; }

/* MODAL DE PROJETOS (POP-UP) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.modal.active .modal-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--grey);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color var(--transition);
    z-index: 10;
    line-height: 1;
    font-family: 'Syne', sans-serif;
}
.close-btn:hover {
    color: var(--accent);
}
.modal-video-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}
.modal-behance-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: color var(--transition), transform var(--transition);
    padding: 0.5rem;
    font-family: 'Syne', sans-serif;
}
.modal-behance-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* RESPONSIVIDADE E MOBILE */
@media (max-width: 850px) {
    .mobile-nav-item {
        display: block !important;
        margin-bottom: 0.5rem;
    }
    
    li.mobile-only { 
        display: flex !important; 
        flex-direction: column; 
        align-items: center; 
        width: 100%;
        margin-top: 2rem;
    }
    .mobile-only .social-icons {
        display: flex !important;
        flex-direction: column !important; 
        align-items: center;
        gap: 1.5rem;
    }
    .mobile-only .social-icons img {
        width: 28px;
        height: 28px;
    }
    
    .desktop-only { display: none !important; }

    .navbar, .navbar.scrolled, .navbar.scrolled:hover {
        height: 70px !important;
        padding: 0 1.5rem;
    }
    .navbar::before, .navbar.scrolled::before, .navbar.scrolled:hover::before {
        transform: translateY(0) !important; 
    }
    .navbar-section.left, .navbar-section.right,
    .navbar.scrolled .navbar-section.left, .navbar.scrolled .navbar-section.right {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .navbar-logo, .navbar.scrolled .navbar-logo, .navbar.scrolled:hover .navbar-logo {
        width: 140px !important;
        height: 42px !important;
    }
    .navbar.scrolled:not(:hover) #logo-img-default { opacity: 1 !important; }
    .navbar.scrolled:not(:hover) #logo-img-scrolled { opacity: 0 !important; }

    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0; 
        width: 100vw;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 4rem;
        gap: 1rem; 
        transform: translateX(100%); 
        transition: transform 0.4s cubic-bezier(.4,0,.2,1); 
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0); 
    }
    
    .nav-links li {
        list-style: none;
    }
    .nav-links a {
        font-family: 'Syne', sans-serif;
        font-size: 1.6rem;
    }
    
    .about-container {
        flex-direction: column;
        gap: 3rem;
    }
    .about-image {
        max-width: 100%;
        width: 100%;
    }
    .about-text .portfolio-title {
        text-align: center !important;
    }
    .about-text p {
        text-align: center;
    }
    .time-band {
        padding: 4rem 1.5rem;
    }
    .time-container, .time-container.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .prev-modal-gallery { left: 10px; }
    .next-modal-gallery { right: 10px; }

    .slider-btn {
        display: none !important;
    }
    
    .slider-track-container {
        height: 70vh;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    
    .slider-track-container::-webkit-scrollbar {
        display: none;
    }
    
    .slider-track {
        flex-direction: column;
        transform: none !important;
        transition: none !important;
    }
    
    .slide {
        width: 100%;
        height: 70vh;
        min-height: 70vh;
        scroll-snap-align: center;
        object-fit: contain;
        padding: 1.5rem 0;
        background-color: var(--bg-dark);
    }
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        justify-content: center;
    }
    .hero-content {
        margin-left: 0;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
    }
    
    .main-hero-logo {
        max-width: 320px; 
    }
    
    .modal-content {
        padding: 2.5rem 1rem 1rem 1rem;
        width: 95%;
    }
}