/*--------------------------------------------------------------
# Tokens
--------------------------------------------------------------*/
:root {
  --bg: #0b0d17;
  --bg-alt: #10131f;
  --surface: #151928;
  --surface-2: #1b2033;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e7e9f3;
  --text-muted: #9aa0b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --header-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #67e8f9;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: #fff;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary-glow,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary-glow {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6);
}

.btn-primary-glow:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(124, 92, 255, 0.8);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 997;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(11, 13, 23, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  font-size: 14px;
  letter-spacing: 0;
}

.navbar {
  padding: 0;
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-link {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav {
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.btn-nav:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.15);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 0;
  padding: 4px;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    position: fixed;
    top: var(--header-h);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: rgba(21, 25, 40, 0.97);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s;
  }

  .mobile-nav-active .navbar ul {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav-active #header {
    background: rgba(11, 13, 23, 0.95);
  }

  .navbar .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
  }

  .btn-nav {
    margin: 8px 0 0;
    text-align: center;
    padding: 12px;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: drift 14s ease-in-out infinite alternate;
}

.glow-1 {
  width: 520px;
  height: 520px;
  background: var(--accent);
  top: -120px;
  right: -80px;
}

.glow-2 {
  width: 420px;
  height: 420px;
  background: var(--accent-2);
  bottom: -160px;
  left: -120px;
  opacity: 0.25;
  animation-delay: -7s;
}

@keyframes drift {
  to {
    transform: translate(-40px, 40px) scale(1.1);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

#hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 16px;
}

#hero .role {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 1.6em;
}

#hero .role .typed {
  color: #fff;
}

.typed-cursor {
  color: var(--accent-2);
  font-size: inherit;
}

#hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 20px;
  transition: 0.2s;
}

.social-links a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.15);
  transform: translateY(-2px);
}

.social-links.small a {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.avatar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  animation: spin 8s linear infinite;
  filter: blur(1px);
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(21, 25, 40, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  animation: bob 5s ease-in-out infinite;
}

.float-badge i {
  font-size: 18px;
  color: var(--accent-2);
}

.badge-1 { top: 8%; left: -6%; }
.badge-2 { top: 46%; right: -10%; animation-delay: -1.6s; }
.badge-3 { bottom: 6%; left: 4%; animation-delay: -3.2s; }

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 25, 40, 0.6);
  backdrop-filter: blur(10px);
}

.stat {
  padding: 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat .num,
.stat .plus {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat .plus {
  color: var(--accent-2);
}

.stat .label {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 767px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .float-badge {
    font-size: 12px;
    padding: 6px 10px;
  }

  .badge-1 { left: 0; }
  .badge-2 { right: 0; }
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
.section {
  padding: 110px 0;
  scroll-margin-top: var(--header-h);
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  margin-bottom: 56px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  margin: 0;
}

.section-title p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 16px 0 0;
  font-size: 17px;
}

@media (max-width: 767px) {
  .section {
    padding: 80px 0;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-text {
  font-size: 17px;
  color: #c9cde0;
  margin-bottom: 18px;
}

.about-text.muted {
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
}

.info-card i {
  font-size: 20px;
  color: var(--accent);
  line-height: 1.2;
}

.info-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.info-card strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  overflow-wrap: anywhere;
}

.info-card strong a {
  color: #fff;
}

.info-card strong a:hover {
  color: var(--accent-2);
}

.info-card .ok {
  color: var(--ok);
}

@media (max-width: 420px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skill-card {
  height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.5);
}

.skill-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.15);
  color: var(--accent);
  font-size: 26px;
  margin-bottom: 18px;
}

.skill-card h3 {
  font-size: 19px;
  margin-bottom: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #c9cde0;
  font-size: 13px;
  font-weight: 500;
}

/*--------------------------------------------------------------
# Experience
--------------------------------------------------------------*/
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2) 60%, transparent);
  opacity: 0.5;
}

.tl-item {
  position: relative;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.tl-item:hover {
  border-color: var(--border-strong);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.tl-item.current::before {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.2);
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.tl-head h3 {
  font-size: 20px;
  margin: 0;
}

.tl-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}

.tl-company {
  display: inline-block;
  margin: 4px 0 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.tl-company:hover {
  color: #fff;
}

.tl-item ul {
  margin: 0;
  padding-left: 18px;
  color: #c9cde0;
}

.tl-item li {
  margin-bottom: 6px;
}

.tl-item li::marker {
  color: var(--accent);
}

.side-title {
  font-size: 22px;
  margin-bottom: 20px;
}

.edu-card {
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.edu-card h4 {
  font-size: 17px;
  margin: 6px 0 4px;
}

.edu-card a {
  color: var(--text-muted);
  font-size: 14px;
}

.edu-card a:hover {
  color: #fff;
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
#portfolio-flters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 36px;
  list-style: none;
}

#portfolio-flters li {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
  user-select: none;
}

#portfolio-flters li:hover {
  color: #fff;
}

#portfolio-flters li.filter-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.portfolio-item {
  margin-bottom: 24px;
}

.project {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 20px 40px -20px rgba(124, 92, 255, 0.5);
}

.project-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}

.project:hover .project-img img {
  transform: scale(1.06);
}

.project-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(to top, rgba(11, 13, 23, 0.85), rgba(11, 13, 23, 0.35));
  opacity: 0;
  transition: opacity 0.3s;
}

.project:hover .project-actions,
.project-actions:focus-within {
  opacity: 1;
}

.project-actions a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 22px;
  transform: translateY(10px);
  transition: 0.3s;
}

.project:hover .project-actions a {
  transform: none;
}

.project-actions a:hover {
  background: var(--accent);
  color: #fff;
}

.project-body {
  padding: 20px 22px 22px;
}

.project-body h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.project-body p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-2);
}

.btn-apk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-apk:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(124, 92, 255, 0.7);
}

.btn-apk i {
  font-size: 18px;
}

.btn-apk small {
  font-weight: 500;
  opacity: 0.8;
}

.btn-play {
  margin-left: 8px;
  background: transparent;
  border: 1px solid var(--accent-2);
  color: var(--accent-2);
}

.btn-play:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--accent-2);
}

.apk-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Touch devices: always show actions */
@media (hover: none) {
  .project-actions {
    opacity: 1;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px;
    background: none;
  }

  .project-actions a {
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: rgba(11, 13, 23, 0.7);
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-card {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 92, 255, 0.35), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(34, 211, 238, 0.25), transparent 50%),
    var(--surface);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.contact-card h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-card > p {
  color: #c9cde0;
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-meta a {
  color: var(--text-muted);
}

.contact-meta a:hover {
  color: #fff;
}

.contact-meta i {
  margin-right: 6px;
  color: var(--accent);
}

@media (max-width: 575px) {
  .contact-card {
    padding: 56px 20px;
  }

  .contact-actions a {
    width: 100%;
    justify-content: center;
    overflow-wrap: anywhere;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 28px;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
}

.back-to-top:hover {
  color: #fff;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/*--------------------------------------------------------------
# Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/*--------------------------------------------------------------
# Additions: featured skill, projects without screenshots, education extras
--------------------------------------------------------------*/
.skill-card.featured {
  border-color: rgba(34, 211, 238, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--surface);
}

.skill-card.featured .skill-icon {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-2);
}

.stat .plus {
  font-size: 26px;
  margin-left: 2px;
}

.project-img.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  overflow: hidden;
}

.project-img.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-img.placeholder i {
  position: relative;
  font-size: 64px;
  transition: transform 0.5s;
}

.project-img.placeholder span {
  position: relative;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project:hover .project-img.placeholder i {
  transform: scale(1.12) rotate(-6deg);
}

.ph-1 { background: linear-gradient(135deg, #7c2d12, #b91c1c 45%, #f59e0b); }
.ph-2 { background: linear-gradient(135deg, #064e3b, #047857 50%, #10b981); }
.ph-3 { background: linear-gradient(135deg, #312e81, #7c5cff 55%, #22d3ee); }

.project-org {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.edu-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.check-list i {
  color: var(--ok);
  font-size: 20px;
  line-height: 1.1;
}

.check-list strong {
  color: #fff;
  font-weight: 600;
}

/* Game pop-up */
.game-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 14, 0.82); backdrop-filter: blur(6px); }
.game-modal[hidden] { display: none; }
.game-modal-box { display: flex; flex-direction: column; height: 92vh; aspect-ratio: 9 / 16; max-width: 96vw;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(34, 211, 238, 0.35); }
.game-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 16px;
  font-weight: 600; font-size: 15px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.game-modal-actions { display: flex; gap: 6px; }
.game-modal-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.game-modal-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.game-modal iframe { flex: 1; width: 100%; border: 0; background: #0b0d17; display: block; }
body.game-open { overflow: hidden; }
.game-modal-box:fullscreen { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; border: 0; }
@media (max-width: 600px), (max-height: 520px) {
  .game-modal-box { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; border: 0; }
}
