/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #00d4aa;
    --primary-dark: #00b894;
    --secondary-color: #2d3436;
    --dark-bg: #0f1419;
    --darker-bg: #0a0e13;
    --text-light: #ffffff;
    --text-gray: #b2bec3;
    --text-dark: #2d3436;
    --border-color: #34495e;
    --gradient-primary: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --gradient-dark: linear-gradient(135deg, #0f1419 0%, #2d3436 100%);
    --shadow-light: 0 4px 20px rgba(0, 212, 170, 0.15);
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
    scroll-behavior: smooth;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    color: var(--text-light);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--darker-bg);
    overflow: hidden;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 15;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 170, 0.05) 0%,
        rgba(0, 212, 170, 0.02) 50%,
        rgba(0, 212, 170, 0.05) 100%
    );
    z-index: 2;
    pointer-events: none;
}



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(20px) rotate(-1deg); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 15;
}

.hero-buttons .btn {
    z-index: 20;
    pointer-events: auto;
    position: relative;
}

.hero-image {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-image img {
    max-width: 300px;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 170, 0.3));
    border-radius: 20px;
}

/* Logo mobile específico */
@media (max-width: 768px) {
    .hero-image.d-lg-none img {
        max-width: 180px;
        margin: 0 auto;
        display: block;
    }
}

/* ===== BOTÕES ===== */
.btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
    color: var(--text-light);
}

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

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* ===== SEÇÕES ===== */
.section-padding {
    padding: 6rem 0;
}

.bg-dark {
    background: var(--darker-bg);
}

/* ===== CARDS DE SERVIÇOS ===== */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-icon::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;
}

.service-icon:hover::before {
    left: 100%;
}

.service-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

/* Animações específicas para cada ícone */
.service-icon.fa-laptop-code {
    animation: codePulse 2s ease-in-out infinite;
}

.service-icon.fa-mobile-alt {
    animation: mobileBounce 2s ease-in-out infinite;
}

.service-icon.fa-rocket {
    animation: rocketFloat 3s ease-in-out infinite;
}

/* Efeitos de hover específicos */
.service-card:hover .service-icon.fa-laptop-code {
    animation: codeSpin 0.6s ease-in-out;
}

.service-card:hover .service-icon.fa-mobile-alt {
    animation: mobileShake 0.8s ease-in-out;
}

.service-card:hover .service-icon.fa-rocket {
    animation: rocketLaunch 1s ease-in-out;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
}

/* ===== PORTFÓLIO ===== */
.portfolio-video-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    aspect-ratio: 16/9;
}

.portfolio-video-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-light);
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-video-item:hover .portfolio-video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 170, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--text-light);
    text-align: center;
}

.portfolio-video-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.play-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-light);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 170, 0.25);
    color: var(--text-light);
}

.contact-form .form-control::placeholder {
    color: var(--text-gray);
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
    color: var(--text-light);
}

.social-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.social-link.disabled:hover {
    transform: none;
    box-shadow: none;
}



/* ===== MODAL DE VÍDEO ===== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.close-video-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--text-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-video-modal:hover {
    color: var(--primary-color);
}

.video-modal-content video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: var(--shadow-dark);
}

#modal-video-title {
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 1.5rem;
}

/* ===== ANIMAÇÕES AOS ===== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 !important;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-image img {
        max-width: 200px;
        height: auto;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    /* Ajustes específicos para mobile */
    .hero-section .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .hero-section .row {
        min-height: auto;
        align-items: flex-start;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .portfolio-video-item {
        aspect-ratio: 16/9;
    }
    
    .portfolio-video {
        height: 200px;
    }
}

/* ===== UTILITÁRIOS ===== */
.text-white { color: var(--text-light) !important; }
.text-light { color: var(--text-gray) !important; }
.text-primary { color: var(--primary-color) !important; }

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

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

/* ===== ANIMAÇÕES DE ENTRADA ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== ANIMAÇÕES DOS ÍCONES DE SERVIÇO ===== */
@keyframes codePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(1deg); }
    75% { transform: translateY(3px) rotate(-1deg); }
}

@keyframes codeSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1.1) rotate(360deg); }
}

@keyframes mobileShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes rocketLaunch {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
    100% { transform: translateY(0) scale(1.1); }
}
