:root {
    --primary: #000;
    --accent-yellow: #ffc107;
    --accent-green: #00FF7F;
    --accent-glow: rgba(255, 215, 0, 0.3);
    --text-light: #FFFFFF;
    --text-dark: #000000;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --orange: #FF6B35;
    --blue: #2E86AB;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    font-size: 15px;
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    min-height: 100vh;
    padding: 0 20px;
    background-image: url('../imgs/fundo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.primeira-dobra {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem !important; 
}

.logo-container {
    width: 100%;
    margin-bottom: 1rem !important; 
    text-align: center;
}

.logo {
    max-width: 280px;
    height: auto;
    width: auto; 
}

.frete-container {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.frete-text {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: inline-block;
}

.frete-text::after {
    content: "🚚";
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 1rem !important; 
    width: 100%;
    max-width: 800px;
    margin-top: 0.5rem !important; 
}

.btn-custom {
    padding: 22px 25px !important;
    border: none;
    border-radius: 16px;
    font-size: 1.5rem !important;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-custom::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-custom:hover::before {
    opacity: 1;
}

.btn-custom:hover::after {
    left: 100%;
}

.btn-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-custom:active {
    transform: translateY(-2px);
}

.buttons-container .btn-carretilhas {
    background-color: #ffc107 !important;
    color: #FFF !important;
    border: 2px solid #ffc107 !important;
}

.buttons-container .btn-carretilhas:hover {
    background-color: #ffcd39 !important;
    border-color: #ffcd39 !important;
}

.buttons-container .btn-caiaques {
    background-color: #17c02e !important;
    color: var(--text-light) !important;
    border: 2px solid #17c02e !important;
}

.buttons-container .btn-caiaques:hover {
    background-color: #1ed637 !important;
    border-color: #1ed637 !important;
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* SEGUNDA DOBRA */
.segunda-dobra {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: auto; 
    padding: 2rem 0; 
}

.titulo-ganhadores {
    color: #FCE075 !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    text-align: center;
    margin-bottom: 1.5rem !important; 
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    display: block;
    width: 100%;
}

.carousel {
    max-width: 320px !important; 
    margin: 0 auto 2rem auto;
    position: relative;
}

.carousel-inner {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.carousel-item video {
    width: 100%; 
    height: 500px; 
    object-fit: cover;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 45px;
    height: 45px;
    top: 50% !important;
    transform: translateY(-50%); 
    z-index: 10; 
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev {
    left: -50px !important; 
}

.carousel-control-next {
    right: -50px !important; 
}

.carousel-indicators {
    bottom: -40px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
}

.segunda-dobra .buttons-container {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .container {
        gap: 1.8rem !important; 
    }

    .buttons-container {
        flex-direction: row;
        gap: 1.2rem !important; 
    }

    .btn-custom {
        flex: 1;
        font-size: 1.6rem !important; 
        padding: 24px 20px !important; 
    }

    .logo {
        max-width: 350px;
    }

    .frete-text {
        font-size: 3.8rem;
    }

    .frete-text::after {
        right: -55px;
        font-size: 2.2rem;
    }

    .titulo-ganhadores {
        font-size: 3rem !important;
        margin-bottom: 2rem !important;
    }

    .carousel {
        max-width: 350px !important;
    }

    .carousel-item video {
        height: 550px; 
    }

    .carousel-control-prev {
        left: -60px !important; 
    }
    
    .carousel-control-next {
        right: -60px !important; 
    }
}

@media (max-width: 480px) {
    body {
        /* padding: 15px; */
        background-position: center bottom !important; 
        background-size: 180% auto !important; 
    }

    .primeira-dobra {
        padding: 0;
    }

    .container {
        gap: 1.2rem !important; 
    }

    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.8rem !important;
        margin-top: -30px;
    }

    .logo {
        max-width: 80% !important;
        width: 80% !important;
        height: auto;
    }

    .frete-container {
        margin-bottom: 0.8rem !important;
    }

    .btn-custom {
        padding: 18px 15px !important; 
        font-size: 1.3rem !important; 
    }

    .frete-text {
        font-size: 2rem;
    }

    .frete-text::after {
        right: -35px;
        font-size: 1.6rem;
    }

    .buttons-container {
        gap: 0.8rem !important;
        margin-top: -10px !important; 
    }

    .titulo-ganhadores {
        font-size: 1.8rem !important;
        margin-bottom: 1.2rem !important;
    }

    .carousel {
        max-width: 280px !important;
    }

    .carousel-item video {
        height: 450px;
    }

    .carousel-control-prev {
        left: -35px !important;
    }

    .carousel-control-next {
        right: -35px !important;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 360px) {
    body {
        background-size: 180% auto !important; 
    }

    .logo {
        max-width: 85% !important; 
        width: 85% !important;
    }

    .carousel {
        max-width: 260px !important;
    }
    
    .carousel-item video {
        height: 420px;
    }
    
    .frete-text {
        font-size: 1.8rem;
    }

    .btn-custom {
        font-size: 1.2rem !important;
        padding: 16px 12px !important;
    }

    .container {
        gap: 1rem !important; 
    }

    .buttons-container {
        gap: 0.7rem !important; 
    }
}