:root {
  --bg: #05070c;
  --panel: #0c1120;
  --panel-soft: #0f162b;
  --text: #e8ebf1;
  --muted: #9aa4b2;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.15);
  --glow: rgba(59,130,246,0.6);
}

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

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

ul {
  padding-left: 18px;
}

/* ================= BODY ================= */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated background grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to   { transform: translateY(40px); }
}

/* ================= LAYOUT ================= */
main {
  width: 100%;
  padding: 48px 32px;
  max-width: 1400px;
  margin: auto;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

section {
  margin-bottom: 80px;
}

h1, h2, h3, h4 {
  letter-spacing: 0.3px;
}

/* ================= HEADER ================= */
header {
  text-align: center;
  margin-bottom: 80px;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 700;
  box-shadow: 0 0 40px var(--glow);
  margin: auto;
}

h1 {
  margin-top: 24px;
  font-size: 48px;
}

header p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}

/* ================= HEADINGS ================= */
h2 {
  margin-bottom: 32px;
  font-size: 34px;
  text-align: center;
}

h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

h4 {
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--accent);
}

/* ================= CARDS ================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  width: 100%;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  padding: 28px;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
  border-color: var(--accent-soft);
}

.card p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}

.card ul li {
  font-size: 15px;
  margin-bottom: 6px;
}

/* ================= CREATOR CARDS ================= */
.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 600;
  gap: 10px;
}

.creator-card p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}

.creator-card .icon {
  font-size: 48px;
  margin-bottom: 6px;
}

/* ================= VIDEO ================= */
.featured-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.featured-videos iframe {
  flex: 1 1 320px;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ================= PROJECT SHOWCASE ================= */
.featured-project {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.featured-project img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-project img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ================= LINKS ================= */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.links a {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  opacity: 0.6;
  margin-top: 48px;
  font-size: 14px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

@media (max-width: 720px) {
  main { padding: 32px 18px; }
  .cards { grid-template-columns: 1fr; }
  .featured-videos { flex-direction: column; }
}

/* ================= ABOUT ME ================= */
.about-card .lead {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 14px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.about-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
/* ================= PROJECT CARD ================= */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-header h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.project-desc {
  font-size: 14px;
  color: var(--muted);
}

/* ================= PROJECT COLLAGE ================= */
.project-collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
}

.project-collage img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-collage img:first-child {
  grid-row: span 2;
}

.project-collage img:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
/* ================= IMAGE MODAL ================= */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.image-modal.active {
  opacity: 1;
  pointer-events: all;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
