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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(0, 48, 135, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    max-width: 60px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
    color: #fff;
}

nav {
    background: none;
    padding: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

nav li {
    position: relative;
}

nav > ul > li > a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

nav > ul > li > a:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 48, 135, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

nav > ul > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

nav > ul > li > a:hover::before {
    left: 100%;
}

nav ul ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
    min-width: 320px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

nav li:hover > ul,
nav li:focus-within > ul {
    display: block;
}

/* Melhoria para dispositivos touch */
@media (hover: none) and (pointer: coarse) {
    nav li:hover > ul {
        display: none;
    }
    
    nav li:focus > ul,
    nav li.active > ul {
        display: block;
    }
    
    nav > ul > li > a {
        cursor: pointer;
    }
}

nav ul ul li {
    width: 100%;
}

nav ul ul a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: none;
    font-weight: 500;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

nav ul ul a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

nav ul ul a:last-child {
    border-bottom: none;
}

main {
    min-height: calc(100vh - 120px);
    padding: 0;
    margin: 0;
}

section {
    margin: 0;
    border: none;
    padding: 0;
}

.intro {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    gap: 80px;
}

.intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 48, 135, 0.02) 0%, transparent 70%);
    z-index: 1;
    animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-30%, -30%) rotate(10deg); }
}

.content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
    position: relative;
}

.content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #003087;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 48, 135, 0.1);
    position: relative;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #ff4757 0%, #003087 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.image {
    max-width: 450px;
    height: 450px;
    border: none;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    padding: 0;
    background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
    box-shadow: 
        0 25px 50px rgba(0, 48, 135, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    overflow: visible;
    margin-left: -20px;
    margin-right: 150px;
    filter: saturate(1.1) contrast(1.05);
}

.image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 48, 135, 0.1) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 35px 70px rgba(0, 48, 135, 0.35),
        0 15px 35px rgba(0, 0, 0, 0.15);
}

.image:hover::after {
    transform: translateY(-5px);
    opacity: 1;
}

.image:hover::before {
    opacity: 1;
}

.image::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -50px;
    right: -50px;
    height: 120px;
    transition: all 0.4s ease;
    opacity: 0.9;
    pointer-events: none;
}

/* Imagem principal da página inicial */
.hero-image {
    max-width: 500px;
    height: 500px;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff4757, #003087, #0056b3, #ff4757);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: gradientShift 4s ease-in-out infinite;
    opacity: 0.7;
}

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

.hero-image:hover::after {
    opacity: 0.9;
    animation-duration: 2s;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.6);
    background: linear-gradient(135deg, #ff3742 0%, #ff2f3e 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

/* Responsividade */
@media (max-width: 1024px) {
    header {
        padding: 15px 3%;
    }
    
    nav ul {
        gap: 25px;
    }
    
    nav > ul > li > a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .intro {
        padding: 60px 3%;
        gap: 50px;
    }
    
    .content h2 {
        font-size: 3rem;
    }
    
    .image {
        max-width: 380px;
        height: 380px;
        margin-left: -10px;
    }
    
    .image::after {
        bottom: -40px;
        left: -30px;
        right: -30px;
        height: 80px;
    }
    
    .hero-image {
        max-width: 420px;
        height: 420px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 20px 4%;
        gap: 15px;
    }
    
    .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        align-self: flex-start;
        width: 100%;
        justify-content: space-between;
    }
    
    .logo {
        max-width: 50px;
        margin-bottom: 0;
    }
    
    .logo-text {
        font-size: 14px;
        margin: 0;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin-top: 0;
    }
    
    nav > ul > li > a {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    nav ul ul {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        display: none;
        background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
        min-width: 250px;
        z-index: 1000;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
        margin-top: 8px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    nav li:hover > ul,
    nav li:focus-within > ul {
        display: block;
    }
    
    nav ul ul a {
        padding: 12px 20px;
        font-size: 13px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    nav ul ul a:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
        color: #fff;
        transform: translateX(5px);
    }
    
    nav ul ul a:last-child {
        border-bottom: none;
    }
    
    .intro {
        flex-direction: column;
        text-align: center;
        padding: 40px 4%;
        gap: 30px;
        min-height: 70vh;
        margin-top: 10px;
    }
    
    .content {
        max-width: 100%;
    }
    
    .content h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .image {
        max-width: 320px;
        height: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .image::after {
        bottom: -30px;
        left: -20px;
        right: -20px;
        height: 60px;
    }
    
    .hero-image {
        max-width: 350px;
        height: 350px;
    }
    
    .hero-image::after {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-radius: 50%;
    }
    
    .button {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 3%;
    }
    
    .logo {
        max-width: 45px;
    }
    
    .logo-text {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    nav ul {
        gap: 8px;
    }
    
    nav > ul > li > a {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    nav ul ul {
        margin: 5px 0 0 0;
        border-radius: 6px;
    }
    
    nav ul ul a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .intro {
        padding: 30px 3%;
        gap: 25px;
        min-height: 60vh;
    }
    
    .content h2 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 13px;
        border-radius: 25px;
    }
    
    .image {
        max-width: 280px;
        height: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .image::after {
        bottom: -25px;
        left: -15px;
        right: -15px;
        height: 50px;
    }
    
    .hero-image {
        max-width: 300px;
        height: 300px;
    }
    
    .hero-image::after {
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
    }
}

@media (max-width: 360px) {
    .content h2 {
        font-size: 1.8rem;
    }
    
    .image {
        max-width: 240px;
        height: 240px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        max-width: 260px;
        height: 260px;
    }
    
    .hero-image::after {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: 50%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
}

/* Animações suaves */
.intro {
    animation: fadeIn 1s ease-out;
}

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

/* Melhorias de acessibilidade */
*:focus {
    outline: 2px solid #ff4757;
    outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003087 100%);
}

/* Melhorias adicionais */
.intro::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff4757 0%, #003087 100%);
    border-radius: 2px;
}

/* Efeito de hover nas sections */
section {
    transition: transform 0.2s ease;
}

section:hover {
    transform: translateY(-1px);
}

/* Melhoria do texto */
.content h2 {
    background: linear-gradient(135deg, #003087 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Adição de sombras e depth */
header {
    box-shadow: 0 2px 15px rgba(0, 48, 135, 0.1);
}

.intro {
    box-shadow: inset 0 1px 10px rgba(0, 48, 135, 0.03);
}

/* Performance otimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}