/* ===========================================
   ABOUT (Diego & Juan)
   =========================================== */
.about {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.dev-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 400ms var(--ease-out), border-color 400ms;
}
.dev-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-amber);
}
.dev-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(245,167,66,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 400ms;
}
.dev-card:hover::before { opacity: 1; }

.dev-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 3px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-pixel);
  font-size: 28px;
  color: var(--amber);
  margin-bottom: 24px;
  position: relative;
  image-rendering: pixelated;
}
.dev-avatar.juan { border-color: var(--toast); color: var(--toast); }

.dev-avatar::after {
  content: "";
  position: absolute;
  bottom: 2px; right: 2px;
  width: 16px; height: 16px;
  background: var(--mint);
  border: 3px solid var(--bg-2);
  border-radius: 50%;
}

.dev-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dev-role {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--amber);
  margin-top: 4px;
}
.dev-location {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dev-bio {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-1);
  line-height: 1.6;
}
.dev-stats {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dev-chip {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-1);
}

.about-callout {
  margin-top: 60px;
  padding: 40px;
  background: var(--bg-2);
  border: 1px dashed var(--line-amber);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.about-callout p {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-1);
}
.about-callout-num {
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.04em;
  line-height: 1;
}

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

/* ===========================================
   SERVICES
   =========================================== */
.services {
  background: var(--bg-1);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.service {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: all 400ms var(--ease-out);
  cursor: pointer;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.service:hover {
  border-color: var(--line-amber);
  background: var(--bg-3);
  transform: translateY(-4px);
}

.service--big   { grid-column: span 8; }
.service--small { grid-column: span 4; }
.service--half  { grid-column: span 6; }
.service--third { grid-column: span 4; }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-3);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--amber);
  transition: background 300ms, transform 300ms var(--ease-out);
}
.service:hover .service-icon {
  background: var(--amber);
  color: var(--bg-0);
  transform: rotate(-8deg) scale(1.08);
}
.service-icon svg { width: 26px; height: 26px; }

.service-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  flex-grow: 1;
}

.service-meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-price {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--amber);
}
.service-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms, transform 300ms var(--ease-out);
}
.service:hover .service-arrow {
  background: var(--amber);
  color: var(--bg-0);
  transform: rotate(-45deg);
}

.service-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.service-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bg-0);
  color: var(--latte);
  border-radius: 4px;
}

/* Pixel decoration inside big card */
.service-decoration {
  position: absolute;
  top: 36px;
  right: 36px;
  opacity: 0.5;
  transition: opacity 300ms, transform 300ms var(--ease-out);
}
.service:hover .service-decoration {
  opacity: 1;
  transform: rotate(6deg);
}

@media (max-width: 900px) {
  .service--big, .service--small, .service--half, .service--third {
    grid-column: span 12;
  }
}

/* ===========================================
   TECH STACK (marquee)
   =========================================== */
.tech {
  background: var(--bg-0);
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.tech-header {
  text-align: center;
  margin-bottom: 60px;
}
.tech-header h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.tech-header h3 .amber { color: var(--amber); }

.marquee {
  display: flex;
  gap: 40px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee--reverse { animation-direction: reverse; }
.marquee-row + .marquee-row { margin-top: 24px; }
.marquee-wrap {
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--ink-1);
  white-space: nowrap;
  transition: background 200ms, border-color 200ms;
}
.tech-chip:hover {
  background: var(--bg-3);
  border-color: var(--line-amber);
}
.tech-chip .logo {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}

/* ===========================================
   PROJECTS
   =========================================== */
.projects {
  background: var(--bg-1);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 400ms var(--ease-out);
  cursor: pointer;
}
.project:hover {
  transform: translateY(-6px);
  border-color: var(--line-amber);
}
.project-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.project-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-body {
  padding: 28px;
}
.project-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.project-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--latte);
}
.project-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.project-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.project-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
}
.project-meta .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
}
.project-meta .status::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(110,231,183,0.2);
}
.project-meta .wip { color: var(--amber); }
.project-meta .wip::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,167,66,0.2); }

/* Project thumb styles (svg/canvas placeholders) */
.thumb-web {
  background:
    radial-gradient(circle at 30% 40%, rgba(245,167,66,0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,107,53,0.2), transparent 50%),
    var(--bg-3);
}
.thumb-shop {
  background:
    linear-gradient(135deg, #2E1F16 0%, #1A1310 100%);
}
.thumb-mod {
  background:
    repeating-linear-gradient(45deg, #1A1310 0 20px, #241812 20px 40px);
}
.thumb-roblox {
  background:
    radial-gradient(circle at 50% 50%, #FF6B35 0%, #2E1F16 70%);
}

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

/* ===========================================
   FAQ
   =========================================== */
.faq {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-0);
  transition: color 200ms;
}
.faq-item:hover .faq-q { color: var(--amber); }

.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: 20px;
  transition: background 200ms, transform 200ms var(--ease-out);
  position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink-0);
  transition: opacity 200ms, transform 200ms;
}
.faq-toggle::before { width: 12px; height: 2px; }
.faq-toggle::after { width: 2px; height: 12px; }

.faq-item.open .faq-toggle {
  background: var(--amber);
}
.faq-item.open .faq-toggle::before,
.faq-item.open .faq-toggle::after {
  background: var(--bg-0);
}
.faq-item.open .faq-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-out), margin-top 400ms;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 300px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ===========================================
   CONTACT
   =========================================== */
.contact {
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,167,66,0.15), transparent 60%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  position: relative;
}

.contact-info .eyebrow { margin-bottom: 20px; }
.contact-info h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact-info p {
  margin-top: 24px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
}
.contact-list {
  margin-top: 40px;
  display: grid;
  gap: 16px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-row-icon {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.contact-row-label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.contact-row-value {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-0);
}

/* Form */
.form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: grid; gap: 6px; position: relative; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.form-field label .req { color: var(--toast); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink-0);
  transition: border-color 200ms, background 200ms;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: var(--bg-3);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--f-body);
}
.form-field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5A742' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 16px;
}

/* Budget pills */
.budget-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.budget-pill {
  padding: 10px 14px;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-1);
  cursor: pointer;
  transition: all 200ms;
}
.budget-pill:hover {
  border-color: var(--line-amber);
}
.budget-pill.active {
  background: var(--amber);
  color: var(--bg-0);
  border-color: var(--amber);
}

.form-success {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  border-radius: var(--radius);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
}
.form-success.show { display: flex; }
.form-success .icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-0);
  font-size: 40px;
}
.form-success h3 { font-size: 28px; }
.form-success p { color: var(--ink-2); max-width: 360px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 28px; }
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-big {
  font-family: var(--f-display);
  font-size: clamp(60px, 14vw, 200px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-hi);
  margin-bottom: 60px;
  text-wrap: balance;
  pointer-events: none;
  user-select: none;
}
.footer-big .fill { color: var(--amber); -webkit-text-stroke: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--ink-1);
  font-size: 14px;
  padding: 6px 0;
  transition: color 200ms;
}
.footer-col a:hover { color: var(--amber); }
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand .name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
}
.footer-brand .name .a { color: var(--amber); }
.footer-tag {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 280px;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-2);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-legal a { color: var(--ink-2); text-decoration: underline; transition: color 160ms; }
.footer-legal a:hover { color: var(--amber); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
