/* ============================================================
   DallasTech Portfolio — Styles.css
   Adrian Dallas · adriandallas.dev
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg: #080810;
  --surface: #0f0f1a;
  --surface2: #16162a;
  --border: #ffffff0e;
  --purple: #7c3aed;
  --purple-bright: #a855f7;
  --purple-glow: #7c3aed40;
  --purple-soft: #a855f715;
  --white: #f5f3ff;
  --muted: #6b6b8a;
  --muted2: #9090b0;
  --green: #10d9a0;
  --radius: 16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
* { scrollbar-width: thin; scrollbar-color: #ffffff12 transparent; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 12px; height: 12px;
  background: var(--purple-bright);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.1s, width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: screen;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px;
  border: 1px solid var(--purple-bright);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.18s ease, width 0.2s, height 0.2s, opacity 0.2s;
  opacity: 0.5;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift    { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-20px)} }
@keyframes pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
@keyframes msgIn    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tb       { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
@keyframes projIn   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── SHARED BUTTONS ── */
.btn-primary {
  background: var(--purple);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 30px var(--purple-glow);
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-primary:hover { background: var(--purple-bright); transform: translateY(-2px); box-shadow: 0 8px 40px var(--purple-glow); }

.btn-ghost {
  background: transparent;
  color: var(--muted2);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-ghost:hover { border-color: var(--purple-bright); color: var(--white); }

/* ── SHARED TAGS ── */
.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted2);
}

/* ── SECTION COMMONS ── */
section { padding: 100px 60px; position: relative; }

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--purple-bright);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted2);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  padding: 16px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  pointer-events: none;
}
nav > * { pointer-events: auto; }
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted2);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: all 0.2s !important;
  box-shadow: 0 0 20px var(--purple-glow);
}
nav.menu-open {
  background: var(--bg);
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  z-index: 201;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 12px;
  transition: color 0.2s;
  z-index: 102;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover { color: var(--purple-bright); }

.mobile-menu-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: var(--white);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--purple-bright); }

.mobile-menu-cta {
  margin-top: 24px;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 30px var(--purple-glow);
  transition: all 0.2s;
}
.mobile-menu-cta:hover { background: var(--purple-bright); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}
.hero-orb {
  position: absolute; z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  animation: drift 8s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--purple); opacity: 0.12; top: -100px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: #c026d3; opacity: 0.08; bottom: 50px; left: 200px; animation-delay: -4s; }
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--purple-bright);
  border: 1px solid #7c3aed50;
  background: var(--purple-soft);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  animation: fadeUp 0.6s ease both;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: 2px;
  animation: fadeUp 0.6s 0.1s ease both;
}
h1 .accent { color: var(--purple-bright); }
h1 .outline { -webkit-text-stroke: 1px var(--muted); color: transparent; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted2);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-top: 24px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-btns {
  display: flex; gap: 14px; margin-top: 40px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex; gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--white);
  letter-spacing: 1px;
}
.stat-num span { color: var(--purple-bright); }
.stat-lbl { font-size: 0.78rem; color: var(--muted); margin-top: 2px; font-weight: 400; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 60px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp 0.6s 0.6s ease both;
}
.scroll-line { width: 40px; height: 1px; background: var(--muted); }

/* ── SERVICES ── */
#services { background: var(--surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 40px 36px;
  position: relative;
  transition: background 0.3s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { background: var(--surface2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 2rem; margin-bottom: 20px; display: block; }
.service-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.service-desc { font-size: 0.87rem; color: var(--muted2); line-height: 1.7; font-weight: 300; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }

/* ══════════════════════════════════════════════════════════════
   PROJECT SHOWCASE
   ══════════════════════════════════════════════════════════════ */

#projects { background: var(--bg); }

/* ── Tab nav ── */
.proj-tab-nav {
  display: flex;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.proj-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 40px;
  color: var(--muted2);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.proj-tab-btn:hover {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--white);
  background: rgba(168, 85, 247, 0.06);
}

.proj-tab-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  box-shadow: 0 0 24px var(--purple-glow);
}

.ptb-badge {
  font-size: 0.68rem;
  font-family: 'DM Mono', monospace;
  background: rgba(255,255,255,0.12);
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.proj-tab-btn.active .ptb-badge {
  background: rgba(255,255,255,0.2);
}

/* ── Panels wrapper ── */
.proj-panels {
  margin-top: 32px;
}

.proj-panel {
  display: none;
  animation: projIn 0.35s ease forwards;
}

.proj-panel.active {
  display: block;
}

/* ── Shared two-column layout ── */
.proj-layout {
  display: grid;
  gap: 56px;
  align-items: start;
}

.web-layout {
  grid-template-columns: 1fr 340px;
}

.app-layout {
  grid-template-columns: auto 1fr;
  align-items: center;
}

/* ── Browser mockup ── */
.browser-stage { width: 100%; }

.browser-chrome {
  background: var(--surface2);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(168, 85, 247, 0.12);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0d0d1e;
  border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.bdot { width: 12px; height: 12px; border-radius: 50%; }
.bdot-r { background: #ff5f57; }
.bdot-y { background: #febc2e; }
.bdot-g { background: #28c840; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-family: 'DM Mono', monospace;
  color: var(--muted2);
  overflow: hidden;
  white-space: nowrap;
}

.browser-ext {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--purple-bright);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.browser-ext:hover { background: rgba(168, 85, 247, 0.25); }

.browser-view {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--bg);
}

.browser-view iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.browser-view iframe.iframe-ready {
  opacity: 1;
}

/* Iframe fallback — hidden until .show toggled by JS */
.iframe-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
}
.iframe-fallback.show { display: flex; }

.fb-inner {
  text-align: center;
  padding: 40px;
}
.fb-ico { font-size: 48px; margin-bottom: 16px; }
.fb-inner p { color: var(--muted2); font-size: 0.88rem; margin-bottom: 24px; line-height: 1.6; }

/* ── Screenshot viewer (replaces iframe) ── */
.screenshot-view {
  position: relative;
  overflow: hidden;
}

.screenshot-scroll {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(168,85,247,0.35) transparent;
}

.screenshot-scroll::-webkit-scrollbar { width: 5px; }
.screenshot-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.4); border-radius: 3px; }
.screenshot-scroll::-webkit-scrollbar-thumb:hover { background: rgba(168,85,247,0.7); }

.screenshot-scroll img {
  width: 100%;
  display: block;
}

/* ── Phone mockup carousel ── */
.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.phone-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-track-wrap {
  overflow: hidden;
  width: 220px;
}

.phone-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-frame {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-shell {
  width: 200px;
  height: 420px;
  background: linear-gradient(145deg, #22223a, #14142a);
  border-radius: 36px;
  border: 2px solid rgba(168, 85, 247, 0.35);
  box-shadow:
    0 0 0 6px rgba(0,0,0,0.55),
    0 0 0 7px rgba(168, 85, 247, 0.12),
    0 40px 80px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px 8px;
  overflow: hidden;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  margin-bottom: 6px;
  flex-shrink: 0;
  z-index: 2;
}

.phone-screen {
  flex: 1;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-bar {
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-top: 6px;
  flex-shrink: 0;
}

.screen-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}

.car-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: var(--purple-bright);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.car-arrow:hover { background: rgba(168, 85, 247, 0.28); transform: scale(1.1); }

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

.car-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: all 0.25s;
}
.car-dot.active {
  background: var(--purple-bright);
  width: 18px;
  border-radius: 3px;
}

/* ── Project info panel (shared) ── */
.proj-info { padding-top: 4px; }

.proj-type-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--purple-bright);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.proj-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.proj-desc {
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
}

.proj-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.proj-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted2);
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.proj-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── ABOUT ── */
#about {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-bright), transparent);
}
.about-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--purple), #c026d3);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  box-shadow: 0 0 40px var(--purple-glow);
}
.about-name { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 2px; }
.about-role {
  font-size: 0.82rem;
  color: var(--purple-bright);
  font-family: 'DM Mono', monospace;
  margin-top: 4px;
  letter-spacing: 1px;
}
.about-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.skill-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--purple-soft);
  border: 1px solid #7c3aed30;
  color: var(--purple-bright);
}
.floating-badge {
  position: absolute;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.8rem;
}
.floating-badge.top-right { top: -20px; right: -20px; }
.floating-badge.bottom-left { bottom: -20px; left: -20px; }
.fb-val { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; color: var(--purple-bright); }
.fb-lbl { font-size: 0.68rem; color: var(--muted); font-family: 'DM Mono', monospace; }
.about-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.about-text p { font-size: 0.95rem; color: var(--muted2); font-weight: 300; line-height: 1.8; margin-bottom: 16px; }
.about-text strong { color: var(--white); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   AI DEMO SECTION
   ══════════════════════════════════════════════════════════════ */

#ai-demo { background: var(--bg); }

/* ── Business picker ── */
.ai-demo-wrap {
  margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.biz-picker {
  display: flex;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.biz-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}

.biz-btn:hover { background: rgba(168,85,247,0.06); }

.biz-btn.active {
  border-bottom-color: var(--purple-bright);
  background: var(--surface);
}

.biz-ico {
  font-size: 1.5rem;
  line-height: 1;
}

.biz-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted2);
  white-space: nowrap;
}

.biz-btn.active .biz-name { color: var(--purple-bright); }

/* ── Chat shell ── */
.demo-chat {
  display: flex;
  flex-direction: column;
  height: 520px;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.demo-chat-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid #7c3aed30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.demo-chat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.demo-chat-status {
  font-size: 0.72rem;
  color: var(--green);
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  gap: 5px;
}

.demo-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

.demo-chat-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-family: 'DM Mono', monospace;
  color: var(--purple-bright);
  background: var(--purple-soft);
  border: 1px solid #7c3aed30;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Messages area ── */
.demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.demo-messages::-webkit-scrollbar { width: 3px; }
.demo-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.demo-msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 75%;
  animation: msgIn 0.22s ease;
}

.demo-msg-row.demo-user {
  flex-direction: row-reverse;
  align-self: flex-end;
  max-width: 75%;
}

.demo-mini-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid #7c3aed30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.demo-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.87rem;
  line-height: 1.65;
  max-width: 100%;
}

.demo-bubble.ai {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--white);
  border-bottom-left-radius: 4px;
}

.demo-bubble.user {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.demo-bubble b { color: var(--purple-bright); }

/* Typing dots */
.demo-typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 0;
}

.demo-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple-bright);
  animation: tb 1.2s infinite;
}

.demo-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── Suggestion chips ── */
.demo-suggestions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 44px;
}

.demo-sug {
  font-size: 0.75rem;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted2);
  cursor: pointer;
  background: none;
  font-family: 'Outfit', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.demo-sug:hover {
  border-color: var(--purple-bright);
  color: var(--purple-bright);
  background: var(--purple-soft);
}

/* ── Input row ── */
.demo-input-row {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.demo-input-row input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.87rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

.demo-input-row input:focus { border-color: var(--purple); }
.demo-input-row input::placeholder { color: var(--muted); }

.demo-send {
  background: var(--purple);
  border: none;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  transition: all 0.2s;
  flex-shrink: 0;
}

.demo-send:hover { background: var(--purple-bright); transform: scale(1.05); }
.demo-send:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

/* ── CTA below demo ── */
.ai-demo-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.ai-demo-cta p {
  font-size: 1rem;
  color: var(--muted2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

@media (max-width: 768px) {
  .ai-demo-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
  }
  .biz-name { display: none; }
  .demo-chat { height: 440px; }
  .demo-chat-header { padding: 12px 16px; }
  .demo-messages { padding: 16px; }
  .demo-input-row { padding: 12px 16px; }
  .demo-suggestions { padding: 8px 16px; }
}

/* ── CONTACT ── */
#contact { background: var(--surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.contact-info p { font-size: 0.9rem; color: var(--muted2); line-height: 1.7; font-weight: 300; margin-bottom: 28px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--purple-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text { font-size: 0.87rem; color: var(--muted2); }
.contact-item-val { font-size: 0.9rem; font-weight: 500; color: var(--white); }
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.contact-form h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted2);
  font-family: 'DM Mono', monospace;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select option { background: var(--surface2); }
.form-section-label {
  font-size: 0.68rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 2px;
  color: var(--purple-bright);
  text-transform: uppercase;
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-section-label:first-child { margin-top: 0; }

.form-label-hint {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Outfit', sans-serif;
}

.form-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 0.82rem;
  color: var(--muted2);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
  user-select: none;
}

.form-checkbox:hover {
  border-color: rgba(168,85,247,0.4);
  color: var(--white);
}

.form-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--purple);
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  appearance: auto;
}
.form-submit {
  width: 100%;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  box-shadow: 0 0 24px var(--purple-glow);
}
.form-submit:hover { background: var(--purple-bright); transform: translateY(-1px); box-shadow: 0 6px 30px var(--purple-glow); }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success .check { font-size: 3rem; margin-bottom: 12px; }
.form-success h4 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 1px; margin-bottom: 8px; }
.form-success p { color: var(--muted2); font-size: 0.9rem; }

/* ── FOOTER ── */
footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.5;
}
.footer-logo-text {
  font-family: 'Fira Code', monospace;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.footer-copy { font-size: 0.78rem; color: var(--muted); font-family: 'DM Mono', monospace; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.82rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--purple-bright); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .web-layout { grid-template-columns: 1fr; }
  .app-layout { grid-template-columns: 1fr; justify-items: center; }
  .proj-info  { padding-top: 0; }
}

@media (max-width: 768px) {
  section { padding: 80px 24px; }
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo { max-width: calc(100vw - 80px); }
  .nav-logo-icon { width: 26px; height: 26px; }
  .nav-logo-text { font-size: 0.95rem; }
  #hero { padding: 100px 24px 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .services-grid { grid-template-columns: 1fr; }
  #about { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .proj-tab-nav { gap: 6px; }
  .proj-tab-btn { font-size: 0.78rem; padding: 8px 14px; }
  .ptb-icon { display: none; }
  .browser-view { height: 320px; }
  .proj-features { grid-template-columns: 1fr; }
}