/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f3f0;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
  --transition: 0.25s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Container === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* === Profile === */
.profile {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.bio {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* === Bento Grid === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* === Card Base === */
.card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

.card-icon svg {
  display: block;
}

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

.card-label {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === Card Variants (accent borders) === */
.card-values {
  grid-column: span 2;
  background: linear-gradient(135deg, #f9f5ff 0%, #fdf2f8 100%);
  border: 1px solid #e9d5ff;
}

.card-linkedin {
  border-top: 3px solid #0A66C2;
}

.card-location {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
}

.card-reffo {
  grid-column: span 2;
}

.card-blog {
  border-top: 3px solid #1a1a1a;
}

.card-podcast {
  grid-column: span 2;
}

.card-medium {
  border-top: 3px solid #1a1a1a;
}

.card-youtube {
  border-top: 3px solid #FF0000;
}

.card-trello {
  border-top: 3px solid #0079BF;
}

.card-resume {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
}

.card-github {
  border-top: 3px solid #1a1a1a;
}

/* === Tablet (2 columns) === */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-values,
  .card-reffo,
  .card-podcast {
    grid-column: span 2;
  }

  .profile h1 {
    font-size: 1.75rem;
  }
}

/* === Fade-in Animation === */
.card.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.card.fade-in.visible:hover {
  transform: translateY(-3px);
}

/* === Mobile (1 column) === */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem 1rem 3rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-values,
  .card-reffo,
  .card-podcast {
    grid-column: span 1;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .profile h1 {
    font-size: 1.5rem;
  }

  .bio {
    font-size: 0.875rem;
  }
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}
