html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        to bottom,
        transparent,
        var(--brand-color) 30%,
        var(--brand-color) 70%,
        transparent
    );
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        to bottom,
        transparent,
        #94390e 30%,
        #94390e 70%,
        transparent
    );
    background-clip: content-box;
}

:root {
    --bg-color: rgb(4, 7, 13);
    --text-primary: rgb(228, 233, 242);
    --text-secondary: rgba(228, 233, 242, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --pill-bg: rgba(255, 255, 255, 0.03);
    
    /* Branding color CriaWeb */
    --brand-color: #7c300c;
    --brand-color-glow: rgba(124, 48, 12, 0.6);
    
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Instrument Serif', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preloader */
.no-scroll {
    overflow: hidden !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

#preloader::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.15),
        rgba(0,0,0,0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 10;
    pointer-events: none;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.glitch-wrapper {
    position: relative;
    width: clamp(200px, 30vw, 450px);
    opacity: 0;
    animation: glitch-wrapper-fade-in 1s ease-in forwards;
}

@keyframes glitch-wrapper-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.glitch-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: glitch-reveal-base 2s forwards;
}

.glitch-wrapper::before,
.glitch-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/sem fundo preto.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.glitch-wrapper::before {
    left: 3px;
    filter: drop-shadow(-3px 0 0 rgba(255, 0, 255, 0.8));
    animation: glitch-anim-1 0.75s infinite linear alternate-reverse;
    mix-blend-mode: screen;
}

.glitch-wrapper::after {
    left: -3px;
    filter: drop-shadow(3px 0 0 rgba(0, 255, 0, 0.8));
    animation: glitch-anim-2 0.85s infinite linear alternate-reverse;
    mix-blend-mode: screen;
}

.glitch-wrapper.glitch-fixed::before,
.glitch-wrapper.glitch-fixed::after {
    display: none;
    animation: none;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(5% 0 90% 0); transform: translate(-3px, 0); }
    10% { clip-path: inset(25% 0 70% 0); transform: translate(3px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 0); }
    30% { clip-path: inset(30% 0 65% 0); transform: translate(3px, 0); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(-3px, 0); }
    50% { clip-path: inset(45% 0 50% 0); transform: translate(3px, 0); }
    60% { clip-path: inset(10% 0 85% 0); transform: translate(-3px, 0); }
    70% { clip-path: inset(75% 0 20% 0); transform: translate(3px, 0); }
    80% { clip-path: inset(15% 0 80% 0); transform: translate(-3px, 0); }
    90% { clip-path: inset(55% 0 40% 0); transform: translate(3px, 0); }
    100% { clip-path: inset(35% 0 60% 0); transform: translate(-3px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 85% 0); transform: translate(3px, 0); }
    10% { clip-path: inset(40% 0 55% 0); transform: translate(-3px, 0); }
    20% { clip-path: inset(70% 0 25% 0); transform: translate(3px, 0); }
    30% { clip-path: inset(20% 0 75% 0); transform: translate(-3px, 0); }
    40% { clip-path: inset(90% 0 5% 0); transform: translate(3px, 0); }
    50% { clip-path: inset(50% 0 45% 0); transform: translate(-3px, 0); }
    60% { clip-path: inset(30% 0 65% 0); transform: translate(3px, 0); }
    70% { clip-path: inset(85% 0 10% 0); transform: translate(-3px, 0); }
    80% { clip-path: inset(65% 0 30% 0); transform: translate(3px, 0); }
    90% { clip-path: inset(5% 0 90% 0); transform: translate(-3px, 0); }
    100% { clip-path: inset(75% 0 20% 0); transform: translate(3px, 0); }
}

@keyframes glitch-reveal-base {
    0% { opacity: 0; filter: blur(5px); }
    20% { opacity: 0; filter: blur(3px); }
    30% { opacity: 0.2; transform: scale(1.02); filter: blur(0); }
    35% { opacity: 0; }
    60% { opacity: 0.4; }
    65% { opacity: 0; }
    80% { opacity: 0.7; transform: scale(1.01); }
    85% { opacity: 0; }
    95% { opacity: 0.9; }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Helpers */
.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--brand-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    z-index: 100;
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 38px; /* Ajuste para o logo ficar legível */
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    margin-top: 4px;
}

.nav-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--pill-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 6px;
    backdrop-filter: blur(10px);
}

.nav-pills a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
}

.nav-pills a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--brand-color);
}

.btn-template {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--brand-color);
    border: 1px solid var(--brand-color-glow);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: background 0.2s, box-shadow 0.2s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-template:hover {
    background: #63260a;
    box-shadow: 0 0 15px var(--brand-color-glow);
    transform: translateY(-1px);
    transition: background 0.2s, box-shadow 0.2s; /* Remove transform transition on hover */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 80px;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(124, 48, 12, 0.5) 0%, rgba(4, 7, 13, 1) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--brand-color-glow);
    background: rgba(124, 48, 12, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.pill-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-color-glow);
}

.pill-badge.style-dark {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.pill-badge .star-icon {
    color: var(--brand-color);
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: -0.02em;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .serif-italic {
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    border: 1px solid var(--brand-color-glow);
    background: var(--brand-color);
    backdrop-filter: blur(10px);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-book:hover {
    background: #94390e;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px var(--brand-color-glow);
    transform: translateY(-2px);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; /* Remove transform transition on hover */
}

.hero-socials {
    margin-top: 48px;
    z-index: 10;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.social-icon {
    color: rgba(255,255,255,0.3);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.social-icon:hover {
    color: var(--brand-color);
    transform: translateY(-2px);
}

.separator {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.1);
}

/* Quote Section */
.quote-section {
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
}

.quote-container {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-text {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 40px;
    color: var(--text-secondary);
    transition: color 1s ease-in-out;
}

.quote-text.active {
    color: var(--text-primary);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    padding: 8px 24px 8px 8px;
    border-radius: 100px;
}

.avatar-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff; /* Fundo branco para a logo preta sobressair */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.author-avatar {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Animations */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .quote-text {
        font-size: 1.8rem;
    }
    .nav-container {
        padding: 0;
    }
    .navbar {
        padding: 20px 20px;
    }
}

/* --- Vertical Timeline Section --- */
.experience-section {
    position: relative;
    padding: 8rem 0 2rem 0;
    overflow: hidden;
    width: 100%;
}

.timeline-outer {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 10;
}

.timeline-body {
    padding-top: 2rem;
}

.timeline-v-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
}

.timeline-v-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--brand-color), #e04a00);
    box-shadow: 0 0 20px var(--brand-color-glow);
    border-radius: 2px;
    transition: height 0.1s linear;
}

.timeline-item-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 6rem;
}

/* Base logic for all items */
.timeline-item-content {
    width: 50%;
    position: relative;
    display: flex;
}

/* Odd -> Content on Left */
.timeline-item-wrapper:nth-child(odd) {
    justify-content: flex-start;
}
.timeline-item-wrapper:nth-child(odd) .timeline-item-content {
    justify-content: flex-end;
    padding-right: 5rem;
}

/* Even -> Content on Right */
.timeline-item-wrapper:nth-child(even) {
    justify-content: flex-end;
}
.timeline-item-wrapper:nth-child(even) .timeline-item-content {
    justify-content: flex-start;
    padding-left: 5rem;
}

.timeline-v-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--brand-color);
    border-radius: 50%;
    z-index: 20;
    box-shadow: 0 0 15px var(--brand-color-glow);
}

.timeline-card-glass {
    background: var(--pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--brand-color); /* Borda colorida por padrão agora */
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 450px;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: left;
}

.timeline-card-glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--brand-color-glow), 0 0 10px rgba(124, 48, 12, 0.2); /* Efeito de luz em volta */
    border-color: #ff5e14; /* Borda acende levemente no hover */
}

/* Área de detecção extra para evitar tremor no deslocamento vertical */
.timeline-card-glass::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
}

.timeline-v-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--brand-color);
    white-space: nowrap;
    filter: saturate(0); /* Saturação baixa por padrão */
    opacity: 0.3; /* Opacidade reduzida para reforçar o efeito de desativado */
    transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-v-year.active {
    filter: saturate(1);
    opacity: 1;
}

.timeline-v-dot.active {
    background: var(--brand-color);
    box-shadow: 0 0 20px var(--brand-color-glow), 0 0 40px var(--brand-color-glow);
    transform: translate(-50%, -50%) scale(1.2);
}

/* Year on the opposite side of the card */
.timeline-item-wrapper:nth-child(odd) .timeline-v-year {
    left: calc(100% + 4rem);
}

.timeline-item-wrapper:nth-child(even) .timeline-v-year {
    right: calc(100% + 4rem);
}

@media (max-width: 768px) {
    .timeline-v-line, .timeline-v-progress, .timeline-v-dot {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-item-wrapper {
        flex-direction: column;
        margin-bottom: 8rem; /* Aumentado para dar espaço ao ano absoluto */
    }
    
    .timeline-item-content {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
        flex-direction: column;
        position: relative;
    }
    
    .timeline-card-glass {
        order: 1;
    }

    .timeline-v-year {
        display: block !important;
        position: absolute !important;
        top: calc(100% + 1.2rem) !important;
        left: 2.5rem !important;
        transform: none !important;
        margin: 0 !important;
        font-size: 2.2rem;
        width: fit-content;
        /* Removido opacity/filter !important para permitir animação JS */
    }
}

/* --- Projects Showcase --- */
.projects-section {
    position: relative;
    padding: 2rem 2rem 10rem;
    background: var(--bg-color);
    width: 100%;
    perspective: 2000px;
}

.proj-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.proj-bg {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-color-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
}

.glow-blob:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 800px;
    height: 800px;
    animation: float-glow 20s infinite alternate ease-in-out;
}

.glow-blob:nth-child(2) {
    bottom: 10%;
    right: -5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 48, 12, 0.4) 0%, transparent 70%);
    animation: float-glow 25s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}

.glow-blob:nth-child(3) {
    top: 40%;
    left: 30%;
    width: 500px;
    height: 500px;
    opacity: 0.2;
    animation: float-glow 18s infinite alternate ease-in-out;
    animation-delay: -2s;
}

.glow-blob:nth-child(4) {
    bottom: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    animation: float-glow 22s infinite alternate-reverse ease-in-out;
    animation-delay: -10s;
}

@keyframes float-glow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    33% {
        transform: translate(10%, 15%) scale(1.1);
        opacity: 0.4;
    }
    66% {
        transform: translate(-5%, 20%) scale(0.9);
        opacity: 0.3;
    }
    100% {
        transform: translate(5%, -5%) scale(1.05);
        opacity: 0.25;
    }
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30vh;
    margin-top: 6rem;
    position: relative;
    padding-bottom: 30vh;
}

/* Base Project Card */
.project-card {
    position: sticky;
    top: 20vh; /* Fixo perfeitamente no mesmo centro, sem offsets */
    width: 100%;
    aspect-ratio: 21 / 9;
    background: transparent; /* Card pai agora é invisível, serve apenas de sensor */
    border: none;
    overflow: visible; 
    display: block;
    cursor: pointer;
}

.project-card:nth-child(1) { --index: 0; z-index: 1; }
.project-card:nth-child(2) { --index: 1; z-index: 2; }
.project-card:nth-child(3) { --index: 2; z-index: 3; }
.project-card:nth-child(4) { --index: 3; z-index: 4; }
.project-card:nth-child(5) { --index: 4; z-index: 5; }
.project-card:nth-child(6) { --index: 5; z-index: 6; }
.project-card:nth-child(7) { --index: 6; z-index: 7; }

.project-stack-wrapper {
    width: 100%;
    height: 100%;
    transform-origin: top center;
    will-change: transform, filter;
}

.project-card-visual {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color); /* Fundo sólido transportado para dentro do elemento 3D */
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)); /* Sobreposição de vidro */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-subtle);
    border-radius: 2.5rem;
    overflow: hidden; /* Corta as imagens nas bordas arredondadas */
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    will-change: transform;
    pointer-events: none;
}

.project-card.visible .project-card-visual {
    opacity: 1;
}

.project-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124, 48, 12, 0.15),
        transparent 40%
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
}

.project-card:hover .project-card-visual {
    border-color: var(--brand-color);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(124, 48, 12, 0.05);
    transition: box-shadow 0.5s ease;
}

.project-card:hover .project-card-visual::before {
    opacity: 1;
}

/* Inner Layout Elements */
.project-inner-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.5;
}

.project-img-wrapper {
    position: absolute;
    top: 50%;
    right: -5%;
    width: 60%;
    height: 120%;
    transform: translateY(-50%) skew(-5deg) rotate(5deg);
    z-index: 1;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-img-wrapper {
    transform: translateY(-50%) skew(0deg) rotate(0deg) scale(1.05);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-info {
    position: relative;
    z-index: 10;
    padding: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 50%;
    transform: translateZ(50px);
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.project-meta .company {
    color: var(--brand-color);
    font-weight: 700;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 0.9;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
    max-width: 400px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
}

@media (max-width: 1024px) {
    .project-card {
        aspect-ratio: auto;
        min-height: 500px;
    }
    .project-info {
        max-width: 100%;
        padding: 3rem;
    }
    .project-img-wrapper {
        opacity: 0.3;
        width: 100%;
        height: 100%;
        right: 0;
        top: 0;
        transform: none;
    }
    .project-card:hover .project-img-wrapper {
        transform: none;
    }
    .project-title {
        font-size: 2.5rem;
    }
}

/* --- Feedbacks Section --- */
.feedbacks-section {
    padding: 8rem 0;
    background: var(--bg-color);
    overflow: hidden;
}

.feedbacks-container {
    width: 100%;
    position: relative;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    position: relative;
    /* Máscara de desfoque nas laterais */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-row {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    will-change: transform;
}

/* Animações */
.scroll-left .marquee-content {
    animation: scroll-left 80s linear infinite;
}

.scroll-right .marquee-content {
    animation: scroll-right 80s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-50% - 1rem)); }
    100% { transform: translateX(0); }
}

/* Feedback Card Style */
.feedback-card {
    flex: 0 0 450px; /* Largura fixa para manter a proporção */
    background: var(--pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 2rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: border-color 0.3s ease;
}

.feedback-card:hover {
    border-color: var(--brand-color);
}

.stars {
    color: var(--brand-color);
    font-size: 1rem;
    letter-spacing: 2px;
}

.feedback-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

.feedback-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--brand-color);
}

.author-position {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .feedback-card {
        flex: 0 0 320px;
        padding: 1.5rem;
    }
    .marquee-container {
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    }
    .author-name {
        font-size: 1.2rem;
    }
}

/* --- Main Footer --- */
.main-footer {
    position: relative;
    padding: 100px 0 40px 0; /* Adicionado 40px de padding inferior */
    background-color: var(--bg-color);
    width: 100%;
}

.footer-glow-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-color) 30%, var(--brand-color) 70%, transparent);
    position: relative;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
}

.footer-glow-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15%;
    height: 2px;
    background: var(--brand-color);
    filter: blur(4px);
    animation: footer-line-pulse 2.5s infinite ease-in-out;
    border-radius: 50%;
}

@keyframes footer-line-pulse {
    0%, 100% {
        opacity: 0.1;
        transform: translateY(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scaleX(5);
        background: #ff5e14; /* Cor mais forte para pulso central e brilhante */
        box-shadow: 0 0 15px #ff5e14;
    }
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 20px; /* Reduzido de 80px */
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-color);
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--brand-color);
    transform: translateX(5px);
}

.footer-socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-social-link:hover {
    opacity: 1;
    color: var(--brand-color);
    transform: translateY(-5px);
}

.social-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social-link:hover .social-icon-wrapper {
    background: var(--brand-color);
    border-color: var(--brand-color);
    color: white;
    box-shadow: 0 0 15px var(--brand-color-glow);
}

.footer-huge-logo {
    width: 100%;
    margin-top: 0; /* Removido espaçamento superior */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    line-height: 0;
}

.huge-logo-img {
    width: 120%; /* Faz a logo transbordar levemente para as bordas conforme o efeito hi-res */
    max-width: none;
    height: auto;
    object-fit: contain;
    opacity: 0.15;
    transition: opacity 0.5s ease;
    user-select: none;
    pointer-events: none;
    transform: translateY(-10%); /* Puxado para cima para garantir visibilidade do texto inferior */
}

.main-footer:hover .huge-logo-img {
    opacity: 0.20;
}

/* Custom slow reveal for the logo */
.reveal-item.logo-slow {
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Copyright Style */
.footer-copyright {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 0.05em;
}

/* Responsividade do Rodapé */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding-top: 60px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-glow-line {
        margin-bottom: 40px;
    }
    .huge-logo-img {
        width: 100%;
        transform: translateY(0);
    }
}
