:root {
  --page: #07101d;
  --page-deep: #040a13;
  --surface: rgba(13, 24, 41, 0.82);
  --surface-solid: #101c30;
  --surface-soft: rgba(20, 33, 54, 0.72);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f7f9fc;
  --muted: #a8b3c5;
  --muted-soft: #738198;
  --blue: #38bdf8;
  --violet: #8b5cf6;
  --mint: #5eead4;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% -6%, rgba(124, 58, 237, 0.22), transparent 29%),
    radial-gradient(circle at 84% 10%, rgba(14, 165, 233, 0.13), transparent 24%),
    linear-gradient(180deg, var(--page) 0%, var(--page-deep) 100%);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 40px), 1120px);
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(7, 16, 29, 0.72);
  backdrop-filter: blur(20px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a,
.mobile-menu a {
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--text);
}

.menu-btn,
.mobile-menu {
  display: none;
}

main {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 28px 0 34px;
}

.section {
  min-width: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.2), transparent 44%),
    linear-gradient(150deg, rgba(16, 28, 48, 0.88), rgba(7, 16, 29, 0.72));
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-brand {
  margin: 0;
  background: linear-gradient(120deg, #ffffff 12%, #dbeafe 50%, #c4b5fd 88%);
  background-clip: text;
  color: transparent;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.05;
  text-shadow: 0 18px 48px rgba(79, 70, 229, 0.16);
  -webkit-background-clip: text;
}

.eyebrow {
  margin: 18px 0 0;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro {
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.65;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-links a,
.hero-links button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #dbeafe;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.hero-links a:hover,
.hero-links button:hover {
  border-color: rgba(125, 211, 252, 0.48);
  background: rgba(56, 189, 248, 0.09);
  transform: translateY(-1px);
}

.hero-links button:focus-visible,
.hero-links a:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.hero-links button.is-copied {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.1);
}

.hero-link-label {
  color: #a5b4fc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 18px;
}

.panel-section {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(8, 18, 32, 0.76);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.17);
}

.section-title {
  position: relative;
  min-height: 0;
  padding-right: 0;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.section-title > div:first-child {
  min-width: 0;
}

.featured-divider {
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.3), transparent);
}

.carousel-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  padding: 0 0 2px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9e2ee;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.carousel-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(56, 189, 248, 0.1);
}

.carousel-shell {
  min-width: 0;
  margin-top: 20px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  min-height: 330px;
  scroll-snap-align: start;
}

.skill-card,
.app-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 44, 68, 0.8), rgba(15, 27, 46, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.skill-card {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
}

.skill-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.skill-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  font-size: 17px;
}

.skill-heading h3,
.app-card h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.045em;
}

.skill-heading h3 {
  font-size: 21px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 27, 46, 0.7);
  color: #dbe4ef;
  font-size: 12px;
  font-weight: 750;
}

.app-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.app-topline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  flex: 0 0 auto;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.12);
  font-size: 23px;
}

.app-card h3 {
  font-size: 22px;
}

.app-subtitle {
  margin: 3px 0 0;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 850;
}

.app-card > p:not(.app-subtitle) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.app-card .tags {
  margin-top: 18px;
}

.app-store-link,
.app-status {
  align-self: center;
  min-width: 190px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.app-store-link {
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.22));
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.16);
  transition: transform 160ms ease, border-color 160ms ease;
}

.app-store-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.48);
}

.app-store-link::before {
  content: "";
  margin-right: 8px;
  font-size: 14px;
}

.aimmetry-link::before {
  content: "◎";
  font-size: 16px;
}

.app-status {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.card-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 700;
}

.card-legal-links a:hover {
  color: #dbeafe;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.32);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.dot.active {
  width: 24px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.summary-card {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(24, 38, 62, 0.76), rgba(11, 22, 38, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.skills-summary-card {
  display: grid;
  grid-template-rows: repeat(3, auto);
}

.skill-group {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.skill-group:last-child,
.app-summary-item:last-child {
  border-bottom: 0;
}

.skill-group .tags {
  margin-top: 14px;
}

.apps-summary-card {
  display: grid;
  grid-template-rows: repeat(2, auto);
}

.app-summary-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.app-summary-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  letter-spacing: -0.045em;
}

.app-summary-item > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.app-summary-item .tags {
  margin-top: 14px;
}

.app-summary-item .app-store-link,
.app-summary-item .app-status {
  align-self: flex-start;
  min-width: 170px;
  min-height: 36px;
  margin-top: 16px;
}

.app-summary-item .card-legal-links {
  align-self: flex-start;
  justify-content: flex-start;
  margin-top: 10px;
}

.contact-card {
  margin-top: 18px;
  padding: 42px 32px;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    rgba(8, 18, 32, 0.78);
  text-align: center;
}

.contact-icon {
  display: none;
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.055em;
}

.contact-card p {
  max-width: 580px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.cta-row {
  margin-top: 22px;
}

.primary-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), #4f46e5);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.22);
  font-size: 13px;
  font-weight: 850;
}

footer {
  padding: 6px 20px 30px;
  color: var(--muted-soft);
  text-align: center;
  font-size: 11px;
  font-weight: 650;
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
    width: 38px;
    height: 38px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
  }

  .menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #e2e8f0;
  }

  .mobile-menu.open {
    position: sticky;
    top: 72px;
    z-index: 45;
    display: flex;
    width: min(calc(100% - 40px), 1120px);
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(7, 16, 29, 0.94);
    backdrop-filter: blur(18px);
  }

  .mobile-menu a {
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
  }

  .portfolio-columns {
    grid-template-columns: 1fr;
  }

  .panel-section {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .top-nav,
  main,
  .mobile-menu.open {
    width: min(calc(100% - 24px), 1120px);
  }

  .top-nav {
    min-height: 62px;
  }

  main {
    padding-top: 16px;
  }

  .hero {
    min-height: 280px;
    padding: 38px 20px;
    border-radius: 20px;
  }

  .hero-brand {
    font-size: clamp(36px, 10vw, 48px);
  }

  .intro {
    font-size: 14px;
  }

  .hero-links {
    width: 100%;
    margin-top: 24px;
  }

  .hero-links a,
  .hero-links button {
    width: 100%;
    max-width: 300px;
    justify-content: space-between;
  }

  .portfolio-columns {
    gap: 12px;
    margin-top: 12px;
  }

  .panel-section {
    padding: 18px;
    border-radius: 20px;
  }

  .skill-group,
  .app-summary-item {
    padding: 20px;
  }

  .section-title {
    padding-right: 84px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-slide {
    min-height: 310px;
  }

  .skill-card {
    padding: 24px;
  }

  .app-card {
    padding: 20px;
  }

  .app-card h3 {
    font-size: 20px;
  }

  .app-store-link,
  .app-status {
    width: 100%;
    min-width: 0;
  }

  .contact-card {
    margin-top: 12px;
    padding: 34px 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .carousel-track {
    scroll-behavior: auto;
  }
}
