/* ========================================
   MAN Banggai — Splash / Landing Page
   ======================================== */

.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #065f46 0%, #0d9466 25%, #14b8a6 50%, #0ea5e9 75%, #c9a230 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl);
}

/* Animated background blobs */
.splash::before,
.splash::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 12s ease-in-out infinite;
}

.splash::before {
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.15);
  top: -100px;
  left: -100px;
}

.splash::after {
  width: 400px;
  height: 400px;
  background: rgba(245, 158, 11, 0.2);
  bottom: -50px;
  right: -50px;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Bento Grid Container */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  grid-auto-rows: 190px;
  gap: 18px;
  max-width: 1080px;
  width: 100%;
  margin-bottom: var(--space-2xl);
  z-index: 5;
  padding: 22px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

/* Center Logo Tile */
.bento-center {
  grid-column: span 1;
  grid-row: span 1;
  background: var(--primary-gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(6, 95, 70, 0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bento-center::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bento-center img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

/* Bento items */
.bento-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.bento-item__content {
  z-index: 2;
  width: 100%;
}

.bento-item i {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  display: block;
  transition: transform 0.4s ease;
}

.bento-item span {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.bento-item p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
  font-weight: 400;
  display: block;
}

/* Item Variations */
.bento-item--large {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-item--medium {
  grid-column: span 1;
}

.bento-item--sigap {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  grid-column: span 1;
}

.bento-item--sigap i {
  color: #1a1a1a;
}

.bento-item--sigap span, 
.bento-item--sigap p {
  color: #1a1a1a;
}

/* Hover Effects */
.bento-item:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.bento-item:hover i {
  transform: scale(1.1) rotate(5deg);
}

.bento-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-item:hover::after {
  opacity: 1;
}

/* Splash bottom text */
.splash-text {
  text-align: center;
  z-index: 10;
  animation: fadeInUp 1s ease 0.5s both;
}

.splash-text p {
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  font-style: italic;
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.splash-text .splash-cta {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 2px;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.splash-text .splash-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    padding: 0 20px;
  }

  .bento-center {
    grid-column: span 1;
  }

  .bento-item--large {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 150px;
    gap: 12px;
  }

  .bento-center {
    grid-column: span 1;
    height: auto;
  }

  .bento-item, 
  .bento-item--large, 
  .bento-item--medium, 
  .bento-item--sigap {
    grid-column: span 1;
    grid-row: span 1;
    padding: 18px;
    min-height: 150px;
  }

  .bento-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .splash-text .splash-cta {
    font-size: var(--fs-xl);
    padding: 0.6rem 2rem;
  }
}

@media (max-width: 400px) {
  .bento-grid {
    gap: 10px;
  }

  .bento-center img {
    width: 80px;
  }

  .splash-text p {
    font-size: var(--fs-base);
  }
}
