/* ==========================================================================
   Omni Mídia - Estilo Base (Premium Dark Mode)
   ========================================================================== */

:root {
    --bg-color: #030303;
    --bg-alt: #080808;
    --text-color: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    
    --space-sm: 1rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --space-xl: 12rem;
    
    --radius: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700; /* More impact */
    line-height: 1.05;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem); /* HUGE impact */
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-muted);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}

/* ==========================================================================
   Layout & Components
   ========================================================================== */

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: var(--space-xl) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 30px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--accent);
    position: absolute;
    transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { bottom: 0; }

.mobile-menu-btn.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    bottom: 50%;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section - Multi-Layer Parallax
   ========================================================================== */

.hero {
    min-height: auto; 
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.parallax-images {
    position: relative;
    width: 100%;
    /* Let the inner image dictate the height */
}

/* Background Layer gives height to the block */
.layer-bg {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Foreground Layer perfectly overlaps the Background */
.layer-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 5;
}

/* Text Overlay (Left side) */
.hero-text-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
    max-width: 600px;
    z-index: 10;
    padding: 3rem;
}

.hero-text-overlay.left {
    left: 8%;
}

.hero-inline-logo {
    height: 120px; /* Logo super destacada */
    width: auto;
    margin-bottom: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Glassmorphism premium no lugar do preto sólido */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    padding: 20px 45px;
    border-radius: 120px; /* Formato de pílula arredondada adaptado ao novo tamanho */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-color);
    opacity: 0.9;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-color), transparent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   Portfolio (Masonry)
   ========================================================================== */

.portfolio {
    background-color: var(--bg-alt);
}

.section-header {
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.masonry-gallery {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hidden-item {
    display: none;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(15%);
    cursor: zoom-in;
}

.masonry-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.load-more-container {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ==========================================================================
   Lightbox Modal
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--text-muted);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    text-align: center;
    background-color: var(--bg-alt);
}

.contact-desc {
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    min-width: 250px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.4s ease;
    cursor: pointer;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    transition: transform 0.4s ease;
}

.contact-card:hover {
    background: rgba(255,255,255,0.05);
}

.contact-card:hover .contact-icon {
    transform: translateY(-10px);
}

.contact-value {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Footer & Back to Top
   ========================================================================== */

.footer {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 25px;
    opacity: 0.5;
}

.footer-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

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

.back-to-top:hover {
    background: white;
    color: black;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-image-wrapper {
        flex-direction: column;
        padding-top: 100px; /* Space for fixed header */
    }
    
    .hero-text-overlay {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        text-align: center;
        padding: 0.5rem 5%;
        margin-top: -2rem;
        height: auto;
    }
    
    .hero-text-overlay.left {
        left: auto;
    }
    
    .hero-inline-logo {
        height: 70px; /* Reduz ligeiramente apenas no celular para não engolir a tela */
        padding: 15px 30px;
        margin: 0 auto 1rem auto;
    }
    
    .scroll-indicator {
        position: relative;
        bottom: auto;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 6rem;
        --space-lg: 3rem;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }
    
    .nav.open {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .masonry-gallery {
        column-count: 1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        order: -1; 
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-card {
        width: 100%;
    }
}
