/* ============================================================
   MARCO GAGLIANONE — style.css
   ============================================================ */

/* ------------------------------------------------------------
   RESET & VARIABLES
   ------------------------------------------------------------ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green:         #00ff88;
  --green-dim:     #00cc6a;
  --green-dark:    #004422;
  --bg:            #0a0d0f;
  --bg2:           #0f1316;
  --bg3:           #141a1e;
  --surface:       #1a2128;
  --surface2:      #1f2a32;
  --border:        #1e2d38;
  --border-bright: #2a4050;
  --text:          #e8f0f5;
  --muted:         #5a7a8a;
  --mono:          'JetBrains Mono', monospace;
  --sans:          'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

/* ------------------------------------------------------------
   CURSOR
   ------------------------------------------------------------ */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform .1s;
  mix-blend-mode: screen;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all .15s ease;
  opacity: .5;
}

/* ------------------------------------------------------------
   SCANLINES & NOISE
   ------------------------------------------------------------ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,136,.012) 2px,
    rgba(0,255,136,.012) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

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

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.blink {
  animation: blink 1.2s step-end infinite;
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,13,15,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5vw;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.nav-logo-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text);
  letter-spacing: .02em;
}

.nav-logo-text span {
  color: var(--muted);
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}

.nav-links a::before {
  content: './';
  opacity: 0;
  transition: opacity .2s;
  color: var(--green);
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a:hover::before {
  opacity: 1;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--muted);
  transition: all .3s;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid var(--border-bright);
  overflow: hidden;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .55rem;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
}

.lang-btn .flag {
  font-size: .85rem;
  line-height: 1;
}

.lang-btn.active {
  background: var(--green);
  color: #000;
  font-weight: 700;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 5vw 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,136,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--green);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--green);
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}

h1 .dim    { color: var(--muted); }
h1 .accent { color: var(--green); display: inline-block; }

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: .75rem;
  font-weight: 300;
}

.hero-tagline em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.hero-sub {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 3rem;
  border-left: 2px solid var(--green);
  padding-left: 1rem;
  line-height: 1.8;
}

.hero-sub span { color: var(--green); }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Terminal */
.hero-terminal {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: .78rem;
  box-shadow: 0 0 60px rgba(0,255,136,.08);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

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

.term-title {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  margin-left: .5rem;
}

.term-body {
  padding: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.term-body .g { color: var(--green); }
.term-body .w { color: var(--text); }
.term-body .c { color: #569cd6; }
.term-body .y { color: #dcdcaa; }
.term-spacer  { margin-top: .5rem; }
.term-indent  { padding-left: 1rem; }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  background: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border-bright);
}

.btn-ghost:hover {
  border-color: var(--green);
  background: rgba(0,255,136,.06);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green-dark);
}

/* ------------------------------------------------------------
   SECTIONS — shared
   ------------------------------------------------------------ */
section {
  padding: 100px 5vw;
  max-width: 1400px;
  margin: 0 auto;
}

section.section-full {
  max-width: none;
  margin: 0;
}

.inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--green);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
#about {
  padding-top: 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-text p em {
  color: var(--text);
  font-style: normal;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s;
}

.info-card:hover {
  border-color: var(--green-dim);
}

.info-card-icon {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--green);
  min-width: 28px;
}

.info-card-label {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}

.info-card-value {
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
}

.info-card-sub {
  font-size: .8rem;
  color: var(--muted);
}

/* ------------------------------------------------------------
   PROJECTS
   ------------------------------------------------------------ */
#projects {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 5vw;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
}

.project-card {
  background: var(--bg2);
  padding: 2rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,136,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}

.project-card:hover {
  background: var(--surface);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card--dashed {
  border: 1px dashed var(--border-bright);
  opacity: .5;
}

.project-tag {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--green);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(0,255,136,.08);
  padding: .2rem .6rem;
  display: inline-block;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,255,136,.15);
}

.project-tag--muted {
  background: transparent;
  border-color: var(--border);
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .75rem;
  letter-spacing: -.02em;
}

.project-desc {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.project-stack {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.stack-pill {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  border: 1px solid var(--border-bright);
  padding: .15rem .5rem;
  letter-spacing: .05em;
}

.project-link {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
}

.project-link:hover {
  gap: .7rem;
}

.project-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,.025);
  line-height: 1;
  pointer-events: none;
}

/* ------------------------------------------------------------
   BOTS
   ------------------------------------------------------------ */
#bots {
  max-width: 1200px;
}

.bots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.bot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all .2s;
}

.bot-card:hover {
  border-color: var(--green-dim);
  transform: translateY(-2px);
}

.bot-card--dashed {
  border-style: dashed;
  opacity: .6;
}

.bot-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  margin-right: .5rem;
  animation: pulse 2s infinite;
}

.bot-status.offline {
  background: var(--muted);
  animation: none;
}

.bot-header {
  display: flex;
  align-items: center;
  margin-bottom: .75rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.bot-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.02em;
}

.bot-desc {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.7;
  font-weight: 300;
}

.bot-tech {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--green);
  margin-top: .75rem;
  opacity: .7;
}

.bot-tech--muted {
  color: var(--muted);
}

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
#contact {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 100px 5vw;
}

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

label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .5rem;
}

input,
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .85rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
  resize: none;
  appearance: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(0,255,136,.2);
}

select option {
  background: var(--surface);
}

textarea {
  height: 140px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--green);
  color: #000;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .2s;
  margin-top: .5rem;
}

.submit-btn:hover {
  background: #fff;
  box-shadow: 4px 4px 0 var(--green);
}

.form-note {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.form-note b {
  color: var(--green);
  font-weight: 400;
}

.form-success {
  padding: 2rem;
  background: rgba(0,255,136,.06);
  border: 1px solid var(--green);
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.8;
}

.form-success__title {
  color: var(--green);
  margin-bottom: .5rem;
}

.form-success__sub {
  color: var(--muted);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-logo-text {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}

.footer-logo-text strong {
  color: var(--green);
}

.footer-copy,
.footer-right {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
}

.footer-right span:first-child {
  color: var(--green);
}

/* ------------------------------------------------------------
   SCROLL REVEAL
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-terminal {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

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

  .hero-cta {
    justify-content: center;
  }

  .hero-sub {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .bots-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   SCROLL PROGRESS BAR
   ------------------------------------------------------------ */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  z-index: 99999;
  box-shadow: 0 0 8px var(--green), 0 0 16px rgba(0,255,136,.4);
  transition: width .1s linear;
}

/* ------------------------------------------------------------
   BOOT SCREEN
   ------------------------------------------------------------ */
#bootScreen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}

.boot-wrap {
  width: min(480px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.boot-logo {
  display: block;
  animation: bootFadeIn .4s ease both;
  align-self: center;
  margin-bottom: .5rem;
}

@keyframes bootFadeIn {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}

#bootText {
  font-family: var(--mono);
  font-size: clamp(.72rem, 2.5vw, .85rem);
  color: var(--muted);
  line-height: 2;
  width: 100%;
}

.boot-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

.boot-prefix { color: var(--green); }
.boot-suffix { color: #00cc6a; opacity: .8; }

.boot-blink {
  font-family: var(--mono);
  color: var(--green);
  font-size: .85rem;
  animation: blink 1s step-end infinite;
}

/* ------------------------------------------------------------
   PARTICLE CANVAS
   ------------------------------------------------------------ */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ------------------------------------------------------------
   GLITCH EFFECT
   ------------------------------------------------------------ */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.glitch::before {
  color: #0ff;
  clip-path: inset(0 0 100% 0);
}

.glitch::after {
  color: #f0f;
  clip-path: inset(100% 0 0 0);
}

.glitch.glitching::before {
  opacity: 1;
  animation: glitch-top .35s steps(2) forwards;
}

.glitch.glitching::after {
  opacity: 1;
  animation: glitch-bot .35s steps(2) forwards;
}

@keyframes glitch-top {
  0%   { clip-path: inset(10% 0 70% 0); transform: translate(-3px, -2px); }
  25%  { clip-path: inset(50% 0 30% 0); transform: translate(3px, 0); }
  50%  { clip-path: inset(25% 0 55% 0); transform: translate(-2px, 2px); }
  75%  { clip-path: inset(70% 0 10% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(0 0 100% 0);  transform: translate(0); opacity: 0; }
}

@keyframes glitch-bot {
  0%   { clip-path: inset(60% 0 5% 0);  transform: translate(3px, 2px); }
  25%  { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
  50%  { clip-path: inset(80% 0 5% 0);  transform: translate(2px, -2px); }
  75%  { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 1px); }
  100% { clip-path: inset(100% 0 0 0);  transform: translate(0); opacity: 0; }
}

/* ------------------------------------------------------------
   FLAG EMOJI FIX
   ------------------------------------------------------------ */
.flag {
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', sans-serif !important;
  font-size: 1rem;
  line-height: 1;
  font-style: normal;
  font-weight: normal;
}

/* ------------------------------------------------------------
   TOUCH RIPPLE (mobile)
   ------------------------------------------------------------ */
.project-card,
.bot-card {
  overflow: hidden;
}

.touch-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0,255,136,.25);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple .6s ease-out forwards;
  pointer-events: none;
  transform-origin: center;
  margin-left: -5px;
  margin-top: -5px;
}

@keyframes ripple {
  to {
    transform: scale(25);
    opacity: 0;
  }
}

/* ------------------------------------------------------------
   MOBILE ENHANCEMENTS
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* More dramatic reveal on mobile */
  .reveal {
    transform: translateY(44px) scale(.97);
  }

  .reveal.visible {
    transform: translateY(0) scale(1);
  }

  /* Pulsing glow on accent name */
  h1 .accent {
    animation: nameglow 3s ease-in-out infinite;
  }

  @keyframes nameglow {
    0%, 100% { text-shadow: 0 0 20px rgba(0,255,136,.25); }
    50%       { text-shadow: 0 0 40px rgba(0,255,136,.55), 0 0 80px rgba(0,255,136,.2); }
  }

  /* Floating hero sub on mobile */
  .hero-sub {
    animation: floatY 5s ease-in-out infinite;
  }

  @keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
  }

  /* Cards animate in from alternating sides */
  .projects-grid .reveal:nth-child(even),
  .bots-grid .reveal:nth-child(even) {
    transform: translateX(30px) scale(.97);
  }

  .projects-grid .reveal:nth-child(odd),
  .bots-grid .reveal:nth-child(odd) {
    transform: translateX(-30px) scale(.97);
  }

  .projects-grid .reveal.visible,
  .bots-grid .reveal.visible {
    transform: translateX(0) scale(1);
  }

  /* Better card press state */
  .project-card:active,
  .bot-card:active {
    border-color: var(--green);
    background: var(--surface2);
    transform: scale(.98);
    transition: all .1s ease;
  }

  /* Bigger touch targets */
  .btn {
    padding: 1rem 2rem;
    font-size: .85rem;
  }

  .nav-links a {
    font-size: .9rem;
    padding: .5rem 0;
  }
}
