﻿:root {
  --bg: #050507;
  --panel: rgba(13, 14, 20, 0.72);
  --ink: #f8f3e8;
  --muted: #c8c3b3;
  --gold: #f6c344;
  --gold-deep: #d6a11f;
  --border: rgba(255, 215, 128, 0.16);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}
.intro{
  padding-bottom:10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

section { scroll-margin-top: 90px; }

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(520px at 15% 20%, rgba(246, 195, 68, 0.25), transparent 45%),
              radial-gradient(460px at 75% 0%, rgba(255, 214, 102, 0.18), transparent 50%);
  filter: blur(20px);
  opacity: 0.7;
  z-index: -2;
  animation: drift 16s ease-in-out infinite alternate;
}

body::after {
  background: radial-gradient(360px at 80% 60%, rgba(246, 195, 68, 0.18), transparent 52%),
              radial-gradient(320px at 20% 80%, rgba(255, 214, 102, 0.14), transparent 50%);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-14px) scale(1.03); }
}

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 8px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 2.7vw, 2.7rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.08rem; }

p { margin: 0; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(5, 5, 7, 0.7);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand h1 { margin-top: 6px; color: var(--gold); }

.main-nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { border-color: var(--gold); background: rgba(246, 195, 68, 0.08); color: var(--gold); }

.hero { padding: 64px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-content .lede { margin: 12px 0 24px; font-size: 1.08rem; color: var(--ink); }

.socials { display: flex; gap: 12px; margin-bottom: 18px; }

.social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover { transform: translateY(-3px); color: var(--gold); border-color: rgba(246, 195, 68, 0.5); background: rgba(246, 195, 68, 0.08); }
.social-link svg { width: 22px; height: 22px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #050507;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.5);
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(246, 195, 68, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(246, 195, 68, 0.35); filter: saturate(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-media { justify-self: center; }

.portrait-frame {
  width: min(360px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);
  background: radial-gradient(circle at 30% 20%, rgba(246, 195, 68, 0.16), transparent 40%),
              linear-gradient(160deg, #0d0e14, #151724);
  display: block;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}

.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-frame:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 45px 100px rgba(246, 195, 68, 0.38), 0 0 0 1px rgba(246, 195, 68, 0.6);
}

.section-header { margin-bottom: 16px; }

.about, .contact { padding: 26px 0 14px; border-top: 1px solid var(--border); }

.projects { padding: 26px 0 40px; border-top: 1px solid var(--border); }

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

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.thumb {
  height: 140px;
  border-radius: calc(var(--radius) - 4px);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #050507;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  overflow: hidden;
}

.card .details-btn {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
}

.thumb::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 40%);
  opacity: 0.4;
  filter: blur(12px);
}

.thumb.film { background: linear-gradient(135deg, #f6c344, #f0b02a); }
.thumb.script { background: linear-gradient(135deg, #ffd166, #f6b73c); }
.thumb.code { background: linear-gradient(135deg, #f6a844, #f6c344); }

.meta { font-weight: 700; color: var(--ink); }
.desc { color: var(--muted); }

.details-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.details-btn:hover { background: rgba(246, 195, 68, 0.12); color: var(--gold); border-color: rgba(246, 195, 68, 0.5); transform: translateY(-2px); }

.contact .link-row a { color: var(--gold); font-weight: 700; text-decoration: none; }
.contact .link-row a:hover { text-decoration: underline; }

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

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
  backdrop-filter: blur(6px);
}

.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }

.modal-inner {
  background: #0b0c12;
  border-radius: var(--radius);
  padding: 20px;
  width: min(520px, 95vw);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

#modal-content p { margin: 0 0 10px; }

@media (max-width: 720px) {
  .header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { width: 100%; justify-content: space-between; }
  .hero { padding-top: 40px; }
  .hero-content .lede { font-size: 1rem; }
}
