:root {
  --bg-color: #f6f8fa;
  --card-bg: #ffffff;
  --text-dark: #0f1115;
  --text-muted: #57606a;
  --border-color: #d0d7de;
  --accent-blue: #0969da;
  --accent-gray-light: #f3f4f6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 60px 24px;
  line-height: 1.5;
}

.bento-layout {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

/* Bento Card Defaults */
.bento-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border-color: #b0b9c1;
}

/* Grid Spans */
.col-span-2 {
  grid-column: span 2;
}

.row-span-2 {
  grid-row: span 2;
}

/* Card Welcome */
.card-welcome {
  background: linear-gradient(135deg, #101115 0%, #1f232b 100%);
  color: #fff;
  border: none;
}

.welcome-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.badge {
  background-color: #2ea44f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-welcome h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-welcome p {
  color: #b0b9c1;
  font-size: 1.05rem;
  font-weight: 300;
}

/* Card Mockup */
.card-mockup {
  background-color: #e8ecf2;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.device-frame {
  width: 100%;
  max-width: 190px;
  background-color: #fff;
  border: 6px solid var(--text-dark);
  border-radius: 28px;
  padding: 10px;
  aspect-ratio: 9/16;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.device-screen {
  background-color: #0f1115;
  height: 100%;
  border-radius: 18px;
  padding: 16px 12px;
  color: #fff;
}

.app-ui {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.app-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.mock-graph {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 6px;
}

.graph-bar {
  width: 18%;
  background: linear-gradient(180deg, #58a6ff 0%, #0056b3 100%);
  border-radius: 4px;
}

.app-card {
  background-color: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
}

.app-card strong {
  font-size: 1.1rem;
  margin-top: 2px;
}

.mockup-info {
  text-align: center;
}

.mockup-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.mockup-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Card Stack */
.card-stack h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  background-color: var(--accent-gray-light);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

/* Card Stats */
.card-stats {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Card Featured */
.card-featured {
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.featured-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
}

.card-featured h3 {
  font-size: 1.35rem;
}

.card-featured p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-arrow {
  text-decoration: none;
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 10px;
}

.featured-image {
  width: 200px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Contact */
.card-contact {
  gap: 12px;
}

.card-contact h3 {
  font-size: 1.2rem;
}

.card-contact p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-dark {
  background-color: var(--text-dark);
  color: #fff;
  border: none;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-dark:hover {
  background-color: #24292f;
}

/* Footer */
.footer {
  text-align: center;
  padding: 60px 40px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Tablet & Mobile Layouts */
@media (max-width: 900px) {
  .bento-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-2 {
    grid-column: span 2;
  }
  .row-span-2 {
    grid-row: span 1;
  }
  .card-featured {
    flex-direction: column;
    align-items: stretch;
  }
  .featured-image {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .bento-layout {
    grid-template-columns: 1fr;
  }
  .col-span-2 {
    grid-column: span 1;
  }
}
