/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Lazy loading images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

.section {
    padding: 5rem 0;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.125rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.875rem;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn--primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #20c05c 0%, #0d7377 100%);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--secondary {
    background: transparent;
    color: #25d366;
    border: 2px solid #25d366;
    position: relative;
    overflow: hidden;
}

.btn--secondary:hover {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-color: #25d366;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn--outline {
    background: transparent;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn--outline:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===== WHATSAPP BUTTON SPECIAL ===== */
.btn--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
    border: 2px solid transparent !important;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s infinite;
}

.btn--whatsapp:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6) !important;
    background: linear-gradient(135deg, #20c05c 0%, #0d7377 100%) !important;
}

.btn--whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.8s ease;
}

.btn--whatsapp:hover::before {
    left: 100%;
}

.btn--whatsapp::after {
    content: '💬';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.6rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    50% { 
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    will-change: transform;
    overflow-x: hidden;
    box-sizing: border-box;
}

.header.scroll-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.nav__brand {
    display: flex;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: #1a202c;
}

.logo-rs {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 1.25rem;
}

.logo-text {
    color: #1a202c;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover,
.nav__link.active-link {
    color: #667eea;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 0;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4a5568;
    background: none;
    border: none;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    outline: none;
    transition: all 0.2s ease;
}

.nav__toggle:hover,
.nav__close:hover {
    color: #667eea;
    transform: scale(1.05);
}

.nav__toggle:active,
.nav__close:active {
    transform: scale(0.95);
}

.nav__toggle:focus-visible,
.nav__close:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2; /* Garantir que o conteúdo principal fique acima dos elementos flutuantes */
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.hero__description {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat__label {
    font-size: 0.875rem;
    color: #718096;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
}

.hero__mockup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MOCKUP STYLES ===== */
.mockup {
    background: #1a202c;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mockup--desktop {
    width: 400px;
    height: 250px;
}

.mockup--mobile {
    width: 180px;
    height: 320px;
    position: absolute;
    right: -50px;
    bottom: -50px;
    border-radius: 20px;
    padding: 15px;
}

.mockup__screen {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.mockup__content {
    padding: 20px;
    height: 100%;
}

.mockup__header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mockup__dots {
    display: flex;
    gap: 5px;
}

.mockup__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
}

.mockup__dots span:first-child {
    background: #fc8181;
}

.mockup__dots span:nth-child(2) {
    background: #f6e05e;
}

.mockup__dots span:last-child {
    background: #68d391;
}

.mockup__hero {
    margin-bottom: 20px;
}

.mockup__text {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
}

.mockup__text--short {
    width: 60%;
}

.mockup__button {
    width: 80px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    margin-top: 15px;
}

.mockup__sections {
    display: flex;
    gap: 10px;
}

.mockup__section {
    flex: 1;
    height: 60px;
    background: #f7fafc;
    border-radius: 6px;
}

.mockup__mobile-header {
    height: 15px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.mockup__mobile-section {
    height: 40px;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ===== FLOATING ELEMENTS ===== */
/* 
 * Elementos decorativos flutuantes - Corrigido para evitar sobreposição com texto
 * - z-index: 1 para ficar atrás do conteúdo principal
 * - Opacity reduzida para ser mais sutil
 * - Posicionamento ajustado para diferentes breakpoints
 * - Oculto em telas pequenas (<380px) para melhor UX
 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Garantir que fique atrás do conteúdo principal */
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8; /* Tornar os elementos mais sutis */
}

.floating-element--1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-element--2 {
    top: 65%;
    right: 12%;
    animation-delay: 2s;
}

.floating-element--3 {
    bottom: 15%;
    left: 12%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===== SERVICES SECTION ===== */
.services {
    background: white;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service__card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f7fafc;
    position: relative;
    overflow: hidden;
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.service__card--featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.service__card--featured::before {
    height: 6px;
}

.service__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.service__description {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service__features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service__features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.service__features i {
    color: #48bb78;
    font-size: 0.875rem;
}

.service__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: #f7fafc;
}

.portfolio__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio__filter {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portfolio__filter:hover,
.portfolio__filter.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio__item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.portfolio__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.portfolio__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio__item:hover .portfolio__image img {
    transform: scale(1.1);
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__content {
    text-align: center;
    color: white;
}

.portfolio__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio__category {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.portfolio__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.portfolio__btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.portfolio__btn:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: white;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__content .section__header {
    text-align: left;
    margin-bottom: 2rem;
}

.about__content .section__title::after {
    left: 0;
    transform: none;
}

.about__description {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about__features {
    margin-bottom: 2rem;
}

.about__feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.about__feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.about__feature-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.about__feature-content p {
    color: #718096;
    font-size: 0.9rem;
}

.about__visual {
    position: relative;
}

.about__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about__achievement {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.achievement__number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.achievement__text {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: #f7fafc;
}

.process__timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process__step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process__step::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 80px;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
}

.process__step:last-child::after {
    display: none;
}

.process__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.process__content {
    flex: 1;
    padding-top: 0.5rem;
}

.process__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.process__description {
    color: #718096;
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: white;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__content .section__header {
    text-align: left;
    margin-bottom: 2rem;
}

.contact__content .section__title::after {
    left: 0;
    transform: none;
}

.contact__info {
    margin-bottom: 2rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact__details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.contact__details p {
    color: #718096;
    font-size: 0.9rem;
}

.contact__form-section {
    background: #f7fafc;
    border-radius: 16px;
    padding: 2rem;
}

.contact__form-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.contact__form-card p {
    color: #718096;
    margin-bottom: 2rem;
}

.form__group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form__input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form__input:invalid:not(:placeholder-shown) {
    border-color: #e53e3e;
}

.form__input:valid:not(:placeholder-shown) {
    border-color: #38a169;
}

/* Tratamento especial para select */
.form__input[type="select"],
select.form__input {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Labels flutuantes melhoradas */
.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label,
.form__input:valid + .form__label,
select.form__input:not([value=""]) + .form__label {
    transform: translateY(-1.5rem) scale(0.8);
    color: #667eea;
}

.form__input:invalid:not(:placeholder-shown) + .form__label {
    color: #e53e3e;
}

.form__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #718096;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
    z-index: 1;
}

/* Tratamento especial para textarea */
textarea.form__input {
    resize: vertical;
    min-height: 100px;
}

/* Estados de validação visuais */
.form__group.error .form__input {
    border-color: #e53e3e;
}

.form__group.success .form__input {
    border-color: #38a169;
}

/* Texto de ajuda */
.form__help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    text-align: center;
    line-height: 1.4;
}

/* Contador de caracteres */
.form__counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #718096;
}

.form__counter.warning {
    color: #f6ad55;
}

.form__counter.danger {
    color: #e53e3e;
}

/* Mensagens de erro */
.form__error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #e53e3e;
}

/* Loading state para o botão */
.btn--loading {
    position: relative;
    pointer-events: none;
}

.btn--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn--loading .btn-text {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer__sections-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.footer__description {
    color: #cbd5e0;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer__section {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__list a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.footer__list a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #cbd5e0;
    font-size: 0.95rem;
}

.footer__contact-item i {
    width: 18px;
    color: #667eea;
    font-size: 1rem;
}

.footer__contact-item a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contact-item a:hover {
    color: #667eea;
    padding-left: 0;
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social__link {
    width: 44px;
    height: 44px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social__link:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    color: #a0aec0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__copyright p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer__privacy a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer__privacy a:hover {
    color: #764ba2;
}

.footer__made-by {
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

.footer__made-by p {
    margin: 0;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    width: 65px !important;
    height: 65px !important;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.6rem !important;
    text-decoration: none !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
    animation: pulseGlow 2s infinite !important;
    will-change: transform !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
    background: linear-gradient(135deg, #20c05c 0%, #0d7377 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #25d366, #128c7e, #25d366);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    animation: rotate 3s linear infinite;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float i {
    z-index: 2;
    position: relative;
}

.whatsapp-text {
    position: absolute;
    right: 95px;
    top: 50%;
    transform: translateY(-50%) translateX(15px);
    background: white;
    color: #25d366;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 99998;
    border: 2px solid #25d366;
    min-width: 120px;
    text-align: center;
}

.whatsapp-text::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #25d366;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes pulseGlow {
    0% { 
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4);
        transform: scale(1);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.3; }
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
}

.modal__close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #718096;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: #f7fafc;
    color: #1a202c;
}

.modal__body {
    padding: 2rem;
}

.modal__image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

.modal__image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal__category {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal__description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal__technologies {
    margin-bottom: 2rem;
}

.modal__actions {
    text-align: center;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none; /* Por padrão oculto */
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: white;
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active .mobile-menu__content {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
}

.mobile-menu__brand-text {
    color: #1a202c;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.mobile-menu__close:hover {
    background: #f1f5f9;
    color: #667eea;
}

.mobile-menu__nav {
    padding: 1rem 0;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__item {
    margin: 0;
}

.mobile-menu__link {
    display: block;
    padding: 1rem 1.5rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
    background: #f8fafc;
    color: #667eea;
    border-left-color: #667eea;
}

.mobile-menu__cta {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.mobile-menu__btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* ===== DESKTOP RULES (acima de 968px) ===== */
@media screen and (min-width: 969px) {
    .whatsapp-text {
        right: 100px !important;
        min-width: 130px !important;
        transform: translateY(-50%) translateX(20px) !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
    
    .whatsapp-text::after {
        right: -10px !important;
        border-left-width: 10px !important;
        border-top-width: 10px !important;
        border-bottom-width: 10px !important;
    }
    
    .whatsapp-float:hover .whatsapp-text {
        transform: translateY(-50%) translateX(0) !important;
    }

    /* Garantir que o menu mobile esteja completamente oculto em desktop */
    .mobile-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .mobile-menu__content,
    .mobile-menu__overlay,
    .mobile-menu__header,
    .mobile-menu__nav,
    .mobile-menu__list,
    .mobile-menu__link,
    .mobile-menu__cta {
        display: none !important;
    }
    
    /* Garantir que o botão toggle esteja oculto */
    .nav__toggle {
        display: none !important;
    }
    
    /* Garantir que o menu desktop esteja visível */
    .nav__menu--desktop {
        display: flex !important;
    }
    
    /* Garantir espaçamento lateral adequado da navbar em desktop */
    .header .nav.container {
        padding: 0 3rem !important;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Para telas muito grandes, padding ainda maior */
    @media screen and (min-width: 1400px) {
        .header .nav.container {
            padding: 0 4rem !important;
            max-width: 1400px;
        }
    }
    
    /* Para telas extra grandes */
    @media screen and (min-width: 1920px) {
        .header .nav.container {
            padding: 0 6rem !important;
            max-width: 1600px;
        }
    }
}

@media screen and (max-width: 968px) {
    /* Ocultar menu desktop */
    .nav__menu--desktop {
        display: none;
    }
    
    /* Mostrar botões mobile */
    .nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Permitir que o menu mobile seja exibido em mobile */
    .mobile-menu {
        display: block;
    }

    /* Ajustar elementos flutuantes para tablets */
    .floating-element {
        opacity: 0.7; /* Mais sutil em tablets */
    }
    
    .floating-element--1 {
        top: 12%;
        left: 6%;
    }

    .floating-element--2 {
        top: 70%;
        right: 10%;
    }

    .floating-element--3 {
        bottom: 12%;
        left: 10%;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__mockup {
        margin-top: 2rem;
    }

    .mockup--desktop {
        width: 300px;
        height: 200px;
    }

    .mockup--mobile {
        width: 140px;
        height: 260px;
        right: -30px;
        bottom: -30px;
    }

    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__content .section__header,
    .contact__content .section__header {
        text-align: center;
    }

    .about__content .section__title::after,
    .contact__content .section__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__brand {
        text-align: center;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .footer__social {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer__sections-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__section {
        text-align: center;
    }

    .footer__section--contact {
        text-align: center;
    }

    .footer__section--contact .footer__list {
        text-align: center;
    }

    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 2rem;
    }

    .footer__copyright {
        text-align: center;
    }

    .footer__made-by {
        text-align: center;
    }

    .process__step {
        flex-direction: column;
        text-align: center;
    }

    .process__step::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .services__grid,
    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .service__card--featured {
        transform: none;
    }

    .portfolio__item {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Footer layout mais compacto para tablets e mobile */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer__content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Layout 2x2 mais compacto para tablets */
    .footer__sections-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .footer__section--contact {
        grid-column: 1 / -1; /* Ocupa toda a largura */
        text-align: center;
    }

    .footer__section {
        text-align: center;
    }

    .footer__section--contact .footer__list {
        text-align: center;
    }

    .nav {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .nav__actions {
        align-items: center;
        gap: 0.375rem;
        flex-shrink: 0;
        min-width: 0;
        overflow: visible;
    }

    .nav__actions .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        max-width: 140px;
        min-width: 120px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav__actions .btn .btn-text {
        display: inline-block;
        white-space: nowrap;
        overflow: visible;
        text-align: center;
        width: 100%;
    }

    .nav__brand {
        flex: 1;
        max-width: calc(100% - 180px);
        min-width: 0;
        overflow: hidden;
    }

    .nav__logo {
        font-size: 1.25rem;
    }

    .logo-rs {
        padding: 0.375rem;
        font-size: 1rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
        z-index: 9997;
    }

    .whatsapp-text {
        right: 76px;
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
    }

    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .modal {
        padding: 1rem;
    }

    .modal__content {
        max-height: 95vh;
    }

    .modal__body {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .nav {
        height: 65px;
        padding: 0 0.5rem;
        gap: 0.25rem;
    }

    .nav__menu {
        width: 280px;
        max-width: 90vw;
        padding: 5rem 1.5rem 2rem;
    }

    .nav__actions {
        gap: 0.25rem;
        flex-shrink: 0;
        min-width: auto;
    }

    .nav__actions .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
        max-width: 110px;
        min-width: 95px;
        border-radius: 6px;
        flex-shrink: 0;
        overflow: visible;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .nav__actions .btn .fab {
        display: none;
    }

    .nav__actions .btn .btn-text {
        font-size: 0.65rem;
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        text-align: center !important;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .nav__brand {
        flex: 1;
        max-width: calc(100% - 140px);
        min-width: 0;
        overflow: hidden;
    }

    .nav__logo {
        font-size: 1rem;
        gap: 0.25rem;
    }

    .logo-rs {
        padding: 0.25rem;
        font-size: 0.875rem;
    }

    .logo-text {
        display: none;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section__header {
        margin-bottom: 2rem;
    }

    .section__title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .section__subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero {
        padding: 5rem 0 2.5rem;
    }

    .hero__title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero__description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .hero__stats {
        margin-bottom: 2rem;
    }

    .stat__number {
        font-size: 1.5rem;
    }

    .stat__label {
        font-size: 0.8rem;
    }

    .hero__cta {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 48px;
        justify-content: center;
    }

    .btn--large {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        min-height: 52px;
    }

    .nav__actions .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
        min-height: 40px;
    }

    .service__card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .service__icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .service__title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .service__description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .service__features li {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .service__price {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .portfolio__filters {
        gap: 0.375rem;
        margin-bottom: 2rem;
    }

    .portfolio__filter {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .portfolio__grid {
        gap: 1.5rem;
    }

    .portfolio__item {
        max-width: 100%;
        margin: 0;
    }

    .portfolio__image {
        height: 200px;
    }

    .about__feature {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .about__feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .about__feature-content h3 {
        font-size: 1rem;
    }

    .about__feature-content p {
        font-size: 0.85rem;
    }

    .process__step {
        margin-bottom: 2rem;
    }

    .process__number {
        width: 50px;
        height: 50px;
        font-size: 1.125rem;
    }

    .process__title {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }

    .process__description {
        font-size: 0.9rem;
    }

    .contact__item {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .contact__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact__details h3 {
        font-size: 1rem;
    }

    .contact__details p {
        font-size: 0.85rem;
    }

    .contact__form-section {
        padding: 1.5rem;
    }

    .form__group {
        margin-bottom: 1.25rem;
    }

    .form__input {
        padding: 0.875rem;
        font-size: 0.9rem;
        min-height: 50px;
    }

    .form__label {
        font-size: 0.875rem;
    }

    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer__content {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer__brand {
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer__logo {
        font-size: 1.35rem;
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .footer__description {
        text-align: center;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .footer__social {
        justify-content: center;
        gap: 1rem;
        margin-top: 0.75rem;
    }

    .footer__section {
        text-align: center;
    }

    .footer__title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 1.5px;
    }

    .footer__list {
        margin-bottom: 0.5rem;
    }

    .footer__list li {
        margin-bottom: 0.5rem;
    }

    .footer__list a {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .footer__contact-item {
        justify-content: center;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .footer__bottom {
        padding-top: 1.5rem;
        gap: 0.75rem;
    }

    .footer__copyright {
        order: 2;
    }

    .footer__made-by {
        order: 1;
        font-size: 0.85rem;
    }

    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        opacity: 0.6; /* Ainda mais sutil em mobile */
    }
    
    /* Reposicionar elementos flutuantes para evitar sobreposição em mobile */
    .floating-element--1 {
        top: 8%;
        left: 5%;
    }

    .floating-element--2 {
        top: 75%;
        right: 8%;
    }

    .floating-element--3 {
        bottom: 8%;
        left: 8%;
    }

    .mockup--desktop {
        width: 220px;
        height: 140px;
    }

    .mockup--mobile {
        width: 100px;
        height: 180px;
        right: -15px;
        bottom: -15px;
    }

    .mockup__content {
        padding: 12px;
    }

    .mockup__text {
        height: 8px;
        margin-bottom: 6px;
    }

    .mockup__button {
        width: 60px;
        height: 18px;
        margin-top: 10px;
    }

    .mockup__sections {
        gap: 6px;
    }

    .mockup__section {
        height: 40px;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 52px;
        height: 52px;
        font-size: 1.125rem;
        z-index: 9997;
    }

    .whatsapp-text {
        right: 72px;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
    }

    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .modal {
        padding: 0.75rem;
    }

    .modal__header {
        padding: 1rem 1.5rem;
    }

    .modal__title {
        font-size: 1.25rem;
    }

    .modal__body {
        padding: 1rem;
    }

    .modal__image {
        margin-bottom: 1rem;
    }

    .modal__image img {
        height: 200px;
    }

    .modal__description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .modal__description h4 {
        font-size: 1rem;
        margin: 1rem 0 0.5rem 0;
    }

    .modal__description ul li {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
}

/* ===== BREAKPOINT EXTRA SMALL (320px) ===== */
@media screen and (max-width: 380px) {
    .container {
        padding: 0 0.5rem;
    }

    .nav {
        height: 60px;
        padding: 0 0.375rem;
        gap: 0.125rem;
    }

    .nav__menu {
        width: 260px;
        max-width: 95vw;
        padding: 4rem 1rem 1.5rem;
    }

    .nav__actions {
        gap: 0.125rem;
        flex-shrink: 0;
    }

    .nav__actions .btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.625rem;
        max-width: 95px;
        min-width: 80px;
        border-radius: 4px;
        flex-shrink: 0;
        overflow: visible;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .nav__actions .btn .btn-text {
        font-size: 0.575rem;
        line-height: 1.1;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        text-align: center !important;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .nav__toggle {
        min-width: 36px;
        min-height: 36px;
        padding: 0.25rem;
    }

    .nav__close {
        top: 1rem;
        right: 1rem;
    }

    .nav__brand {
        flex: 1;
        max-width: calc(100% - 125px);
        min-width: 0;
        overflow: hidden;
    }

    .nav__logo {
        font-size: 0.9rem;
        gap: 0.125rem;
    }

    .logo-rs {
        padding: 0.1875rem;
        font-size: 0.75rem;
    }

    .hero__title {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .hero__description {
        font-size: 0.9rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }

    .btn--large {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }

    .nav__actions .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }

    .hero__stats {
        gap: 0.75rem;
    }

    .stat__number {
        font-size: 1.25rem;
    }

    .stat__label {
        font-size: 0.75rem;
    }

    .service__card {
        padding: 1.25rem;
    }

    .service__title {
        font-size: 1rem;
    }

    .service__description {
        font-size: 0.85rem;
    }

    .service__price {
        font-size: 1.125rem;
    }

    .portfolio__filter {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .about__achievement {
        bottom: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .achievement__number {
        font-size: 1.5rem;
    }

    .achievement__text {
        font-size: 0.75rem;
    }

    .mockup--desktop {
        width: 180px;
        height: 115px;
    }

    .mockup--mobile {
        width: 80px;
        height: 140px;
        right: -10px;
        bottom: -10px;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1rem;
        z-index: 9997;
        bottom: 0.75rem;
        right: 0.75rem;
    }

    .whatsapp-text {
        right: 68px;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        max-width: 80px;
        top: 50%;
        transform: translateY(-50%) translateX(10px);
        display: none; /* Hide text on very small screens */
    }

    /* Ocultar elementos flutuantes em telas muito pequenas para evitar confusão visual */
    .floating-element {
        display: none;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ===== EXTRA SMALL DEVICES (320px and below) ===== */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 0.25rem;
    }

    .nav {
        height: 55px;
        padding: 0 0.25rem;
        gap: 0.125rem;
    }

    .nav__actions {
        gap: 0.125rem;
        flex-shrink: 0;
        overflow: visible;
    }

    .nav__actions .btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.575rem;
        max-width: 85px;
        min-width: 70px;
        border-radius: 3px;
        line-height: 1.2;
        flex-shrink: 0;
        overflow: visible;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .nav__actions .btn .btn-text {
        font-size: 0.525rem;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        line-height: 1.1;
        text-align: center !important;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .nav__toggle {
        min-width: 32px;
        min-height: 32px;
        padding: 0.125rem;
        font-size: 0.875rem;
    }

    .nav__brand {
        flex: 1;
        max-width: calc(100% - 110px);
        min-width: 0;
        overflow: hidden;
    }

    .nav__logo {
        font-size: 0.8rem;
        gap: 0.125rem;
    }

    .logo-rs {
        padding: 0.125rem;
        font-size: 0.7rem;
        border-radius: 4px;
    }

    .logo-text {
        display: none;
    }

    /* Footer ajustes para telas muito pequenas */
    .footer {
        padding: 2rem 0 0.75rem;
    }

    .footer__content {
        gap: 1.25rem;
        margin-bottom: 1rem;
    }

    .footer__brand {
        margin-bottom: 0.75rem;
    }

    .footer__logo {
        font-size: 1.15rem;
        gap: 0.375rem;
        margin-bottom: 0.5rem;
    }

    .footer__description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .footer__social {
        gap: 0.75rem;
        margin-top: 0.5rem;
    }

    .social__link {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .footer__section {
        margin-bottom: 0.5rem;
    }

    .footer__title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .footer__title::after {
        width: 18px;
        height: 1px;
    }

    .footer__list {
        margin-bottom: 0.25rem;
    }

    .footer__list li {
        margin-bottom: 0.375rem;
    }

    .footer__list a {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .footer__contact-item {
        font-size: 0.8rem;
        gap: 0.375rem;
        margin-bottom: 0.375rem;
        justify-content: center;
    }

    .footer__contact-item i {
        font-size: 0.85rem;
        width: 14px;
    }

    .footer__bottom {
        padding-top: 1rem;
        gap: 0.5rem;
    }

    .footer__copyright p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .footer__made-by {
        font-size: 0.75rem;
    }

    .hero__title {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .section__title {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .btn--large {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .section {
        padding: 2rem 0;
    }

    .hero__title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero__description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero__stats {
        margin-bottom: 1.5rem;
    }

    .floating-element {
        display: none;
    }
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: initial;
    }

    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .portfolio__item:hover {
        transform: none;
        box-shadow: initial;
    }

    .service__card:hover {
        transform: none;
        box-shadow: initial;
    }

    .nav__link:hover {
        color: initial;
    }

    .portfolio__filter:hover {
        background: initial;
        color: initial;
        border-color: initial;
        transform: none;
    }

    .social__link:hover,
    .portfolio__btn:hover,
    .whatsapp-float:hover,
    .back-to-top:hover,
    .modal__close:hover {
        transform: none;
        background: initial;
        color: initial;
        box-shadow: initial;
    }

    .whatsapp-float:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }

    .whatsapp-text {
        display: none !important; /* Hide hover text on touch devices */
    }
}

/* ===== IMPROVED TOUCH TARGETS ===== */
@media screen and (max-width: 768px) {
    .btn,
    .portfolio__filter,
    .nav__link,
    .social__link,
    .portfolio__btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .form__input,
    .form__input:focus {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .whatsapp-float,
    .back-to-top {
        min-height: 48px;
        min-width: 48px;
    }

    .whatsapp-float {
        width: 56px !important;
        height: 56px !important;
        font-size: 1.25rem !important;
    }
}

/* ===== VIEWPORT FIXES FOR MOBILE ===== */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
}

/* ===== SAFE AREA SUPPORT ===== */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .header {
        padding-top: env(safe-area-inset-top);
    }

    .whatsapp-float {
        bottom: max(1rem, calc(env(safe-area-inset-bottom) + 1rem));
        right: max(1rem, calc(env(safe-area-inset-right) + 1rem));
    }

    .back-to-top {
        bottom: max(1rem, env(safe-area-inset-bottom));
        left: max(1rem, env(safe-area-inset-left));
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #2d3748 !important;
    padding: 1.5rem 0 !important;
    z-index: 100000 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.1) !important;
    border-top: 3px solid linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-top: 3px solid #667eea !important;
    display: block !important;
}

.cookie-banner.show {
    transform: translateY(0) !important;
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    font-family: 'Inter', sans-serif;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    font-weight: 500;
}

.cookie-banner__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #667eea;
    transition: all 0.3s ease;
}

.cookie-banner__link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.cookie-banner__actions {
    flex-shrink: 0;
}

.cookie-banner__btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.cookie-banner__btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cookie-banner__btn:active {
    transform: translateY(0);
}

/* Cookie Banner Responsive */
@media screen and (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-banner__text p {
        font-size: 0.85rem;
    }
    
    .cookie-banner__btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner {
        padding: 0.75rem 0;
    }
    
    .cookie-banner__text p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .cookie-banner__btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* ===== PREVENT UNWANTED SELECTIONS ===== */
.nav__toggle,
.nav__close,
.portfolio__btn,
.whatsapp-float,
.back-to-top,
.portfolio__filter,
.modal__close,
.cookie-banner__btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .section > * {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== DISABLE ANIMATIONS ON LOW-END DEVICES ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .floating-element {
        animation: none;
    }

    .whatsapp-float {
        animation: none;
    }
}
