/* =============================================
   THE DIGI LAB — Homepage
   Includes: hero section, hero card, hero form,
   floating badge, scroll indicator, carousel
   controls, light theme overrides
============================================= */

/* =============================================
   HERO SECTION
============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}
.hero-wrap {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 3rem;
  box-sizing: border-box;
}

/* Layered gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 80% at 75% 50%, rgba(250,164,26,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 20% 25%, rgba(250,164,26,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(250,164,26,0.025) 0%, transparent 60%);
}

/* Dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 90% at 72% 50%, black 10%, transparent 75%);
}

/* Decorative rings */
.hero-ring-deco {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 580px;
  height: 580px;
  border-radius: 50%;
  border: 1px solid rgba(250,164,26,0.055);
  pointer-events: none;
  z-index: 0;
}
.hero-ring-deco::before {
  content: '';
  position: absolute;
  inset: 90px;
  border-radius: 50%;
  border: 1px solid rgba(250,164,26,0.09);
}
.hero-ring-deco::after {
  content: '';
  position: absolute;
  inset: 180px;
  border-radius: 50%;
  border: 1px solid rgba(250,164,26,0.14);
  background: radial-gradient(circle, rgba(250,164,26,0.03) 0%, transparent 70%);
}

/* Two-column inner grid */
.hero-inner {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---- LEFT: Text ---- */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem 0.4rem 0.7rem;
  background: rgba(250,164,26,0.08);
  border: 1px solid rgba(250,164,26,0.25);
  border-radius: 9999px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 2rem;
}
.hero-badge:hover {
  border-color: rgba(250,164,26,0.5);
  background: rgba(250,164,26,0.13);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: badgePing 2.4s ease-out infinite;
}
@keyframes badgePing {
  0%        { transform: scale(1); opacity: 0.45; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}
.badge-arr { color: var(--accent); transition: transform 0.3s; }
.hero-badge:hover .badge-arr { transform: translateX(4px); }

/* Heading */
.hero-left h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 1.5rem;
  max-width: none;
}

/* Static supporting line */
.hero-static {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.58em;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin-bottom: 0.1em;
}

/* Animated word row */
.hero-anim-row {
  display: block;
  width: 100%;
  padding-bottom: 0.06em;
}
.hero-word {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.hero-word::after {
  content: '|';
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: cursorBlink 0.7s step-end infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Sub-heading */
.hero-sub {
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  color: rgba(255,255,255,0.52);
  margin-bottom: 2.25rem;
  max-width: 46ch;
  line-height: 1.8;
}

/* CTA row */
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

/* Mini-stats strip */
.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--black-border);
  width: 100%;
}
.hss-item { display: flex; flex-direction: column; gap: 0.15rem; }
.hss-num {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
}
.hss-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hss-sep {
  width: 1px;
  height: 28px;
  background: var(--black-border);
  flex-shrink: 0;
}

/* ---- RIGHT: Results card ---- */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main card */
.hero-card {
  width: 100%;
  max-width: 480px;
  background: rgba(8,8,8,0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.03),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(250,164,26,0.2) 60%, transparent 100%);
  z-index: 1;
}

/* Mac-style header */
.hc-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
.hc-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hc-dot-r { background: #ff5f57; }
.hc-dot-y { background: var(--accent); }
.hc-dot-g { background: #28c840; }
.hc-title-text {
  font-family: var(--font-head);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}

/* Metrics body */
.hc-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hc-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.hcm-name {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hcm-val {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--accent);
}
.hc-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.hc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(250,164,26,0.45) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.hc-body .hc-metric:nth-child(1) .hc-bar-fill { transition-delay: 0.25s; }
.hc-body .hc-metric:nth-child(2) .hc-bar-fill { transition-delay: 0.42s; }
.hc-body .hc-metric:nth-child(3) .hc-bar-fill { transition-delay: 0.58s; }
.hc-body .hc-metric:nth-child(4) .hc-bar-fill { transition-delay: 0.74s; }
.hero-card.bars-go .hc-bar-fill { transform: scaleX(1); width: var(--bar-w, 100%); }

/* Footer testimonial */
.hc-footer {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(250,164,26,0.04);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.hcf-icon { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; margin-top: 0.1rem; }
.hcf-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-head);
  line-height: 1.5;
}
.hcf-text strong { color: rgba(255,255,255,0.7); font-weight: 400; }

/* Hero card inline form */
.hc-form { display: flex; flex-direction: column; gap: 0.7rem; }
.hcform-group { display: flex; flex-direction: column; gap: 0.3rem; }
.hcform-label {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hcform-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  padding: 0.58rem 0.85rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.hcform-input::placeholder { color: rgba(255,255,255,0.18); }
.hcform-input:focus {
  border-color: rgba(250,164,26,0.5);
  background: rgba(250,164,26,0.04);
}
.hcform-group:has(select) { position: relative; }
.hcform-group:has(select)::after {
  content: '\ea4e';
  font-family: 'remixicon';
  position: absolute;
  right: 0.85rem;
  bottom: 0.62rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}
select.hcform-input option { background: #111; color: var(--white); }
.hcform-submit {
  width: 100%;
  padding: 0.72rem 1rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.hcform-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* Floating badge */
.hero-float-badge {
  position: absolute;
  bottom: -1.75rem;
  right: -1.25rem;
  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(250,164,26,0.2);
  border-radius: var(--radius-card);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  animation: cardFloat 4.5s ease-in-out infinite;
}
.hfb-icon { font-size: 1.1rem; }
.hfb-name {
  font-family: var(--font-head);
  font-size: 0.75rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.hfb-sub { font-size: 0.67rem; color: rgba(255,255,255,0.38); }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---- Hero Responsive ---- */
@media (max-width: 1024px) {
  .hero-inner { gap: 3rem; grid-template-columns: 1fr 1fr; }
  .hero-card { max-width: none; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-right { display: none; }
  .hero-left { align-items: flex-start; }
  .hero-left h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats-strip { gap: 1.1rem; }
}

/* =============================================
   CAROUSEL CONTROLS (Homepage Portfolio)
============================================= */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--black-border);
  background: var(--black-card);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
  flex-shrink: 0;
  cursor: pointer;
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(250,164,26,0.08);
}
.carousel-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* =============================================
   LIGHT THEME — Homepage
============================================= */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 65% 80% at 75% 50%, rgba(250,164,26,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 20% 25%, rgba(250,164,26,0.04) 0%, transparent 60%);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .hero-static { color: #111; }
[data-theme="light"] .hero-sub { color: #222; }
[data-theme="light"] .hero-scroll { color: #555; }
[data-theme="light"] .hero-badge {
  background: rgba(250,164,26,0.1);
  border-color: rgba(250,164,26,0.3);
  color: #111;
}
[data-theme="light"] .hero-stats-strip { border-top-color: #dcdcda; }
[data-theme="light"] .hss-num { color: #111; }
[data-theme="light"] .hss-label { color: #444; }
[data-theme="light"] .hss-sep { background: #ccc; }
[data-theme="light"] .hero-card {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}
[data-theme="light"] .hc-header {
  border-bottom-color: rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.02);
}
[data-theme="light"] .hc-title-text { color: #555; }
[data-theme="light"] .hcm-name { color: #555; }
[data-theme="light"] .hcform-label { color: #444; }
[data-theme="light"] .hcform-input {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #111;
}
[data-theme="light"] .hcform-input::placeholder { color: rgba(0,0,0,0.22); }
[data-theme="light"] .hcform-input:focus {
  border-color: rgba(250,164,26,0.5);
  background: rgba(250,164,26,0.03);
}
[data-theme="light"] .hcform-group:has(select)::after { color: #555; }
[data-theme="light"] .hc-footer {
  border-top-color: rgba(0,0,0,0.07);
  background: rgba(250,164,26,0.04);
}
[data-theme="light"] .hcf-text { color: #444; }
[data-theme="light"] .hcf-text strong { color: #111; }
[data-theme="light"] .hero-float-badge {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
[data-theme="light"] .hfb-name { color: #111; }
[data-theme="light"] .hfb-sub { color: #444; }
[data-theme="light"] .carousel-btn {
  background: #fff;
  border-color: #dcdcda;
  color: #666;
}
[data-theme="light"] .carousel-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(250,164,26,0.06);
}
[data-theme="light"] .carousel-dot { background: rgba(0,0,0,0.15); }
