/* ===== RESET & BASE STYLES ===== */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'DIN2014', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #070707;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #070707;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #070707;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #ffffff;
    color: #070707;
    border-color: #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #999999;
    font-weight: 300;
}

.highlight {
    font-weight: bold;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-link {
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #cccccc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.language-btn:hover {
    color: #cccccc;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #ffffff;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.nav-mobile.active {
    display: block;
}

.nav-mobile-menu {
    list-style: none;
    text-align: center;
    margin-bottom: 2rem;
}

.nav-mobile-menu li {
    margin-bottom: 1rem;
}

.nav-mobile-link {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-mobile-link:hover {
    color: #cccccc;
}

.nav-mobile-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== HERO VIDEO CONTAINER - AJUSTE DE Z-INDEX ===== */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Mantém o vídeo atrás do overlay e conteúdo */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    /* Fica entre o vídeo e o conteúdo da hero */
}

.hero-content {
    text-align: center;
    z-index: 2;
    /* Texto da hero sempre visível */
    position: relative;
    padding-top: 6rem; /* Ajuste conforme altura real do header */
}

.hero-title {
    font-size: 4rem;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title .highlight {
    font-weight: bold;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: 4rem 0;
    /* Reduzido de 6rem para diminuir espaço */
    background-color: #070707;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-icon:hover {
    background-color: #ffffff;
    color: #070707;
}

.portfolio-icon i {
    font-size: 1.5rem;
}

.portfolio-cta {
    text-align: center;
}

/* ===== CLIENTS SECTION ===== */
.clients {
    padding: 6rem 0;
    background-color: #0a0a0a;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.7;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    max-height: 60px;
    width: auto;
}

/* ===== SPONSORS SECTION ===== */
.sponsors {
    padding: 6rem 0;
    background-color: #070707;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sponsors-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.1);
}

.sponsor-logo img {
    max-height: 80px;
    width: auto;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 6rem 0;
    background-color: #0a0a0a;
    margin-bottom: 0;
    padding-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
}

.service-item {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.service-icon {
    margin-bottom: 2rem;
}

.service-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto;
}

.service-content {
    max-width: 500px;
    margin: 0 auto;
}

.service-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #999999;
    font-weight: 300;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 4rem 0;
    background-color: #0a0a0a;
    text-align: center;
    margin-top: 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.contact-btn i {
    font-size: 1.5rem;
    color: #25D366;
}

/* ===== VIDEO MODAL ===== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-modal video {
    width: 100%;
    height: auto;
}

.portfolio-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image video {
    transform: scale(1.1);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0;
    background-color: #070707;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-copyright {
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {

    /* Header */
    .nav-desktop,
    .header-right {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        height: 30vh;
        /* Reduzido de 100vh */
        min-height: 300px;
    }

        .hero-video-container {
            z-index: 1;
        }
    
        .hero-overlay {
            z-index: 5;
        }
    
        .hero-content {
            z-index: 10;
            padding-top: 5rem;
            /* Ajustável conforme o tamanho do header mobile */
        }

    .hero-content {
        padding-top: 5rem;
        /* Garante que o conteúdo não fique atrás do header */
    }

    .hero-title {
        font-size: 2rem;
        padding: 0 1rem;
    }

    /* Portfolio - REDUZ ESPAÇAMENTO */
    .portfolio {
        margin-top: 0;
        padding-top: 1rem;
        /* Reduz espaço extra */
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .sponsors-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .header,
    .scroll-indicator,
    .footer {
        display: none;
    }

    .hero-video-container {
        display: none;
    }

    .hero {
        background: #000;
        height: auto;
        padding: 2rem 0;
    }

    body,
    p,
    div,
    span,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}