/* Variables */
:root {
    /* Colors - Clean Light Theme */
    --bg-color: #F8FAFC;
    /* Slate 50 */
    --bg-color-alt: #FFFFFF;
    /* White for cards */
    --text-color: #0F172A;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */

    /* Brand Gradients - Adjusted for Light Mode */
    --brand-gradient: linear-gradient(135deg, #0284C7 0%, #4F46E5 100%);
    /* Blue to Indigo */

    --accent-color: #0284C7;
    /* Sky 600 */
    --border-color: #E2E8F0;
    /* Slate 200 */

    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --container-width: 1280px;
    --header-height: 90px;
    --section-spacing: 140px;

    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 10px 25px -10px rgba(79, 70, 229, 0.3);
    /* Adjusted shadow color */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px -15px rgba(79, 70, 229, 0.4);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background-color: #fff;
}

.btn--outline:hover {
    border-color: var(--accent-color);
    background: rgba(2, 132, 199, 0.05);
    /* Subtle blue tint */
}

.btn--whatsapp {
    background-color: #25D366;
    color: #fff;
    gap: 0.5rem;
    font-weight: 700;
}

.btn--whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    /* Light glass */
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 65px;
    width: auto;
    /* Clean, natural shadow for light mode. Removed brightness boost. */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav__list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition-smooth);
}

.nav__link:hover {
    color: var(--text-color);
}

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    left: 0;
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
    background-color: #F8FAFC;
}

/* Background Abstract Glow - Adjusted for Light */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    z-index: 0;
    filter: blur(80px);
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    max-width: 700px;
}

.hero__tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 100px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #1E293B;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 540px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
}

/* Hero Visual box */
.hero__visual {
    position: relative;
}

.visual-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    /* Softer shadow */
    transition: transform 0.5s ease;
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.visual-card code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #334155;
    /* Darker text for code */
}

/* Section Common */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section__header {
    text-align: left;
    margin-bottom: 5rem;
    max-width: 800px;
}

.section__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: #0F172A;
}

.section__subtitle {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Sobre */
.sobre {
    background-color: #FFFFFF;
}

.sobre__content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 900px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.1);
    /* Dark shadow for depth */
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: #F1F5F9;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0F172A;
}

.service-desc {
    color: var(--text-muted);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    position: relative;
    padding: 2rem;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step__number {
    font-size: 4rem;
    font-weight: 800;
    color: #F1F5F9;
    /* Very light slate for numbers */
    position: absolute;
    top: 10px;
    right: 20px;
}

.step__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.step__desc {
    position: relative;
    z-index: 1;
}

/* Contact */
.contato {
    background: linear-gradient(to bottom, var(--bg-color), #E2E8F0);
}

.contato__wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

/* Glow */
.contato__wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.contato__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #0F172A;
}

.contato__text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: #FFFFFF;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .hero__description {
        margin: 0 auto 2.5rem;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 8rem 2.5rem;
        transition: var(--transition-smooth);
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav__link {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .hero__title {
        font-size: 2.75rem;
    }

    .contato__wrapper {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
    }

    .contato__action {
        margin-top: 2rem;
    }

    .footer__container {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 500px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}