:root {
    /* Cores extraídas do logotipo */
    --indigo-deep: #2e004f;
    --magenta-vivid: #e10098;
    --orange-bright: #ff8a00;
    --yellow-glow: #ffcc00;
    --leaf-green: #7eb326;

    /* Cores de suporte */
    --bg-light: #ffffff;
    --bg-off: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;

    /* Gradientes Opção C */
    --hero-gradient: linear-gradient(135deg, var(--indigo-deep) 0%, var(--magenta-vivid) 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Hero */
.hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    transform: skewY(-2deg);
}

.logo-container {
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

.logo-container img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--orange-bright);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4);
}

/* Seções de Serviços */
.section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--indigo-deep);
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid transparent;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card.automation {
    border-color: var(--magenta-vivid);
}

.service-card.systems {
    border-color: var(--indigo-deep);
}

.service-card.sites {
    border-color: var(--orange-bright);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--indigo-deep);
}

/* Portfólio Grid */
.portfolio-section {
    background-color: var(--bg-off);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.portfolio-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid var(--magenta-vivid);
}

.portfolio-info {
    padding: 30px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--magenta-vivid);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    color: var(--indigo-deep);
    margin-bottom: 15px;
}

/* Detalhe do Projeto */
.detail-header {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.detail-content {
    background: var(--white);
    max-width: 900px;
    margin: -50px auto 100px;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.detail-content h2 {
    color: var(--indigo-deep);
    margin-bottom: 30px;
}

/* Modal / Popup Lead */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 0, 79, 0.8);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5vh auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 550px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

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

.modal-header {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 40px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--white);
}

.modal-body {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--indigo-deep);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eef0f2;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fdfdfe;
}

.form-control:focus {
    outline: none;
    border-color: var(--magenta-vivid);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(225, 0, 152, 0.1);
}

#lead-message {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
    font-weight: 600;
    text-align: center;
}

#lead-message.success {
    background: #e6f9ed;
    color: #1e7e34;
    border: 1px solid #b7ebc6;
}

#lead-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

footer {
    background: var(--indigo-deep);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}