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

@font-face {
    font-family: 'Track';
    src: url(/site-midias-dtec/assets/track/style.css) format('woff2');
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

:root {
    --roxo-dtec: #30115F;
    --azul-dtec: #020526;
    --azul-esc-dtec: #0c0620;
    --amarelo-dtec: #ecc440;
    --cinza-raitec: #e6e6e6;
    --branco-puro: #ffffff;
}

body {
    margin: 0;
    background-color: var(--azul-dtec);
    color: var(--amarelo-dtec);
    overflow-x: hidden;
    width: 100%;
}

/* ------------------------------------------------------------
   MENU / HEADER
   ------------------------------------------------------------ */
   
header {
    display: flex;
    align-items: center;
    background: #050547;
    height: 100px;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    font-family: "Maven Pro", sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo-dtec {
    width: 220px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

.ul-menu {
    list-style: none;
    display: flex;
    gap: 48px;
    align-items: center;
}

.a-menu {
    text-decoration: none;
    color: var(--amarelo-dtec);
    font-size: 1.1rem;
    font-family: "Maven Pro", sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding-bottom: 4px;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.a-menu::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--branco-puro);
    transition: width 0.3s ease;
}

.a-menu:hover { color: var(--branco-puro); }
.a-menu:hover::after { width: 100%; }
.a-menu.active { color: var(--branco-puro); }
.a-menu.active::after { width: 100%; }

#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

#menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--amarelo-dtec);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animação X ao abrir */
#menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay */
#nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}

#nav-overlay.active { display: block; }

/* ------------------------------------------------------------
   HERO / MAIN
   ------------------------------------------------------------ */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-img {
    max-width: 80%;
    height: auto;
}

/* ------------------------------------------------------------
   COUNTDOWN / PARALLAX
   ------------------------------------------------------------ */

section:has(#parallax-spacer) {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

#parallax-spacer {
    height: 300vh;
    position: relative;
    width: 100%;
    background-color: var(--cinza-raitec);
}

#countdown {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--cinza-raitec);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    overflow: visible;
    clip-path: inset(0 0 0 0);
    padding: 60px 20px;
    box-sizing: border-box;
}

.countdown-title {
    font-family: "Maven Pro", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--azul-esc-dtec);
    letter-spacing: 2px;
    text-align: center;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.countdown-number {
    font-family: "Track", sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--roxo-dtec);
    line-height: 1;
}

.countdown-label {
    font-family: "Track", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--roxo-dtec);
}

.countdown-sep {
    font-family: "Track", sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--roxo-dtec);
    line-height: 1;
    margin-bottom: 22px;
}

.CTA-btn {
    background-color: var(--amarelo-dtec);
    color: var(--roxo-dtec);
    border: 2.5px solid var(--roxo-dtec);
    font-family: "Maven Pro", sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 14px 36px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.CTA-btn:hover {
    background-color: var(--roxo-dtec);
    color: var(--amarelo-dtec);
}

.css-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: var(--amarelo-dtec);
    border-top: 6px solid var(--roxo-dtec);
    border-bottom: 6px solid var(--roxo-dtec);
    z-index: 1;
}

.css-track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--azul-esc-dtec);
    transform: translateY(-50%);
}

.car-img {
    position: absolute;
    bottom: -4px;
    left: -180px;
    width: 60px;
    height: auto;
    transform: rotate(90deg);
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

/* ------------------------------------------------------------
   SOBRE
   ------------------------------------------------------------ */
.about {
    background-color: var(--azul-esc-dtec);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 32px;
}

.about-tittle-ctn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.about-tittle {
    font-family: "Track", sans-serif;
    font-size: 2rem;
    color: var(--cinza-raitec);
}

#about-tittle-img {
    height: 8rem;
    width: auto;
}

.about-txt {
    font-family: "Maven Pro", sans-serif;
    padding-top: 12px;
    padding-bottom: 40px;
    max-width: 70%;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.2rem;
    text-align: justify;
    color: var(--cinza-raitec);
}

#sponsors {
    display: flex;
    gap: 200px;
    height: 8rem;
    width: auto;
    margin-bottom: -60px;
}

/* ------------------------------------------------------------
   CARROSSEL
   ------------------------------------------------------------ */
.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto 100px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-track-ctn {
    overflow: hidden;
    border-radius: 12px;
    flex: 1;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.carousel-arrow {
    background: rgba(255,255,255,0.15);
    border: 2px solid var(--azul-esc-dtec);
    color: var(--azul-esc-dtec);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.carousel-arrow:hover {
    background: var(--amarelo-dtec);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--azul-esc-dtec);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
}

.carousel-dot.active {
    background: var(--amarelo-dtec);
    transform: scale(1.3);
}

/* ------------------------------------------------------------
   CRONOGRAMA / SLIDER
   ------------------------------------------------------------ */
.themes {
    background-color: var(--cinza-raitec);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    gap: 0;
}

.themes-tittle {
    font-family: "Track", sans-serif;
    border-bottom: 4px solid var(--amarelo-dtec);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--azul-esc-dtec);
}

.slider-wrapper {
    margin-top: -20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.themes-ctn {
    padding-top: 40px;
    width: 80%;
    overflow: hidden;
    border-radius: 36px;
    cursor: grab;
    user-select: none;
}

.themes-ctn.grabbing { cursor: grabbing; }

.slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.theme-card {
    display: flex;
    flex-shrink: 0;
    width: 100%;
    height: 400px;
    background-color: white;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.img-side { flex: 1; }

.img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-side {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-tittle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--azul-esc-dtec);
}

.card-txt {
    font-family: "Maven Pro", sans-serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--azul-esc-dtec);
    text-align: justify;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 10px;
}

.slider-dots { display: flex; gap: 10px; }

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #aaa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active { background-color: var(--amarelo-dtec); }

/* ------------------------------------------------------------
   FOOTER / RODAPÉ
   ------------------------------------------------------------ */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    background-color: var(--azul-dtec);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

footer a {
    text-decoration: none;
    color: var(--amarelo-dtec);
    font-size: 28px;
    transition: color 0.3s;
}

footer a:hover { color: var(--cinza-raitec); }

footer p {
    color: var(--cinza-raitec);
    font-size: 16px;
    margin: 0;
}

#img-footer { width: 160px; height: auto; }

/* ------------------------------------------------------------
   BOTÃO VOLTAR AO TOPO
   ------------------------------------------------------------ */
   
#back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--amarelo-dtec);
    color: var(--roxo-dtec);
    border: 2.5px solid var(--roxo-dtec);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99999;
}

#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: scale(1.1); background-color: var(--roxo-dtec); color: var(--amarelo-dtec); }

/* ------------------------------------------------------------
   RESPONSIVIDADE
   ------------------------------------------------------------ */

/* TABLETS */
@media (max-width: 1024px) {
    .ul-menu { gap: 28px; }
    .a-menu { font-size: 1rem; }
    #logo-dtec { width: 180px; }
    .countdown-number { font-size: 3.5rem; }
    .countdown-sep { font-size: 3rem; }
    .countdown-unit { min-width: 70px; }
    .about-txt { max-width: 85%; }
    #about-tittle-img { height: 6rem; }
    .themes-ctn { width: 90%; }
    .theme-card { height: 320px; }
    .card-tittle { font-size: 1.4rem; }
    .card-txt { font-size: 1.1rem; }
    .themes-tittle { font-size: 2.2rem; }
}

/* MOBILE */
@media (max-width: 768px) {

    /* HEADER */
    header { padding: 0 20px; height: 70px; }
    #logo-dtec { width: 130px; }

    #menu-toggle { display: flex; }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: #050547;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: right 0.35s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    }

    #main-nav.open { right: 0; }

    .ul-menu {
        flex-direction: column;
        gap: 36px;
        align-items: center;
    }

    .a-menu { font-size: 1.4rem; }

    /* MAIN */
    .hero { height: 50vh; }
    #hero-img { max-width: 95%; }

    /* COUNTDOWN */
    #parallax-spacer { height: 200vh; }
    #countdown { padding: 40px 16px 80px; gap: 20px; }
    .countdown-title { font-size: 1rem; }
    .countdown-number { font-size: 2.4rem; }
    .countdown-sep { font-size: 2rem; margin-bottom: 14px; }
    .countdown-unit { min-width: 52px; }
    .countdown-label { font-size: 0.6rem; }
    .CTA-btn { font-size: 0.85rem; padding: 10px 20px; }
    .css-track { height: 34px; }
    .car-img { width: 48px; }

    /* SOBRE */
    .about { padding: 40px 20px; }
    .about-tittle { font-size: 1.2rem; }
    #about-tittle-img { height: 4rem; }
    .about-txt { max-width: 100%; font-size: 0.95rem; }
    #sponsors { gap: 24px; height: auto; width: 80%; flex-wrap: wrap; justify-content: center; margin-bottom: 0; }

    /* CARROSSEL */
    .carousel-wrapper { margin: 1rem auto 50px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 1.2rem; }

    /* CRONOGRAMA */
    .themes { padding: 40px 16px; }
    .themes-tittle { font-size: 1.4rem; }
    .themes-ctn { width: 98%; }
    .theme-card { flex-direction: column; height: auto; border-radius: 20px; }
    .img-side { width: 100%; height: 180px; flex: none; }
    .card-tittle { font-size: 1.2rem; }
    .card-txt { font-size: 0.9rem; }

    /* RODAPÉ */
    footer { flex-direction: column; gap: 16px; padding: 20px; text-align: center; }
    .footer-left { justify-content: center; }
    footer p { font-size: 12px; }
    #img-footer { width: 120px; }

    /* VOLTAR AO TOPO */
    #back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.6rem; }
}

/* MOBILE PEQUENO */
@media (max-width: 480px) {
    .a-menu { font-size: 1.2rem; }
    .hero { height: 40vh; }
    .countdown-title { font-size: 0.8rem; }
    .countdown-number { font-size: 1.8rem; }
    .countdown-sep { font-size: 1.6rem; }
    .countdown-unit { min-width: 40px; }
    .about-tittle { font-size: 1rem; }
    #about-tittle-img { height: 3rem; }
    .themes-tittle { font-size: 1.2rem; }
}

/* TELAS LARGAS */
@media (min-width: 1440px) {
    .countdown-number { font-size: 5.5rem; }
    .countdown-sep { font-size: 5rem; }
    .about-txt { max-width: 55%; font-size: 1.3rem; }
    .themes-ctn { width: 70%; }
    .theme-card { height: 460px; }
}