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

body {
    margin: 0;
    padding: 0;
    background-image: url('/imagens/fundo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    background-color: #0C0C0C;
    color: #fff;
    font-family: 'Roboto', sans-serif;
}

header {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(30, 30, 30, 0.8));
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    display: block;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
    padding: 2px 2px;
}

nav ul li a:hover {
    background: linear-gradient(45deg, #FF69b4, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #FF69b4, #ff0000);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    background: linear-gradient(45deg, #FF69B4, #FF0000);
    color: #fff;
    border-radius: 5px;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #fff;
}

nav ul li a.active::after {
    display: none;
}

.hamburger {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    position: absolute;
    right: 20px;
    background: linear-gradient(45deg, #0298CF, #00D4FF);
    padding: 10px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 148, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 1001;
}

.hamburger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 148, 255, 0.6);
}

@media (max-width: 768px) {
    .header-container {
        width: 100%;
        max-width: none;
        justify-content: space-between;
        gap: 0;
    }

    .logo img {
        height: 50px;
    }

    .hamburger {
        display: block;
    }

    nav {
        flex-grow: 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: none;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        text-align: center;
        z-index: 1000;
        border-radius: 0;
        box-shadow: none;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    nav ul.active {
        display: flex;
        left: 0;
    }

    nav ul li a {
        font-size: 24px;
        padding: 12px;
        display: block;
    }

    nav ul li a:hover::after {
        width: 50%;
        left: 25%;
    }

    nav ul li a.active {
        background: linear-gradient(45deg, #FF69B4, #FF0000);
        color: #fff;
        border-radius: 5px;
        -webkit-background-clip: initial;
        -webkit-text-fill-color: #fff;
    }

    nav ul li a.active::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .hamburger {
        font-size: 24px;
        padding: 8px;
    }
}

/* Administrable Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9), rgba(30, 30, 30, 0.8));
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    padding: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 148, 255, 0.4);
}

.popup-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    background: linear-gradient(45deg, #FF69b4, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.popup-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #ddd;
    margin-bottom: 20px;
}

.popup-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.popup-content .btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #0298CF, #00D4FF);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 148, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse 2s infinite;
    text-decoration: none;
    display: inline-block;
}

.popup-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 148, 255, 0.6);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    background: none;
    border: none;
}

.popup-close:hover {
    color: #00D4FF;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 15px;
    }
    .popup-content h2 {
        font-size: 28px;
    }
    .popup-content p {
        font-size: 14px;
    }
    .popup-content .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .popup-content h2 {
        font-size: 24px;
    }
    .popup-content p {
        font-size: 13px;
    }
    .popup-content .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}