/* ==========================================================================
   DREAMFRAME — Modern AI 3D & Image Platform Stylesheet
   Designed with Gemini 3.8 Flash & Antigravity Aesthetics
   ========================================================================== */

:root {
  /* Core Colors */
  --bg-dark: #07070b;
  --bg-deep: #0b0a12;
  --bg-surface: #100f1c;
  --bg-card: rgba(18, 16, 30, 0.65);
  --bg-card-hover: rgba(26, 23, 44, 0.85);
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Accent Colors & Glows */
  --accent-purple: #9333ea;
  --accent-violet: #a855f7;
  --accent-lavender: #e9d5ff;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  
  /* Border & Rim Glows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(168, 85, 247, 0.4);
  --glass-glow: 0 0 35px rgba(168, 85, 247, 0.18);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Noise & Ambient Background */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.025;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(7, 7, 11, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-pink));
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #f97316);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-violet);
  background: rgba(168, 85, 247, 0.1);
}

.btn-hero-cta {
  background: linear-gradient(135deg, #9333ea, #f97316);
  color: #ffffff;
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.5);
}

.btn-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 38px rgba(249, 115, 22, 0.6);
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-hero-cta:hover .btn-glow {
  opacity: 1;
}

.relative-z {
  position: relative;
  z-index: 1;
}

.w-full {
  width: 100%;
}

.shadow-glow {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

/* ==========================================================================
   HERO SECTION (With Exact Atmospheric Contrast Shadow)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8.5rem;
  padding-bottom: 2rem;
  overflow: hidden;
  z-index: 2;
}

/* 
  As requested in the prompt:
  "Make the left headline significantly more readable by adding a large, smooth 
  cinematic dark shadow/gradient behind the text, strongest around the left 10–25% 
  of the screen and gradually fading out toward 45–50%. It should have no hard edges 
  or visible box, just a soft atmospheric shadow integrated into the background."
*/
.hero-atmospheric-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse 65% 85% at 15% 45%,
    rgba(7, 7, 11, 0.96) 0%,
    rgba(7, 7, 11, 0.88) 22%,
    rgba(7, 7, 11, 0.55) 38%,
    rgba(7, 7, 11, 0.15) 48%,
    transparent 55%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  backdrop-filter: blur(12px);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulse-dot 2s infinite;
}

.badge-text {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #d8b4fe;
  text-transform: uppercase;
}

/* Headline Styling:
  "Make the headline slightly bolder with a clean white -> subtle lavender gradient and a soft shadow/glow."
*/
.hero-text-block {
  max-width: 780px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 40%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(168, 85, 247, 0.25);
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #fb923c, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.micro-stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 3rem;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-violet);
  border-radius: 2px;
  animation: mouse-wheel 1.6s infinite;
}

/*
  OVERSIZED BRAND TEXT (As specified in prompt):
  "Make DREAMFRAME the main visual: centered horizontally, approximately 90vw wide, 
  positioned at the bottom, with large elegant typography, white/lavender gradient, 
  subtle pink glow, and soft depth shadow."
*/
.hero-oversized-brand {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 2;
  margin-top: 2rem;
  overflow: hidden;
}

.brand-billboard {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 13.5vw, 15rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-align: center;
  width: 92vw;
  max-width: 1600px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(216, 180, 254, 0.6) 60%, rgba(168, 85, 247, 0.2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 45px rgba(236, 72, 153, 0.25)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.9));
  user-select: none;
}

/* ==========================================================================
   INFINITE TWO-ROW LOGO CAROUSEL
   ========================================================================== */
.partners-section {
  position: relative;
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0b17 50%, var(--bg-dark) 100%);
  z-index: 5;
  overflow: hidden;
}

.section-tag-container {
  margin-bottom: 2.5rem;
}

.section-mini-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-violet);
  background: rgba(168, 85, 247, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

.track-left {
  animation: scrollLeft 35s linear infinite;
}

.track-right {
  animation: scrollRight 35s linear infinite;
}

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

.partner-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.6rem;
  background: rgba(22, 19, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.partner-card i {
  font-size: 1.15rem;
  color: var(--accent-violet);
}

.partner-card:hover {
  color: var(--text-main);
  background: rgba(35, 30, 58, 0.8);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.mt-4 {
  margin-top: 1.25rem;
}

/* ==========================================================================
   BENTO GRID SECTION
   ========================================================================== */
.bento-section {
  position: relative;
  padding: 7rem 0;
  z-index: 5;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 4.5rem;
}

.badge-mini {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-violet);
  background: rgba(168, 85, 247, 0.08);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.25rem;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(168, 85, 247, 0.15);
}

.card-glow {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.4s;
}

.bento-card:hover .card-glow {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.22) 0%, transparent 70%);
}

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

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

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-violet);
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* Card 1: Interactive Prompt Demo */
.interactive-prompt-demo {
  background: rgba(10, 8, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
}

.demo-prompt-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.prompt-chips {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.775rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chip:hover, .chip.active {
  background: rgba(168, 85, 247, 0.2);
  color: #fff;
  border-color: var(--accent-violet);
}

.demo-visual-frame {
  height: 220px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-image: url('assets/images/hero-cyberpunk.jpg');
  transition: background-image 0.5s ease-in-out;
}

.frame-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #a855f7, transparent);
  box-shadow: 0 0 15px #a855f7;
  animation: scan-vertical 3s infinite ease-in-out;
}

.frame-overlay-info {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card 2: Mini 3D Box */
.mini-3d-box {
  position: relative;
  height: 220px;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.1) 0%, rgba(10, 8, 20, 0.8) 80%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: auto;
}

#mini-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.mesh-mode-switch {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.725rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.mode-btn.active {
  background: var(--accent-purple);
  color: #fff;
}

/* Card 3: Style Matrix */
.style-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: auto;
}

.matrix-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.matrix-item:hover, .matrix-item.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-violet);
}

.matrix-thumb {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.thumb-1 { background-image: url('assets/images/hero-cyberpunk.jpg'); }
.thumb-2 { background-image: url('assets/images/hypercar-tokyo.jpg'); }
.thumb-3 { background-image: url('assets/images/crystal-temple.jpg'); }
.thumb-4 { background-image: url('assets/images/chrome-sculpture.jpg'); }

.matrix-item span {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Card 4: Camera Path Selector */
.camera-paths-selector {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.cam-path-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cam-path-btn i {
  color: var(--accent-violet);
}

.cam-path-btn:hover, .cam-path-btn.active {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-violet);
  color: var(--text-main);
}

/* Card 5: Performance Metrics Grid */
.performance-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 8, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1rem;
  border-radius: 14px;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.metric-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.metric-sub {
  font-size: 0.725rem;
  color: var(--text-dim);
}

/* ==========================================================================
   3D MODEL CREATOR STUDIO SECTION
   ========================================================================== */
.model-studio-section {
  position: relative;
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0c18 50%, var(--bg-dark) 100%);
  z-index: 5;
}

.studio-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem;
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 1.25rem;
}

.studio-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.studio-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.studio-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.viewport-card {
  position: relative;
  background: #090910;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.viewport-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(14, 13, 24, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hud-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.hud-indicator.active {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.hud-actions {
  display: flex;
  gap: 0.5rem;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.hud-btn:hover {
  color: #fff;
  border-color: var(--accent-violet);
  background: rgba(168, 85, 247, 0.2);
}

.three-container {
  width: 100%;
  height: 520px;
  position: relative;
  cursor: grab;
}

.three-container:active {
  cursor: grabbing;
}

.canvas-watermark {
  position: absolute;
  bottom: 4rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.viewport-hud-bottom {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.85rem 1.5rem;
  background: rgba(14, 13, 24, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hud-stat-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.hud-stat-pill .label {
  color: var(--text-dim);
}

.hud-stat-pill .value {
  color: var(--text-main);
  font-weight: 600;
}

/* Studio Controls Card */
.studio-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.controls-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.ctrl-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ctrl-mode-btn:hover, .ctrl-mode-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-violet);
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.pill-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn.active {
  background: var(--accent-purple);
  color: #fff;
}

.light-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.light-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.light-chip.active, .light-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

.cosmic-dot { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.neon-dot { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.sunset-dot { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.studio-dot { background: #e2e8f0; box-shadow: 0 0 8px #e2e8f0; }

.switch-group {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.switch-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-violet);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.export-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.export-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-export {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 0.65rem 0.5rem;
  font-size: 0.775rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-export:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(249, 115, 22, 0.3));
  border-color: var(--accent-violet);
  transform: translateY(-2px);
}

.export-status {
  font-size: 0.75rem;
  color: var(--accent-green);
  text-align: center;
}

/* ==========================================================================
   INTERACTIVE PLAYGROUND SECTION
   ========================================================================== */
.playground-section {
  position: relative;
  padding: 7rem 0;
  z-index: 5;
}

.playground-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.prompt-input-wrapper {
  margin-bottom: 2.25rem;
}

.prompt-input-inner {
  display: flex;
  align-items: center;
  background: rgba(12, 10, 22, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

.prompt-input-inner:focus-within {
  border-color: var(--accent-violet);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.35);
}

.prompt-magic-icon {
  font-size: 1.2rem;
  color: var(--accent-violet);
  margin-right: 0.85rem;
}

.prompt-input-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
}

.btn-generate {
  background: linear-gradient(135deg, #a855f7, #f97316);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.4);
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.6);
}

.prompt-suggestions-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sugg-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.sugg-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.775rem;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sugg-pill:hover {
  background: rgba(168, 85, 247, 0.15);
  color: #fff;
  border-color: var(--accent-violet);
}

.playground-output-area {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2rem;
}

.active-generation-preview {
  position: relative;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  background: #090910;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.generation-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 11, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 20;
}

.generation-loader.active {
  display: flex;
}

.pulse-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(168, 85, 247, 0.2);
  border-top-color: var(--accent-violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #d8b4fe;
}

.progress-bar-track {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-orange));
  transition: width 0.1s linear;
}

.preview-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.preview-badge-layer {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-tag {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.775rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  font-size: 0.6rem;
  animation: pulse-dot 1.5s infinite;
}

.preview-quick-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.action-btn:hover {
  background: var(--accent-violet);
  border-color: var(--accent-violet);
}

.playground-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.param-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
}

.param-val {
  color: var(--accent-violet);
  font-family: var(--font-mono);
}

.aspect-ratio-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.ratio-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.775rem;
  padding: 0.45rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ratio-btn.active, .ratio-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-violet);
  color: #fff;
}

.param-slider {
  width: 100%;
  accent-color: var(--accent-violet);
  cursor: pointer;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.5rem 0;
}

.recent-generations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.recent-thumb {
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-thumb:hover, .recent-thumb.active {
  border-color: var(--accent-violet);
  transform: scale(1.05);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================= */
.pricing-section {
  position: relative;
  padding: 7rem 0;
  z-index: 5;
}

.billing-toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.75rem;
}

.billing-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.billing-label.active {
  color: var(--text-main);
}

.discount-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-left: 0.35rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 3.5rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.75rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.featured-tier {
  background: linear-gradient(180deg, rgba(30, 24, 52, 0.8) 0%, rgba(18, 16, 30, 0.8) 100%);
  border-color: var(--accent-violet);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.25);
  transform: scale(1.03);
}

.featured-tier:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 15px 50px rgba(168, 85, 247, 0.4);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #f97316);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 1.1rem;
  border-radius: 100px;
}

.tier-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 48px;
  margin-bottom: 1.75rem;
}

.tier-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 2rem;
}

.currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
}

.amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin: 0 0.2rem;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.tier-features li.disabled {
  color: var(--text-dim);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding: 6rem 0 3rem;
  background: #040407;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 5;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.brand-icon-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.brand-icon-footer svg {
  width: 28px;
  height: 28px;
  color: var(--accent-violet);
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.5rem;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.775rem;
  color: #34d399;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-lavender);
}

.news-text {
  font-size: 0.825rem;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
}

.newsletter-form {
  display: flex;
  gap: 0.4rem;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: #fff;
  font-size: 0.825rem;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent-violet);
}

.btn-sm {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

@keyframes scan-vertical {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 98%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

@keyframes mouse-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

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

/* ==========================================================================
   PORTFOLIO SPECIFIC ENHANCEMENTS & COMPONENTS
   ========================================================================== */

/* Hero Profile & Layout */
.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-profile-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hero-profile-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(236, 72, 153, 0.2) 50%, transparent 75%);
  filter: blur(28px);
  border-radius: 36px;
  z-index: 1;
  animation: pulse-dot 4s ease-in-out infinite alternate;
}

.hero-profile-card {
  position: relative;
  z-index: 2;
  background: rgba(18, 16, 30, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 28px;
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(168, 85, 247, 0.2);
  transition: var(--transition-smooth);
}

.hero-profile-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(168, 85, 247, 0.35);
}

.profile-img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0c18;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-profile-card:hover .profile-img-wrap img {
  transform: scale(1.04);
}

.profile-badge-float {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 7, 11, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.profile-card-footer {
  margin-top: 1.25rem;
  padding: 0.5rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-card-role {
  font-size: 0.85rem;
  color: var(--accent-lavender);
  font-weight: 500;
}

.profile-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-mini-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.profile-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.profile-social-btn:hover {
  background: var(--accent-violet);
  color: #fff;
  border-color: var(--accent-violet);
  transform: translateY(-2px);
}

/* Portfolio Projects Section */
.portfolio-filter-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-violet);
  color: #fff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.2);
}

.project-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090910;
}

.project-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-card:hover .project-thumb-box img {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 7, 11, 0.95) 100%);
  pointer-events: none;
}

.project-badge-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 7, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--accent-lavender);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.capability-header {
  position: relative;
  padding: 2.25rem 2rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, transparent 100%);
}

.capability-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(18, 16, 30, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
  transition: var(--transition-fast);
}

.project-card:hover .capability-icon-box {
  transform: scale(1.1) rotate(4deg);
  border-color: var(--accent-violet);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.capability-tag-pill {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
}

.capability-feature-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.capability-feature-item {
  font-size: 0.825rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.capability-feature-item i {
  color: #34d399;
  font-size: 0.8rem;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.project-tech-chip {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.project-link-btn:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-violet));
  border-color: var(--accent-violet);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* CLI Interactive Terminal Playground */
.terminal-window {
  background: #0b0a14;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(168, 85, 247, 0.15);
}

.terminal-header {
  background: rgba(18, 16, 30, 0.9);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #e2e8f0;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  line-height: 1.7;
}

.cli-command-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cmd-pill {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cmd-pill:hover {
  background: var(--accent-violet);
  color: #fff;
  border-color: var(--accent-violet);
}

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.5rem;
  background: rgba(14, 12, 24, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-prefix {
  font-family: var(--font-mono);
  color: #34d399;
  font-weight: 700;
  font-size: 0.85rem;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.875rem;
}

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(168, 85, 247, 0.15);
}

.testi-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.testi-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-violet);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}

.testi-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.testi-role {
  font-size: 0.775rem;
  color: var(--accent-lavender);
}

.testi-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.2rem;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

/* Contact Hub */
.contact-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateX(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.15);
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-violet);
  flex-shrink: 0;
}

.contact-info-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 700;
}

.contact-info-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.2rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.form-select {
  width: 100%;
  background-color: #141224;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.85rem 2.5rem 0.85rem 1.15rem;
  border-radius: 12px;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-select:focus {
  border-color: var(--accent-violet);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
  background-color: #1c1833;
}

.form-select option {
  background-color: #141224 !important;
  color: #ffffff !important;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   RESPONSIVENESS & MOBILE-FIRST MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.25rem; }
  .hero-grid-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-profile-container { max-width: 440px; margin: 0 auto; width: 100%; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-large, .bento-card-medium { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-hub-grid { grid-template-columns: 1fr; }
  .playground-output-area { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
  
  /* Mobile Menu Drawer */
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: rgba(7, 7, 11, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1.5rem;
    gap: 0.75rem;
    z-index: 999;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }

  .mobile-link {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
  }

  .mobile-link:hover, .mobile-link.active {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    padding-left: 1.25rem;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
  }

  .mobile-link.active::after {
    content: '✦';
    font-size: 0.8rem;
    color: var(--accent-violet);
  }

  .mobile-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Section Spacing & Sizing */
  .hero-section {
    padding: 6.5rem 0 3.5rem;
  }

  .partners-section {
    padding: 3rem 0;
  }

  .bento-section,
  .portfolio-section,
  .playground-section,
  .testimonials-section,
  .contact-section {
    padding: 4.5rem 0 !important;
  }

  .section-title {
    font-size: 2.15rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Hero & Typography */
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-badge {
    white-space: normal;
    padding: 0.5rem 0.85rem;
  }

  .badge-text {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
    width: 100%;
  }

  .stat-divider {
    display: none;
  }

  .hero-profile-container {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .brand-billboard {
    font-size: clamp(2.4rem, 13vw, 5rem);
    letter-spacing: 0.04em;
    width: 95vw;
  }

  /* Capabilities Grid & Filter */
  .portfolio-filter-row {
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .filter-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.8rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Bento Card Padding */
  .bento-card {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }

  /* Terminal CLI Window */
  .terminal-window {
    border-radius: 18px;
  }

  .terminal-body {
    padding: 1.15rem;
    font-size: 0.825rem;
    min-height: 220px;
    max-height: 340px;
  }

  .terminal-input-row {
    padding: 0.75rem 1rem;
  }

  .terminal-input {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
  }

  .cli-command-pills {
    padding: 0 1rem 0.75rem !important;
    gap: 0.35rem;
  }

  .cmd-pill {
    font-size: 0.725rem;
    padding: 0.3rem 0.65rem;
  }

  /* Form & Contact Inputs */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }

  .contact-info-card {
    padding: 1.15rem;
    gap: 1rem;
  }

  .contact-info-val {
    word-break: break-all;
    font-size: 0.95rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

