:root {
  --bg: #0b0d10;
  --bg-2: #12161c;
  --panel: rgba(20, 24, 30, 0.84);
  --panel-border: rgba(255, 255, 255, 0.08);

  --text: #f4f6f8;
  --muted: #b1b8c2;

  --accent-1: #8f98a3;
  --accent-2: #c8b07a;
  --accent-3: #5e6772;

  --sg-purple: #5a3cff;
  --sg-blue: #00c2ff;

  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(143, 152, 163, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(200, 176, 122, 0.06), transparent 24%),
    radial-gradient(circle at 20% 10%, rgba(90, 60, 255, 0.07), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(0, 194, 255, 0.06), transparent 28%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  min-height: 100vh;
}
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: floatGlow 14s ease-in-out infinite alternate;
}

.ambient-glow-1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -60px;
  background: radial-gradient(circle, rgba(90, 60, 255, 0.22) 0%, rgba(90, 60, 255, 0) 70%);
}

.ambient-glow-2 {
  width: 260px;
  height: 260px;
  top: 18%;
  right: -50px;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.18) 0%, rgba(0, 194, 255, 0) 72%);
  animation-duration: 18s;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(18px) translateX(8px) scale(1.04);
  }
  100% {
    transform: translateY(-10px) translateX(-6px) scale(0.98);
  }
}
a {
  color: var(--text);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-width), calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 56px;
}
.project-video {
  object-fit: cover;
  max-height: 360px;
  background: #0e1117;
}
.panel {
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow),
    0 0 0px rgba(90, 60, 255, 0),
    0 0 0px rgba(0, 194, 255, 0);
  padding: 22px;
  margin-bottom: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.035) 45%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-60%);
  animation: heroShimmer 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroShimmer {
  0% {
    transform: translateX(-60%);
  }
  50% {
    transform: translateX(25%);
  }
  100% {
    transform: translateX(90%);
  }
}

.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 60, 255, 0.18);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(90, 60, 255, 0.10),
    0 0 24px rgba(0, 194, 255, 0.08);
}

.hero-panel {
  padding: 26px 22px 22px;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(143, 152, 163, 0.10),
    rgba(94, 103, 114, 0.05),
    rgba(200, 176, 122, 0.04),
    rgba(90, 60, 255, 0.07),
    rgba(0, 194, 255, 0.05)
  );
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.avatar-wrap {
  flex-shrink: 0;
}

.avatar-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 24px rgba(143, 152, 163, 0.14),
    0 0 10px rgba(90, 60, 255, 0.08),
    0 0 14px rgba(0, 194, 255, 0.06);
}

.hero-text {
  position: relative;
  z-index: 1;
}

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

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.intro {
  margin: 0;
  opacity: 0.95;
  font-size: 1rem;
  line-height: 1.6;
}

.link-stack {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.primary-link,
.secondary-link {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.primary-link {
  background: linear-gradient(
    135deg,
    #7f8994,
    #b8c0c8,
    rgba(90, 60, 255, 0.15),
    rgba(0, 194, 255, 0.12)
  );
  color: #0b0d10;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 24px rgba(143, 152, 163, 0.16),
    0 0 12px rgba(90, 60, 255, 0.08),
    0 0 16px rgba(0, 194, 255, 0.06);
}

.primary-link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(143, 152, 163, 0.2),
    0 0 18px rgba(90, 60, 255, 0.12),
    0 0 22px rgba(0, 194, 255, 0.08);
}

.secondary-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-link:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 60, 255, 0.25);
  box-shadow:
    0 0 12px rgba(90, 60, 255, 0.10),
    0 0 16px rgba(0, 194, 255, 0.08);
}

h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

p {
  margin-top: 0;
  line-height: 1.65;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 60, 255, 0.22);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(90, 60, 255, 0.10),
    0 0 20px rgba(0, 194, 255, 0.08);
}

.project-card h3 {
  margin: 0 0 10px;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-actions a {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.card-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 60, 255, 0.3);
  color: var(--accent-2);
  box-shadow:
    0 0 8px rgba(200, 176, 122, 0.3),
    0 0 12px rgba(90, 60, 255, 0.2),
    0 0 16px rgba(0, 194, 255, 0.2);
}

.link-stack a,
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.link-stack i,
.contact-links i {
  font-size: 1rem;
  opacity: 0.95;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 60, 255, 0.25);
  box-shadow:
    0 0 10px rgba(90, 60, 255, 0.08),
    0 0 14px rgba(0, 194, 255, 0.06);
}

.icon-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.tech-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 60, 255, 0.22);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.24),
    0 0 10px rgba(90, 60, 255, 0.08),
    0 0 14px rgba(0, 194, 255, 0.06);
}

.tech-badge i {
  font-size: 1.15rem;
  min-width: 18px;
  text-align: center;
  color: #d7dde6;
}

.tech-badge span {
  font-size: 0.95rem;
  white-space: nowrap;
}

.tech-badge:nth-child(odd) {
  animation: badgeFloatA 4.5s ease-in-out infinite;
}

.tech-badge:nth-child(even) {
  animation: badgeFloatB 5.5s ease-in-out infinite;
}

@keyframes badgeFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes badgeFloatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.tag-grid span:hover {
  border-color: rgba(90, 60, 255, 0.25);
  box-shadow:
    0 0 10px rgba(90, 60, 255, 0.1),
    0 0 12px rgba(0, 194, 255, 0.08);
}

.impact-list {
  padding-left: 18px;
}

.impact-list li {
  margin-bottom: 10px;
}

@media (min-width: 700px) {
  .hero-top {
    flex-direction: row;
    text-align: left;
  }

  .hero-text {
    flex: 1;
  }

  .avatar-image {
    width: 112px;
    height: 112px;
  }
}

.project-image {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
  display: block;
}

.project-image.hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(90, 60, 255, 0.08),
    0 0 22px rgba(0, 194, 255, 0.06);
}

.project-image.logo-inline {
  width: 110px;
  margin-bottom: 10px;
  opacity: 0.92;
}
.project-image.logo {
  width: 70px;   /* adjust this */
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
.project-video {
  object-fit: cover;
  max-height: 420px;
  background: #0e1117;
}

.video-preview {
  position: relative;
  display: block;
  text-decoration: none;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
  box-shadow:
    0 0 16px rgba(90, 60, 255, 0.18),
    0 0 20px rgba(0, 194, 255, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  pointer-events: none;
}

.video-preview:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 0, 0, 0.68);
  box-shadow:
    0 0 20px rgba(90, 60, 255, 0.24),
    0 0 26px rgba(0, 194, 255, 0.2);
}