/* ===== GLOBAL STYLES ===== */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #111111;
  color: #eaeaea;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar { display: none; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(180%) contrast(120%);
  -webkit-backdrop-filter: blur(18px) saturate(180%) contrast(120%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 20px 20px;
}

/* ===== NAME BUTTON ===== */
.name-button {
  display: inline-block;
  text-decoration: none;
  cursor: none;
  position: relative;
  padding: 0;
}

.name-button .name-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-name {
  margin: 0;
  transform: translateY(-5px);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

.sub-name {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #aaa;
}

.name-button:hover .main-name,
.name-button:hover .sub-name {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ===== NAV ===== */
nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #ffffff;
  transition: 0.3s;
}

nav a:hover::after { width: 100%; }

nav a.nav-active { color: #fff; }

nav a.nav-active::after { width: 100%; }

/* ===== SECTIONS ===== */
section {
  padding: 6rem 4rem 2rem 4rem;
  max-width: 1400px;
  margin: auto;
}

h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 3rem;
  font-size: 2rem;
}

/* ===== PROJECT GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* ===== CLICKABLE PROJECT LINKS ===== */
.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease, transform 0.4s ease;
}

.project-link .project-card { cursor: none; }

/* ===== PROJECT CARDS ===== */
.project-card {
  position: relative;
  padding: 3rem;
  min-height: 220px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d0d0d, #2a2a2a);
  color: #fff;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* Dark overlay */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  border-radius: 24px;
  transition: background 0.4s ease;
  z-index: 1;
}

.project-card:hover::before { background: rgba(0, 0, 0, 0.15); }

.project-card h3,
.project-card .project-date,
.project-card p,
.project-card .skill-tags {
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover h3,
.project-card:hover .project-date,
.project-card:hover p,
.project-card:hover .skill-tags {
  opacity: 0;
  transform: translateY(-18px);
}

.project-card:hover { transform: translateY(-12px) scale(1.03); }

/* Background image layer */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  z-index: 0;
}

/* ── Static hardcoded card backgrounds (legacy, kept for safety) ── */
.project-card.bloodbound::after  { background-image: url('images/BBK/Project Image/BBK.png'); }
.project-card.aimtrainer::after  { background-image: url('images/AB/Project Image/AB.png'); }
.project-card.veilshifter::after { background-image: url('images/VeilShifter/Project Image/VS.png'); background-position: left center; }
.project-card.mam::after         { background-image: url('images/MAM/Project Image/MAM.png'); background-size: 135%; background-repeat: no-repeat; }
.project-card.playmanity::after  { background-image: url('images/Playmanity/Experience Image/Pm.png'); background-position: left center; }

/* ── Dynamic card backgrounds (set via CSS custom properties from JS) ── */
.project-card.dynamic-card::after {
  background-image:    var(--card-bg);
  background-position: var(--card-bg-pos, center);
  background-size:     var(--card-bg-size, cover);
  background-repeat:   no-repeat;
}

/* ===== PROJECT DATE (on cards) ===== */
.project-date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -0.6rem;
  margin-bottom: 0.75rem;
}

/* ===== PROJECT DATE (hero on detail pages) ===== */
.project-date-hero {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.3rem 0 0.6rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.5s 0.28s forwards;
}

/* ===== SKILL TAGS ===== */
.project-card .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-card .skill-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: background 0.2s, color 0.2s;
}

.project-link:hover .skill-tag {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

/* ===== SKILL FILTER HINT ===== */
.skills-filter-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin: -2.8rem 0 2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.8rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.skill-item span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  transition: color 0.3s ease;
}

.skill-item:hover span { color: rgba(255, 255, 255, 0.9); }

.skill-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.skill-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.skill-item:hover .skill-icon {
  transform: translateY(-5px) scale(1.06);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.25);
}

.skill-item:hover .skill-icon img { opacity: 1; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 4rem;
  color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  header  { padding: 1rem 2rem; }
  section { padding: 4rem 2rem 1.5rem 2rem; }
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: none;
  padding: 0;
  z-index: 1100;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.25s ease,
              width 0.3s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== MOBILE DRAWER ===== */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
  pointer-events: none;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
}

.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(80vw, 300px);
  height: 100%;
  background: rgba(17, 17, 17, 0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}

.nav-drawer-panel a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: block;
  padding: 0.6rem 0;
  transition: color 0.25s ease, transform 0.25s ease;
  transform: translateX(20px);
  opacity: 0;
}

.nav-drawer-panel a:hover {
  color: #fff;
  transform: translateX(6px) !important;
}

.nav-drawer.open {
  pointer-events: all;
}

.nav-drawer.open .nav-drawer-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.nav-drawer.open .nav-drawer-panel {
  transform: translateX(0);
}

.nav-drawer.open .nav-drawer-panel a:nth-child(1) { transition: color 0.25s ease, transform 0.35s 0.15s cubic-bezier(0.23,1,0.32,1), opacity 0.35s 0.15s ease; opacity: 1; transform: translateX(0); }
.nav-drawer.open .nav-drawer-panel a:nth-child(2) { transition: color 0.25s ease, transform 0.35s 0.20s cubic-bezier(0.23,1,0.32,1), opacity 0.35s 0.20s ease; opacity: 1; transform: translateX(0); }
.nav-drawer.open .nav-drawer-panel a:nth-child(3) { transition: color 0.25s ease, transform 0.35s 0.25s cubic-bezier(0.23,1,0.32,1), opacity 0.35s 0.25s ease; opacity: 1; transform: translateX(0); }
.nav-drawer.open .nav-drawer-panel a:nth-child(4) { transition: color 0.25s ease, transform 0.35s 0.30s cubic-bezier(0.23,1,0.32,1), opacity 0.35s 0.30s ease; opacity: 1; transform: translateX(0); }
.nav-drawer.open .nav-drawer-panel a:nth-child(5) { transition: color 0.25s ease, transform 0.35s 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.35s 0.35s ease; opacity: 1; transform: translateX(0); }

@media (max-width: 768px) {
  header nav { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
}

/* ===== PROJECT SHOWCASE PAGE ===== */
.project-showcase {
  max-width: 1200px;
  margin: auto;
  padding: 6rem 2rem;
}

.screenshots {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.screenshots img {
  width: 32%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-about {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ===== HERO (detail pages) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 480px;
  overflow: hidden;
  margin-top: -90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 35%, transparent 45%, rgba(0,0,0,0.92) 85%, #111111 100%),
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 55%);
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 4rem 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text { flex: 1; }

.hero-text #project-title,
.hero-text #experience-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.3rem 0;
  text-align: left;
}

.hero-text #project-subtitle,
.hero-text #experience-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 460px;
  text-align: left;
}

.hero-actions {
  flex-shrink: 0;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.5s 0.45s forwards;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  padding: 12px 35px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: #fff;
  color: #000;
  transition: all 0.2s;
  white-space: nowrap;
}

.hero-actions .button:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
}

.hero-text > * {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.5s forwards;
}

.hero-text #project-title,
.hero-text #experience-title     { animation-delay: 0.2s; }
.hero-text #project-date-hero,
.hero-text #experience-date-hero { animation-delay: 0.28s; }
.hero-text #project-subtitle,
.hero-text #experience-subtitle  { animation-delay: 0.35s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PROJECT DESCRIPTION ===== */
#project-description h3,
#experience-description h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  color: #fff;
}

#project-description p,
#experience-description p {
  color: #ccc;
  line-height: 1.7;
  margin: 0 0 1rem;
}

#project-description ul,
#experience-description ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
  color: #ccc;
  line-height: 1.8;
}

#project-description ul li,
#experience-description ul li { margin-bottom: 0.4rem; }

#project-description strong,
#experience-description strong { color: #eaeaea; }

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal:not(.visible) .project-card {
  box-shadow: none !important;
  transition: box-shadow 0.7s ease;
}

/* ===== MAIN PAGE HERO ===== */
.main-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: -90px;
}

.main-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/MainPageHero/Hero.png');
  background-size: cover;
  background-position: center 75%;
  transform: scale(1.06);
  transition: transform 10s ease-out;
}

.main-hero-bg.loaded { transform: scale(1); }

.main-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 30%, transparent 45%, rgba(17,17,17,0.85) 80%, #111111 100%),
    linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.main-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.main-hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.6s 0.2s forwards;
}

.main-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.2rem;
  line-height: 1.05;
  letter-spacing: -1px;
  max-width: 700px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.7s 0.35s forwards;
}

.main-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin: 0 0 2.5rem;
  max-width: 460px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.6s 0.5s forwards;
}

.main-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.6s 0.65s forwards;
}

.main-hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 32px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.main-hero-cta a.primary {
  background: #fff;
  color: #000;
}

.main-hero-cta a.primary:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

.main-hero-cta a.secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.main-hero-cta a.secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: heroFadeUp 0.6s 1s forwards;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
  animation: scrollPulse 2s 1.5s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.2); }
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .main-hero-content { padding: 0 2rem 4rem; }
  .scroll-hint { display: none; }
}

/* ===== SKILL FILTER STATES ===== */
.project-link.project-dimmed {
  opacity: 0.2;
  pointer-events: none;
}

.project-link.project-highlighted .project-card {
  box-shadow: none;
  outline: 1px solid rgba(255, 255, 255, 0.45);
}

.skill-item.skill-active .skill-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-5px) scale(1.06);
}

.skill-item.skill-active span { color: rgba(255, 255, 255, 1); }

/* ===== SKILL CLEAR BUTTON ===== */
.skill-clear-btn {
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: none;
}

.skill-clear-btn.skill-clear-visible {
  pointer-events: auto;
}

.skill-clear-icon {
  color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  transition: color 0.3s ease, background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.skill-clear-btn span {
  color: rgba(255, 255, 255, 0.1) !important;
  transition: color 0.3s ease;
}

.skill-clear-btn.skill-clear-visible .skill-clear-icon {
  color: rgba(255, 100, 100, 0.8);
  background: rgba(255, 60, 60, 0.12);
  border-color: rgba(255, 100, 100, 0.4);
}

.skill-clear-btn.skill-clear-visible span {
  color: rgba(255, 150, 150, 0.75) !important;
}

.skill-clear-btn.skill-clear-visible:hover .skill-clear-icon {
  color: rgba(255, 140, 140, 1);
  background: rgba(255, 60, 60, 0.28);
  border-color: rgba(255, 100, 100, 0.8);
  transform: translateY(-5px) scale(1.06);
}

.skill-clear-btn.skill-clear-visible:hover span {
  color: rgba(255, 180, 180, 1) !important;
}

/* ===== CONNECT / SOCIALS ===== */
.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  cursor: none;
  user-select: none;
  transition: opacity 0.15s ease;
}

.social-btn .social-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.social-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.social-btn span {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  transition: color 0.3s ease;
}

.social-btn:hover .social-icon-wrap {
  transform: translateY(-5px) scale(1.06);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.25);
}

.social-btn:hover img  { opacity: 1; }
.social-btn:hover span { color: rgba(255, 255, 255, 0.9); }

.social-btn.social-dimmed {
  opacity: 0.2;
  pointer-events: none;
}

.social-btn.social-active .social-icon-wrap {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-5px) scale(1.06);
}

.social-btn.social-active img  { opacity: 1; }
.social-btn.social-active span { color: rgba(255, 255, 255, 1); }

/* Discord tooltip */
.social-discord { position: relative; }

.discord-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.discord-tooltip.show { opacity: 1; }

/* ===== EMAIL MENU ===== */
.social-email { position: relative; }

.email-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.email-menu.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.email-menu a,
.email-menu button {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 7px 14px;
    text-align: center;
    cursor: none;
    transition: background 0.2s ease, color 0.2s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.email-menu a:hover,
.email-menu button:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.email-copy-confirm {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    display: block;
}

.email-copy-confirm.show { opacity: 1; }

/* ===== ABOUT LINKS ===== */
#about a {
  color: #eaeaea;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

#about a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ===== CUSTOM CURSOR ===== */
*, *::before, *::after { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.4s ease,
              background 0.4s ease,
              opacity 0.3s ease;
}

.cursor-ring.hovering {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.cursor-dot.hovering {
  width: 6px;
  height: 6px;
}

.cursor-ring.clicking {
  width: 26px;
  height: 26px;
  border-color: rgba(255, 255, 255, 0.8);
}

.cursor-dot.clicking {
  width: 8px;
  height: 8px;
}
/* ── Play in Browser embed ─────────────────────────────── */
.game-embed-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* keep this if your game is 16:9 */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-embed-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    border: none;
    display: block;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

.game-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    cursor: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(6px);
}

.game-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.08);
}