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

:root {
    /* Premium Light / Clean Tech Theme */
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --primary: #0052cc; /* Cobalt Blue */
    --primary-glow: rgba(0, 82, 204, 0.06);
    --secondary: #00bfff; /* Electric Cyan */
    --text-primary: #0f172a; /* Deep Slate */
    --text-secondary: #475569; /* Slate Gray */
    --border-color: rgba(15, 23, 42, 0.06);
    
    /* Layout & Animation */
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Soft ambient lighting spots in the background */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 82, 204, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.03) 0%, transparent 40%);
    background-size: 100% 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.logo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    display: inline-block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary);
}

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

nav ul li a:hover::after {
    width: 100%;
}

.btn-contact {
    background: var(--primary);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.15);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.25);
    background: #0043a4;
}

/* Button Component */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), #0077ff);
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.15);
    border: none;
    position: relative;
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0043a4, #005cd6);
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: none;
    margin-left: 1rem;
}

.secondary-btn:hover {
    background: rgba(0, 82, 204, 0.04);
    border-color: #0043a4;
    color: #0043a4;
    box-shadow: none;
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 5rem) 0 5rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    max-width: 100%;
    margin: 0;
}

.hero-container {
    max-width: 100%;
    margin: 0;
    padding-left: calc((100vw - var(--max-width)) / 2 + 2rem);
    padding-right: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(0, 82, 204, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 82, 204, 0.15);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    mix-blend-mode: multiply; /* Blends the image's light background perfectly into the page */
}

/* Sections Global */
section {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title p {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Fábrica Section */
.fabrica-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fabrica-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
    position: relative;
}

.fabrica-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.08);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.fabrica-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 82, 204, 0.2);
}

.fabrica-card:hover::after {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.fabrica-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.fabrica-card p {
    color: var(--text-secondary);
}

/* Soluções Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 82, 204, 0.2);
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.08);
}

.solution-visual {
    height: 160px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.solution-svg {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.05));
}

.solution-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.solution-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.solution-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Polos Section */
.polo-container {
    max-width: 650px;
    margin: 0 auto;
}

.polo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.polo-card.single-polo {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 2.5rem;
}

.polo-card:hover {
    border-color: rgba(0, 82, 204, 0.2);
    box-shadow: 0 15px 35px rgba(0, 82, 204, 0.08);
}

.polo-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.polo-card .university {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.polo-card .city {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.polo-card p {
    color: var(--text-secondary);
}

/* Contato Section */
.contato-section {
    padding-bottom: 8rem;
}

.contato-section .section-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contato-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contato-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contato-info > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.email-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.email-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.email-details span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.email-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.email-link:hover {
    text-decoration: underline;
}

.attention-box {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    text-align: left;
}

.attention-box i {
    color: #dc2626;
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.attention-box p {
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    background: #ffffff;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-logo {
    font-weight: 800;
    color: var(--text-primary);
}

.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Scroll Animation Settings */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        padding: calc(var(--header-height) + 5rem) 2rem 5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .logo {
        flex-direction: row;
        align-items: center;
    }
    
    .logo-sub {
        display: none;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .email-link {
        font-size: 1.2rem;
    }
}
