:root {
    --pink-dark: #ff4fa3;
    --pink-primary: #ff5cb1;
    --pink-light: #ff8bc5;
    --pink-lighter: #ffd5e9;
    --bg-color: #fff7fb;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar estilo IDE */
.sidebar {
    width: 80px;
    background-color: var(--pink-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: width 0.3s ease;
}

.logo .icon-large {
    width: 36px;
    height: 36px;
    color: var(--white);
    margin-bottom: 40px;
}

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

.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.5); /* Flat, white, 50% opacity */
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
    background-color: var(--pink-primary);
}

.nav-links i {
    width: 24px;
    height: 24px;
}

.nav-text {
    font-size: 10px;
    margin-top: 5px;
    opacity: 0;
    display: none;
}

/* Área Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.topbar {
    height: 60px;
    background-color: var(--white);
    border-bottom: 1px solid var(--pink-lighter);
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(255, 79, 163, 0.05);
}

.search-container, .filter-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon, .filter-icon {
    position: absolute;
    left: 10px;
    color: var(--pink-light);
    width: 18px;
}

input[type="text"], select {
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--pink-lighter);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: var(--bg-color);
    color: var(--text-main);
}

input[type="text"] {
    width: 300px;
}

input[type="text"]:focus, select:focus {
    border-color: var(--pink-primary);
}

/* Grid e Cards */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

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

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 0; /* Removido o padding geral para a imagem colar nas bordas */
    box-shadow: 0 4px 15px rgba(255, 92, 177, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--pink-lighter);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Mantém a imagem dentro do raio da borda */
}
.card-preview-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--pink-lighter);
    background-color: var(--pink-lighter);
}

.card-preview-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--pink-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-light);
    border-bottom: 1px solid var(--pink-lighter);
}

.card-preview-placeholder i {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 92, 177, 0.15);
}

.card h3 {
    color: var(--pink-dark);
    font-size: 1.1rem;
    line-height: 1.4;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: var(--pink-lighter);
    color: var(--pink-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.media-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.media-item {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--pink-lighter);
    cursor: pointer;
    transition: opacity 0.2s;
}

.media-item:hover {
    opacity: 0.8;
}

video.media-item {
    background: #000;
}

.btn-download {
    margin-top: auto;
    background-color: var(--pink-primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-download:hover {
    background-color: var(--pink-dark);
}

.btn-download:active {
    transform: scale(0.98);
}

/* Sobre Mim */
.about-page {
    display: flex;
    justify-content: center;
}

.about-card {
    background: var(--white);
    max-width: 700px;
    width: 100%;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(255, 79, 163, 0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--pink-lighter);
    padding-bottom: 20px;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pink-primary);
}

.profile-title h1 {
    color: var(--pink-dark);
    margin-bottom: 5px;
}

.subtitle {
    color: var(--pink-light);
    font-weight: 500;
}

.about-section {
    margin-bottom: 25px;
}

.about-section h2 {
    color: var(--pink-primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.about-section p {
    line-height: 1.6;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--pink-lighter);
    color: var(--pink-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-social:hover {
    background-color: var(--pink-light);
    color: var(--white);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background-color: var(--white);
    color: var(--pink-light);
    font-size: 12px;
    border-top: 1px solid var(--pink-lighter);
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: 60px; flex-direction: row; justify-content: space-between; padding: 0 20px; }
    .logo { margin-bottom: 0; }
    .logo .icon-large { width: 28px; height: 28px; }
    .nav-links { flex-direction: row; justify-content: flex-end; gap: 20px; width: auto; }
    .nav-links a { padding: 10px; }
    .topbar { flex-direction: column; height: auto; padding: 15px; gap: 10px; }
    input[type="text"], select { width: 100%; }
    .media-container { grid-template-columns: 1fr; }
}

/* Ajuste no card da index */
.card-hint {
    margin-top: auto;
    font-size: 12px;
    color: var(--pink-light);
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.card-hint i {
    width: 14px;
    height: 14px;
}

/* Nova tela de Detalhes do Projeto (projeto.html) */
.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--pink-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--pink-primary);
}

.project-details-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 92, 177, 0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.project-header {
    border-bottom: 2px solid var(--pink-lighter);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.project-header h1 {
    color: var(--pink-dark);
    font-size: 2rem;
}

.project-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.media-box h4 {
    color: var(--pink-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.media-box img, .media-box video {
    width: 100%;
    border-radius: 8px;
    /* border: 1px solid var(--pink-lighter); */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.project-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--pink-lighter);
}

.block-btn {
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.1rem;
}

.no-code {
    color: var(--text-muted);
    font-style: italic;
}

/* Efeito de hover nas imagens do projeto para indicar que são clicáveis */
.media-box img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.media-box img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(255, 92, 177, 0.2);
}

/* Modal Base */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fundo escuro com 85% de opacidade */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Imagem dentro do Modal */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

/* Legenda (nome da imagem) */
#caption {
    margin: 15px auto 0;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--pink-lighter);
    font-size: 1.1rem;
    font-weight: 500;
    animation: zoomIn 0.3s ease;
}

/* Botão de Fechar */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.close-modal:hover,

.close-modal:focus {
    color: var(--pink-primary);
    text-decoration: none;
}

/* Animação de entrada da imagem */
@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;} 
    to {transform: scale(1); opacity: 1;}
}

@media (max-width: 768px) {
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}