:root {
    --primary-blue: #00247d;  
    --gold: #b48b1b;  
    --light-blue: #00247d;  
    --text-dark: #1A2B3C;  
    --background-light: #F4F6F9;  
    --white: #FFFFFF;
}

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

body {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #00247d; /* Azul-escuro */
    color: #ffffff; /* Texto branco para contraste */
    letter-spacing: 0.5px;
}

/* Enhanced Professional Navigation */
.navbar {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: var(--white) !important;
    padding: 15px 0;
    border-bottom: 2px solid var(--gold);
}

.navbar-brand img {
    transition: transform 0.3s ease;
    max-height: 45px;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold) !important;
}

/* Hero Section Refinement */
.hero {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    position: relative;
    overflow: hidden;
}

.hero.position-relative {
    perspective: 1000px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    transition: all 0.5s ease;
}

.hero-background-layer.layer-1 {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(77, 124, 158, 0.9));
    transform: translateZ(-50px) rotateX(15deg);
}

.hero-background-layer.layer-2 {
    background: linear-gradient(225deg, rgba(218, 165, 32, 0.3), rgba(77, 124, 158, 0.3));
    transform: translateZ(-25px) rotateX(10deg);
}

.hero-background-layer.layer-3 {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0,
        rgba(255, 255, 255, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateZ(0);
}

.hero:hover .hero-background-layer {
    transform: translateZ(0) rotateX(0);
}

.hero .hero-background-pattern {
    background: 
        linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(77, 124, 158, 0.9)),
        repeating-linear-gradient(
            45deg, 
            rgba(255, 255, 255, 0.03) 0, 
            rgba(255, 255, 255, 0.03) 10px, 
            transparent 10px, 
            transparent 20px
        );
    opacity: 0.95;
    z-index: 0;
}

.hero .hero-overlay {
    background: linear-gradient(
        135deg, 
        rgba(0, 51, 102, 0.7) 0%, 
        rgba(77, 124, 158, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--white);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.hero .hero-title::after {
    display: none;
}

.hero-title .title-accent {
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

.hero .hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 20px auto;
}

.hero .hero-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 30px;
}

.hero-cta-group {
    margin-top: 20px;
}

.hero-cta-group .btn-outline-primary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.hero-cta-group .btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

@media (max-width: 768px) {
    .hero-background-layer {
        transform: none;
    }
    .hero .hero-title {
        font-size: 2.5rem;
    }
}

/* Professional Mission Hero Section */
.professional-mission-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    position: relative;
    overflow: hidden;
}

.hero-background-layer.layer-professional-1 {
    background: linear-gradient(
        135deg, 
        rgba(0, 51, 102, 0.9) 0%, 
        rgba(77, 124, 158, 0.7) 100%
    );
    opacity: 0.9;
}

.hero-background-layer.layer-professional-2 {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05) 0,
        rgba(255, 255, 255, 0.05) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.3;
}

.mission-card-professional {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
    transition: all 0.4s ease;
}

.mission-card-professional:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 51, 102, 0.15);
}

.mission-icon-container {
    position: relative;
    overflow: hidden;
}

.mission-icon-wrapper {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mission-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(77, 124, 158, 0.7));
    opacity: 0.9;
    z-index: 1;
    transition: transform 0.3s ease;
}

.mission-icon-container:hover::before {
    transform: scale(1.1);
}

.mission-content-professional {
    background-color: var(--white);
    border-left: 5px solid var(--gold);
}

.mission-title-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

/* Services Section Refinement */
.services {
    background-color: var(--background-light);
    padding: 80px 0;
}

.services .service-card {
    border: none;
    box-shadow: 0 15px 30px rgba(0,51,102,0.1);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border-radius: 10px;
    overflow: hidden;
}

.services .service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 40px rgba(0,51,102,0.15);
}

.services .service-card .card-header {
    padding: 30px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
}

.services .service-card .card-header i {
    color: var(--white);
    transition: transform 0.3s ease;
}

.services .service-card:hover .card-header i {
    transform: scale(1.1);
}

.services .service-card .card-body {
    padding: 30px;
    background-color: var(--white);
}

.services .service-card .card-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.services .service-card .card-text {
    color: var(--text-dark);
    opacity: 2.0;
}

/* About Section Refinement */
.about {
    background-color: var(--background-light);
    position: relative;
    padding: 80px 0;
    background: linear-gradient(
        135deg, 
        rgba(0, 51, 102, 0.05) 0%, 
        rgba(218, 165, 32, 0.05) 100%
    );
}

.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.1);
    transition: all 0.4s ease;
}

.about-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
}

.about-image {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(110%);
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(0, 51, 102, 0.6) 0%, 
        rgba(218, 165, 32, 0.4) 100%
    );
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.about-content {
    background-color: var(--white);
    border-left: 6px solid var(--gold) !important;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right, 
        var(--primary-blue), 
        var(--gold)
    );
}

.about-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.12);
}

.about-content-header h3 {
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
}

.about-content-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

.about-text p {
    color: var(--text-dark);
    opacity: 0.9;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.about-quote .blockquote {
    border-left: 5px solid var(--gold);
    background-color: rgba(218, 165, 32, 0.1) !important;
    font-style: italic;
}

.about-quote .blockquote p {
    color: var(--primary-blue);
    opacity: 0.9;
}

/* Contact Section Refinement */
.contact {
    background-color: var(--white);
    padding: 80px 0;
}

.contact form {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0,51,102,0.08);
}

.contact .form-control {
    border: 1px solid var(--light-blue);
    padding: 12px;
    border-radius: 5px;
}

.contact .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(218,165,32,0.25);
}

/* Resources Section Refinement */
.resources {
    background-color: var(--background-light);
    padding: 80px 0;
}

.resources h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.resources .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,51,102,0.1);
}

.resources .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,51,102,0.15);
}

.resources .btn-primary i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.resources .btn-primary:hover i {
    transform: scale(1.2);
}

/* Recursos Section Refinement */
.recursos {
    background-color: var(--background-light);
    padding: 80px 0;
}

.recursos .card {
    border: none;
    box-shadow: 0 10px 20px rgba(0,51,102,0.08);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border-top: 4px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
}

.recursos .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,51,102,0.12);
}

.recursos .card-body {
    padding: 30px;
    text-align: center;
}

.recursos .card i {
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.recursos .card:hover i {
    transform: scale(1.1);
}

.recursos .card-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recursos .btn-primary {
    margin-top: 15px;
}

/* O que Fazemos Section */
.o-que-fazemos, .impacto {
    background-color: var(--background-light);
    padding: 80px 0;
}

.o-que-fazemos .card, .impacto .card {
    border: none;
    box-shadow: 0 10px 20px rgba(0,51,102,0.08);
    transition: all 0.4s ease;
    border-top: 4px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
}

.o-que-fazemos .card:hover, .impacto .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,51,102,0.12);
}

.o-que-fazemos .card-body, .impacto .card-body {
    padding: 30px;
    text-align: center;
}

.o-que-fazemos .card-title, .impacto .card-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.o-que-fazemos .card-text, .impacto .card-text {
    color: var(--text-dark);
    opacity: 0.9;
}

.impacto .card i {
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.impacto .card:hover i {
    transform: scale(1.1);
}

/* Mission Section Refinement */
.mission-card {
    transition: all 0.4s ease;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,51,102,0.15) !important;
}

.mission-title {
    position: relative;
}

.mission-title-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
}

.mission-text p {
    line-height: 1.8;
}

/* Impact Section Refinement */
.impact-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--gold), var(--primary-blue));
}

.impact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,51,102,0.15) !important;
}

.impact-card .card-header {
    transition: background-color 0.3s ease;
}

.impact-card:hover .card-header {
    background-color: var(--gold) !important;
}

.impact-card .impact-number {
    position: relative;
}

.impact-card .animated-counter {
    display: inline-block;
    transition: color 0.3s ease;
}

.letter-spacing {
    letter-spacing: 2px;
}

/* Adjustments to existing styles */
.section-header .section-title {
    letter-spacing: 2px;
}

/* Footer Refinement */
.footer {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--primary-blue));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand img {
    margin-right: 20px;
    max-height: 70px;
    transition: transform 0.3s ease;
}

.footer-brand img:hover {
    transform: scale(1.05);
}

.footer-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.footer-description {
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-section-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--gold);
    position: relative;
    padding-bottom: 10px;
    font-size: 1.1rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--gold);
    opacity: 1;
}

.footer-links i {
    margin-right: 12px;
    color: var(--gold);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.footer-social-icons a {
    color: var(--primary-blue);
    font-size: 1.8rem;
    transition: all 0.4s ease;
    opacity: 0.7;
    position: relative;
    display: inline-block;
}

.footer-social-icons a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-social-icons a:hover {
    color: var(--gold);
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
}

.footer-social-icons a:hover::before {
    width: 100%;
}

.social-icon-instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icon-tiktok {
    background: linear-gradient(to right, #00f2ea, #ff0050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 51, 102, 0.1);
    padding-top: 25px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-section-title {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Button Styles */
.btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.btn-danger-custom {
    background-color: #DC3545;  
    border-color: #DC3545;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-danger-custom:hover {
    background-color: #C82333;  
    border-color: #BD2130;
    color: var(--white);
}

/* Responsive Adjustments */

@keyframes textReveal {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
    }
}

.text-reveal {
    animation: textReveal 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    display: inline-block;
}

@media (max-width: 992px) {
    .about-image-container {
        margin-bottom: 30px;
    }
}