:root {
  --bg: #000;
  --card: #0b0b0b;
  --border: #1f1f1f;
  --text: #fff;
  --muted: #a1a1aa;
}

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

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

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

section {
  margin-top: 96px;
}

h1,
h2,
h3 {
  font-weight: 500;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ================= TOP BAR ================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.logo img {
  width: 28px;
}

nav a {
  margin-left: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

nav a.active,
nav a:hover {
  color: var(--text);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  nav.open {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
  }
  .burger {
    display: flex;
  }
}

/* ================= HERO ================= */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.skills {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.skill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.skill img {
  width: 18px;
}

/* ================= GRID / CARDS ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* ================= PRODUCTS ================= */
#products .grid {
  justify-content: start;
}

#products .card {
  max-width: 280px;
}

.product-media img {
  border-radius: 8px;
  margin-bottom: 10px;
}

.price {
  margin: 6px 0;
  font-weight: 500;
  font-size: 0.85rem;
}

.buy-btn {
  font-size: 0.8rem;
}

/* ================= WORKS ================= */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  color: rgb(144, 143, 143);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.75rem;
  cursor: pointer;
}

.filter-btn.active {
  border-color: #555;
  color: var(--text);
}

.video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-bottom: 8px;
}

.tag {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ================= FOOTER ================= */
footer {
  margin-top: 120px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 14px;
}

.socials img {
  width: 18px;
  opacity: 0.6;
}

.socials img:hover {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.works-grid .card {
  padding: 14px;
}

.card.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

/* ================= SUBTLE HOVER ================= */

.card,
.skill,
.filter-btn {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

/* Card hover */
.card:hover {
  transform: translateY(-2px);
  border-color: #2a2a2a;
}

/* Skill hover */
.skill:hover {
  border-color: #2a2a2a;
}

/* Filter hover */
.filter-btn:hover {
  color: var(--text);
  border-color: #2a2a2a;
}

.socials img,
.skills img,
.ds {
  width: 18px;
  filter: invert(1);
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skills img {
  opacity: 1;
}

.socials img:hover {
  opacity: 1;
  transform: translateY(-2px);
}
