/* --- Variables --- */
:root {
    /* Colors */
    --color-primary: #0F172A;
    /* Azul Marinho Profundo */
    --color-secondary: #334155;
    /* Cinza Chumbo */
    --color-accent: #2563EB;
    /* Azul Vibrante */
    --color-accent-hover: #1D4ED8;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-white: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother cubic-bezier */
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements if needed */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 700;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--color-accent);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

/* --- Include Other Layout Styles Below --- */

/* Header */
.header {
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-symbol {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.highlight {
    color: var(--color-accent);
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a:hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    padding: 80px 24px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1001;
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-list a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Hero */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    /* Background Image with Dark Overlay for readability */
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('../hero_image.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--color-white);
    text-align: center;
}

.hero .text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #ffffff 100%);
    /* Light Blue to White for contrast on dark bg */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-container {
    display: flex;
    /* Changed from grid to flex for centering */
    justify-content: center;
    align-items: center;
    max-width: 900px;
    /* Constrain width for better readability */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--color-white);
    /* Override default primary color */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    /* Light slate text for dark background */
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Center buttons */
    flex-wrap: wrap;
}

.hero .badge {
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    /* Lighter blue for dark background */
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Logic for .hero-visual removed */

.hero-icon-1,
.hero-icon-2,
.hero-icon-3 {
    position: absolute;
    color: var(--color-primary);
    opacity: 0.8;
}

.hero-icon-1 {
    font-size: 4rem;
    top: -30px;
    right: -30px;
    color: var(--color-accent);
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transform: rotate(10deg);
}

.hero-icon-2 {
    font-size: 3rem;
    bottom: -20px;
    left: -20px;
    background: var(--color-primary);
    color: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transform: rotate(10deg);
}

.hero-icon-3 {
    font-size: 8rem;
    color: #cbd5e1;
    opacity: 0.3;
}

/* Methodology */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.step-card {
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    padding: 32px;
    border-radius: var(--radius-lg);
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    /* For hover effect containment */
    box-shadow: var(--shadow-sm);
    /* robust shadow */
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.step-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: #f1f5f9;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--color-text-light);
    position: relative;
    z-index: 1;
}

/* Services */
.services {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.services .section-header h2 {
    color: var(--color-white);
}

.services .section-header p {
    color: #94a3b8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    /* Slightly more visible glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Brighter on hover */
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.3);
    /* Glow effect */
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.service-card h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    color: #cbd5e1;
}


/* Impact Section */
.impact {
    background: linear-gradient(135deg, var(--color-primary), #1e293b);
    color: var(--color-white);
    padding: 100px 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-text h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.impact-text p {
    color: #cbd5e1;
    font-size: 1.125rem;
}

.impact-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* About */
.about {
    background-color: var(--color-bg-alt);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-primary);
}

.feature i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.about-bio {
    font-style: italic;
    border-left: 4px solid var(--color-accent);
    padding-left: 16px;
    color: var(--color-primary) !important;
}

.profile-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.02);
}

/* Footer (Contact) */
.footer {
    padding: 20px 0 40px;
    /* Reduced top padding to bring CTA closer */
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary), #1e293b);
    padding: 60px 24px;
    border-radius: 24px;
    color: var(--color-white);
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    display: block;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .header .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile adjustments for Hero */
    .hero {
        padding-top: 100px;
        /* Reduced from 180px for mobile */
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Slightly smaller font */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .cta-box h2 {
        font-size: 1.75rem;
    }
}

/* --- Contact Modal --- */
.modal {
    display: flex;
    /* Changed from none to flex to check logic, but normally controlled by JS. Using flex here but visibility/display toggled. Actually, let's keep it hidden by default in CSS and toggled via JS class, or just display:none default */
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.8);
    /* Overlay color (Primary + Opacity) */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--color-white);
    margin: auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--color-text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover,
.close-modal:focus {
    color: var(--color-primary);
    text-decoration: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    /* Slate 300 */
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    background-color: #F8FAFC;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group.hidden {
    display: none;
}

.btn-full {
    width: 100%;
    margin-top: 16px;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 24px;
        width: 95%;
    }
}