/* ==============================================
   ZENZEROOT - Main Stylesheet
   Theme: Cypherpunk bilanciato
   Approach: Mobile-first
   ============================================== */

/* ---------- CSS Reset & Variables ---------- */
:root {
  --bg-primary: #0D0D1A;
  --bg-secondary: #1A1A2E;
  --bg-card: #1E1E32;
  --accent-primary: #E2B93B;
  --accent-green: #4CAF50;
  --accent-tech: #00D4FF;
  --text-primary: #F0F0F0;
  --text-secondary: #AAAAAA;
  --text-dark: #1A1A2E;
  --border-subtle: #2A2A4A;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --glow-tech: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-primary: 0 0 20px rgba(226, 185, 59, 0.3);
  --transition: 0.3s ease;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Skip to content link - accessibilita' */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: var(--text-dark);
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent-tech);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section--alt {
  background: var(--bg-secondary);
}

.section__title {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .section__title { font-size: 2.25rem; }
}

.section__subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.text-accent { color: var(--accent-primary); }
.text-tech { color: var(--accent-tech); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  touch-action: manipulation;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--text-dark);
}

.btn--primary:hover {
  background: #f0c94d;
  color: var(--text-dark);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--accent-tech);
  border: 2px solid var(--accent-tech);
}

.btn--outline:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-tech);
  box-shadow: var(--glow-tech);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--accent-tech);
  color: var(--accent-tech);
}

.btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #20bd5a;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 26, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .nav__toggle { display: none; }
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-secondary);
  padding: 5rem 2rem 2rem;
  transition: right var(--transition);
  z-index: 1000;
  overflow-y: auto;
}

.nav__menu.active {
  right: 0;
}

@media (min-width: 768px) {
  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.nav__link {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent-primary);
}

@media (min-width: 768px) {
  .nav__link {
    padding: 0.25rem 0;
    border-bottom: none;
    font-size: 0.875rem;
  }
}

.nav__cta {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .nav__cta { margin-top: 0; }
}

.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav__overlay.active {
  display: block;
}

@media (min-width: 768px) {
  .nav__overlay { display: none !important; }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
}

.hero__content::before {
  content: '';
  position: absolute;
  inset: -2rem;
  background: radial-gradient(ellipse at center, rgba(13, 13, 26, 0.8) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero__logo {
  width: 180px;
  height: auto;
  margin: 0 auto 1.5rem;
  animation: heroFadeIn 0.8s ease-out;
  will-change: transform;
}

@media (min-width: 768px) {
  .hero__logo { width: 260px; }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.9) translateZ(0); }
  to { opacity: 1; transform: scale(1) translateZ(0); }
}

.hero__title {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

@media (min-width: 768px) {
  .hero__title { font-size: 4rem; }
}

.hero__payoff {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  min-height: 1.5em;
}

@media (min-width: 768px) {
  .hero__payoff { font-size: 1.375rem; }
}

.hero__payoff .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent-primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__services {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .hero__services { font-size: 1.0625rem; }
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 428px) {
  .hero__cta {
    flex-direction: row;
    justify-content: center;
  }
}

.hero__scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  text-align: center;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll svg {
  display: block;
  margin: 0.5rem auto 0;
  width: 20px;
  height: 20px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Services Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-tech), var(--accent-primary));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--accent-tech);
  transform: translateY(-4px);
  box-shadow: var(--glow-tech);
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent-tech);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.service-card__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.service-card__price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-primary);
}

.service-card__vat {
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-family: var(--font-body, var(--font-sans));
}

/* ---------- AI Block ---------- */
.ai-block {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ai-block { padding: 4rem 3rem; }
}

.ai-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.ai-block__title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .ai-block__title { font-size: 2rem; }
}

.ai-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .ai-features { grid-template-columns: repeat(3, 1fr); }
}

.ai-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ai-feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  color: var(--accent-tech);
}

.ai-feature__icon svg {
  width: 20px;
  height: 20px;
}

.ai-feature__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.ai-feature__text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-tech);
  box-shadow: var(--glow-tech);
}

.portfolio-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.portfolio-card__body {
  padding: 1.5rem;
}

.portfolio-card__title {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.portfolio-card__text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-tech);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ---------- About / Mascotte ---------- */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-wrapper { grid-template-columns: 280px 1fr; gap: 3rem; }
}

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

.mascotte {
  width: 200px;
  height: 208px;
  margin: 0 auto;
  background: url('../images/mascotte-sprite.png') left top no-repeat;
  background-size: 1000px 208px;
  image-rendering: auto;
}

.mascotte--animated {
  animation: mascotte-talk 1.3s steps(5) infinite;
}

@keyframes mascotte-talk {
  from { background-position: 0 0; }
  to { background-position: -1000px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mascotte--animated {
    animation: none;
    background-position: 0 0;
  }
}

@media (min-width: 768px) {
  .mascotte {
    width: 280px;
    height: 291px;
    background-size: 1400px 291px;
  }

  @keyframes mascotte-talk {
    from { background-position: 0 0; }
    to { background-position: -1400px 0; }
  }
}

.speech-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 2rem;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid var(--border-subtle);
  display: none;
}

@media (min-width: 768px) {
  .speech-bubble::before { display: block; }
}

.speech-bubble__text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9375rem;
}

.speech-bubble__text strong {
  color: var(--text-primary);
}

.speech-bubble__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.speech-bubble__btn {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--accent-tech);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  touch-action: manipulation;
}

.speech-bubble__btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent-tech);
}

.speech-bubble__dots {
  display: flex;
  gap: 0.5rem;
}

.speech-bubble__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: background var(--transition);
}

.speech-bubble__dot--active {
  background: var(--accent-primary);
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: var(--accent-tech);
  transform: translateY(-2px);
}

.blog-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.blog-card__body {
  padding: 1.25rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.blog-card__category {
  color: var(--accent-tech);
}

.blog-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Blog Single */
.blog-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .blog-single { grid-template-columns: 1fr 300px; }
}

.blog-single__content {
  max-width: 100%;
}

.blog-single__header {
  margin-bottom: 2rem;
}

.blog-single__title {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .blog-single__title { font-size: 2.25rem; }
}

.blog-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.blog-single__body {
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-single__body h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.blog-single__body h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.blog-single__body p {
  margin-bottom: 1.25rem;
}

.blog-single__body ul, .blog-single__body ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}

.blog-single__body li {
  margin-bottom: 0.5rem;
}

.blog-single__body code {
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.blog-single__body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.blog-single__body pre code {
  background: none;
  padding: 0;
}

.blog-single__body img {
  border-radius: 8px;
  margin: 1rem 0;
}

.blog-single__body a {
  color: var(--accent-tech);
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar__block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
}

.sidebar__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar__link {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.sidebar__link:hover {
  color: var(--accent-tech);
}

.sidebar__link:last-child {
  border-bottom: none;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.form-group label .required {
  color: var(--accent-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-tech);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--accent-tech);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-card__icon--whatsapp { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.contact-card__icon--email { background: rgba(0, 212, 255, 0.1); color: var(--accent-tech); }
.contact-card__icon--location { background: rgba(226, 185, 59, 0.1); color: var(--accent-primary); }

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.contact-card__text {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* ---------- Alert Messages ---------- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.alert--success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: var(--accent-green);
}

.alert--error {
  background: rgba(239, 83, 80, 0.1);
  border: 1px solid rgba(239, 83, 80, 0.3);
  color: #EF5350;
}

.alert--error ul {
  margin: 0.5rem 0 0 1rem;
  list-style: disc;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-tech), var(--accent-primary), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer__logo img {
  height: 36px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer__social a:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-tech);
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

.footer__link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer__bottom a {
  color: var(--text-secondary);
}

.footer__bottom a:hover {
  color: var(--accent-primary);
}

.footer__badges {
  margin-bottom: 0.75rem;
}

.footer__bitcoin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__bitcoin-badge:hover {
  opacity: 1;
  color: #f7931a;
}

.footer__bitcoin-badge svg {
  flex-shrink: 0;
}

/* ---------- Widget Mascotte ---------- */
.widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1rem;
  z-index: 900;
  transform: translateZ(0);
  padding-bottom: var(--safe-bottom);
}

@media (min-width: 768px) {
  .widget { right: 1.5rem; bottom: 2rem; }
}

.widget__trigger {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition);
  overflow: hidden;
  touch-action: manipulation;
}

.widget__trigger:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}

.widget__trigger img {
  width: 48px;
  height: auto;
}

.widget__bubble {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  min-width: 220px;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: none;
  animation: widgetSlideIn 0.3s ease;
}

.widget__bubble.active {
  display: block;
}

@keyframes widgetSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.widget__bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--bg-card);
}

.widget__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0.25rem;
  touch-action: manipulation;
}

.widget__text {
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-right: 1rem;
}

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

.widget__action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 0.8125rem;
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--transition);
  touch-action: manipulation;
}

.widget__action:hover {
  border-color: var(--accent-tech);
  color: var(--accent-tech);
  background: rgba(0, 212, 255, 0.05);
}

.widget__action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem;
  display: none;
  transform: translateZ(0);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-banner__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent-tech);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition);
  text-decoration: none;
}

.pagination__link:hover {
  border-color: var(--accent-tech);
  color: var(--accent-tech);
}

.pagination__link--active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-dark);
  font-weight: 600;
}

/* ---------- Blog Category Filters ---------- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-filter {
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all var(--transition);
}

.category-filter:hover {
  border-color: var(--accent-tech);
  color: var(--accent-tech);
}

.category-filter--active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--text-dark);
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state__text {
  font-size: 1.125rem;
}

/* ---------- Portfolio Detail ---------- */
.project-detail {
  max-width: 800px;
  margin: 0 auto;
}

.project-detail__hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bg-card);
  min-height: 200px;
}

.project-detail__hero img {
  width: 100%;
  height: auto;
}

.project-detail__section {
  margin-bottom: 2rem;
}

.project-detail__label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-tech);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.project-detail__text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-detail__text ul {
  list-style: disc;
  margin-left: 1.5rem;
}

.project-detail__text li {
  margin-bottom: 0.5rem;
}

.project-detail__testimonial {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  font-style: italic;
  color: var(--text-secondary);
  margin: 2rem 0;
}

/* ---------- FAQ ---------- */
.faq-section {
  margin-bottom: 3rem;
}

.faq-section__title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-tech);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  font-family: inherit;
}

.faq-item__question:hover {
  color: var(--accent-primary);
}

.faq-item__question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--text-secondary);
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-item.active .faq-item__answer {
  display: block;
}

/* ---------- Error Page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page__message {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ---------- Admin Styles ---------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.admin-sidebar.active {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .admin-sidebar { transform: translateX(0); }
}

.admin-sidebar__logo {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 2rem;
  text-decoration: none;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.admin-sidebar__link:hover,
.admin-sidebar__link--active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-tech);
}

.admin-sidebar__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.admin-main {
  flex: 1;
  padding: 1.5rem;
  margin-left: 0;
}

@media (min-width: 1024px) {
  .admin-main { margin-left: 250px; }
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-header__title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
}

.admin-toggle {
  display: flex;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .admin-toggle { display: none; }
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.admin-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(42, 42, 74, 0.3);
  color: var(--text-secondary);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge--published {
  background: rgba(76, 175, 80, 0.15);
  color: var(--accent-green);
}

.status-badge--draft {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
}

.admin-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.admin-stat__value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Admin Form */
.admin-form {
  max-width: 800px;
}

.admin-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.admin-form .form-input,
.admin-form .form-textarea,
.admin-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.admin-form select {
  appearance: none;
  cursor: pointer;
}

.admin-form .form-textarea {
  min-height: 200px;
}

/* Admin Actions Row */
.admin-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.8125rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.breadcrumbs__item a {
  color: var(--text-secondary);
}

.breadcrumbs__item a:hover {
  color: var(--accent-tech);
}

.breadcrumbs__separator {
  color: var(--border-subtle);
}

/* ---------- Animations (Reduced Motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__canvas {
    display: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav, .footer, .widget, .cookie-banner, .hero__canvas {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ---------- Admin Login ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box__logo {
  width: 80px;
  margin: 0 auto 1rem;
}

.login-box__title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.login-box__subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.login-box .form-group {
  text-align: left;
}

.login-box .btn {
  width: 100%;
  margin-top: 0.5rem;
}
