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

body {
    background: linear-gradient(135deg, #ff7a00, #e63946, #6a11cb);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    padding-top: 70px; /* Espaço para o header */
}

.container {
    flex-grow: 1; /* Faz o conteúdo expandir e empurra o footer */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 140px); /* Ajusta para ocupar o espaço correto */
}

#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
}

.page-transition {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    opacity: 0;
    transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

.header-logo {
    width: auto;
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-menu a:hover {
    color: #ffd700;
}

.social-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000; /* Garante que fiquem por cima do conteúdo */
}

.social-icons a {
    display: block;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.4);
}

.social-icons img {
    width: 30px;
    height: auto;
}

.dashboard {
    width: 95%;
    max-width: 1200px;
    display: grid;
    margin: auto; /* Centraliza automaticamente */
    grid-template-columns: repeat(auto-fit, minmax(333px, 1fr)); /* Ajusta automaticamente */
    grid-gap: 20px;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%; /* Garante que os cards se ajustem */
    height: auto; /* Ajusta a altura conforme necessário */
}

.dashboard-card.large {
    grid-row: span 2;
}

.dashboard-card img, .dashboard-card svg {
    max-width: 20%;
    height: auto;
    margin-bottom: 10px;
}

.dashboard-card:hover {
    transform: scale(1.05);
    background-color: #ffffff6e;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.1rem;
    margin-top: 10px;
}

.footer {
    width: 100%;
    margin-top: auto; /* Garante que o footer fique no final */
    padding: 15px;
    text-align: center;
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 60%;
    max-width: 500px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.modal-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: row; /* Desktop padrão */
    padding: 10px 0;
}

.about-content img {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

.about-content p {
    margin: 0;
    flex: 1;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background: #ff7a00;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Ajusta melhor */
    }

    .dashboard-card img, .dashboard-card svg {
        width: 70%;
    }
}

@media (max-width: 768px) {
    .container {
        padding-bottom: 50px; /* Adiciona espaço extra no final */
    }
    .dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 40px; /* Espaço antes do footer */
    }
    .dashboard-card {
        padding: 15px;
    }
    .dashboard-card img, .dashboard-card svg {
        width: 60%;
    }

    .social-icons {
        right: 10px; /* Mantém na lateral no mobile */
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
    }

    body {
        overflow-y: auto;
    }
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        position: relative;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 4px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Transformar em "X" quando ativo */
    .menu-toggle.open .hamburger span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .menu-toggle.open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .hamburger span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    .nav-menu {
        display: none; /* Esconder menu inicialmente */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Ajusta posição abaixo do header */
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        width: 150px;
        padding: 10px;
        border-radius: 5px;
        z-index: 1000;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        color: white;
        text-decoration: none;
        padding: 10px;
        text-align: center;
        display: block;
        font-size: 1rem;
    }
    .footer {
        padding: 20px; /* Mais espaçamento interno */
    }
}

/* Mobile: logo em cima, texto em baixo */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        width: 80px;
        margin-bottom: 10px;
    }

    .about-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-card img, .dashboard-card svg {
        width: 50%;
    }
}