* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: #121212;
    color: #e0e0e0;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    align-items: stretch;
}

.header {
    width: 100%;
    height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #1f1f1f;
    border-bottom: 2px solid #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

h1 {
    font-size: 20px;
    color: #fff;
}

.nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: nowrap;
}

.nav a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    border: 1px solid transparent;

}

.nav a:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    border: 1px solid #007bff;
    box-shadow: 0 8px 15px rgba(0, 86, 179, 0.5);
}

.nav a:focus { 
    outline: none;
}

.nav a:focus-visible {
    outline: 2px dashed #007bff;
    outline-offset: 3px;
}

.main-content {  
    flex: 1; /* faz crescer e empurrar o footer */
    width: 100%;  
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 180px 30px; /* top = altura do header + 20px */
    box-sizing: border-box;

    background-image: url("/static/homepage/images/roleta.JPG");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.video-container,
.text-container {
    flex: 1 1 50%;
    max-width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-container {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 700px;
}

.text-container h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffffff;
}

.text-container p {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 20px;
}

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

.brand img {
    height: 80px;
    width: auto;
}

.btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    font-size: 1.1em;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.6);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.hero-image {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    background-color: black;
    border-radius: 30px;
}

.video-limitado {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 30px;
}

.brand img {
    height: 50px;
    width: auto;
    border-radius: 12px;      
    border: 2px solid #007bff; 
    box-sizing: border-box;   
    transition: border-color 0.3s ease;
}

.brand img:hover {
    border-color: #0056b3;
}

.destaque-servico {
    padding: 2rem;
    background-color: rgba(30, 30, 47, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    margin-top: 4rem;
}

.destaque-servico h2 {
    font-size: 2rem;
    margin-bottom: 0.95rem;
    color: #ffffff;
}

.destaque-servico p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #cccccc;
}

.beneficios {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.beneficios li {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.beneficios li:hover {
    transform: translateX(4px);
    color: #007bff;
}

.beneficios li i {
    margin-right: 0.75rem;
    color: #007bff;
    min-width: 20px;
    text-shadow: 0 0 4px rgba(88, 214, 141, 0.5);
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #1e1e2f;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #007bff;
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.footer {
    width: 100%;
    flex-shrink: 0;
    background-color: #1f1f1f;
    text-align: center;
    padding: 1px 0;
    color: #888;
}

.footer p {
  font-size: 12px;
  color: #888;
  margin: 10px 0;       
  text-align: center;
}

.footer a {
    color: #0077cc;
    text-decoration: none;
}

.language-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}
.language-dropdown a img {
    cursor: pointer;
    transition: transform 0.2s;
}
.language-dropdown a img:hover {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .video-container,
    .text-container {
        max-width: 100%;
        flex: 1 1 100%;
        padding: 10px;
    }

    .text-container {
        text-align: center;
    }

    .text-container h2 {
        font-size: 1.8em;
    }

    .text-container p {
        font-size: 1.1em;
    }
    .brand img {
        height: 50px;
        border-radius: 10px;
        border-width: 1.5px;
    }
}


@media (max-width: 600px) {
    .hero-image {
        width: 100%;
        height: 22vh; 
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
        background-color: black;
        border-radius: 30px; 
    }
    
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .brand img { 
        height: 50px;
        border-radius: 8px;
        border-width: 1px;
    }

    h1 {
        font-size: 17px;
        margin: 0;
    }

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

    .nav a {
        width: auto;           
        padding: 6px 12px;     
    }
    
    .nav {
        position: static;      
        top: auto;
        right: auto;
        height: auto;          
        width: auto;           
        flex-direction: row;  
        justify-content: flex-end; 
        align-items: center;
        padding: 0;
        gap: 10px;             
        transform: none;
        box-shadow: none;
    }
}
