@import 'base.css';

/* Estilos específicos da página Projetos */
.projetos-container {
    padding: 10px 40px;
    animation: fadeIn 1s ease-out;
}

.projetos-container h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3em;
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.projeto-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.projeto-card:nth-child(2) { animation-delay: 0.1s; }
.projeto-card:nth-child(3) { animation-delay: 0.2s; }
.projeto-card:nth-child(4) { animation-delay: 0.3s; }

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

.projeto-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #333;
}

.projeto-card p {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.projeto-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.projeto-img:hover {
    transform: scale(1.02);
}

.projeto-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.projeto-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 8px 16px;
    border: 2px solid #333;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.projeto-links a:hover {
    background: #333;
    color: #cea8f0;
    transform: translateY(-2px);
}

/* Estilos para tags dos projetos */
.projeto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(206, 168, 240, 0.3);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Botão Saiba Mais */
.saiba-mais-btn {
    background: rgba(206, 168, 240, 0.8);
    color: #333;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saiba-mais-btn:hover {
    background: #cea8f0;
    transform: translateY(-2px);
}

/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 3% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    font-family: 'Cousine', monospace;
}

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

.modal-content h2 {
    background: linear-gradient(135deg, #cea8f0, #b595e6);
    color: white;
    margin: 0;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    font-family: 'Cousine', monospace;
    font-size: 1.8em;
    font-weight: 700;
}

.modal-body {
    padding: 30px;
    line-height: 1.6;
    font-family: 'Cousine', monospace;
}

.modal-body p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1em;
}

.modal-body strong {
    color: #333;
    font-weight: 700;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #f0f0f0;
    text-decoration: none;
}

.modal-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.tech-tag {
    background: linear-gradient(135deg, #cea8f0, #b595e6);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Cousine', monospace;
}

/* Responsividade para Projetos */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        padding-bottom: 140px;
    }
    
    header {
        padding: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #cea8f0;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        display: block !important;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 20px;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        margin-bottom: 5px;
    }
    
    nav a:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .projetos-container {
        padding: 20px;
    }
    
    .projetos-container h1 {
        font-size: 2.5em;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projeto-card {
        padding: 20px;
    }
    
    .projeto-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contatos ul {
        gap: 20px;
        text-align: center;
    }
    
    /* Responsividade dos modais */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 80vh;
    }
    
    .modal-content h2 {
        padding: 15px 20px;
        font-size: 1.4em;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .close {
        right: 15px;
        top: 12px;
        font-size: 24px;
    }
    
    .projeto-tags {
        justify-content: center;
    }
    
    .modal-technologies {
        justify-content: center;
    }
}