:root {
    --primary: #d4af37; /* Premium Gold */
    --primary-dark: #b5952f;
    --primary-light: #eadd9f;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #ffffff;
    --bg-light-alt: #f4f4f4;
    --bg-card: rgba(15, 15, 15, 0.7);
    --text-dark: #f0f0f0;
    --text-light: #1a1a1a;
    --text-muted: #999999;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body, html {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-light-alt);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

.section {
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 2px;
    background: var(--primary);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.text-light {
    color: var(--bg-light);
}

.dark-bg {
    background-color: var(--bg-darker);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('primeira_imagem.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent; /* Removido o filtro escuro */
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    animation: fadeIn 1.5s ease-out;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
    color: #ffffff;
    /* Sombra pesada para fazer o texto sobressair em qualquer fundo claro/escuro */
    text-shadow: 
        0px 4px 20px rgba(0,0,0,0.9), 
        0px 0px 40px rgba(0,0,0,0.8),
        2px 2px 4px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: var(--font-body);
    text-shadow: 0px 2px 10px rgba(0,0,0,0.9), 0px 0px 20px rgba(0,0,0,0.8);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 3rem;
    font-weight: 400;
    font-family: var(--font-heading);
    color: var(--bg-light);
    text-shadow: 0px 4px 15px rgba(0,0,0,0.9), 0px 0px 30px rgba(0,0,0,0.8);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.9), 0px 0px 20px rgba(0,0,0,0.8);
}

.btn {
    display: inline-block;
    padding: 16px 45px;
    background: transparent;
    color: var(--primary);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--primary);
    border-radius: 0;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--bg-dark);
}

.btn:hover::before {
    width: 100%;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    z-index: 0;
}

.about-image img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.about-image img:hover {
    filter: grayscale(0%);
}

.about-info {
    padding: 20px;
}

.info-name {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--bg-dark);
}

.info-list {
    list-style: none;
    margin-bottom: 40px;
}

.info-list li {
    margin-bottom: 20px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    color: #444;
}

.info-list li strong {
    color: var(--bg-dark);
    font-weight: 600;
}

.accolade {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--bg-dark);
    padding: 25px;
    text-align: center;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.accolade strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-top: 5px;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-darker);
    position: relative;
}

.stats-subtitle {
    text-align: center;
    color: var(--primary);
    margin-bottom: 60px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.stats-overview-box {
    display: flex;
    justify-content: space-around;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 80px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.overview-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.overview-val {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 5px;
}

.overview-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Vertical Timeline */
.vertical-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(212, 175, 55, 0.3);
    transform: translateX(-50%);
}

.v-timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 80px;
}

.v-timeline-item.left {
    left: 0;
    padding-right: 50px;
}

.v-timeline-item.right {
    left: 50%;
    padding-left: 50px;
}

.v-timeline-dot {
    position: absolute;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    z-index: 2;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.v-timeline-item.left .v-timeline-dot {
    right: -7px;
}

.v-timeline-item.right .v-timeline-dot {
    left: -7px;
}

.v-timeline-content {
    background: #141414;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.v-timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
}

.v-timeline-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

.v-year {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.v-timeline-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v-goals {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-body);
}

.v-timeline-list {
    list-style: none;
}

.v-timeline-list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.v-timeline-list li strong {
    color: #fff;
    font-weight: 500;
}

.v-timeline-note {
    font-size: 0.75rem;
    color: #555;
    margin-top: 20px;
    font-style: italic;
}

/* Video Section */
.video-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.video-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-darker);
}

.gallery-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2px; /* Cinematic tight grid */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: #111;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img, .gallery-item:hover video {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(212, 175, 55, 0.4), transparent);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    color: var(--text-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-title {
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-link:hover {
    color: var(--primary);
}

.copyright {
    color: #444;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Pagination Styles */
.pagination-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.items-per-page {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.items-per-page select {
    background: #111;
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: var(--font-body);
    margin-left: 10px;
    cursor: pointer;
}

.pagination-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-btn {
    background: #111;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    font-weight: bold;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border-radius: 10px;
}

#modal-video {
    display: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 4px;
    z-index: 10000;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-prev:hover, .modal-next:hover {
    background-color: var(--primary);
    color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    
    .about-image::after {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Typgraphy and Layout basics */
    .hero {
        background-attachment: scroll; /* Fixes massive zoom on iOS */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .stats-overview-box {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    /* Video Box */
    .video-container::before {
        display: none;
    }
    
    /* Vertical Timeline Mobile Fix */
    .vertical-timeline::before {
        left: 20px;
    }
    
    .v-timeline-item {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .v-timeline-item.left, 
    .v-timeline-item.right {
        left: 0;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .v-timeline-dot,
    .v-timeline-item.left .v-timeline-dot,
    .v-timeline-item.right .v-timeline-dot {
        left: 13px;
        right: auto;
    }
    
    /* Gallery Grid Mobile Fix */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
    }
    
    /* Modal Navigation Mobile */
    .modal-prev, .modal-next {
        font-size: 24px;
        padding: 10px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
}

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

/* --- Premium Animations & Micro-Interactions --- */

/* Scroll Reveal */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Effects for Overview Items */
.stats-overview-box .overview-item:nth-child(1) { transition-delay: 0.1s; }
.stats-overview-box .overview-item:nth-child(2) { transition-delay: 0.2s; }
.stats-overview-box .overview-item:nth-child(3) { transition-delay: 0.3s; }
.stats-overview-box .overview-item:nth-child(4) { transition-delay: 0.4s; }

/* Stagger Effects for Contact Links */
.contact-links .contact-link:nth-child(1) { transition-delay: 0.1s; }
.contact-links .contact-link:nth-child(2) { transition-delay: 0.2s; }
.contact-links .contact-link:nth-child(3) { transition-delay: 0.3s; }

/* Hover Micro-Interactions */
.overview-item {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-8px);
}

.contact-link i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--primary-light);
}
