/* ============================================================
   style.css — Mark00s Portfolio
   Bold Gaming × Dev Aesthetic | Dark + Neon Blue/Green
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&family=Exo+2:ital,wght@0,200;0,400;0,700;1,200&display=swap');

:root {
  --bg:       #060810;
  --bg2:      #0b0e18;
  --bg3:      #0f1420;
  --surface:  #131929;
  --border:   #1e2a40;
  --border2:  #253354;

  --blue:     #3b82f6;
  --blue-dim: rgba(59,130,246,0.12);
  --blue-glow:rgba(59,130,246,0.35);
  --green:    #22c55e;
  --green-dim:rgba(34,197,94,0.12);
  --green-glow:rgba(34,197,94,0.3);
  --white:    #f0f4ff;
  --muted:    #b0bdd4;
  --dim:      #6b7fa3;

  --accent:   var(--blue);
  --accent2:  var(--green);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Exo 2', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;

  --radius:   3px;
  --radius-lg:8px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
  --shadow:   0 8px 40px rgba(0,0,0,0.7);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; border: none; background: none; font-family: var(--font-body); }
img { display: block; max-width: 100%; }
input, textarea, select {
  font-family: var(--font-mono);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--white);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  width: 100%;
  font-size: .85rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-dim), 0 0 12px var(--blue-glow);
}
select { appearance: none; }

/* ---- SCANLINES ---- */
.scanlines {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
  );
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: transform .1s, background .2s;
  box-shadow: 0 0 10px var(--blue-glow);
}
.cursor-trail {
  position: fixed; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--blue); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: left .15s ease, top .15s ease, opacity .3s;
  opacity: .5;
}

/* ---- PAGE SYSTEM ---- */
.page { display: none; }
.page.active { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- NAVBAR ---- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 5%;
  background: rgba(6,8,16,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  letter-spacing: .1em; cursor: none; white-space: nowrap;
}
.bracket { color: var(--blue); }
.nav-links { display: flex; gap: 2rem; list-style: none; margin-left: auto; }
.nav-link {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); cursor: none;
  transition: color var(--transition);
  position: relative; padding-bottom: 3px;
}
.nav-link::before {
  content: attr(data-index) '.';
  font-size: .65rem; color: var(--green); margin-right: .3rem;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em;
  padding: .5rem 1.2rem; border: 1px solid var(--blue); color: var(--blue);
  border-radius: var(--radius); transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap; cursor: none;
}
.nav-cta:hover {
  background: var(--blue); color: var(--bg);
  box-shadow: 0 0 20px var(--blue-glow);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: none; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--white); transition: var(--transition); }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 499;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 1rem 5%; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .85rem; cursor: none;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover { color: var(--blue); background: var(--blue-dim); }
.mm-idx { color: var(--green); margin-right: .5rem; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--blue); color: var(--bg);
  padding: .75rem 1.8rem; border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .82rem;
  font-weight: 400; letter-spacing: .08em;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-primary:hover {
  box-shadow: 0 0 24px var(--blue-glow);
  transform: translateY(-2px);
}
.btn-icon { font-size: .7rem; }

.btn-ghost {
  color: var(--muted); font-family: var(--font-mono); font-size: .78rem;
  letter-spacing: .08em; border: 1px solid var(--border);
  padding: .75rem 1.8rem; border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn-ghost:hover {
  color: var(--green); border-color: var(--green);
  box-shadow: 0 0 16px var(--green-glow);
}

/* ---- SECTIONS ---- */
.section { padding: 6rem 8%; opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.section.visible { opacity: 1; transform: none; }
.section-header { margin-bottom: 3rem; }
.section-tag {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .15em;
  color: var(--green); display: block; margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: .05em; line-height: 1.1;
}
.accent-text { color: var(--blue); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh; display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center; gap: 3rem;
  padding: 0 8%; padding-top: 80px;
  position: relative; overflow: hidden;
}
#matrixCanvas { position: absolute; inset: 0; opacity: .08; pointer-events: none; }
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  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 70% 70% at 50% 50%, black, transparent);
  opacity: .3;
}
.hero-content { position: relative; z-index: 1; }
.hero-prompt {
  font-family: var(--font-mono); font-size: .82rem; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
}
.prompt-user { color: var(--green); }
.prompt-sep { color: var(--white); }
.prompt-path { color: var(--blue); }
.prompt-dollar { color: var(--muted); margin: 0 .25rem; }
.prompt-cmd { color: var(--white); }
.cursor-blink { color: var(--blue); animation: blink .7s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1; letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.title-line { display: block; }
.hero-sub { color: var(--white); font-size: 1.05rem; max-width: 440px; margin-bottom: 2.5rem; font-weight: 400; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stack { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.stack-label { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.stack-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.stack-pill {
  font-family: var(--font-mono); font-size: .68rem; padding: .2rem .6rem;
  border: 1px solid var(--border2); border-radius: 2px;
  color: var(--muted); background: var(--bg3);
}

/* TERMINAL WIDGET */
.hero-terminal {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 40px rgba(59,130,246,0.1), var(--shadow);
  animation: fadeUp .8s ease .4s both;
}
.terminal-bar {
  background: var(--bg3); border-bottom: 1px solid var(--border);
  padding: .6rem 1rem; display: flex; align-items: center; gap: .5rem;
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.tdred { background: #ff5f56; }
.tdyellow { background: #ffbd2e; }
.tdgreen { background: #27c93f; }
.t-title { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-left: auto; }
.terminal-body {
  padding: 1.25rem; font-family: var(--font-mono); font-size: .8rem;
  line-height: 1.8; min-height: 260px; color: var(--muted);
}
.t-line { display: block; }
.t-cmd { color: var(--green); }
.t-out { color: var(--white); }
.t-comment { color: var(--dim); }
.t-blue { color: var(--blue); }
.t-highlight { color: var(--green); }

/* ---- CAROUSEL ---- */
.carousel-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.carousel-wrapper { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(0.4,0,0.2,1); }
.carousel-slide {
  min-width: 100%; display: grid;
  grid-template-columns: 1.2fr 1fr; cursor: none;
}
.carousel-slide:hover .carousel-img { transform: scale(1.03); }
.carousel-img {
  height: 480px; background-size: cover; background-position: center;
  overflow: hidden; position: relative; transition: transform .4s ease;
}
.carousel-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 40%, var(--bg2) 100%);
}
.carousel-info {
  background: var(--bg2); padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center; gap: .75rem;
}
.carousel-cat { font-family: var(--font-mono); font-size: .7rem; color: var(--green); letter-spacing: .15em; }
.carousel-info h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; line-height: 1.15; }
.carousel-info p { color: var(--white); opacity: 0.85; font-size: .88rem; }
.carousel-tech { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.carousel-tech span {
  font-family: var(--font-mono); font-size: .65rem;
  padding: .15rem .5rem; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 2px; color: var(--blue);
}
.carousel-cta { font-family: var(--font-mono); color: var(--green); font-size: .78rem; margin-top: .25rem; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: var(--radius);
  background: rgba(11,14,24,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border2); color: var(--white); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; z-index: 5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.carousel-btn:hover { border-color: var(--blue); box-shadow: 0 0 12px var(--blue-glow); }
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; z-index: 5; }
.dot-btn {
  width: 5px; height: 5px; border-radius: 50%; background: var(--dim);
  border: none; transition: background var(--transition), width var(--transition);
}
.dot-btn.active { background: var(--blue); width: 18px; border-radius: 2px; box-shadow: 0 0 8px var(--blue-glow); }

/* ---- STATS ---- */
.stats-section { background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat-item {
  padding: 2rem 1.5rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-align: center; position: relative; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-item:hover { border-color: var(--blue); box-shadow: 0 0 20px var(--blue-dim); }
.stat-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.stat-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--blue); display: inline; line-height: 1;
}
.stat-suf { font-family: var(--font-display); font-size: 1.5rem; color: var(--green); }
.stat-item p { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin-top: .75rem; }

/* ---- REVIEWS MARQUEE ---- */
.reviews-preview { background: var(--bg2); border-top: 1px solid var(--border); }
.reviews-marquee-outer { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.reviews-marquee { display: flex; gap: 1.25rem; width: max-content; animation: marqueeScroll 40s linear infinite; }
.reviews-marquee:hover { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-card {
  flex-shrink: 0; width: 280px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.marquee-card:hover { border-color: var(--green); box-shadow: 0 0 16px var(--green-dim); }
.marquee-stars { color: var(--blue); font-size: .85rem; margin-bottom: .6rem; }
.marquee-card p { font-size: .83rem; color: var(--white); opacity: 0.85; line-height: 1.6; margin-bottom: .85rem; }
.marquee-author strong { display: block; font-size: .82rem; font-weight: 500; }
.marquee-author span { font-family: var(--font-mono); font-size: .7rem; color: var(--dim); }
.reviews-cta { text-align: center; margin-top: 2.5rem; }

/* ---- CTA BANNER ---- */
.cta-banner {
  padding: 8rem 8%; text-align: center;
  border-top: 1px solid var(--border); background: var(--bg);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, var(--blue-dim) 0%, transparent 70%);
  pointer-events: none;
}
.cta-glitch {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; letter-spacing: .04em; margin-bottom: 1rem;
  position: relative; display: inline-block; color: var(--white);
}
.cta-glitch::before, .cta-glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
  font-family: var(--font-display); font-weight: 700;
}
.cta-glitch::before { color: var(--blue); clip-path: polygon(0 0,100% 0,100% 45%,0 45%); animation: glitch1 3s infinite; }
.cta-glitch::after  { color: var(--green); clip-path: polygon(0 55%,100% 55%,100% 100%,0 100%); animation: glitch2 3s infinite; }
@keyframes glitch1 { 0%,94%,100%{transform:none;opacity:0} 95%{transform:translate(-3px,1px);opacity:.8} 98%{transform:translate(2px,-1px);opacity:.5} }
@keyframes glitch2 { 0%,96%,100%{transform:none;opacity:0} 97%{transform:translate(3px,-1px);opacity:.7} 99%{transform:translate(-2px,1px);opacity:.4} }
.cta-banner p { color: var(--muted); font-family: var(--font-mono); font-size: .9rem; margin-bottom: 2rem; }

/* ---- PAGE HERO ---- */
.page-hero {
  min-height: 38vh; display: flex; align-items: flex-end;
  padding: 0 8% 4rem; padding-top: 110px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ph-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px; opacity: .25;
  mask-image: linear-gradient(to bottom, transparent, black 40%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700; line-height: 1.1; letter-spacing: .03em;
  margin-top: .75rem;
}

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.about-image-wrap { position: sticky; top: 90px; }
.about-img-frame { position: relative; }
.about-img-placeholder {
  aspect-ratio: 3/4; background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--dim); overflow: hidden;
  background-size: cover; background-position: center;
}
.img-placeholder-text { font-family: var(--font-mono); font-size: .78rem; }
.img-corner {
  position: absolute; width: 16px; height: 16px;
  border-color: var(--blue); border-style: solid;
}
.img-corner.tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.img-corner.tr { top: -4px; right: -4px; border-width: 2px 2px 0 0; }
.img-corner.bl { bottom: -4px; left: -4px; border-width: 0 0 2px 2px; }
.img-corner.br { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }
.about-badge {
  display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
  font-family: var(--font-mono); font-size: .75rem; color: var(--green);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:.7} }

.about-text h2 {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  letter-spacing: .04em; margin-bottom: .25rem;
}
.about-role { font-family: var(--font-mono); font-size: .78rem; color: var(--blue); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.75rem; }
.about-bio p { color: var(--white); opacity: 0.85; line-height: 1.85; margin-bottom: .85rem; }
.about-skills { margin-top: 2.5rem; }
.skills-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag {
  font-family: var(--font-mono); font-size: .73rem;
  padding: .3rem .8rem; border: 1px solid var(--border2);
  border-radius: 2px; color: var(--muted);
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.skill-tag:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 8px var(--green-dim); }
.about-social { display: flex; gap: 1.25rem; margin-top: 2.5rem; }
.social-link {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em;
  color: var(--muted); border-bottom: 1px solid var(--border);
  padding-bottom: 2px; transition: color var(--transition), border-color var(--transition), text-shadow var(--transition);
}
.social-link:hover { color: var(--blue); border-color: var(--blue); text-shadow: 0 0 8px var(--blue-glow); }

/* ---- WORKS ---- */
.works-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn {
  font-family: var(--font-mono); font-size: .73rem; letter-spacing: .08em;
  padding: .4rem 1rem; border: 1px solid var(--border); border-radius: 2px;
  color: var(--muted); transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue-dim); border-color: var(--blue); color: var(--blue);
  box-shadow: 0 0 10px var(--blue-dim);
}
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.work-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition); }
.work-card:hover { border-color: var(--blue); box-shadow: 0 0 24px var(--blue-dim); }
.work-img { aspect-ratio: 16/10; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,8,16,0.97) 0%, rgba(6,8,16,0.2) 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.25rem; gap: .35rem;
  opacity: 0; transition: opacity var(--transition);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-cat { font-family: var(--font-mono); font-size: .65rem; color: var(--green); letter-spacing: .12em; text-transform: uppercase; }
.work-overlay h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.work-tech { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.work-tech span { font-family: var(--font-mono); font-size: .6rem; padding: .1rem .45rem; background: var(--blue-dim); border: 1px solid var(--border2); color: var(--blue); border-radius: 2px; }
.work-view { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-top: .2rem; }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,8,16,0.9); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); max-width: 760px; width: 100%;
  max-height: 88vh; overflow-y: auto; position: relative;
  animation: fadeUp .3s ease;
  box-shadow: 0 0 60px var(--blue-dim), var(--shadow);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--bg3); color: var(--white); font-size: 1.1rem;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.modal-close:hover { background: var(--blue); border-color: var(--blue); }
#modalImg { width: 100%; height: 300px; object-fit: cover; }
.modal-body { padding: 1.75rem; }
.modal-top { display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.modal-cat { font-family: var(--font-mono); font-size: .7rem; color: var(--green); letter-spacing: .12em; text-transform: uppercase; }
.modal-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.modal-tags span { font-family: var(--font-mono); font-size: .63rem; padding: .15rem .5rem; background: var(--blue-dim); border: 1px solid var(--border2); color: var(--blue); border-radius: 2px; }
.modal-body h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: .75rem; }
.modal-body p { color: var(--muted); line-height: 1.8; }
.contact-modal-box { max-width: 560px; }
.contact-modal-box .modal-body { padding: 2rem; }

/* ---- REVIEWS ---- */
.rating-overview {
  text-align: center; padding: 3rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg2); margin-bottom: 3rem;
}
.rating-terminal { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.rt-label { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.rating-big { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--blue); line-height: 1; }
.rt-max { font-family: var(--font-mono); font-size: 1.2rem; color: var(--dim); align-self: flex-end; padding-bottom: .25rem; }
.stars-big { font-size: 1.4rem; color: var(--blue); margin: .5rem 0; }
.total-reviews { font-family: var(--font-mono); font-size: .75rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }

.reviews-full-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.25rem; margin-bottom: 4rem; }
.review-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color var(--transition), box-shadow var(--transition);
}
.review-card:hover { border-color: var(--blue); box-shadow: 0 0 16px var(--blue-dim); }
.review-stars { color: var(--blue); margin-bottom: .6rem; }
.review-text { color: var(--white); opacity: 0.85; font-size: .88rem; line-height: 1.75; margin-bottom: 1rem; }
.review-author strong { display: block; font-size: .88rem; font-weight: 500; }
.review-author span { font-family: var(--font-mono); font-size: .72rem; color: var(--dim); }
.review-author small { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--dim); margin-top: .2rem; }

.review-form-wrap {
  max-width: 580px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 30px var(--blue-dim);
}
.review-form { padding: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.star-picker { display: flex; gap: .3rem; font-size: 1.6rem; }
.star-picker span { color: var(--dim); transition: color var(--transition), text-shadow var(--transition); }
.star-picker span.active, .star-picker span.hover { color: var(--blue); text-shadow: 0 0 8px var(--blue-glow); }
.form-msg { font-family: var(--font-mono); font-size: .78rem; }
.form-msg.success { color: var(--green); }
.form-msg.error { color: #f87171; }

/* ---- ADMIN LOGIN ---- */
.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg);
}
.admin-login-box {
  width: 100%; max-width: 380px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 40px var(--blue-dim);
}
.admin-login-box > *:not(.terminal-bar) { margin: 0 1.5rem 1rem; }
.admin-login-box > *:last-child { margin-bottom: 1.5rem; }
.login-prompt { font-family: var(--font-mono); font-size: .78rem; color: var(--green); margin: 1rem 1.5rem .5rem; }

/* ---- ADMIN PANEL ---- */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.admin-nav { display: flex; flex-direction: column; gap: .25rem; }
.admin-link {
  font-family: var(--font-mono); font-size: .78rem;
  padding: .6rem .85rem; border-radius: var(--radius); color: var(--muted);
  transition: all var(--transition); display: flex; align-items: center; gap: .5rem;
}
.admin-link:hover, .admin-link.active { background: var(--blue-dim); color: var(--blue); }
.al-idx { color: var(--green); font-size: .7rem; }
.admin-main { padding: 2rem; }
.admin-tab { display: none; }
.admin-tab.active { display: block; }
.admin-tab h2 {
  font-family: var(--font-mono); font-size: .9rem; color: var(--green);
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.admin-form { display: flex; flex-direction: column; gap: .6rem; max-width: 560px; }
.admin-form label { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .5rem; }
.dash-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.dash-card {
  padding: 1.75rem; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); text-align: center;
  transition: border-color var(--transition);
}
.dash-card:hover { border-color: var(--blue); }
.dash-card span { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--blue); display: block; }
.dash-card p { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .5rem; }
.dash-log { margin-top: 2rem; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.log-line { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); padding: .2rem 0; }
.log-ok { color: var(--green); }
.log-info { color: var(--blue); }
.admin-items-list { display: flex; flex-direction: column; gap: .75rem; margin-top: .75rem; }
.admin-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.admin-item-img { width: 56px; height: 56px; background-size: cover; background-position: center; border-radius: var(--radius); flex-shrink: 0; border: 1px solid var(--border); }
.admin-item-info { flex: 1; }
.admin-item-info strong { display: block; font-size: .88rem; font-weight: 500; }
.admin-item-info span, .admin-item-info p { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.btn-delete {
  padding: .35rem .8rem; background: rgba(248,113,113,0.1); color: #f87171;
  border: 1px solid rgba(248,113,113,0.25); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .72rem; flex-shrink: 0;
  transition: background var(--transition);
}
.btn-delete:hover { background: rgba(248,113,113,0.2); }
.btn-approve {
  padding: .35rem .8rem; background: var(--green-dim); color: var(--green);
  border: 1px solid rgba(34,197,94,.25); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .72rem; flex-shrink: 0;
  transition: background var(--transition);
}
.btn-approve:hover { background: rgba(34,197,94,0.2); }

/* ---- FOOTER ---- */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 1.75rem 8%;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.footer-copy { font-family: var(--font-mono); font-size: .72rem; color: var(--dim); }
.admin-access-link {
  font-family: var(--font-mono); font-size: .7rem; color: var(--dim);
  transition: color var(--transition); letter-spacing: .08em;
}
.admin-access-link:hover { color: var(--green); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-terminal { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .carousel-slide { grid-template-columns: 1fr; }
  .carousel-img { height: 260px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { position: static; max-width: 300px; }
  .dash-cards { grid-template-columns: 1fr; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 5%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .reviews-full-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CHATBOT
   ============================================================ */

/* FAB Button */
.chat-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px var(--blue-glow);
  cursor: none; transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}
.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px var(--blue-glow);
}
.chat-fab-icon, .chat-fab-close {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 300;
}
.chat-notif {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green); color: var(--bg);
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--green-glow);
}

/* Chat Window */
.chat-window {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 799;
  width: 340px; height: 480px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 48px rgba(59,130,246,0.15), var(--shadow);
  opacity: 0; transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.chat-window.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.chat-header {
  background: var(--bg3); border-bottom: 1px solid var(--border);
  padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: .75rem; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  box-shadow: 0 0 12px var(--blue-glow);
}
.chat-title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; }
.chat-status {
  font-family: var(--font-mono); font-size: .65rem; color: var(--green);
  display: flex; align-items: center; gap: .3rem;
}
.chat-online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 5px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}
.chat-clear {
  font-size: .9rem; color: var(--muted); cursor: none;
  padding: .25rem .4rem; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.chat-clear:hover { color: var(--white); background: var(--border); }

/* Messages */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot  { justify-content: flex-start; }

.chat-bubble {
  max-width: 82%; padding: .6rem .9rem;
  border-radius: var(--radius-lg); font-size: .85rem; line-height: 1.55;
  word-break: break-word;
}
.chat-msg.user .chat-bubble {
  background: var(--blue); color: var(--bg);
  border-bottom-right-radius: 4px;
}
.chat-msg.bot .chat-bubble {
  background: var(--bg3); color: var(--white);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: .7rem .9rem !important;
}
.typing-indicator span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); display: inline-block;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); opacity: .5; }
  30%          { transform: translateY(-6px); opacity: 1; }
}

/* Suggestions */
.chat-suggestions {
  display: flex; gap: .4rem; padding: 0 1rem .6rem;
  flex-wrap: wrap; flex-shrink: 0;
}
.chat-suggestions button {
  font-family: var(--font-mono); font-size: .68rem;
  padding: .3rem .7rem; border: 1px solid var(--border2);
  border-radius: 100px; color: var(--blue);
  background: var(--blue-dim); cursor: none;
  transition: background var(--transition), border-color var(--transition);
}
.chat-suggestions button:hover {
  background: var(--blue); color: var(--bg); border-color: var(--blue);
}

/* Input Row */
.chat-input-row {
  display: flex; gap: .5rem; padding: .75rem 1rem;
  border-top: 1px solid var(--border); flex-shrink: 0;
  background: var(--bg3);
}
.chat-input-row input {
  flex: 1; padding: .5rem .85rem;
  font-size: .83rem; border-radius: 100px;
  border: 1px solid var(--border2);
}
.chat-input-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-dim);
}
.chat-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: none;
  transition: box-shadow var(--transition), transform var(--transition);
}
.chat-send:hover { box-shadow: 0 0 14px var(--blue-glow); transform: scale(1.08); }
.chat-send:disabled { opacity: .5; }

/* Mobile */
@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .chat-fab { bottom: 1.25rem; right: 1.25rem; }
}

/* ============================================================
   PARALLAX LAYERS — fixes broken rendering
   ============================================================ */

#heroSection { overflow: hidden; }

.parallax-layer {
  position: absolute; border-radius: 50%;
  pointer-events: none; will-change: transform;
  z-index: 0;
}
#parallaxOrb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.13) 0%, transparent 70%);
  top: -100px; right: -80px;
  filter: blur(60px);
}
#parallaxOrb2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(34,197,94,0.09) 0%, transparent 70%);
  bottom: 50px; left: -80px;
  filter: blur(70px);
}
#parallaxGrid {
  will-change: transform;
}

/* Particles — must be inside hero bounds */
.parallax-particles {
  position: absolute; inset: 0;
  pointer-events: none; will-change: transform;
  z-index: 0; overflow: hidden;
}
.p-particle {
  position: absolute; border-radius: 50%;
  opacity: 0;
  animation: particleFade var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes particleFade {
  0%,100% { opacity: 0;   transform: translateY(0) scale(1); }
  50%      { opacity: 0.5; transform: translateY(-16px) scale(1.2); }
}

/* Code lines — must be inside hero bounds */
.parallax-lines {
  position: absolute; inset: 0;
  pointer-events: none; will-change: transform;
  z-index: 0; overflow: hidden;
}
.p-line {
  position: absolute;
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--blue); opacity: 0;
  white-space: nowrap;
  animation: lineDrift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes lineDrift {
  0%   { opacity: 0;    transform: translateY(16px); }
  15%  { opacity: 0.15; }
  85%  { opacity: 0.15; }
  100% { opacity: 0;    transform: translateY(-16px); }
}

/* Keep hero content above all parallax layers */
.hero-content  { position: relative; z-index: 5; }
.hero-terminal { position: relative; z-index: 5; }


/* ============================================================
   KINETIC TYPOGRAPHY COLLAGE
   ============================================================ */

.ktc-stage {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  min-height: 600px;
  background: var(--bg);
  overflow: hidden;
  cursor: none;
}

.ktc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* DOM collage overlay — text & image chips rendered here */
.ktc-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Each collage element */
.ktc-el {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  transform-origin: center center;
  white-space: nowrap;
}

/* Giant background title words */
.ktc-el.type-bg-word {
  font-family: var(--font-display);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(59,130,246,0.18);
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1;
  user-select: none;
}

/* Solid bold titles */
.ktc-el.type-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  mix-blend-mode: normal;
}
.ktc-el.type-title .ktc-accent { color: var(--blue); }

/* Category mono labels */
.ktc-el.type-cat {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  padding: .3rem .8rem;
  border: 1px solid var(--green);
  background: rgba(34,197,94,0.08);
}

/* Index numbers */
.ktc-el.type-index {
  font-family: var(--font-mono);
  color: var(--blue);
  opacity: .5;
}

/* Image chips */
.ktc-el.type-img {
  width: 220px;
  height: 140px;
  background-size: cover;
  background-position: center;
  filter: brightness(.7) saturate(1.3);
  border: 1px solid rgba(59,130,246,0.3);
  overflow: hidden;
}
.ktc-el.type-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), transparent);
}

/* Slash dividers */
.ktc-el.type-slash {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  opacity: .4;
  line-height: 1;
}

/* Horizontal rule lines */
.ktc-el.type-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue), transparent);
  opacity: .3;
  width: 300px;
}

/* Skip button */
.ktc-skip {
  position: absolute;
  top: 1.5rem; right: 2rem;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--muted);
  cursor: pointer;
  padding: .4rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(6,8,16,0.7);
  backdrop-filter: blur(6px);
  transition: color .2s, border-color .2s;
  pointer-events: all;
}
.ktc-skip:hover { color: var(--white); border-color: var(--white); }

.ktc-stage.ktc-done { display: none; }

@media (max-width: 600px) {
  .ktc-stage { height: 85vh; }
  .ktc-el.type-img { width: 140px; height: 90px; }
}
