/* ========================================
   Home Page — Premium Light Design
   Dark hero → Clean white sections
   ======================================== */

/* ---- Hero — Dark Contrast Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--space-20);
  background: var(--bg-dark);
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-8);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52,211,153,0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: var(--space-8);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: clamp(3rem, 2rem + 5vw, 6rem);
  font-weight: 700;
  color: #fff;
}

.hero h1 .line-gradient {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.55);
  max-width: 540px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero .btn-outline {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
}

.hero .btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 10%, transparent 100%);
}

.gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(at 50% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
  animation: mesh-shift 20s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(-1%, 2%); }
  100% { transform: scale(1) translate(1%, -1%); }
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.hero-shape--1 {
  width: 500px; height: 500px;
  background: #2563eb;
  top: -15%; right: -5%;
  animation: float-shape 20s ease-in-out infinite alternate;
}

.hero-shape--2 {
  width: 400px; height: 400px;
  background: #7c3aed;
  bottom: -10%; left: -5%;
  animation: float-shape 25s ease-in-out infinite alternate-reverse;
}

.hero-shape--3 {
  width: 250px; height: 250px;
  background: #3b82f6;
  top: 50%; right: 15%;
  animation: float-shape 18s ease-in-out infinite alternate;
}

@keyframes float-shape {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
  100% { transform: translate(-15px, 20px) scale(0.97); }
}

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.visible { opacity: 1; }

/* ---- Marquee ---- */
.marquee-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-secondary);
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-10);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee-item .sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
  opacity: 0.4;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Bento Grid — Clean Cards ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-5);
}

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-accent);
}

.bento-card--wide { grid-column: span 2; }

.bento-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  color: var(--accent-primary);
}

.bento-icon svg {
  width: 26px;
  height: 26px;
}

.bento-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.bento-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento-card .btn-ghost { margin-top: var(--space-5); }

/* Visual bar chart inside wide card */
.bento-visual {
  border-radius: var(--radius-lg);
  height: 100px;
  margin-top: var(--space-6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-secondary);
}

.bento-visual-bar {
  width: 24px;
  border-radius: 6px 6px 0 0;
  animation: bar-grow 3s ease-in-out infinite;
}

.bento-visual-bar:nth-child(1) { height: 40%; background: rgba(37,99,235,0.2); animation-delay: 0s; }
.bento-visual-bar:nth-child(2) { height: 65%; background: rgba(37,99,235,0.3); animation-delay: 0.2s; }
.bento-visual-bar:nth-child(3) { height: 50%; background: rgba(37,99,235,0.25); animation-delay: 0.4s; }
.bento-visual-bar:nth-child(4) { height: 80%; background: var(--accent-primary); animation-delay: 0.6s; }
.bento-visual-bar:nth-child(5) { height: 55%; background: rgba(37,99,235,0.3); animation-delay: 0.8s; }

@keyframes bar-grow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.65); }
}

/* CTA card */
.bento-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg-dark);
  border-color: transparent;
  color: #fff;
}

.bento-card--cta h3 { color: #fff; }
.bento-card--cta p { color: rgba(255,255,255,0.6); }

.bento-card--cta:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(12,18,34,0.3);
}

/* Color-coded theme lines (top border accent) */
.bento-card--game { border-top: 3px solid var(--accent-primary); }
.bento-card--enterprise { border-top: 3px solid #8b5cf6; }
.bento-card--consulting { border-top: 3px solid #f59e0b; }

.bento-card--game .bento-icon { color: var(--accent-primary); background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.15); }
.bento-card--enterprise .bento-icon { color: #8b5cf6; background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.15); }
.bento-card--consulting .bento-icon { color: #f59e0b; background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.15); }

/* ---- Stats ---- */
.stats-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.stat-card {
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-suffix {
  color: var(--accent-primary);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- Work Cards — Horizontal Scroll ---- */
.work-scroll {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
  margin: 0 calc(-1 * var(--container-padding));
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.work-scroll::-webkit-scrollbar { height: 4px; }
.work-scroll::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: 2px; }
.work-scroll::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 2px; }

.work-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.work-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card:nth-child(1) .work-card-image { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.work-card:nth-child(2) .work-card-image { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.work-card:nth-child(3) .work-card-image { background: linear-gradient(135deg, #0891b2, #0e7490); }
.work-card:nth-child(4) .work-card-image { background: linear-gradient(135deg, #059669, #047857); }

.work-card-image .placeholder-icon { color: rgba(255,255,255,0.25); }

/* Mockup elements */
.work-card-image .mockup {
  position: absolute;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
}

.work-card-image .mockup--screen {
  width: 180px;
  height: 110px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) perspective(500px) rotateY(-5deg);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.work-card-image .mockup--bar {
  width: 70%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.15);
  position: absolute;
  top: 26px;
  left: 15%;
}

.work-card-image .mockup--dots {
  display: flex;
  gap: 4px;
  position: absolute;
  top: 8px;
  left: 10px;
}

.work-card-image .mockup--dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.work-card-image .mockup--line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  position: absolute;
  left: 15%;
}

.work-card-body { padding: var(--space-6); }
.work-card-category { margin-bottom: var(--space-3); }
.work-card-title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.work-card-text { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-4); }

.work-card-metric {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--accent-glow);
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testimonial-card {
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-5);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
  stroke: #f59e0b;
}

.testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  color: #fff;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---- Section Alt (light gray bg) ---- */
.section--alt {
  background: var(--bg-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
  .stats-bento { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: var(--space-32) 0 var(--space-16); }
  .hero h1 { font-size: clamp(2.2rem, 1.5rem + 4vw, 3.5rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide { grid-column: span 1; }
  .stats-bento { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card:nth-child(3) { grid-column: span 1; }
  .work-card { flex: 0 0 300px; }
  .cursor-glow { display: none; }
}

@media (max-width: 480px) {
  .stats-bento { grid-template-columns: 1fr; }
  .work-card { flex: 0 0 280px; }
}
