/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Canvas de Estrelas */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Astronauta */
.astronaut-container {
    position: fixed;
    width: 200px;
    height: 200px;
    z-index: 2;
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

.astronaut {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Header */
header {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 0;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #E0E0E0;
}

/* Seções */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
}

.container {
    max-width: none;
    margin: 0;
    padding: 2rem 4vw;
    width: 100%;
}

/* Home */
#home {
    text-align: center;
}

.typewriter {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.highlight {
    color: #fff;
}

.subtitle {
    font-size: 1.25rem;
    color: #CCC;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #CCC;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #E0E0E0;
}

/* Sobre */
#sobre h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.profile-info {
    margin-bottom: 3rem;
}

.profile-header {
    margin-bottom: 1.5rem;
}

.profile-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-details {
    color: #CCC;
    font-size: 1.125rem;
}

.about-text {
    font-size: 1.125rem;
    color: #CCC;
    line-height: 1.5;
    max-width: 800px;
}

.skills-section h3,
.experience-section h3,
.education-section h3,
.differentials-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    margin: 2rem 0 1.5rem;
    letter-spacing: 0.1em;
}

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

.skill-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: #E0E0E0;
    transform: translateY(-5px);
}

.skill-card h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.skill-level {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: #CCC;
    font-size: 0.875rem;
    line-height: 1.5;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #CCC;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: #E0E0E0;
    transform: translateX(5px);
}

.timeline-content h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.timeline-period {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.timeline-role {
    color: #CCC;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.timeline-tasks {
    list-style: none;
    padding-left: 1rem;
}

.timeline-tasks li {
    color: #CCC;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-tasks li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: #CCC;
}

.education-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    padding: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: #E0E0E0;
    transform: translateY(-5px);
}

.education-card h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.education-card p {
    color: #CCC;
    margin-bottom: 0.5rem;
}

.education-period {
    color: #888;
    font-size: 0.875rem;
}

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

.differential-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.differential-card:hover {
    border-color: #E0E0E0;
    transform: translateY(-5px);
}

.differential-card h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.differential-card p {
    color: #CCC;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Projetos */
#projetos h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 520px;
    background: rgba(10, 10, 10, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    transition: all 0.3s ease-in-out;
}

.project-card .project-image {
    width: 100%;
    height: 40%;
    min-height: 120px;
    max-height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 1.2rem;
    display: block;
    background: #222;
}

.project-card::after {
    content: none;
}

@keyframes shine {
    0% {}
    50% {}
    100% {}
}

.project-card > * {
    position: relative;
    z-index: 3;
}

.project-card:hover {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #fff;
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    font-weight: bold;
    max-width: 95%;
    word-break: break-word;
    white-space: normal;
    min-height: 3.8em;
    display: block;
}

.project-card p {
    flex: 1 1 auto;
    color: #CCCCCC;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5em;
    margin-bottom: 1rem;
}

.project-link {
    align-self: flex-start;
    padding: 0.6em 1.5em;
    background: rgba(0,0,0,0.4);
    border: 1px solid #fff;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.project-link:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    filter: brightness(1.2) drop-shadow(0 0 6px #fff2);
    box-shadow: 0 0 8px 0 rgba(255,255,255,0.12);
}

/* Contato */
#contato h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.contact-text {
    color: #CCC;
    margin-bottom: 2rem;
    max-width: 800px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #CCC;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E0E0E0;
}

.form-group input::placeholder {
    color: #888;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #E0E0E0;
}

.whatsapp-button {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #CCC;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #E0E0E0;
}

/* Footer */
footer {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Estilos para validação de formulário */
input:focus, textarea:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

input.valid, textarea.valid {
    border-color: #4CAF50;
}

input.invalid, textarea.invalid {
    border-color: #f44336;
}

.form-feedback {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.form-feedback.success {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.form-feedback.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Melhorias de contraste */
:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

/* Melhorias de responsividade */
@media (max-width: 768px) {
    .typewriter {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .astronaut-container {
        width: 150px;
        height: 150px;
    }

    .profile-header h3 {
        font-size: 1.5rem;
    }

    .profile-details {
        font-size: 1rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .skills-section h3,
    .experience-section h3,
    .education-section h3,
    .differentials-section h3 {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-content {
        margin-left: 1.5rem;
    }

    .timeline-content:hover {
        transform: translateX(0);
    }

    .form-group {
        margin-bottom: 1rem;
    }
    
    input, textarea {
        font-size: 16px; /* Evita zoom em dispositivos móveis */
    }
}

/* Seção Stacks */
.stacks-section {
    margin: 4rem 0;
}

.stacks-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
}

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

.stack-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.stack-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 10px;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    display: block;
    margin: 0 auto 0.5rem auto;
    filter: grayscale(0%) brightness(1);
}

.stack-card:hover .stack-logo {
    transform: scale(1.12) rotate(-3deg);
    box-shadow: 0 4px 24px 0 #fff8, 0 2px 12px rgba(0,0,0,0.18);
    filter: brightness(1.2) drop-shadow(0 0 8px #fff8);
}

.stack-card h4 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.stack-card p {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stacks-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stack-card {
        padding: 1rem;
    }
    
    .stack-logo {
        width: 48px;
        height: 48px;
    }
}

.sobre-grid {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.sobre-foto {
    flex: 0 0 180px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.foto-perfil {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
@media (max-width: 900px) {
    .sobre-grid {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: none;
    }
    .sobre-foto {
        margin-bottom: 1rem;
    }
}

.sobre-foto-centralizada {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.idioma-bar {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 100;
    background: rgba(20,20,20,0.95);
    border-radius: 12px;
    box-shadow: 0 2px 12px #0008;
    padding: 0.5rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    width: auto;
}
.idioma-label {
    color: #fff;
    font-size: 1rem;
    margin-right: 0.5rem;
}
.idioma-select {
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.3rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}
.idioma-select:focus {
    border: 1.5px solid #4a90e2;
}

@media (max-width: 600px) {
  .idioma-bar {
    bottom: 1rem;
    right: 1rem;
    min-width: 100px;
    padding: 0.3rem 0.7rem;
  }
  header {
    top: auto;
    padding: 0.7rem 1rem;
  }
  .section:first-of-type {
    margin-top: 0;
  }
}

.section:first-of-type {
    margin-top: 0;
}

/* Estilos para a página de detalhes do projeto */
.project-details {
    padding: 2rem 0;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.project-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description {
    margin-bottom: 3rem;
}

.project-description h2,
.project-features h2,
.project-impact h2,
.project-technologies h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.project-impact {
    margin-bottom: 3rem;
}

.project-impact p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

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

.tech-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

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

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-cta {
    text-align: center;
    margin-top: 3rem;
}

.back-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background: var(--primary-color-dark);
}

/* Foto de Destaque no topo - AJUSTADO */
.destaque-foto {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.2rem;
    margin-bottom: 1.2rem;
    z-index: 5;
    position: relative;
}
.foto-destaque {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 32px 0 #fff4, 0 8px 32px 0 #000a;
    filter: grayscale(100%) brightness(1.08) drop-shadow(0 0 16px #fff6);
    background: #111;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.foto-destaque:hover {
    transform: scale(1.04) rotate(-2deg);
    box-shadow: 0 0 48px 0 #fff8, 0 12px 40px 0 #000c;
    filter: grayscale(0%) brightness(1.15) drop-shadow(0 0 24px #fff8);
}
@media (max-width: 900px) {
    .foto-destaque {
        width: 180px;
        height: 180px;
    }
    .destaque-foto {
        margin-top: 1.2rem;
        margin-bottom: 0.7rem;
    }
}
@media (max-width: 600px) {
    .foto-destaque {
        width: 120px;
        height: 120px;
    }
    .destaque-foto {
        margin-top: 0.7rem;
        margin-bottom: 0.5rem;
    }
}

/* Reduzir espaço entre foto e texto da home */
#home.section {
    min-height: unset;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    margin-top: 0;
}
#home .container {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Estilos para Página de Detalhes do Projeto */
.project-detail {
    padding: 2rem 0;
}

.project-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-overview {
    margin-bottom: 3rem;
    text-align: center;
}

.project-overview p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
}

.project-impact {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.project-impact h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-impact ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.project-impact ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-impact ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #fff;
}

.project-cta {
    text-align: center;
    margin-top: 4rem;
}

.project-cta h2 {
    margin-bottom: 1rem;
}

.project-cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .project-detail h1 {
        font-size: 2rem;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

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

    .cta-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

/* Estilos para Demonstração Visual */
.project-demo {
    margin: 4rem 0;
}

.project-demo h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.demo-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.demo-item:hover {
    transform: translateY(-5px);
}

.demo-item h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.demo-image {
    all: unset;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 1.2rem;
    display: block;
    background: #222;
}

.demo-item p {
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

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

.gif-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.gif-container:hover {
    transform: translateY(-5px);
}

.gif-container h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.demo-gif {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gif-container p {
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .demo-grid,
    .demo-gifs {
        grid-template-columns: 1fr;
    }

    .demo-item,
    .gif-container {
        margin-bottom: 1rem;
    }
}

/* Carrossel */
.carousel {
    position: relative;
    width: 100%;
    height: 260px;
    background: rgba(10, 10, 10, 0.85);
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img, .carousel-item video {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111;
    border-radius: 8px;
    box-shadow: 0 2px 12px #000a;
    display: block;
    margin: 0 auto;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    z-index: 3;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.95);
}

.carousel-control.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-control.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.project-card .carousel {
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 10px 10px 0 0;
}

/* Cards de projetos e containers SEM GLASS, fundo preto sólido */
.project-card, .demo-item, .gif-container, .feature-card, .project-impact, .project-details, .carousel, .carousel-inner, .carousel-item, .project-card .carousel {
    background: #111 !important;
    border: 1px solid #222 !important;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4) !important;
    border-radius: 10px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.project-card:hover {
    background: #181818 !important;
    box-shadow: 0 6px 40px rgba(0,0,0,0.6) !important;
    border-color: #333 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.project-image, .demo-image, .demo-gif, .carousel-item img, .carousel-item video {
    background: #111 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px #000a !important;
    display: block;
    margin: 0 auto;
}

/* Container para garantir fundo preto sólido em imagens, GIFs e vídeos */
.media-bg {
  background: #111 !important;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-bg img,
.media-bg video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111 !important;
  display: block;
} 