/* ══════════════════════════════════════════════════
   Luis Domarco — Personal Site
   Aesthetic: minimal, monochrome, sophisticated
   ══════════════════════════════════════════════════ */

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

/* ── Base ──────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Container ─────────────────────────────────── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero ──────────────────────────────────────── */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  max-width: 640px;
}

#hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

#hero .subtitle {
  margin-top: 0.6rem;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  font-weight: 400;
  color: #111111;
  letter-spacing: -0.01em;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.hero-links a {
  color: #111111;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hero-links a:hover {
  opacity: 0.4;
}

.hero-links a svg {
  display: block;
}

/* ── Scroll hint ───────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #111111;
  color: #111111;
  background: transparent;
  text-decoration: none;
  animation: bounce 2s ease infinite;
  transition: background 0.2s ease, color 0.2s ease;
}

.scroll-hint:hover {
  background: #111111;
  color: #ffffff;
}

.scroll-hint svg {
  display: block;
}

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

/* ── Sections ──────────────────────────────────── */
section:not(#hero) {
  padding: 5rem 0;
  border-top: 1px solid #e8e8e8;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999999;
  margin-bottom: 2rem;
}

/* ── About ─────────────────────────────────────── */
#about p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

#about p + p {
  margin-top: 1rem;
}

/* ── Experience ────────────────────────────────── */
.exp-item {
  padding: 1.75rem 0;
}

.exp-item:first-of-type {
  padding-top: 0;
}

.exp-item + .exp-item {
  border-top: 1px solid #f0f0f0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.exp-header h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.exp-role {
  display: block;
  font-size: 0.85rem;
  color: #666666;
  margin-top: 0.15rem;
}

.exp-date {
  font-size: 0.8rem;
  color: #999999;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.exp-item p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444444;
}

/* ── Tags Grid (Skills & Tools) ────────────────── */
.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  border: 1px solid #111111;
  border-radius: 100px;
  color: #111111;
  background: transparent;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.tag:hover {
  background: #111111;
  color: #ffffff;
}

/* ── Project Card ──────────────────────────────── */
.project-card {
  border: 1px solid #111111;
  border-radius: 12px;
  padding: 2rem;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #444444;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 1.25rem;
  border: 1px solid #111111;
  border-radius: 100px;
  color: #111111;
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #111111;
  color: #ffffff;
}

/* ── Contact CTA ───────────────────────────────── */
.contact-content {
  text-align: center;
  padding: 2rem 0;
}

.contact-heading {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #111111;
}

.contact-email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #111111;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.4;
}

/* ── Footer ────────────────────────────────────── */
footer {
  border-top: 1px solid #e8e8e8;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #999999;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: #999999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #111111;
}

/* ── Selection ─────────────────────────────────── */
::selection {
  background: #111111;
  color: #ffffff;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 540px) {
  .exp-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
