/* ============================================
   ESTILOS GLOBAIS E RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #6b46c1, #d53f8c);
    min-height: 100vh;
    padding: 20px;
}

h1 {
    color: white;
    margin-bottom: 10px;
    text-align: center;
    font-size: 2.2em;
}

footer {
    color: white;
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    font-size: 0.9em;
}

/* ============================================
   LOGO E HEADER
   ============================================ */
.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* ============================================
   ESTILOS DA PÁGINA INDEX (Links)
   ============================================ */
body.index-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 600px;
}

.link-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.link-card:hover {
    transform: translateY(-3px);
}

.icon {
    width: 40px;
    height: 40px;
    background: #6b46c1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
}

.link-text {
    flex: 1;
}

.link-text h3 {
    color: #2d3748;
    font-size: 1.1em;
}

.link-text p {
    color: #718096;
    font-size: 0.9em;
}

/* ============================================
   ESTILOS DA PÁGINA PORTFÓLIO
   ============================================ */
.portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    color: #2d3748;
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-content p {
    color: #718096;
    font-size: 0.95em;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background: linear-gradient(135deg, #6b46c1, #d53f8c);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 400;
}

.contact-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
}

.contact-section h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b46c1;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(107, 70, 193, 0.1);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(107, 70, 193, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   MODAL PARA VISUALIZAÇÃO AMPLIADA
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #d53f8c;
}

.modal-info {
    color: white;
    text-align: center;
    margin-top: 20px;
}

.modal-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1em;
    line-height: 1.6;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
    text-align: center;
    color: white;
    padding: 40px;
    font-size: 1.2em;
}

.loading i {
    font-size: 2em;
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: #d53f8c;
    margin: 20px auto;
    max-width: 600px;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-image {
        height: 200px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    footer {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 1.5em;
    }

    .portfolio-content {
        padding: 15px;
    }

    .portfolio-content h3 {
        font-size: 1.1em;
    }

    .portfolio-content p {
        font-size: 0.9em;
    }
}

