/* ═══════════════════════════════════════════════════════
   WEBNATE — 4-about-components.css
   About Section, Bento Grid, Magnetic Cards & Spotlight
   ═══════════════════════════════════════════════════════ */

/* ─── ABOUT SECTION - INSANE BENTO GRID ─── */
.about-section {
  position: relative; 
  z-index: 1;
  padding: calc(100px * var(--spacing)) 28px;
  overflow: hidden;
}

.about-container {
  max-width: 1200px; 
  margin: 0 auto;
}

/* Header */
.about-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto calc(70px * var(--spacing));
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-top: 24px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ BENTO GRID ═══ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(20px * var(--spacing));
  grid-auto-rows: 140px;
}

.bento-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: calc(24px * var(--spacing));
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.bento-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .bento-item {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .bento-item:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ─── CODE BLOCK (Large) ─── */
.bento-large {
  grid-column: span 3;
  grid-row: span 2;
}

.bento-code {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  font-family: var(--font-mono);
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.bento-code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.bento-code-content {
  padding: 24px 28px;
  font-size: 1rem;
  line-height: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 32px;
}

.code-line {
  opacity: 0;
  animation: codeFadeIn 0.6s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }

@keyframes codeFadeIn {
  to { opacity: 1; }
}

.code-keyword { color: #ff79c6; font-weight: 600; }
.code-var { color: #8be9fd; font-weight: 500; }
.code-prop { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-number { color: #bd93f9; font-weight: 600; }

.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--accent);
  animation: blink 1.2s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ─── STAT CIRCLE ─── */
.bento-stat {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (max-width: 640px) {
  .bento-stat {
    grid-row: span 3;  /* <-- ADD THIS LINE */
  }
  
  .fidget-container {
    overflow: visible;
    min-height: 180px;
  }
  
  .fidget-spinner {
    width: 180px;
    height: 180px;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  
  /* rest of the code stays the same */
}

/* ─── FIDGET SPINNER ─── */
.fidget-container {
  margin-top: 20px;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.fidget-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  cursor: grab;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: filter 0.3s;
  will-change: transform;
}

/* LOCK CENTER SIZES EVEN WHEN SVG SCALES */
.fidget-spinner circle:nth-of-type(1) { r: 35 !important; }
.fidget-spinner circle:nth-of-type(2) { r: 28 !important; }
.fidget-spinner circle:nth-of-type(3) { r: 10 !important; }

.fidget-spinner.spinning {
  cursor: grabbing;
}

.fidget-spinner:active {
  cursor: grabbing;
}

.fidget-spinner:hover {
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.fidget-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.fidget-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -2px;
}

.fidget-percent {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: -8px;
}

.stat-circle {
  position: relative;
  width: 120px;
  height: 120px;
}

.stat-circle-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.stat-circle-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.stat-circle-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  animation: progressFill 2s ease-out forwards;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

@keyframes progressFill {
  from { stroke-dashoffset: 283; }
  to { stroke-dashoffset: 0; }
}

.stat-circle-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

.stat-circle-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-circle-percent {
  font-size: 1.2rem;
  color: var(--accent);
  margin-left: 2px;
}

.bento-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-top: 4px;
}

/* ─── MARQUEE ─── */
.bento-marquee {
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 12px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-33.333%)); }
}

.tech-tag {
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  white-space: nowrap;
}

/* ─── DEPLOY ─── */
.bento-deploy {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.deploy-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.deploy-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.deploy-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.deploy-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.deploy-pulse {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(39, 201, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(39, 201, 63, 0); }
}

/* ─── CATEGORIES ─── */
.bento-categories {
  grid-column: span 3;
  padding: 16px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 100%;
}

.cat-box {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}

.cat-box:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 1.6rem;
  filter: grayscale(0.2);
}

.cat-box:hover .cat-icon {
  filter: grayscale(0);
}

.cat-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .cat-box {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cat-box:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ─── BADGE ─── */
.bento-badge {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), rgba(139, 92, 246, 0.03));
  padding: 28px;  /* <-- ADD THIS */
}

.badge-container {
  position: relative;
}

.badge-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.badge-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 12px var(--accent-glow));
  animation: badgeFloat 6s ease-in-out infinite;
  width: 28px;
  height: 28px;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(180deg); }
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ─── QUALITY ─── */
.bento-quality {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quality-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.quality-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.q-badge {
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: all 0.3s;
  white-space: nowrap;
}

.q-badge:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .q-badge {
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

[data-theme="light"] .q-badge:hover {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ─── SPOTLIGHT ─── */
.spotlight-section {
  position: relative; z-index: 1;
  padding: calc(48px * var(--spacing)) 28px;
}
.spotlight-inner { max-width: 820px; margin: 0 auto; }
.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex; align-items: center; gap: 28px;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.spotlight-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.7;
}
.spotlight-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.spotlight-thumb {
  width: 130px; height: 88px;
  border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.spotlight-info { flex: 1; min-width: 0; }
.spotlight-tag {
  display: inline-block;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.spotlight-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spotlight-desc { font-size: 0.79rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotlight-actions { display: flex; gap: 8px; margin-top: 14px; }
.spotlight-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.spotlight-btn:hover { border-color: var(--accent); color: var(--accent); }
.spotlight-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.spotlight-btn.primary:hover { box-shadow: 0 4px 14px var(--accent-glow); }
/* Spotlight navigation dots */
.spotlight-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.spotlight-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.spotlight-dot.active { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); transform: scale(1.25); }
.spotlight-dot:hover { background: var(--border-hover); }

/* ═══ INSANE MAGNETIC CARDS ═══ */
.magnetic-section {
  position: relative;
  z-index: 1;
  padding: calc(80px * var(--spacing)) 28px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  overflow: hidden;
}

.magnetic-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.magnetic-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.magnetic-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.magnetic-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: calc(50px * var(--spacing));
  font-style: italic;
}

.magnetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(24px * var(--spacing));
  perspective: 1000px;
}

.magnetic-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: calc(32px * var(--spacing));
  cursor: pointer;
  transition: all 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.magnetic-card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-dim) 0%, transparent 80%);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.magnetic-card:hover .magnetic-card-bg {
  opacity: 1;
}

.magnetic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.magnetic-card:hover::before {
  opacity: 1;
}

.magnetic-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease-out;
}

.magnetic-card:hover .magnetic-card-content {
  transform: translateZ(20px);
}

.magnetic-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease-out;
}

.magnetic-card:hover .magnetic-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1) rotateY(10deg);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.magnetic-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0;
}

.magnetic-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Magnetic effect on hover */
.magnetic-card.is-magnetic {
  border-color: var(--accent-glow);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}