/* --- CSS Reset & Variables --- */
:root {
    --bg-color: #0B1220;
    --primary-color: #4F8CFF;
    --secondary-color: #7B61FF;
    --cyan-color: #00F0FF;
    --text-main: #FFFFFF;
    --text-muted: #A0AABF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Layout & Containers --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* --- Background Effects --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -200px;
    left: -100px;
}

.sphere-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.sphere-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-color), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation-duration: 25s;
}

.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Giant Lightning Effect */
.giant-lightning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    animation: lightningFlash 7s infinite;
}

.giant-lightning svg {
    width: 150%;
    height: 150%;
    max-width: 1400px;
    transform: rotate(10deg);
    filter: drop-shadow(0 0 60px rgba(253, 224, 71, 0.5));
}

@keyframes lightningFlash {
    0%, 90% { opacity: 0.15; transform: scale(1); filter: brightness(1); }
    91% { opacity: 0.95; transform: scale(1.02); filter: brightness(1.8) drop-shadow(0 0 120px #FFFFFF); }
    93% { opacity: 0.3; transform: scale(1); }
    95% { opacity: 0.85; transform: scale(1.03); filter: brightness(1.5) drop-shadow(0 0 100px #FDE047); }
    97% { opacity: 0.15; }
    100% { opacity: 0.15; }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Glassmorphism Utilities --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* --- Navbar --- */
.navbar {
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

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

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: var(--cyan-color);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.nav-menu a:active {
    color: var(--primary-color);
    transform: scale(0.95);
    display: inline-block;
}

/* --- Hero Section --- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg-animated {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('antes e depois.jfif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: panImageBackground 25s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    padding: 4rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out forwards;
    z-index: 2;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

@keyframes panImageBackground {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3%, -2%) scale(1.03); }
    100% { transform: translate(2%, 3%) scale(1.05); }
}

.glow-effect-large {
    box-shadow: 0 0 40px rgba(79, 140, 255, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.main-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.8));
}

.subtitle-giant {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-huge {
    font-size: 8.5rem;
    font-weight: 900;
    display: block;
    color: #FFD700;
    letter-spacing: -2px;
    line-height: 1;
    margin-top: -10px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.8);
}

.description {
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 25px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.styled-description {
    background: transparent;
    padding: 1rem 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.text-highlight {
    color: var(--cyan-color);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
}

.text-em-breve {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cyan-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

.launch-text {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 1.6rem;
    color: var(--cyan-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1), 0 0 25px rgba(0, 0, 0, 0.9);
}

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    position: relative;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-secondary:active {
    background-color: #25D366 !important; /* Verde WhatsApp / Green */
    border-color: #25D366 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8) !important;
    transform: scale(0.96) !important;
    transition: all 0.1s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(79, 140, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Features Section --- */
.features {
    padding: 4rem 0 8rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 0) var(--mouse-y, 0), 
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.animated-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 140, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--cyan-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Portfolio Section --- */
.portfolio-section {
    padding: 4rem 0 8rem;
    position: relative;
    overflow: hidden;
}

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

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

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

/* Swiper Styling */
.portfolio-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .swiper-slide {
        width: 400px;
        height: 500px;
    }
}

.portfolio-img-container, .portfolio-placeholder {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    overflow: hidden;
}

.portfolio-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.swiper-slide:hover .portfolio-img-container img {
    transform: scale(1.1);
}

.portfolio-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.portfolio-placeholder p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 0 1rem;
}

.slide-caption {
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid var(--glass-border);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--cyan-color) !important;
}

.swiper-pagination-bullet {
    background: var(--text-muted) !important;
}

.swiper-pagination-bullet-active {
    background: var(--cyan-color) !important;
}

/* --- Footer --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.2rem;
    }
    
    .subtitle-giant {
        font-size: 1.8rem;
    }
    
    .text-huge {
        font-size: 4.5rem;
    }
    
    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .hero-content {
        padding: 2.5rem 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .swiper-slide {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 8rem 0 4rem;
    }

    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle-giant {
        font-size: 1.5rem;
    }
    
    .text-huge {
        font-size: 3.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .slide-caption {
        font-size: 0.95rem;
        padding: 1rem;
    }
}

/* --- Lightbox Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 1);
    display: none;
}

.lightbox-content-wrapper img.active,
.lightbox-content-wrapper video.active {
    display: block;
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--cyan-color);
}

.portfolio-img-container {
    cursor: pointer;
}
