:root {
    --primary: #ff6b00;
    --secondary: #f8f9fa;
    --accent: #ff6b00;
    --dark: #333;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-color: #e0e0e0;
}

/* Navbar */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 73px;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ff6b00;
    border-color: #ff6b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-outline-light {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/fotoalternativa.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #262525;
}

/* About Section */
.values-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.value-item h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
}

/* Services Section */
.service-card {
    background-color: rgb(224, 224, 224);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary);
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.service-card ul li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--accent);
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ff6b00;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    text-align: center;
    margin-bottom: 15px;
}

.portfolio-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: white;
    color: var(--primary);
}

/* Clients Section */
.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer ul {
    list-style-type: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer p i {
    color: var(--accent);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.floating-cta:hover {
    background-color: #e55f00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    color: white;
}

.floating-cta i {
    margin-right: 10px;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease 0.3s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease 0.6s forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .values-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .service-card, .contact-form, .contact-info {
        padding: 20px;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Página de formulário de contacto */
.contact-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.contact-form-page {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-title {
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* Páginas de serviços */
.service-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.service-detail {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-detail h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.service-detail-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.back-button {
    margin-top: 30px;
}

/* serviços */

.service-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #5c1700 100%);
    color: white;
    text-align: center;
}

.service-header .section-title {
    color: white;
}

.service-header .section-title::after {
    background-color: var(--accent);
}

.service-content {
    padding: 60px 0;
}

.service-detail h2 {
    color: var(--primar);
    margin-bottom: 20px;
}

.service-detail h3 {
    color: var(--dark);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.service-features {
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: var(--secondary);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.service-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.service-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.sidebar-card h4 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h5 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.info-item p {
    color: #666;
    margin: 0;
}

.related-project {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-project:hover {
    background: var(--secondary);
}

.related-project img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.related-project h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.related-project p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.certification-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: var(--secondary);
}

.certification-item i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
}

.course-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

.course-item:hover {
    background: #e9ecef;
}

.course-date {
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-right: 15px;
    min-width: 60px;
}

.course-date span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.course-date span:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.course-info h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.course-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.training-methods {
    margin: 40px 0;
}

.method-item {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: var(--secondary);
    transition: all 0.3s ease;
    height: 100%;
}

.method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.method-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.method-item h4 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, #e55f00 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Responsive Design for Service Pages */
@media (max-width: 992px) {
    .service-sidebar {
        position: static;
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .service-header {
        padding: 120px 0 40px;
    }
    
    .service-content {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .service-header {
        padding: 100px 0 30px;
    }
    
    .feature-item,
    .method-item {
        padding: 20px 15px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
}

/* Ícones para redes sociais nos contactos - APENAS SÍMBOLOS */
.contact-social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    justify-content: center;
}

.contact-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

.contact-social-icon:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: none;
    border-color: transparent;
}


/* Ícones circulares para redes sociais no footer (manter igual) */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent; /* Fundo transparente */
    border-radius: 50%;
    color: white; /* Ícone branco como "logo" */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid transparent;
}

.footer-social-icon:hover {
    background-color: var(--primary); /* Círculo aparece ao passar o rato */
    color: white; /* Ícone mantém branco */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: var(--primary);
}


/* Manter os estilos existentes para o mapa */
.map-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.map-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateX(3px);
}

.map-link i {
    margin-right: 5px;
    font-size: 0.8rem;
}

/* Ícones circulares na seção de contactos do footer */
.footer-contact-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-contact-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-contact-social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Estilo para o link do Google Maps no footer */
.footer-map-link {
    display: inline-flex;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.footer-map-link:hover {
    color: var(--primary);
}

.footer-map-link i {
    margin-right: 5px;
    font-size: 0.8rem;
}
.related-project-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.related-project-link:hover {
    text-decoration: none;
    color: inherit;
}

.related-project-link .related-project {
    transition: all 0.3s ease;
}

.related-project-link:hover .related-project {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}