/*=============================================
=            CSS GLOBAL VARIABLES             =
=============================================*/
:root {
    /* Colors base on analyzed logos and instructions */
    --bg-dark: #000B13;       /* Ultra dark background */
    --surface-dark: #001722;  /* From Fundo.png & Logos */
    --surface-light: #001D2B; /* Lighter shade from logos */
    --accent-red: #FF0000;    /* The aggressive vibrant red from logos */
    --accent-glow: rgba(255, 0, 0, 0.4);
    
    --text-primary: #ffffff;
    --text-muted: #A0B2BC;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
    
    /* Effects */
    --glass-bg: rgba(0, 23, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/*=============================================
=            RESET E BASICO                   =
=============================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-glow);
}

/*=============================================
=            COMPONENTS                       =
=============================================*/
.bg-pulse {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.8; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
    border: 1px solid transparent;
}

.btn-primary:hover {
    box-shadow: 0 15px 40px -5px var(--accent-red);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.05);
    border-color: var(--text-primary);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background-color: rgba(255,0,0,0.1);
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
}

.center {
    text-align: center;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/*=============================================
=            HEADER                           =
=============================================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 11, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px; /* Logo height configuration */
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-btn {
    display: none;
}

/*=============================================
=            HERO SECTION                     =
=============================================*/
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -3;
    opacity: 0.5;
}

.hero-bg-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    z-index: -2;
    mask-image: linear-gradient(to right, transparent, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
    opacity: 0.8;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,11,19,0.95) 0%, rgba(0,11,19,0.5) 50%, rgba(0,11,19,0) 100%), linear-gradient(180deg, rgba(0,11,19,0.5) 0%, rgba(0,11,19,1) 100%);
    z-index: -1;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    z-index: 10;
}

.hero-content {
    text-align: left;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem; /* Reduced size based on feedback */
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 550px;
}

/* Removed Hero Image and Scroll Indicator Styles -> merged to background right */

/*=============================================
=            BACKGROUND AMBIENT ANIMATIONS    =
=============================================*/
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background-color: var(--accent-red);
    top: 20%;
    right: -10%;
    animation: drift 15s infinite alternate ease-in-out;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background-color: #0b2241;
    bottom: 10%;
    left: -15%;
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

.relative-z {
    position: relative;
    z-index: 2;
}

/*=============================================
=            DIAGNÓSTICO SECTION               =
=============================================*/
.diagnostico {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.dor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.dor-card {
    background-color: var(--surface-dark);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.dor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,0,0,0.5);
}

.dor-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
    display: inline-block;
}

.dor-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.dor-card p {
    color: var(--text-muted);
}

.diagnostico-impacto {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    border-left: 4px solid var(--accent-red);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1.2rem;
}

/*=============================================
=            SERVICOS SECTION                 =
=============================================*/
.servicos {
    padding: 8rem 0;
    background-color: var(--surface-dark);
    position: relative;
}

.servicos::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-dark), var(--surface-dark));
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.servico-card {
    background-color: var(--surface-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(255,0,0,0.2);
    border-color: rgba(255,0,0,0.3);
}

.servico-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.servico-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servico-card:hover .servico-img img {
    transform: scale(1.1);
}

.servico-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--surface-light), transparent);
}

.servico-content {
    padding: 2rem;
    flex-grow: 1;
}

.servico-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.servico-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Cards: now we have 6, grid handles it beautifully as 3x2 */

/*=============================================
=            METODOLOGIA SCROLLYTELLING        =
=============================================*/
.metodologia {
    padding: 8rem 0;
    background-color: var(--bg-dark);
}

.scrollytelling-container {
    max-width: 800px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scrolly-item {
    position: sticky;
    top: 150px;
    background-color: var(--surface-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.scrolly-item:nth-child(1) { top: 120px; z-index: 1; }
.scrolly-item:nth-child(2) { top: 140px; z-index: 2; }
.scrolly-item:nth-child(3) { top: 160px; z-index: 3; }
.scrolly-item:nth-child(4) { top: 180px; z-index: 4; }

.scrolly-item:hover {
    border-color: rgba(255,0,0,0.4);
    transform: translateY(-5px);
}

.scrolly-dot {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
}

.scrolly-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-red);
}

.scrolly-content p {
    color: var(--text-muted);
}

/*=============================================
=            FOOTER                           =
=============================================*/
.footer {
    background-color: #000810;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content:'';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,0,0,0.1) 0%, rgba(0,0,0,0) 60%);
    z-index: 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a, .footer-links p {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--surface-light);
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.social-icons a:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/*=============================================
=            RESPONSIVO                       =
=============================================*/
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { text-align: center; }
    .hero-title { font-size: 3.5rem; }
    .servicos-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2.3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-links a, .footer-links p { justify-content: center; }
    .social-icons { justify-content: center; }
    /* Scrollytelling readjustment for tablet/mobile */
    .scrolly-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    .desktop-btn {
        display: none;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--surface-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 2.5rem;
    }
    .nav.active {
        right: 0;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .mobile-btn {
        display: inline-flex;
        margin-top: 2rem;
    }
    .hero-title { font-size: 2.2rem; }
    .footer-title { font-size: 1.8rem; }
    .footer-logo { margin: 0 auto 1.5rem auto; }
    .footer-col { margin: 0 auto; }
    .dor-grid { grid-template-columns: 1fr; }
    .servicos-grid { grid-template-columns: 1fr; }
}
