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

html, body {
    height: 100%;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #0056b3,
        #0077cc,
        #003366,
        #004080,
        #0056b3
    );
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.imc-section {
    padding: 5rem 0;
    background: white;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    font-weight: bold;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.btn-voltar-fixo {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a2980;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(26, 41, 128, 0.1);
}

.btn-voltar-fixo:hover {
    
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(26, 41, 128, 0.3);
}

.btn-voltar-fixo:focus {
    outline: none;
}

.btn-voltar-fixo:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
}

.btn-voltar-fixo i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-voltar-fixo:hover i {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .btn-voltar-fixo {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        top: 15px;
        left: 15px;
    }
    
    .btn-voltar-fixo span {
        display: none;
    }
    
    .btn-voltar-fixo {
        width: 45px;
        height: 45px;
        padding: 0;
        justify-content: center;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container-fluid {
    height: 100vh;
}

.categoria-col {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.categoria-link {
    text-decoration: none;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.categoria-link:focus {
    outline: none;
}

.categoria-link:focus-visible {
    outline: 4px solid #ffd700;
    outline-offset: -8px;
    z-index: 100;
}

.categoria-link:focus-visible .categoria-content {
    transform: translateY(-10px) scale(1.03);
}

.categoria-content {
    text-align: center;
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.categoria-content img {
    max-width: 350px;
    height: auto;
    margin-top: 2rem;
    transition: transform 0.3s ease;
}

.categoria-content h2 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.categoria-content p {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.categoria-content i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.crianca-col {
    background: linear-gradient(150deg, #efbf00 0%, #ff8d02 100%);
}

.adulto-col {
    background: linear-gradient(150deg, #4169e1 0%, #173189 100%);
}

.idoso-col {
    background: linear-gradient(135deg, #ff0000 0%, #b3067f 100%);
}

.categoria-col:hover {
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.categoria-col:hover .categoria-content {
    transform: translateY(-15px) scale(1.05);
}

.categoria-col.keyboard-focus {
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

.keyboard-navigation .categoria-col:focus-within {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 215, 0, 0.6);
    }
}

@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
        text-align: center;
        padding: 0 15px;
    }

    .hero-description {
        font-size: 1.1rem !important;
        padding: 0 20px;
        br {
            display: none;
        }
    }

    .navbar {
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 1rem;
    }

    .navbar-toggler {
        padding: 0.5rem !important;
        border: none !important;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(26, 41, 128, 0.1);
        border-radius: 8px;
    }

    .navbar-toggler i {
        color: #1a2980 !important;
        font-size: 1.8rem !important;
    }

    .navbar-collapse {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .section-title {
        font-size: 2.2rem !important;
        text-align: center;
        padding: 0 15px;
    }

    .imc-section {
        margin-top: -50px !important;
        padding: 3rem 1rem !important;
    }

    .imc-card {
        padding: 1.5rem !important;
    }

    .imc-table {
        width: 100% !important;
        font-size: 0.9rem;
    }

    .info-card {
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        width: auto;
        max-width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .imc-table td, .imc-table th {
        padding: 0.8rem !important;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .categoria-col {
        min-height: 200px;
        padding: 0.5rem;
    }
    
    .categoria-content h2 {
        font-size: 1.2rem;
    }
    
    .categoria-content p {
        font-size: 0.9rem;
    }
    
    .categoria-content img {
        max-width: 80px;
        max-height: 80px;
    }
    
    .categoria-content i {
        font-size: 1.2rem !important;
    }
}
