/* 
   Cid Vasques Advocacia - Premium Dark Theme Stylesheet
   Designed for maximum elegance, performance, and responsiveness.
*/

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-base: #0f1013;       /* Deeper dark background */
    --color-bg-surface: #1a1c22;    /* Dark slate gray card background */
    --color-bg-card: #22252e;       /* Slightly lighter gray for active elements */
    --color-primary: #d1b78e;       /* Rich elegant Gold / Champagne accent */
    --color-primary-dark: #a88e63;  /* Darker gold for borders and lines */
    --color-primary-light: #f7e6cc; /* Light champagne for highlights */
    
    --color-text-main: #f5f6f8;     /* Off-white readable body text */
    --color-text-muted: #abb1bf;    /* Muted gray for descriptions/subtexts */
    --color-text-dark: #121316;     /* Dark text for contrast elements if needed */
    
    /* Typography */
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Roboto Slab', Georgia, serif;
    
    /* Layout */
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Selection Color */
::selection {
    background-color: var(--color-primary-dark);
    color: var(--color-text-main);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-base);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

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

::-webkit-scrollbar-track {
    background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
    border: 2px solid var(--color-bg-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* ==========================================================================
   3. REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

.section-padding {
    padding: 8rem 0;
}

.dark-bg {
    background-color: #0b0c0f;
}

.grid {
    display: grid;
    gap: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-2-large {
    grid-template-columns: 1.2fr 0.8fr;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

.text-gray {
    color: var(--color-text-muted);
}

/* Title Decorations */
.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.2;
}

.section-desc {
    max-width: 650px;
    margin: 1.5rem auto 0 auto;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 1.5rem 0 2rem 0;
    border-radius: 2px;
}

.divider.center {
    margin: 1.5rem auto 3rem auto;
}

/* Frame Decoration for portraits */
.frame-decoration {
    position: relative;
    display: inline-block;
}

.frame-decoration::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--color-primary);
    z-index: -1;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.frame-decoration:hover::after {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
}

/* ==========================================================================
   4. HERO HEADER SECTION
   ========================================================================== */
#hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: flex-end; /* Align content to the bottom */
    justify-content: center;
    overflow: hidden;
    padding-bottom: 8rem; /* Space at the bottom */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Overlay completely transparent as requested */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-scroll-btn {
    display: inline-block;
    color: #ffffff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background-color: rgba(15, 16, 19, 0.3);
}

.hero-scroll-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(209, 183, 142, 0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================================================
   5. SOBRE SECTION & EINSTEIN QUOTE
   ========================================================================== */
#sobre .sobre-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#sobre .sobre-img {
    max-width: 400px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#sobre .sobre-text p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    text-align: justify;
}

#sobre .sobre-text p:first-of-type {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.7;
    font-family: var(--font-serif);
}

/* Quote container and box styles */
.quote-container {
    margin-top: 6rem;
}

.quote-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--color-bg-surface);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 2rem;
    color: rgba(209, 183, 142, 0.1);
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.5;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.quote-author {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.quote-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   6. ÁREAS DE ATUAÇÃO (CARDS)
   ========================================================================== */
#areas .card {
    background-color: var(--color-bg-surface);
    padding: 3rem 2rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

#areas .card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary-dark);
    box-shadow: 0 15px 30px rgba(209, 183, 142, 0.08);
}

#areas .card-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

#areas .card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
}

#areas .card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   7. TRAJETÓRIA E FORMAÇÃO (TIMELINE & INFO BLOCK)
   ========================================================================== */
#trajetoria .formacao-col {
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    padding: 4rem 3.5rem;
    box-shadow: 0 10px 35px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#trajetoria .info-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

#trajetoria .info-block-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

#trajetoria .info-block-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#trajetoria .info-block-content p.institution {
    color: var(--color-text-muted);
    font-size: 1rem;
}

#trajetoria .info-block-content ul li {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

#trajetoria .info-block-content ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

#trajetoria .formacao-img-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

#trajetoria .formacao-img {
    max-width: 320px;
    border-radius: 4px;
    border: 1px solid rgba(209, 183, 142, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Timeline specific styles */
#trajetoria .timeline-col {
    padding-left: 2rem;
}

.timeline {
    position: relative;
    border-left: 2px solid var(--color-bg-surface);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 3px solid var(--color-bg-base);
    left: calc(-2rem - 8px);
    top: 5px;
    transition: var(--transition-smooth);
}

.timeline-item:hover::before {
    background-color: #ffffff;
    box-shadow: 0 0 10px var(--color-primary);
}

.timeline-date {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
}

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

/* ==========================================================================
   8. INFORMAÇÕES ADICIONAIS (CARDS)
   ========================================================================== */
#informacoes-adicionais .info-card {
    background-color: var(--color-bg-surface);
    padding: 2.5rem;
    border-radius: 6px;
    border-top: 3px solid var(--color-primary-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    height: 100%;
}

.info-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card-title i {
    color: var(--color-primary);
}

.info-card-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.info-card-body ul li {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.2rem;
}

.info-card-body ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ==========================================================================
   9. GALERIA DA TRAJETÓRIA (CSS GRID UNIFORM THUMBS)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 0 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    height: 180px; /* Fixed height for uniform thumbnails */
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 16, 19, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 1rem;
}

.gallery-overlay span {
    font-family: var(--font-sans);
    color: var(--color-primary-light);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-align: center;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

/* ==========================================================================
   10. LIGHTBOX MODAL WITH NAVIGATION
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 13, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(209, 183, 142, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.show .lightbox-content img {
    transform: scale(1);
}

#lightbox-caption {
    color: var(--color-primary);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1010;
}

.lightbox-close:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 28, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
    z-index: 1010;
}

.lightbox-nav:hover {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(209, 183, 142, 0.4);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* ==========================================================================
   11. PARCERIA / ATIVIDADES CONSORCIADAS
   ========================================================================== */
#parceria .parceria-text h3.parceiro-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

#parceria .parceria-text span.parceiro-title {
    font-family: var(--font-sans);
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 700;
}

#parceria .parceria-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.7;
}

#parceria .parceria-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#parceria .parceiro-img {
    max-width: 320px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ==========================================================================
   12. O ESCRITÓRIO (SLIDER DE IMAGENS)
   ========================================================================== */
.office-slider {
    position: relative;
    max-width: 900px;
    margin: 4rem auto 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.02);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    aspect-ratio: 16 / 9;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(15, 16, 19, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    pointer-events: auto;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border-color: var(--color-primary);
}

/* ==========================================================================
   13. CONTATO & SHORTCUTS CARD (NO FORM)
   ========================================================================== */
.contato-intro-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3.5rem;
}

.contato-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contato-item {
    display: flex;
    gap: 1.5rem;
}

.contato-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-surface);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
}

.contato-text h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.contato-text p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contato-text p a {
    color: var(--color-text-muted);
}

.contato-text p a:hover {
    color: var(--color-primary);
}

/* Contact shortcuts card replacement styles */
.contact-shortcuts-card {
    background-color: var(--color-bg-surface);
    padding: 3.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-shortcuts-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(209, 183, 142, 0.2));
}

.contact-shortcuts-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-shortcuts-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    max-width: 380px;
    line-height: 1.6;
}

.contact-buttons-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.btn-contact {
    width: 100%;
    padding: 1.1rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: #ffffff;
}

.btn-email {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}

.btn-email:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 183, 142, 0.3);
    color: var(--color-text-dark);
}

.btn-maps {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-maps:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   14. FOOTER SECTION (CENTERED LOGO)
   ========================================================================== */
footer {
    background-color: #0b0c0f;
    padding: 5rem 0 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem auto; /* Horizontally centered with margin auto */
    display: block;
    opacity: 0.8;
}

footer .copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer .developer {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   15. INTERACTION BUTTONS (BACK TO TOP)
   ========================================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

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

.back-to-top-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   16. ANIMATIONS & SCROLL FADE-IN
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Base keyframe animations */
.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

#hero .animate-slide-up:nth-child(1) {
    animation-delay: 0.2s;
}

#hero .animate-slide-up:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ==========================================================================
   17. MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .section-padding {
        padding: 6rem 0;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        letter-spacing: 4px;
    }
    
    .grid-2-large {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    #hero {
        padding-bottom: 6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        letter-spacing: 3px;
        margin-bottom: 2rem;
    }
    
    #sobre .sobre-img {
        max-width: 100%;
    }
    
    #trajetoria .formacao-col {
        padding: 2.5rem 2rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
        margin-left: 0.5rem;
    }
    
    .timeline-item::before {
        left: calc(-1.5rem - 8px);
    }
    
    .quote-box {
        padding: 2rem 1.5rem;
    }
    
    .quote-text {
        font-size: 1.3rem;
    }
    
    .back-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-close { top: 1rem; right: 1.5rem; }
}
