:root {
    --primary-color: #3776ab;
    --secondary-color: #ffd43b;
    --dark-color: #1e1e1e;
    --light-color: #f4f4f4;
    --text-color: #333;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

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

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

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

.btn-voltar {
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-voltar:hover {
    background: var(--secondary-color);
    color: var(--dark-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5aa0 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Projetos Section */
.projetos {
    padding: 4rem 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

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

.projeto-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #2c5aa0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.projeto-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.projeto-card > p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.card-tech span {
    background: var(--light-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.card-features ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    padding: 0.5rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-features i {
    color: var(--primary-color);
}

.card-links {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
    flex: 1;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2c5aa0;
    transform: scale(1.05);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    background: white;
}

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

.demo-step {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.demo-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.demo-step h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.demo-step p {
    color: #666;
    margin-bottom: 1rem;
}

.code-snippet {
    background: var(--dark-color);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.code-snippet pre {
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

code {
    background: var(--light-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.demo-info {
    margin-top: 3rem;
}

.demo-info h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

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

.algorithm-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.algorithm-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.algorithm-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Sobre Section */
.sobre {
    padding: 4rem 0;
    background: var(--light-color);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-text p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.sobre-text strong {
    color: var(--primary-color);
}

.sobre-stats {
    display: grid;
    gap: 1.5rem;
}

.stat {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #666;
    font-weight: 600;
}

/* Instalação Section */
.instalacao {
    padding: 4rem 0;
    background: white;
}

.install-steps {
    display: grid;
    gap: 2rem;
}

.install-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.install-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.install-card i {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #aaa;
}

.footer-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.footer-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    color: #aaa;
}

.footer i.fa-heart {
    color: #e74c3c;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .projetos-grid {
        grid-template-columns: 1fr;
    }

    .sobre-content {
        grid-template-columns: 1fr;
    }

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

    .demo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        width: 100%;
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .card-links {
        flex-direction: column;
    }

    .hero {
        padding: 2rem 0;
    }
}
