:root {
    --primary-color: #ed8120;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #fdfdfb;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 0, 0, 0.05);
    --font-heading: 'Rubik', sans-serif;
    --font-body: 'Rubik', sans-serif;
    --glow: 0 0 15px rgba(237, 129, 32, 0.3);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth; /* Essencial para o One-pager */
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-align: center;
    /* Remover background-color sólido para não cobrir o vídeo de fundo */
    padding-top: 20px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Proporção 16:9 */
    min-height: 100vh;
    min-width: 177.77vh; /* Proporção 16:9 */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Restaurando a altura que havia se perdido */
    background: rgba(0, 0, 0, 0.45); /* Máscara preta para destacar o conteúdo */
    z-index: 1; /* Para ficar acima do vídeo */
    pointer-events: none;
}

.island-header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto; /* Shrink para abraçar conteúdo ao invés de ocupar tela toda */
    background: rgba(40, 40, 40, 0.45); /* Fundo vidro escuro elegante */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 8px 6px 16px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap; /* Impede quebra de linha prematura */
}

.island-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    gap: 15px; /* Distância menor para a pílula não ficar comprida */
}

.island-logo img {
    width: 100px;
    height: 45px;
    object-fit: contain; /* Para não deformar a imagem dadas as medidas duras */
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    display: block;
}

.island-logo:hover img {
    transform: scale(1.05);
}

.island-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.island-menu a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 30px; /* Bordas arredondadas do item (pílula interna) */
    transition: all 0.3s ease;
}

.island-menu a:hover:not(.active-pill) {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.island-menu a.active-pill {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(237, 129, 32, 0.4);
}

.island-menu a.active-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 129, 32, 0.6);
}

/* Hamburger Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2; /* Acima do vídeo e do overlay */
    margin: auto; /* Centraliza verticalmente e horizontalmente junto com section flex */
    text-align: center;
    animation: fadeInContent 1.2s ease-out;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 5px;
    color: var(--text-light); /* Texto branco para o banner escuro */
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-content h1 span.bold {
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.italic {
    font-style: italic;
}

.subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 7px;
    text-transform: uppercase;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7); /* Texto claro para o banner escuro */
    margin-top: 10px;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Section Projetos */
.projects {
    padding: 100px 0;
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 5;
    margin-top: -60px;
    border-radius: 60px 60px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.05);
}

.container-projects {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.projects-header { text-align: center; margin-bottom: 60px; }
.section-tag { color: var(--primary-color); font-weight: 500; text-transform: uppercase; letter-spacing: 3px; font-size: 0.85rem; margin-bottom: 10px; }
.section-title { font-size: 3rem; font-weight: 300; color: var(--text-dark); margin-bottom: 15px; }
.section-title span.bold { font-weight: 700; }
.section-subtitle { color: rgba(26, 26, 26, 0.6); font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Carousel Layout */
.carousel-wrapper { position: relative; display: flex; align-items: center; gap: 20px; }
.carousel-container { display: flex; gap: 30px; overflow-x: hidden; scroll-behavior: smooth; padding: 20px 0; width: 100%; }
.project-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.image-placeholder { width: 100%; aspect-ratio: 4 / 5; background-color: #f9f9f9; border: 1px dashed #e0e0e0; position: relative; }
.image-placeholder::after { content: 'Projetos iLustre'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #ccc; font-size: 0.85rem; font-weight: 300; }
.card-info { padding: 30px; }
.card-info h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }
.card-info p { color: rgba(26, 26, 26, 0.5); font-size: 0.9rem; }
.carousel-btn {
    background: #fff;
    border: 1px solid #eee;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); flex-shrink: 0; z-index: 5;
}
.carousel-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Divider Banner */
.divider-banner {
    width: 100%;
    overflow: hidden;
    margin: 40px 0 80px 0;
}

.banner-placeholder {
    width: 100%;
    height: 450px;
    background-color: #f2f2f2;
    background-image: linear-gradient(135deg, rgba(237, 129, 32, 0.03) 25%, transparent 25%, transparent 50%, rgba(237, 129, 32, 0.03) 50%, rgba(237, 129, 32, 0.03) 75%, transparent 75%, transparent);
    background-size: 100px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.banner-placeholder p {
    color: #bbb;
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
    padding: 0 20px;
}

/* Section Quem Somos */
.about-us {
    padding: 150px 0;
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

.container-about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: 40px;
}

.image-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 90%;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 20px;
    z-index: 1;
}

.about-real-image {
    width: 100%;
    max-height: 700px;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    display: block;
}

.about-text-wrapper {
    position: relative;
    z-index: 3;
}

.about-text-wrapper .section-title {
    text-align: left;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-content p {
    color: rgba(26, 26, 26, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 300;
}

.btn-more {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.4s ease;
}

.btn-more:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 30px rgba(237, 129, 32, 0.3);
}

/* Instagram Feed */
.instagram-feed {
    padding: 100px 0;
    width: 100%;
    background-color: #fdfdfb;
}

.container-insta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.insta-header {
    text-align: center;
    margin-bottom: 40px;
}

.insta-handle {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: -10px;
    letter-spacing: 1px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 20px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 50px;
}

.footer-brand .footer-logo {
    width: 100px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Aplica efeito branco em qualquer logo */
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-contact p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 5px;
}

.footer-contact a {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-legal span {
    color: rgba(255,255,255,0.4);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: var(--text-light);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-wa 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsividade Global */
@media (max-width: 1024px) {
    .project-card { flex: 0 0 calc(50% - 15px); }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-wrapper {
        order: 2;
        padding: 20px;
    }
    
    .about-text-wrapper {
        order: 1;
        text-align: center;
    }
    
    .about-text-wrapper .section-title {
        text-align: center;
        font-size: 2.8rem;
    }
    
    .image-placeholder-about {
        height: 450px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .island-header {
        top: 20px;
        padding: 10px 20px;
        width: 95%; /* Volta a ocupar bastante tela em mobile devido a falta de espaço */
        border-radius: 25px;
    }

    .island-nav {
        flex-direction: row; /* Logo left, hamburger right */
        justify-content: space-between;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .hamburger {
        display: flex; /* Show only on mobile */
    }

    .island-logo img {
        height: 35px;
        width: auto;
    }

    .island-menu {
        position: absolute;
        top: calc(100% + 15px); /* Just below the pill */
        left: 0;
        width: 100%;
        background: rgba(30, 30, 30, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        gap: 15px;
    }
    
    .island-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .island-menu a {
        padding: 10px 20px;
        font-size: 0.95rem;
        width: 80%; /* Expand touch target */
        text-align: center;
    }
    
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content { margin-top: auto; margin-bottom: auto; }
    
    .section-title { font-size: 2.2rem; }
    .project-card { flex: 0 0 85%; }
    .carousel-container { overflow-x: auto; padding-left: 10px; }
    .carousel-btn { display: none; }

    .banner-placeholder { height: 250px; }
    .banner-placeholder p { font-size: 0.9rem; letter-spacing: 2px; }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-nav ul {
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}
