/* ====================================
   PALETA DE CORES
   ==================================== */
:root {
    --yellow: #ef4225;        /* Amarelo principal */
    --light-yellow: #f25e4e;  /* Amarelo claro */
    --dark-gray: #1d1d1d;     /* Cinza escuro */
    --light-gray: #333230;    /* Cinza claro */
    --white: #fafafa;         /* Branco */
    
    /* Cores complementares */
    --accent-gray: #666;
    --hover-shadow: rgba(242, 94, 78, 0.3);
    --border-color: rgba(242, 94, 78, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ====================================
   CURSOR CUSTOMIZADO
   ==================================== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(3);
    background: var(--dark-gray);
}

/* ====================================
   HEADER E NAVEGAÇÃO
   ==================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(51, 50, 48, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(242, 94, 78, 0.1);
    background: rgba(51, 50, 48, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    position: relative;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 0;
}

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

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

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

.nav-cta {
    background: var(--yellow) !important;
    color: var(--dark-gray) !important;
    padding: 12px 24px !important;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--hover-shadow);
}

.nav-cta:hover {
    background: var(--white) !important;
    color: var(--dark-gray) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 94, 78, 0.4);
}

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

/* ====================================
   MENU MOBILE
   ==================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--yellow);
}

/* ====================================
   SEÇÃO HERO
   ==================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, #f7f7f7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--light-yellow);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.3;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.hero-content .highlight {
    color: var(--light-gray);
    position: relative;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--yellow);
    opacity: 0.7;
    z-index: -1;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--accent-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--yellow);
    color: var(--dark-gray);
    box-shadow: 0 4px 20px var(--hover-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(242, 94, 78, 0.4);
    background: var(--light-yellow);
}

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

.btn-secondary:hover {
    background: var(--light-gray);
    color: var(--white);
    transform: translateY(-3px);
}

/* ====================================
   CARD FLUTUANTE
   ==================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(29, 29, 29, 0.1);
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--light-gray));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

.code-snippet {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    display: block;
    margin-bottom: 8px;
    opacity: 0;
    animation: typeIn 0.8s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }

@keyframes typeIn {
    to { opacity: 1; }
}

.keyword { 
    color: var(--light-gray); 
    font-weight: 600; 
}

.string { 
    color: #d73a49; 
}

.function { 
    color: var(--yellow); 
    background: rgba(244, 220, 84, 0.1); 
    padding: 2px 4px; 
    border-radius: 3px; 
}

.comment { 
    color: var(--accent-gray); 
}

/* ====================================
   UTILITÁRIOS
   ==================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.section-header .highlight-yellow {
    color: var(--light-gray);
    position: relative;
}

.section-header .highlight-yellow::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--yellow);
    opacity: 0.7;
    z-index: -1;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--accent-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   SEÇÃO SERVIÇOS
   ==================================== */
.services {
    padding: 120px 50px;
    background: #f7f7f7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(244, 220, 84, 0.05), rgba(51, 50, 48, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(29, 29, 29, 0.15);
    border-color: var(--yellow);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--light-gray);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

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

/* ====================================
   SEÇÃO ESTATÍSTICAS
   ==================================== */
.stats {
    padding: 100px 50px;
    background: var(--dark-gray);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--yellow);
    display: block;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--light-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ====================================
   SEÇÃO PORTFOLIO
   ==================================== */
.portfolio {
    padding: 120px 50px;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.portfolio-item {
    background: #f7f7f7;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(29, 29, 29, 0.1);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, var(--light-yellow), var(--light-gray));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--white);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--accent-gray);
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--yellow);
    color: var(--dark-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ====================================
   SEÇÃO SOBRE
   ==================================== */
.about {
    padding: 120px 50px;
    background: var(--light-gray);
    color: var(--white);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--white);
}

.about-text .highlight-about {
    color: var(--yellow);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--light-yellow);
}

.team-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(244, 220, 84, 0.2);
}

.feature-item h4 {
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--light-yellow);
}

/* ====================================
   SEÇÃO CONTATO
   ==================================== */
.contact {
    padding: 120px 50px;
    background: #f7f7f7;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.2rem;
    color: var(--accent-gray);
    margin-bottom: 50px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.contact-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(29, 29, 29, 0.1);
    border-color: var(--yellow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    color: var(--dark-gray);
}

.contact-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.contact-value {
    color: var(--accent-gray);
}

/* ====================================
   FORMULÁRIO DE CONTATO
   ==================================== */
.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(29, 29, 29, 0.1);
    max-width: 800px;
    margin: 60px auto 0;
}

.contact-form h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 30px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(242, 94, 78, 0.1);
}

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

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: var(--yellow);
    color: var(--dark-gray);
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--hover-shadow);
    min-width: 200px;
}

.submit-btn:hover {
    background: var(--light-gray);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(51, 50, 48, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(51, 50, 48, 0.1);
    color: var(--light-gray);
    border: 1px solid rgba(51, 50, 48, 0.3);
}

.form-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* ====================================
   FOOTER
   ==================================== */
footer {
    background: var(--dark-gray);
    padding: 50px;
    text-align: center;
    color: var(--light-yellow);
}

footer p {
    font-size: 16px;
}

/* ====================================
   ANIMAÇÕES
   ==================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card,
.portfolio-item,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   OTIMIZAÇÕES
   ==================================== */
.btn, 
.service-card, 
.portfolio-item, 
.contact-item {
    will-change: transform;
}

* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* ====================================
   RESPONSIVIDADE
   ==================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        padding: 0 20px;
    }
    
    .hero-container,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        margin-top: 150px;
        font-size: 2.5rem;
    }
    
    header {
        padding: 15px 20px;
    }
    
    .services,
    .stats,
    .portfolio,
    .about,
    .contact {
        padding: 60px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .team-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
        margin: 40px 20px 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}