/* bento.css */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  background: linear-gradient(-45deg, #020617, #0f172a, #1e1b4b, #064e3b, #0f172a);
  background-size: 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  margin: 0;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bento-container {
  max-width: 1200px;
  margin: 50px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
  padding: 20px;
}

.bento-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Staggered entry animation */
.bento-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-item:hover {
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 15px 45px 0 rgba(0, 242, 254, 0.15);
}

/* Specific Grid Placements */
.bento-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.bento-nav { grid-column: span 2; display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 10px; }
.bento-stat { grid-column: span 1; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;}
.bento-wide { grid-column: span 4; }
.bento-tall { grid-column: span 2; grid-row: span 2; }
.bento-half { grid-column: span 2; }

/* Glowing Border Effect */
.bento-item::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
  pointer-events: none;
}
.bento-item:hover::before {
  left: 150%;
}

.avatar-huge {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #00f2fe;
  padding: 5px;
}

.bento-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(to right, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  margin-top: 0;
}

.bento-subtitle {
  font-size: 18px;
  color: #a1a1aa;
  margin: 0;
}

.bento-text {
  color: #d4d4d8;
  line-height: 1.6;
  font-size: 16px;
  text-align: justify;
}

.bento-stat-num {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.bento-stat-label {
  color: #00f2fe;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 12px;
  transition: background 0.3s, transform 0.2s;
}
.nav-link:hover, .nav-link.active {
  background: rgba(0, 242, 254, 0.2);
  color: #00f2fe;
  transform: scale(1.05);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s;
}
.social-links a:hover img {
  transform: scale(1.2);
}

.bento-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bento-list li {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 20px;
}
.bento-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.bento-list-title {
  color: #4facfe;
  font-size: 20px;
  margin: 0 0 5px 0;
}
.bento-list-subtitle {
  color: #00f2fe;
  font-size: 14px;
  margin: 0 0 10px 0;
}
.bento-list-text {
  color: #a1a1aa;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 900px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-hero, .bento-nav, .bento-wide, .bento-tall, .bento-half {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .bento-container {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 15px;
  }
  .bento-hero, .bento-nav, .bento-wide, .bento-tall, .bento-half, .bento-stat {
    grid-column: span 1;
  }
  .bento-nav {
    gap: 5px;
  }
  .nav-link {
    font-size: 13px;
    padding: 8px 12px;
  }
  .avatar-huge {
    width: 140px;
    height: 140px;
  }
}
