/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #17171A;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header e Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(23, 23, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(118, 65, 230, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7641E6;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

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

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #7641E6;
    background-color: rgba(118, 65, 230, 0.1);
}

.nav-link.active {
    color: #7641E6;
    background-color: rgba(118, 65, 230, 0.15);
}

.play-button .play-link {
    background: linear-gradient(135deg, #7641E6, #9f5ff2);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 65, 230, 0.3);
}

.play-button .play-link:hover {
    background: linear-gradient(135deg, #8b52eb, #b670f7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 65, 230, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #17171A 0%, #1a1a1f 50%, #17171A 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(118, 65, 230, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(118, 65, 230, 0.05) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #7641E6, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: #b3b3b3;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7641E6, #9f5ff2);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 65, 230, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b52eb, #b670f7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 65, 230, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #7641E6;
    border: 2px solid #7641E6;
}

.btn-secondary:hover {
    background: #7641E6;
    color: white;
    transform: translateY(-2px);
}

/* Code Block Animation */
.hero-visual {
    position: relative;
}

.code-block {
    background: #1a1a1f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(118, 65, 230, 0.2);
}

.code-header {
    background: #2a2a2f;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #28ca42; }

.code-title {
    margin-left: 1rem;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
}

.code-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: typeIn 0.5s 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; }
.code-line:nth-child(5) { animation-delay: 2.5s; }
.code-line:nth-child(6) { animation-delay: 3s; }

.code-keyword { color: #7641E6; }
.code-string { color: #a855f7; }
.code-number { color: #06d6a0; }

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: #7641E6;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 15%;
    right: 30%;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(2) {
    top: 45%;
    right: 15%;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(3) {
    top: 70%;
    right: 35%;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(4) {
    top: 25%;
    right: 5%;
    animation-delay: var(--delay);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #b3b3b3;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #1a1a1f;
}

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

.about-card {
    background: #17171A;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(118, 65, 230, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(118, 65, 230, 0.1), transparent);
    transition: 0.5s;
}

.about-card:hover::before {
    left: 100%;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: #7641E6;
    box-shadow: 0 20px 40px rgba(118, 65, 230, 0.2);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #7641E6, #a855f7);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #17171A;
}

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

.service-card {
    background: #1a1a1f;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(118, 65, 230, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #7641E6;
    box-shadow: 0 20px 40px rgba(118, 65, 230, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7641E6, #a855f7);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: #b3b3b3;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: #b3b3b3;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li::before {
    content: '✓';
    color: #7641E6;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Solutions Section */
.solutions {
    padding: 6rem 0;
    background: #1a1a1f;
}

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

.tech-category {
    background: #17171A;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(118, 65, 230, 0.1);
}

.tech-category h3 {
    color: #7641E6;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #1a1a1f;
    border-radius: 10px;
    border: 1px solid rgba(118, 65, 230, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: #7641E6;
    transform: translateX(5px);
}

.tech-item i {
    font-size: 1.5rem;
    color: #7641E6;
}

.tech-item span {
    font-weight: 500;
    color: #ffffff;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #17171A;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #1a1a1f;
    border-radius: 12px;
    border: 1px solid rgba(118, 65, 230, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #7641E6;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #7641E6;
    width: 50px;
    height: 50px;
    background: rgba(118, 65, 230, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-item p {
    color: #b3b3b3;
    margin: 0;
}

.contact-form {
    background: #1a1a1f;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(118, 65, 230, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #17171A;
    border: 1px solid rgba(118, 65, 230, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7641E6;
    box-shadow: 0 0 0 3px rgba(118, 65, 230, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

/* Footer */
.footer {
    background: #1a1a1f;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(118, 65, 230, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7641E6;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #7641E6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(118, 65, 230, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7641E6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #7641E6;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(118, 65, 230, 0.1);
    color: #b3b3b3;
}

/* Animations */
@keyframes typeIn {
    to {
        opacity: 1;
    }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(23, 23, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
    }

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

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .services-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .about-card,
    .service-card {
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

/* Scroll animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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