@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@500;700;800;900&display=swap');

:root {
    --primary: #800080;
    --primary-dark: #4b004b;
    --accent: #00e5ff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #2e022e 100%);
    --shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; color: var(--text-dark); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; width: 100%; }

/* --- ANIMAÇÕES --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Feedback de Clique */
button:active, .btn-primary:active, .btn-secondary:active, .btn-portal:active, .service-card:active {
    transform: scale(0.96);
    transition: transform 0.1s;
}

/* --- HEADER --- */
header {
    background: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: 110px;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-link a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.nav-link a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link a:hover::after, .nav-link.active a::after { width: 100%; }
.nav-link.active a { color: var(--primary); }

.btn-portal {
    background: var(--primary);
    color: white !important;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(128,0,128,0.25);
    border: 2px solid var(--primary);
    transition: all 0.2s ease;
}

.btn-portal:hover {
    background: white;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128,0,128,0.35);
}

/* --- BOTÕES GERAIS --- */
.btn-primary {
    background: var(--gradient); color: white; padding: 1rem 2.5rem; border-radius: 8px;
    font-weight: 700; box-shadow: 0 10px 25px -5px rgba(128, 0, 128, 0.4); border: none; cursor: pointer;
    font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; justify-content: center;
    transition: all 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(128, 0, 128, 0.5); }

.btn-secondary {
    background: white; color: var(--primary); border: 2px solid var(--primary);
    padding: 1rem 2.5rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem;
}
.btn-secondary:hover { background: rgba(128, 0, 128, 0.05); }

/* --- SECTION BASICS --- */
main { padding-top: 110px; flex: 1; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-header span { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; display: block; margin-bottom: 1rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }

/* --- SOBRE (HERO) --- */
.about-hero { padding: 4rem 0; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img img { border-radius: 12px; box-shadow: 20px 20px 0 var(--accent); }

/* --- NOVA TIMELINE INTERATIVA --- */
.timeline-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Linha Central (Fundo Cinza) */
.timeline-line-bg {
    position: absolute;
    width: 4px;
    background-color: #e2e8f0;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 0;
}

/* Linha de Progresso (Preenchimento Roxo) */
.timeline-progress {
    position: absolute;
    width: 4px;
    background: var(--gradient);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
    height: 0%;
    transition: height 0.1s linear;
    box-shadow: 0 0 15px rgba(128, 0, 128, 0.5);
}

/* Item da Timeline */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    box-sizing: border-box;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    transform: translateX(50px);
}

/* Estado Visível (via JS) */
.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Marcador (Bolinha) */
.timeline-marker {
    position: absolute;
    top: 2.5rem;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 4px rgba(128, 0, 128, 0.1);
}

.timeline-item:nth-child(odd) .timeline-marker { right: -10px; }
.timeline-item:nth-child(even) .timeline-marker { left: -10px; }

.timeline-item.visible .timeline-marker {
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(128, 0, 128, 0.2);
    transform: scale(1.2);
}

/* Card de Conteúdo */
.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(128, 0, 128, 0.15);
    border-color: rgba(128, 0, 128, 0.2);
}

/* Seta do Card */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    border-left: 10px solid white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    border-right: 10px solid white;
}

/* Conteúdo Interno */
.timeline-year {
    display: inline-block;
    background: rgba(128, 0, 128, 0.1);
    color: var(--primary);
    font-weight: 800;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-content h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-dark); }
.timeline-content p { color: var(--text-gray); font-size: 0.95rem; line-height: 1.6; }
.timeline-logo { height: 50px; margin: 1rem 0; object-fit: contain; }

/* --- SERVICES & CONTACT (Layouts) --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.service-card { background: white; padding: 2.5rem; border-radius: 12px; border: 1px solid #e2e8f0; transition: all 0.3s; display: flex; flex-direction: column; }
.service-card:hover { border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-5px); }
.service-icon { width: 60px; height: 60px; background: rgba(128,0,128,0.05); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; }
.service-cta { margin-top: auto; padding-top: 1.5rem; color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.service-cta:hover { text-decoration: underline; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); min-height: 600px; margin-bottom: 4rem; }
.contact-sidebar { background: var(--primary); padding: 4rem 3rem; color: white; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.contact-sidebar::before { content: ''; position: absolute; top: -50px; left: -50px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.contact-sidebar::after { content: ''; position: absolute; bottom: -50px; right: -50px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.c-item { display: flex; gap: 1.2rem; margin-bottom: 2.5rem; align-items: flex-start; position: relative; z-index: 2; }
.c-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.2rem; }
.contact-main { padding: 4rem; position: relative; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.form-control { width: 100%; padding: 1.1rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font-family: 'Inter', sans-serif; transition: 0.3s; font-size: 1rem; }
.form-control:focus { background: white; border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(128,0,128,0.1); }

/* --- FOOTER --- */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #cbd5e1; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.footer-contact-item i { 
    color: var(--accent); 
    margin-top: 5px;
}

.social-icons { display: flex; gap: 15px; margin-top: 1.5rem; }
.social-icons a { 
    width: 40px; height: 40px; background: rgba(255,255,255,0.1); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: white; transition: 0.3s;
}
.social-icons a:hover { background: var(--primary); transform: translateY(-3px); }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* RESPONSIVE */
.hamburger { display: none; font-size: 1.8rem; color: var(--primary); cursor: pointer; }

@media (max-width: 1024px) {
    .nav-menu { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    header { height: 80px; }
    main { padding-top: 80px; }
    .container { padding: 0 1.5rem; }
    
    .navbar { position: relative; }
    .nav-menu {
        position: fixed; top: 80px; left: 0; width: 100%; height: auto; min-height: calc(100vh - 80px);
        background: white; flex-direction: column; padding: 3rem 1.5rem; margin-left: 0;
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        justify-content: flex-start; gap: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active { transform: translateX(0); }
    .hamburger { display: block; }
    
    .hero-content, .about-split, .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-image { order: -1; margin-bottom: 2rem; }
    
    /* Timeline Responsiva */
    .timeline-line-bg, .timeline-progress { left: 30px; }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px;
        padding-right: 20px;
        text-align: left !important;
        transform: translateY(30px) !important;
    }
    .timeline-item.visible { transform: translateY(0) !important; }
    .timeline-item:nth-child(odd) .timeline-marker, 
    .timeline-item:nth-child(even) .timeline-marker {
        left: 20px;
        right: auto;
    }
    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-right: 10px solid white !important;
        border-left: none !important;
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact-item { justify-content: center; }
    .social-icons { justify-content: center; }
}