/* styles.css for ComexControl */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Paleta de cores extraída de ComexControl */
    --primary-color: #0d253f;
    --secondary-color: #01b4e4;
    --accent-color: #fca311;
    --text-color: #adb9c7;
    --heading-color: #ffffff;
    --background-color: #041528;
    /* Fundo mais escuro específico do Comex */
    --card-background: rgba(14, 42, 74, 0.6);
    --font-main: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    /* Fundo com gradiente sutil laranja/azul como base */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(1, 180, 228, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(252, 163, 17, 0.08) 0%, transparent 20%);
    background-attachment: fixed;
}

h1,
h2,
h3 {
    color: var(--heading-color);
    font-weight: 600;
}

.section-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background: rgba(4, 21, 40, 0.9);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid rgba(1, 180, 228, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.navbar-logo img {
    height: 40px;
    cursor: pointer;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.nav-item {
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--heading-color);
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-contact-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-contact-button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* Header */
.header-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: url('background.jpg') no-repeat center center/cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(13, 37, 63, 0.9), rgba(4, 21, 40, 0.8));
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.header-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.header-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(252, 163, 17, 0.3);
    background-color: #fff;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(252, 163, 17, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(252, 163, 17, 0);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(1, 180, 228, 0.2);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    background: rgba(14, 42, 74, 0.8);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--accent-color);
    /* Usando Laranja para diferenciar */
    background: rgba(252, 163, 17, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

/* About */
.about-section {
    padding-bottom: 40px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-top: 40px;
    color: var(--text-color);
}

/* Contact */
.contact-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.contact-subtitle {
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.7;
}

.submit-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.submit-button:hover {
    background-color: var(--heading-color);
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 30px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}