/* Reset e Variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --dark: #0a0e27;
    --dark-light: #151b33;
    --dark-lighter: #1e2742;
    --dark-border: #2a3452;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-hover: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #22d3ee 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px rgba(99, 102, 241, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

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

.logo {
    width: 44px;
    height: 44px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--text-light), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .btn-primary {
    background: var(--gradient);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-menu .btn-primary::after {
    display: none;
}

.nav-menu .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary-light);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    background: var(--gradient-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--dark-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid var(--dark-border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Sections */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--dark-light);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.service-card {
    background: var(--dark);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--dark-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Projects Section */
.projects {
    background: var(--dark);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Primeira linha: 2 colunas - Projetos principais */
.projects-featured-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Segunda linha: 3 colunas - Projetos secundários */
.projects-secondary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--dark-light);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.project-card.featured {
    grid-column: auto;
}

.project-card-large {
    min-height: 520px;
}

.project-image {
    height: 260px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    padding: 1.25rem;
    gap: 0.75rem;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.project-image-gradient-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-image-gradient-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-image-gradient-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-image-gradient-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-image-gradient-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    align-self: flex-start;
}

.project-tag {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    align-self: flex-start;
}

.project-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    margin-bottom: 1.25rem;
}

.project-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.project-client {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex: 1;
    font-size: 1rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    padding: 0.45rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    padding: 0.4rem 0.9rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
}

.project-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.project-link:hover {
    color: var(--primary);
    gap: 0.75rem;
}

.projects-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 3.5rem;
    background: var(--dark-light);
    border-radius: 20px;
    border: 1px solid var(--dark-border);
}

.projects-cta p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text);
    font-weight: 600;
}

/* Benefits Section */
.benefits {
    background: var(--dark-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    transition: transform 0.3s;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* AI Development Section */
.ai-development {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    position: relative;
}

.ai-development::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.ai-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ai-text {
    text-align: left;
}

.ai-text .section-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.ai-text .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 3rem 0;
}

.ai-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ai-feature-icon {
    font-size: 2.75rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.2));
}

.ai-feature h4 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.ai-feature p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.ai-visual {
    position: relative;
    height: 450px;
}

.ai-card-floating {
    position: relative;
    height: 100%;
}

.ai-card {
    position: absolute;
    background: var(--dark-light);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.ai-card:nth-child(1) {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
    z-index: 3;
}

.ai-card:nth-child(2) {
    top: 40%;
    right: 5%;
    animation-delay: 1.3s;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.15));
    border-color: rgba(139, 92, 246, 0.3);
    z-index: 2;
}

.ai-card:nth-child(3) {
    bottom: 10%;
    left: 15%;
    animation-delay: 2.6s;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.15));
    border-color: rgba(6, 182, 212, 0.3);
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(2deg);
    }
}

/* Stack Section */
.stack {
    background: var(--dark-light);
}

.stack-grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stack-card {
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.stack-card:hover::before {
    opacity: 1;
}

.stack-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.stack-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.18));
    border: 2px solid var(--primary);
    position: relative;
}

.stack-card-featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.25;
    filter: blur(12px);
}

.stack-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stack-card-badge {
    background: var(--gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.stack-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    transition: transform 0.3s;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.stack-card:hover .stack-card-icon {
    transform: scale(1.15) rotate(5deg);
}

.stack-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.stack-card-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.stack-tag {
    padding: 0.65rem 1.4rem;
    background: var(--dark-light);
    border: 1px solid var(--dark-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text);
    transition: all 0.3s;
    font-weight: 500;
    cursor: default;
}

.stack-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.stack-card-featured .stack-tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: white;
    font-weight: 600;
}

.stack-card-featured .stack-tag:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Process Section */
.process {
    background: var(--dark);
}

.process-timeline {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    padding-left: 4rem;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 2px;
}

.process-step {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 3.5rem;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    position: absolute;
    left: -4rem;
    top: 0;
    width: 4rem;
    height: 4rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    z-index: 2;
    border: 4px solid var(--dark);
}

.process-content {
    background: var(--dark-light);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.process-content:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(12px);
}

.process-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 700;
}

.process-content p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Contact Section */
.contact {
    background: var(--dark-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text);
}

.contact-item a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact-item p {
    color: var(--text-muted);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.15rem;
    background: var(--dark);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem 0.85rem 0.85rem;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s;
}

.whatsapp-float:hover::before {
    left: 100%;
}

.whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
    padding-right: 1.75rem;
}

.whatsapp-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: white;
    color: white;
    display: block;
    position: relative;
    z-index: 2;
}

.whatsapp-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.whatsapp-label {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .stack-card-featured {
        grid-column: span 1;
    }
    
    .projects-featured-row {
        grid-template-columns: 1fr;
    }
    
    .projects-secondary-row {
        grid-template-columns: 1fr;
    }
    
    .stack-grid-cards {
        grid-template-columns: 1fr;
    }
    
    .stack-card-featured {
        grid-column: span 1;
    }
    
    .ai-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-light);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--dark-border);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--dark-border);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.1rem;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    /* Overlay quando menu está aberto */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .projects-featured-row {
        grid-template-columns: 1fr;
    }
    
    .project-card-large {
        min-height: auto;
    }
    
    /* Corrigir sobreposição de badges no mobile */
    .project-image {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .project-badge {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-tag {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ai-visual {
        height: auto;
        min-height: 400px;
        padding: 2rem 0;
    }
    
    .ai-card-floating {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        height: 100%;
    }
    
    .ai-card {
        padding: 1.5rem 2rem;
        font-size: 1.1rem;
        position: relative !important;
        width: 80%;
        max-width: 280px;
        margin: 0 auto;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none;
    }
    
    .ai-card:nth-child(1) {
        order: 1;
    }
    
    .ai-card:nth-child(2) {
        order: 2;
    }
    
    .ai-card:nth-child(3) {
        order: 3;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .stack-grid-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stack-card {
        padding: 2.5rem 2rem;
    }
    
    .process-timeline {
        padding-left: 2.5rem;
    }
    
    .process-timeline::before {
        left: 1.25rem;
    }
    
    .process-step {
        padding-left: 2.5rem;
    }
    
    .process-number {
        left: -2.5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        border-width: 3px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.25rem 0.75rem 0.75rem;
    }
    
    .whatsapp-icon {
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-card,
    .project-card,
    .stack-card,
    .benefit-card {
        padding: 2rem 1.5rem;
    }
    
    .whatsapp-float {
        padding: 0.7rem;
        gap: 0;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-icon {
        width: 56px;
        height: 56px;
    }
    
    .ai-visual {
        height: 280px;
    }
    
    .projects-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-cta { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-lighter);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
