/* =============================================================================
   Portfolio stylesheet
   Minimal, modern, dark-mode-first. Edit colors in the :root block below.
   ============================================================================= */

:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --border: #24242a;
  --text: #e8e8ec;
  --text-dim: #9a9aa3;
  --accent: #6ee7b7;
  --accent-dim: #064e3b;
  --radius: 12px;
  --max-width: 880px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

/* --- Typography --- */

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--text-dim);
}

/* --- Hero --- */

.hero {
  padding: 40px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.125);
  transform-origin: center top;
  border: 2px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 720px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .hero-image img {
    width: 120px;
    height: 120px;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--text);
}

.tagline {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(110, 231, 183, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-dim);
}

/* --- Services --- */

.services {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease;
}

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

/* --- Work --- */

.work {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  transition: border-color 0.15s ease;
}

.project:hover {
  border-color: var(--text-dim);
}

.project-image {
  background: linear-gradient(135deg, #1a1a20, #0f0f13);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--text-dim);
  font-size: 0.85rem;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.project-placeholder {
  align-items: center;
  justify-content: center;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 16px;
}

.project-link:hover {
  text-decoration: underline;
}

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

/* --- Contact --- */

.contact {
  padding: 80px 0;
  text-align: center;
}

.contact p {
  margin-bottom: 24px;
}

.email-link {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.email-link:hover {
  background: var(--accent-dim);
}

/* --- Footer --- */

footer {
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 0.85rem;
}
