/* ==========================================================================
   Home Page Bento Grid Styling - index.css
   ========================================================================== */

.main {
  margin-top: 50px;
  margin-bottom: 60px;
}

/* ==========================================================================
   Bento Grid Layout Structure
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Top Row */
.bento-hero {
  grid-column: span 7;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 42px 40px;
}

.bento-credentials {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 290px;
}

/* Second Row */
.bento-works {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}

.bento-profiles {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.bento-services {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}

/* Third Row */
.bento-stats {
  grid-column: span 5;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 34px 20px;
}

.bento-cta {
  grid-column: span 7;
  position: relative;
  display: flex;
  align-items: center;
  padding: 40px 44px;
}

/* ==========================================================================
   Card Internals
   ========================================================================== */

/* 1. Hero Card */
.img-box {
  width: 210px;
  height: 210px;
  flex-shrink: 0;
  border-radius: 30px 0 30px 0;
  overflow: hidden;
  background: var(--accent-gradient);
  position: relative;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.bento-hero:hover .img-box img {
  transform: scale(1.05);
}

.hero-details {
  display: flex;
  flex-direction: column;
}

.hero-details h1 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-details .hero-role {
  font-size: 15px;
  color: #d1d5db;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-details .hero-edu {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-details .hero-edu b {
  color: var(--text-secondary);
}

.hero-details .hero-edu span {
  color: var(--text-muted);
}

/* 2. Visual Placeholders for Credentials & Works */
.card-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-visual .visual-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.bento-card:hover .visual-icon {
  background: rgba(91, 120, 246, 0.12);
  border-color: rgba(91, 120, 246, 0.4);
  transform: scale(1.06);
}

.card-visual .visual-icon img {
  width: 90%;
  max-width: 58px;
  height: auto;
  max-height: 85%;
  object-fit: contain;
}

.code-bracket {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  color: #5b78f6;
  font-weight: 700;
  letter-spacing: 1px;
}

.card-details { padding-right: 50px; }

.card-details h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* 3. Profiles Card */
.profiles-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  margin-bottom: 20px;
}

.profile-link {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  transition: var(--transition);
  position: relative;
  z-index: 8;
}

.profile-link img {
  width: 24px;
  height: 24px;
  transition: var(--transition);
}

.profile-link svg {
  stroke: #ffffff;
}

.profile-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* 4. Services Pill Matrix */
.services-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.service-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.bento-services:hover .service-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.service-emoji {
  font-size: 16px;
}

/* 5. Stats Card */
.stat-item {
  text-align: center;
  padding: 0 10px;
}

.stat-item h3 {
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item h3 span {
  color: var(--accent);
}

.stat-item p {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.08);
}

/* 6. CTA Card */
.bento-cta .star {
  position: absolute;
  left: 28px;
  top: 18px;
  width: 38px;
  height: auto;
  opacity: 0.45;
  transition: var(--transition);
}

.bento-cta:hover .star {
  opacity: 0.85;
  transform: rotate(45deg);
}

.cta-content {
  padding-left: 60px;
  padding-top: 24px;
}

.cta-content h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 6px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */

@media (max-width: 1080px) {
  .bento-hero {
    grid-column: span 12;
  }
  
  .bento-credentials {
    grid-column: span 6;
  }

  .bento-works {
    grid-column: span 6;
  }

  .bento-profiles {
    grid-column: span 6;
  }

  .bento-services {
    grid-column: span 6;
  }

  .bento-stats {
    grid-column: span 12;
  }

  .bento-cta {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .main {
    margin-top: 30px;
  }

  .bento-grid {
    gap: 16px;
  }

  .bento-hero {
    grid-column: span 12;
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .hero-details {
    align-items: center;
  }

  .hero-details h1 {
    font-size: 28px;
  }

  .bento-credentials,
  .bento-works,
  .bento-profiles,
  .bento-services,
  .bento-stats,
  .bento-cta {
    grid-column: span 12;
    min-height: auto;
    padding: 28px 24px;
  }

  .cta-content h2 {
    font-size: 30px;
  }

  .stat-item h3 {
    font-size: 28px;
  }
}