/* style.css */
:root {
  --bg: #0F0F14;
  --bg-card: #1A1A22;
  --primary: #FF6B35;
  --accent: #FF3D8A;
  --text: #F5F5F5;
  --text-muted: #A0A0AA;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero__blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60rem;
  height: 60rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--primary) 0%, var(--accent) 45%, transparent 70%);
  opacity: 0.25;
  filter: blur(60px);
  z-index: 0;
}

.hero h1 {
  display: contents;
}

.hero__wordmark {
  position: relative;
  z-index: 1;
  width: min(90vw, 32rem);
  height: auto;
}

.hero__tagline {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
}

/* Portfolio */
.portfolio {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  width: 100%;
  max-width: 28rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 61, 138, 0.15);
}

.card__icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.card__credit {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card__button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: filter 0.2s ease;
}

.card__button:hover {
  filter: brightness(1.1);
}

.card__button--secondary {
  background: none;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: calc(0.6rem - 1px) calc(1.2rem - 1px);
  transition: background 0.2s ease;
}

.card__button--secondary:hover {
  background: rgba(255, 61, 138, 0.15);
  filter: none;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.footer__socials {
  display: flex;
  gap: 1.5rem;
}

.footer__social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__social-link:hover {
  color: var(--accent);
}

button.footer__social-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 1rem);
  background: var(--bg-card);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    min-height: 50vh;
    padding: 3rem 1rem;
  }

  .hero__blob {
    width: 30rem;
    height: 30rem;
  }

  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card__icon {
    margin-bottom: 0.5rem;
  }
}

/* Scroll reveal (progressive enhancement — only applies when JS has run) */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.js .card.reveal.is-visible:hover {
  transform: translateY(-4px);
}
