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

:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-color: #0f172a;
    --dark-alt: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-text: linear-gradient(135deg, #667eea 0%, #ec4899 100%);
    
    /* Typography */
    --font-family: 'Poppins', sans-serif;
    --font-size-base: 16px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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);
    
    /* Transitions */
    --transition: all 0.3s ease;
    
    /* Header Height */
    --header-height: 4rem;
}

html {
    scroll-behavior: smooth;
}

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

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn--full {
    width: 100%;
}

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

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--dark-color);
}

.logo-tech {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__list {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
}

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

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

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero__content {
    animation: fadeInUp 1s ease;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat__label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.hero__image {
    position: relative;
    height: 500px;
}

.hero__image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.floating-element {
    position: absolute;
    border-radius: var(--radius-lg);
    animation: float 3s ease-in-out infinite;
}

.element-1 {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-secondary);
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

.element-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-down {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.scroll-down span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

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

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

.about__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature {
    padding: var(--spacing-md);
    background: var(--light-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

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

.feature__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature__title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.feature__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== COMPANY INFO SECTION ==================== */
.company-info {
    background: var(--light-color);
}

.company-info__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.company-info__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.company-info__header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info__title {
    font-size: 1.5rem;
    font-weight: 600;
}

.company-info__logo {
    font-size: 2rem;
    opacity: 0.8;
}

.company-info__details {
    padding: var(--spacing-md);
}

.company-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid #f1f5f9;
}

.company-detail:last-child {
    border-bottom: none;
}

.detail__label {
    font-weight: 600;
    color: var(--text-color);
    min-width: 140px;
    font-size: 0.9rem;
}

.detail__value {
    color: var(--text-light);
    text-align: right;
    flex: 1;
    font-size: 0.9rem;
}

.company-info__description {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.company-info__description h4 {
    color: var(--dark-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-info__description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.company-info__description p:last-child {
    margin-bottom: 0;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-card__title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.service-card__description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.service-card__list {
    list-style: none;
}

.service-card__list li {
    padding: var(--spacing-xs) 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.service-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
    background: var(--white);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card__image {
    height: 250px;
    overflow: hidden;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-icon {
    font-size: 4rem;
}

.portfolio-card__content {
    padding: var(--spacing-md);
}

.portfolio-card__title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.portfolio-card__description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.portfolio-card__tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    color: var(--primary-color);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    background: var(--light-color);
    position: relative;
}

.testimonials__slider {
    overflow: hidden;
    padding: var(--spacing-md) 0;
}

.testimonials__track {
    display: flex;
    gap: var(--spacing-md);
    transition: transform 0.5s ease;
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 100%;
    position: relative;
}

.testimonial-card__quote {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 20px;
    line-height: 1;
}

.testimonial-card__text {
    font-size: 1.125rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author__avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author__name {
    color: var(--dark-color);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.author__position {
    color: var(--text-light);
    font-size: 0.875rem;
}

.testimonials__controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.testimonial-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--white);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact__info-title {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.contact__info-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.contact__details {
    margin-bottom: var(--spacing-lg);
}

.contact-detail {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-detail__icon {
    font-size: 2rem;
}

.contact-detail h4 {
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.contact-detail p {
    color: var(--text-light);
}

.contact__social {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background: var(--light-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Contact Form */
.contact__form {
    background: var(--light-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.form__group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-family);
    background: var(--white);
    transition: var(--transition);
    color: var(--text-color);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    background: var(--light-color);
    padding: 0 0.5rem;
    color: var(--primary-color);
}

.form__label--select {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.875rem;
    background: var(--light-color);
    padding: 0 0.5rem;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.form__message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form__message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer__description {
    color: var(--text-light);
    line-height: 1.8;
}

.footer__title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--spacing-xs);
}

.footer__links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-color);
}

.footer__newsletter-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.footer__newsletter {
    display: flex;
    gap: var(--spacing-xs);
}

.newsletter__input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
}

.newsletter__btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.footer__legal p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.footer__cnpj {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.footer__address {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

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

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* ==================== RESPONSIVE ==================== */
@media screen and (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        background: var(--white);
        width: 70%;
        height: calc(100vh - var(--header-height));
        padding: var(--spacing-md);
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero__container {
        grid-template-columns: 1fr;
    }
    
    .hero__image {
        height: 300px;
    }
    
    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat__number {
        font-size: 2rem;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .company-info__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .detail__label {
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .detail__value {
        font-size: 0.85rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .footer__newsletter {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .hero__stats {
        grid-template-columns: 1fr;
    }
    
    .stat__number {
        font-size: 2.5rem;
    }
    
    .element-1, .element-2, .element-3 {
        width: 100px;
        height: 100px;
    }
}

