/* RESET E CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* EFEITO DE PARTÍCULAS NO FUNDO */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(41, 98, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(106, 13, 173, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(220, 20, 60, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* ===== NAVBAR ===== */
.navbar {
    padding: 25px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    border-radius: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.active {
    color: #fff;
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    border-radius: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    font-size: 18px;
    color: #8a8aff;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.subtitle::before {
    content: '';
    position: absolute;
    left: -50px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    border-radius: 2px;
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-size: 70px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.description {
    font-size: 18px;
    line-height: 1.6;
    color: #b0b0d0;
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-button {
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(41, 98, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(41, 98, 255, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6a0dad, #2962ff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:active {
    transform: translateY(1px);
}

/* ===== QUADRADOS FLUTUANTES ===== */
.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-shapes {
    position: relative;
    width: 400px;
    height: 400px;
}

.shape {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 50px;
    left: 0;
    animation: float 7s ease-in-out infinite 0.5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 150px;
    left: 100px;
    animation: float 5s ease-in-out infinite 1s;
}

/* Animações dos quadrados */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Efeito de brilho nas formas */
.shape::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(41, 98, 255, 0.3), 
        rgba(106, 13, 173, 0.3), 
        rgba(41, 98, 255, 0.3));
    border-radius: 22px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.7;
}

/* ANIMAÇÃO QUANDO CLICAR NO BOTÃO */
.shape.moving {
    animation: moveToForm 1.2s ease-in-out forwards !important;
}

@keyframes moveToForm {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translate(var(--target-x), var(--target-y)) rotate(180deg) scale(0.5);
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--target-x), var(--target-y)) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* ===== MODAL DO FORMULÁRIO (AJUSTADO) ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-container {
    background: linear-gradient(145deg, #0f0f1a, #1a1a2e);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(41, 98, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.5s ease forwards;
    transform: translateY(50px);
}

@keyframes modalSlideUp {
    to {
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    min-height: 450px;
    max-height: calc(85vh - 100px);
}

/* ===== LADO ESQUERDO: ILUSTRAÇÃO (AJUSTADO) ===== */
.form-illustration {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(41, 98, 255, 0.08), 
        rgba(106, 13, 173, 0.08));
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.form-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(41, 98, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(106, 13, 173, 0.1) 0%, transparent 50%);
}

.illustration-shapes {
    position: relative;
    height: 120px;
    margin-bottom: 25px;
}

.il-shape {
    position: absolute;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.il-1 {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, 
        rgba(41, 98, 255, 0.15), 
        rgba(106, 13, 173, 0.15));
    animation: floatShape 8s ease-in-out infinite;
}

.il-2 {
    width: 60px;
    height: 60px;
    top: 30px;
    right: 15px;
    background: linear-gradient(135deg, 
        rgba(106, 13, 173, 0.15), 
        rgba(41, 98, 255, 0.15));
    animation: floatShape 7s ease-in-out infinite 1s;
}

.il-3 {
    width: 45px;
    height: 45px;
    bottom: 15px;
    left: 40px;
    animation: floatShape 9s ease-in-out infinite 0.5s;
}

.il-4 {
    width: 35px;
    height: 35px;
    bottom: 45px;
    right: 45px;
    animation: floatShape 6s ease-in-out infinite 1.5s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.form-illustration h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-illustration p {
    color: #b0b0d0;
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 14px;
}

.features {
    margin-top: auto;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.feature i {
    color: #2962ff;
    font-size: 16px;
    margin-right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(41, 98, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature span {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

/* ===== LADO DIREITO: FORMULÁRIO (AJUSTADO) ===== */
.form-container {
    flex: 1.2;
    padding: 35px 30px;
    background: #0f0f1a;
    overflow-y: auto;
}

.form-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.form-subtitle {
    color: #8a8aff;
    margin-bottom: 20px;
    font-size: 13px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    color: #b0b0d0;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group label i {
    margin-right: 8px;
    color: #8a8aff;
    font-size: 13px;
    width: 18px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
    font-size: 13px;
}

.form-group select {
    appearance: none;
    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='%238a8aff' 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 15px center;
    background-size: 14px;
    padding-right: 40px;
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-size: 13px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 8px;
    accent-color: #2962ff;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 12px;
    color: #b0b0d0;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 98, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #666;
}

.form-footer a {
    color: #8a8aff;
    text-decoration: none;
    font-size: 11px;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .subtitle::before {
        display: none;
    }
    
    .title {
        font-size: 55px;
    }
    
    .hero-image {
        height: 400px;
        margin-top: 50px;
    }
    
    .floating-shapes {
        width: 350px;
        height: 350px;
    }
    
    .modal-content {
        flex-direction: column;
        min-height: auto;
        max-height: none;
    }
    
    .modal-container {
        max-height: 90vh;
    }
    
    .form-illustration {
        padding: 30px 25px;
    }
    
    .illustration-shapes {
        height: 100px;
    }
    
    .form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .title {
        font-size: 45px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .modal-container {
        width: 95%;
        max-height: 92vh;
    }
    
    .form-illustration h3 {
        font-size: 20px;
    }
    
    .form-container h2 {
        font-size: 22px;
    }
    
    .feature {
        padding: 10px;
    }
    
    .feature i {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 38px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .floating-shapes {
        width: 280px;
        height: 280px;
    }
    
    .cta-button {
        padding: 16px 35px;
        font-size: 15px;
    }
    
    .modal-container {
        max-width: 95%;
    }
    
    .modal-content {
        flex-direction: column;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 13px;
    }
}

/* Animação para aparecer a página Sobre */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sobre-page {
    animation: fadeInUp 0.8s ease-out;
}

/* Estilo para links ativos no menu */
.nav-links a[href="sobre.html"] {
    color: #fff;
    font-weight: 600;
}

.nav-links a[href="sobre.html"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    border-radius: 2px;
}

/* Estilo para links ativos no menu Services */
.nav-links a[href="services.html"] {
    color: #fff;
    font-weight: 600;
}

.nav-links a[href="services.html"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    border-radius: 2px;
}

/* Estilo para links ativos no menu Contact */
.nav-links a[href="contact.html"] {
    color: #fff;
    font-weight: 600;
}

.nav-links a[href="contact.html"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #2962ff, #6a0dad);
    border-radius: 2px;
}