/* 
* HERO CSS - Hauzi Landing Page
* Estilos específicos para a seção Hero
*/

#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: var(--grafite);
}

#hero:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    z-index: 2;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

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

.hero-content {
    position: relative;
    z-index: 4;
    padding: 80px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 500px;
    position: relative;
    z-index: 5;
}

.hero-text h1 {
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.2s;
    font-size: 3.0rem;
    text-align: left;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s;
    text-align: left;
}

.hero-text .btn-primary {
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-video {
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.8s;
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    height: 450px;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--taupe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-time) ease;
    z-index: 5;
}

.play-button span {
    color: var(--branco);
    font-size: 28px;
    line-height: 1;
    margin-left: 5px;
}

.video-container:hover .play-button {
    background-color: var(--branco);
}

.video-container:hover .play-button span {
    color: var(--preto);
}

.video-background .click-to-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--taupe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-time) ease;
    z-index: 5;
    cursor: pointer;
}

.video-background .click-to-play span {
    color: var(--branco);
    font-size: 28px;
    line-height: 1;
    margin-left: 5px;
}

.video-background .click-to-play:hover {
    background-color: var(--branco);
}

.video-background .click-to-play:hover span {
    color: var(--preto);
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--branco);
    border-radius: 15px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

.scroll-indicator:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--branco);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

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

.hero-image {
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.8s;
    position: relative;
    z-index: 5;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    border: 2px solid var(--taupe);
    border-radius: 8px;
    z-index: -1;
}

.hero-image:hover img {
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-text {
        margin-bottom: var(--spacing-lg);
        max-width: 100%;
        text-align: center;
    }
    
    .hero-image {
        max-width: 80%;
        margin-top: var(--spacing-lg);
    }
    
    .hero-video {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    #hero {
        background-attachment: scroll;
        padding-top: 90px;
        height: auto;
        min-height: 0;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 30px;
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-text h1 {
        margin-bottom: var(--spacing-md);
        font-size:36px;
    }
    
    .hero-text p {
        font-size: 1.4rem;
    }
    
    .hero-video {
        max-width: 100%;
        margin-top: var(--spacing-lg);
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button span {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    #hero {
        min-height: 0;
        padding-top: 90px;
        height: 100vh;
    }
    
    .hero-content {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button span {
        font-size: 18px;
        margin-left: 4px;
    }
}
