
:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f8fbff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --secondary: #eef2ff;
  --accent: #0ea5e9;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.nav-links a:hover,
.back-link:hover {
  color: var(--primary-strong);
}

.hero,
.project-hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding-bottom: 34px;
}

.hero-content,
.project-hero {
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text);
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--text);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--text);
}

.hero-text,
p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 720px;
  font-size: 1.04rem;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  border-color: transparent;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.hero-stats,
.project-grid,
.skills-grid,
.overview-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat-card,
.project-card,
.skill-block,
.info-card,
.feature-card,
.demo-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--text);
}

.stat-card span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 22px;
}

.project-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.project-card {
  padding: 22px;
}

.project-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.project-badge,
.coming-soon {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 14px;
}

.project-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.feature-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.skills-grid,
.overview-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-block,
.info-card,
.feature-card,
.demo-panel {
  padding: 22px;
}

.image-frame {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.image-frame img {
  width: 100%;
  height: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 980px) {
  .project-grid,
  .skills-grid,
  .overview-grid,
  .feature-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .project-hero,
  .section {
    padding: 20px;
    border-radius: 22px;
  }

  h1 {
    font-size: 2.2rem;
  }
}
.demo-video-section {
  margin-top: 32px;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hero-profile {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.12);
}

.profile-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #67e8f9;
}

.profile-name {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

@media (max-width: 640px) {
  .hero-profile {
    border-radius: 1.5rem;
    align-items: flex-start;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
  }
}
.hero-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  width: fit-content;
}

.hero-profile img,
.profile-avatar {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(37, 99, 235, 0.7);
}

.profile-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.profile-name {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}
