:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ff9900;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333333;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.logo-subtext {
    font-size: 12px;
    opacity: 0.8;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff;
}

.phone-number {
    color: #fff;
    font-weight: 500;
    padding: 10px 15px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.9)), url('/home/ubuntu/webdev-static-assets/porto_seguranca.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 150px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

/* Section Styling */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Feature Boxes */
.feature-box {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
    background-color: #fff;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-box i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Port Cards */
.port-section {
    background-color: #f9f9f9;
}

.port-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
}

.port-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.port-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.port-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.btn-outline-primary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

/* Testimonial Cards */
.testimonial {
    background-color: #f5f5f5;
}

.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.client {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-info p {
    font-size: 14px;
    margin-bottom: 0;
    color: #777;
}

/* Clients Grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.client-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.client-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-item p {
    font-size: 14px;
    margin-bottom: 0;
    color: #777;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('../images/riooooooooooooo.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #1a1a1a; /* Fundo ligeiramente mais claro para suavizar */
    color: #e0e0e0; /* Texto com melhor contraste */
    padding: 80px 0 30px; /* Mais espaçamento vertical */
    font-size: 16px; /* Fonte maior para legibilidade */
}

footer h5 {
    font-size: 20px; /* Títulos maiores */
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-color);
    text-transform: uppercase; /* Destaque para os títulos */
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    padding-left: 0;
}

footer ul li {
    margin-bottom: 15px; /* Mais espaço entre itens da lista */
}

footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Animation */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: var(--box-shadow);
}

.team-member h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member p {
    font-size: 16px;
    color: #777;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 15px;
        border-radius: var(--border-radius);
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.form-control {
    height: 50px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

textarea.form-control {
    height: 150px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: none;
}

.contact-info {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
}

.contact-info h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.contact-info ul {
    list-style: none;
    padding-left: 0;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
}

.contact-info ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Services Page */
.service-detail {
    margin-bottom: 60px;
}

.service-detail h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-detail ul {
    padding-left: 20px;
}

.service-detail ul li {
    margin-bottom: 10px;
}

/* About Page */
.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -50px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid #fff;
    box-shadow: var(--box-shadow);
}

.timeline-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Certificates Section */
.certificate-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certificate-item h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.certificate-item p {
    margin-bottom: 0;
}

/* Highlight */
.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Card Hover Effect */
.card {
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Training Programs 2025 Section */
.training-programs-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.course-box {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.2);
}

.course-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
}

.course-box h4 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.course-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    flex-grow: 1;
}

.course-box .course-code {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-top: 10px;
    font-weight: 600;
}

.ppsp-box {
    background-color: rgba(255, 153, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

.ppsp-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
}

.ppsp-box h4 i {
    margin-right: 10px;
}

.ppsp-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.ppsp-box .legislation {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.ppsp-box .legislation p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.section-title.text-white h2 {
    color: white;
}

.section-title.text-white h2::after {
    background-color: white;
}

/* ===================== TEAM BIO STYLES ===================== */
.team-bio {
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    border-left: 3px solid #003366;
}

.team-bio p {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    text-align: left;
}

.team-bio ul {
    padding-left: 18px;
    margin-bottom: 8px;
}

.team-bio ul li {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.team-bio h6 {
    font-size: 13px;
    font-weight: 700;
    color: #003366;
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Team photo clickable */
.team-member img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* ===================== PHOTO MODAL ===================== */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.photo-modal.active {
    display: flex;
}

.photo-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
    cursor: default;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
}

.photo-modal-close:hover {
    color: #ccc;
}

/* ===================== FORM MESSAGE STYLES ===================== */
.form-message {
    animation: fadeIn 0.3s ease;
}

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

/* Novos estilos para cards e layout */
.client-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.client-card i {
    color: var(--secondary-color);
}

.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-top-wrapper img {
    transition: transform 0.5s ease;
}

.port-card:hover .card-img-top-wrapper img {
    transform: scale(1.1);
}

.hero-content-box {
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Ajustes para responsividade */
@media (max-width: 768px) {
    .card-img-top-wrapper {
        height: 180px !important;
    }
    
    .hero-content-box {
        padding: 1.5rem !important;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float i {
    margin-top: 2px;
}

/* Navigation Buttons */
.navbar-nav .nav-link.btn {
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.navbar-nav .nav-link.btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hover-white:hover {
    color: #fff !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

/* Gallery Styles */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-overlay {
    backdrop-filter: blur(2px);
}

/* Logo Styles */
.navbar-logo {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Torna o logo completamente branco */
}

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

@media (max-width: 768px) {
    .navbar-logo {
        height: 60px !important;
    }
}

/* Email Signature Template */
.email-signature {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.5;
}

.email-signature img {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}

.email-signature h3 {
    color: #003366;
    margin: 0;
    font-size: 18px;
}

.email-signature p {
    margin: 5px 0;
    font-size: 14px;
}

.email-signature a {
    color: #0066cc;
    text-decoration: none;
}

/* Team Social Icons */
.team-img-wrapper {
    position: relative;
    overflow: hidden;
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.8);
    padding: 10px 0;
    text-align: center;
    transition: bottom 0.3s ease;
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    color: #fff;
    font-size: 18px;
    margin: 0 10px;
    transition: color 0.3s;
}

.team-social a:hover {
    color: var(--accent-color);
}

/* Bright White Logo Style */
.navbar-brand img, 
.navbar-logo,
.logo-text,
.logo-subtext {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    color: #ffffff !important;
}

/* Ensure text logos are also bright white */
.navbar-brand {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Force bright white logo globally */
.navbar-brand img, .navbar-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) !important;
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) !important;
    opacity: 1 !important;
}

/* Force bright white logo globally - Reinforced */
.navbar-brand img, .navbar-logo, img[alt*="Logo"] {
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) !important;
    -webkit-filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) !important;
    opacity: 1 !important;
}
