
/*  
    Liano Marcelo - WebPort
    Todos directos autorais reservados.
    Proibida a reprodução total ou parcial sem autorização prévia do autor. 
    Este projecto é protegido por direitos autorais e leis de propriedade intelectual.
    Qualquer uso não autorizado do conteúdo deste projecto pode resultar em ações legais.
 */



:root {
  --bg-1: #000000;
  --panel: #0e0a12;
  --card: #0f0b16;
  --accent-1: #6c3ccc;
  --accent-2: #196ad4;
  --muted: #9aa0b5;
  --text: #e9eef8;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1200px;
  --transition: 400ms cubic-bezier(.2, .9, .2, 1);
}

body {
  background-color: var(--bg-1);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Josefin Sans', sans-serif; }

/* Background Glow Effect */
.glow-bg {
  position: fixed;
  top: -10%; left: -10%;
  width: 40%; height: 40%;
  background: radial-gradient(circle, rgba(108, 60, 204, 0.15) 0%, transparent 70%);
  z-index: -1;
  filter: blur(80px);
}

/* Navbar */
.navbar {
  padding: 25px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 100;
}
.nav-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px;
}
.logo span { color: var(--accent-1); }

/* Section Header */
.section-header { text-align: center; padding: 80px 0; }
.badge {
  background: rgba(108, 60, 204, 0.1);
  color: var(--accent-1);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(108, 60, 204, 0.3);
}
.section-header h1 { font-size: 4rem; margin-top: 20px; }

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 20px;
  margin-bottom: 100px;
}
.card-lg { grid-column: span 2; grid-row: span 2; }

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: var(--transition);
}

.card:hover {
  transform: scale(0.98);
  border-color: var(--accent-1);
}

.card-image {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: 600ms ease;
}

.card:hover .card-image { transform: scale(1.1); opacity: 0.5; }

.card-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex; justify-content: space-between; align-items: flex-end;
}

/* Modal System */
.modal-overlay {
  display: none; position: fixed;
  top:0; left:0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(15px);
  z-index: 1000; justify-content: center; align-items: center;
}

.modal-window {
  background: var(--panel);
  width: 95%; max-width: 1000px;
  height: 80vh;
  border-radius: var(--radius-lg);
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
}

.modal-content-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  width: 100%;
}

.modal-image {
  background-size: cover;
  background-position: center;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.modal-details { padding: 50px; display: flex; flex-direction: column; }
.divider { width: 40px; height: 4px; background: var(--accent-1); margin: 20px 0; }
.btn-primary {
  background: var(--accent-1); border: none; padding: 12px 24px;
  border-radius: var(--radius-md); color: white; cursor: pointer;
}


/* --- APENAS O LAYOUT DE IMAGENS E RESPONSIVIDADE --- */

/* Base do Grid (Desktop) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colunas padrão */
  grid-auto-rows: 300px; /* Altura fixa para manter o aspecto de bloco */
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Regra do Card Grande (Destaque) */
.card-lg { 
  grid-column: span 2; 
  grid-row: span 2; 
}

/* --- TABLETS (Até 992px) --- */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr); /* Cai para 2 colunas */
    grid-auto-rows: 280px;
  }
  
  .card-lg {
    grid-column: span 2; /* Ocupa a largura total das 2 colunas */
    grid-row: span 1;    /* Diminui a altura para não empurrar muito os outros */
  }

  .modal-window {
    width: 95%;
    height: 90vh;
  }
}

/* --- CELULARES (Até 600px) --- */
@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr; /* Apenas 1 coluna (empilhado) */
    grid-auto-rows: 250px; /* Altura confortável para o polegar */
    gap: 15px;
  }

  .card-lg {
    grid-column: span 1; /* Volta ao tamanho normal de 1 coluna */
    grid-row: span 1;
  }

  /* Ajuste Crítico do Preview no Celular */
  .modal-content-grid {
    grid-template-columns: 1fr; /* Imagem em cima, texto embaixo */
    grid-template-rows: 35% 65%; /* Define proporção visual */
    height: 100%;
    overflow-y: auto; /* Permite rolar o conteúdo do projeto */
  }

  .modal-image {
    height: 250px; /* Altura fixa para o print do projeto no mobile */
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .modal-details {
    padding: 20px;
  }

  .modal-footer {
    flex-direction: column; /* Botões um embaixo do outro */
    gap: 10px;
  }

  .btn-primary, .btn-secondary {
    width: 100%; /* Botões fáceis de clicar no touch */
    text-align: center;
  }
}

/* --- AJUSTE PARA TELAS MUITO PEQUENAS (Até 380px) --- */
@media (max-width: 380px) {
  .bento-grid {
    grid-auto-rows: 200px; /* Reduz altura para ver mais de um card na tela */
  }
  
  .section-header h1 {
    font-size: 1.8rem;
  }
}