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

:root {
  --bg: #080808;
  --surface: #111111;
  --border: #222222;
  --accent: #ffffff;
  --accent2: #cccccc;
  --accent3: #888888;
  --text: #f0f0f0;
  --muted: #666666;
  --card: #111111;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Glowing blobs in background */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 500px; height: 500px; background: #ffffff; top: -150px; left: -100px; }
.blob-2 { width: 400px; height: 400px; background: #aaaaaa; bottom: 100px; right: -100px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #555555; top: 50%; left: 50%; animation-delay: -12s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 60px) scale(1.08); }
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  backdrop-filter: blur(16px);
  background: rgba(12, 13, 16, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* SECTIONS wrapper */
main { position: relative; z-index: 1; }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 80px 80px;
  gap: 60px;
}

.hero-left { animation: fadeUp 0.8s ease both; }
.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { color: var(--accent); }
.hero-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: #ffffff;
  color: #080808;
}
.btn-primary:hover { background: #dddddd; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.15); }
.btn-secondary {
  background: var(--border);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.07);
}
.btn-secondary:hover { background: #1e1e1e; transform: translateY(-2px); }

/* Hero right: minecraft screenshot card */
.hero-right {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.15s ease both;
}
.mc-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  max-width: 420px;
  width: 100%;
}
.mc-card img { display: block; width: 100%; }
.mc-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(12,13,16,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.mc-badge strong { color: var(--text); display: block; font-size: 0.9rem; }

/* SKILLS */
.section {
  padding: 100px 80px;
}
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 60px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.25s ease;
  position: relative;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.skill-icon { font-size: 2rem; margin-bottom: 16px; }
.skill-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.skill-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* SERVICES / WHAT I DO */
.services-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  transition: all 0.25s;
  overflow: visible;
}
.service-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); }
.service-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.service-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.service-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* MINEVIA */
.minevia-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.minevia-card {
  background: linear-gradient(135deg, #131313, #0e0e0e);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.minevia-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.minevia-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.minevia-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  color: var(--accent2);
  border: 1px solid rgba(255,255,255,0.1);
}
.minevia-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 28px; }

/* CONTACT */
.contact-section { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-3px); background: #1a1a1a; }
.contact-icon { font-size: 1.5rem; }
.contact-platform { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.contact-value { color: var(--muted); font-size: 0.85rem; word-break: break-all; }

/* FOOTER */
footer {
  padding: 48px 80px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 800; color: var(--accent); font-size: 1.1rem; }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.hidden {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  .hero { grid-template-columns: 1fr; padding: 110px 24px 60px; text-align: center; }
  .hero-bio { margin: 0 auto 40px; }
  .btn-row { justify-content: center; }
  .hero-right { display: none; }
  .section { padding: 72px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .minevia-section { grid-template-columns: 1fr; gap: 40px; }
  footer { flex-direction: column; gap: 12px; text-align: center; padding: 40px 24px; }
}
