/* =============== VARIABLES =============== */
:root {
    --primary-color: #7500f5;
    --primary-dark: #5a00c2;
    --primary-light: #9333ff;
    --secondary-color: #0c0f16;
    --text-color: #2d3748;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --header-height: 80px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* =============== TYPOGRAPHY =============== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

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

/* =============== UTILITIES =============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(117, 0, 245, 0.1), rgba(147, 51, 255, 0.1));
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section__title {
    margin-bottom: 1rem;
}

.section__description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-light);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============== BUTTONS =============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.938rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(117, 0, 245, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(117, 0, 245, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.btn-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-social.whatsapp {
    background-color: #065E54;
}

.btn-social.whatsapp:hover {
    background-color: #054d45;
    transform: translateY(-2px);
}

.btn-social.telegram {
    background-color: #4fa7d8;
}

.btn-social.telegram:hover {
    background-color: #3d8fb8;
    transform: translateY(-2px);
}

/* =============== HEADER =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav__logo img {
    height: 60px;
    width: auto;
}

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

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

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

.nav__contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__contact-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition);
}

.nav__contact-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.nav__contact-icon.whatsapp {
    background-color: #065E54;
}

.nav__contact-icon.whatsapp:hover {
    background-color: #054d45;
    transform: scale(1.1);
}

.nav__contact-icon.telegram {
    background-color: #4fa7d8;
}

.nav__contact-icon.telegram:hover {
    background-color: #3d8fb8;
    transform: scale(1.1);
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
}

.nav__toggle svg,
.nav__close svg {
    width: 24px;
    height: 24px;
}

/* =============== HERO SECTION =============== */
.hero {
    padding-top: calc(var(--header-height) + 1rem);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__subtitle {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(117, 0, 245, 0.1), rgba(147, 51, 255, 0.1));
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-logo-hero {
    width: 450px;
    height: 450px;
    animation: floatSlow 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 60px rgba(117, 0, 245, 0.2));
    will-change: transform;
}

@keyframes floatSlow {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-40px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =============== ABOUT SECTION =============== */
.about {
    background-color: var(--bg-light);
}

.about__content {
    max-width: 900px;
    margin: 0 auto;
}

.about__text {
    text-align: center;
}

.about__text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature__item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
}

.feature__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature__item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature__item p {
    font-size: 0.938rem;
    margin-bottom: 0;
}

/* =============== SERVICES SECTION =============== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(117, 0, 245, 0.1), rgba(147, 51, 255, 0.1));
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service__icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.service__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service__description {
    margin-bottom: 0;
}

/* =============== SOLUTIONS SECTION =============== */
.solutions {
    background-color: var(--bg-light);
}

.solutions__content {
    max-width: 800px;
    margin: 0 auto;
}

.solution__item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution__item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.solution__number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
}

.solution__info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.solution__info p {
    margin-bottom: 0;
}

/* =============== CONTACT SECTION =============== */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact__info > p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact__method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.contact__method:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.contact__method svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact__method:hover svg {
    color: white;
}

.contact__social h4 {
    margin-bottom: 1rem;
}

.social__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta__card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(117, 0, 245, 0.05), rgba(147, 51, 255, 0.05));
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    text-align: center;
}

.cta__card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta__card p {
    margin-bottom: 1.5rem;
}

/* =============== FOOTER =============== */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.footer__logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

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

.footer__group h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer__group ul {
    list-style: none;
}

.footer__group ul li {
    margin-bottom: 0.75rem;
}

.footer__group ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer__group ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

/* =============== RESPONSIVE =============== */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        transition: var(--transition);
        z-index: 100;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .nav__toggle {
        display: block;
    }

    .nav__contact-text {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + 3rem);
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__image {
        order: -1;
        margin-top: 3rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .floating-logo-hero {
        width: 280px;
        height: 280px;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: max(calc(var(--header-height) + 5rem), 160px);
    }

    .hero__image {
        margin-top: 3rem;
    }

    .floating-logo-hero {
        width: 200px;
        height: 200px;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .solution__item {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }

    .social__buttons {
        gap: 0.75rem;
    }

    .btn-social {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }
}

/* Ajuste específico para modo retrato (portrait) */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .hero {
        padding-top: calc(env(safe-area-inset-top, 0px) + 120px) !important;
    }

    .hero__image {
        margin-top: 20px !important;
    }
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* =============== SCROLL REVEAL =============== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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