:root {
  --bg-1: #07090f;
  --bg-2: #0d1221;
  --panel: rgba(13, 19, 32, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --stroke: rgba(200, 220, 255, 0.16);
  --text: #f6f8ff;
  --muted: #b4c0da;
  --accent: #f8cf5a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: radial-gradient(circle at 10% 10%, #25345a 0%, transparent 30%),
    radial-gradient(circle at 90% 12%, #3a2436 0%, transparent 28%),
    linear-gradient(155deg, var(--bg-1) 0%, #0a0f1d 45%, var(--bg-2) 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

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

.overlay-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
}

.overlay-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  z-index: -3;
  opacity: 0.45;
}

.glow-left {
  width: 360px;
  height: 360px;
  background: #4a72ff;
  left: -130px;
  top: 22%;
}

.glow-right {
  width: 320px;
  height: 320px;
  background: #ffbf47;
  right: -100px;
  top: 16%;
}

.config-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 15, 0.72);
}

.brand {
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.26rem;
  color: #fff;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.nav-link:hover {
  color: #fff;
}

.nav-pill {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.42rem 0.95rem !important;
}

.configurator-zone {
  padding: 1.2rem 0 0.9rem;
}

.config-panel,
.stage-panel,
.tech-tile,
.detail-card,
.time-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 20px;
}

.config-panel {
  background: var(--panel);
  padding: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 25px 45px rgba(0, 0, 0, 0.28);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: #90a0c4;
  margin-bottom: 0.75rem;
}

.name-title {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  margin: 0;
}

.role-title {
  color: #cbd6f2;
  margin: 0.35rem 0 1rem;
}

.option-group {
  margin-top: 1rem;
}

.option-title {
  color: #aab7d5;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #d4def7;
  font-size: 0.74rem;
  padding: 0.32rem 0.62rem;
}

.right-panel .metric-item + .metric-item {
  margin-top: 0.7rem;
}

.metric-item {
  border-radius: 12px;
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem;
}

.metric-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.18rem;
}

.metric-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.stage-panel {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(17, 23, 40, 0.95), rgba(8, 13, 24, 0.92));
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.35);
}

.stage-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding-bottom: 0.75rem;
}

.stage-top p {
  margin: 0;
  font-size: 0.84rem;
  color: #aebad5;
}

.stage-top span {
  color: #fff;
}

.stage-view {
  min-height: 445px;
  border-radius: 16px;
  margin-top: 0.9rem;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(155deg, #10172a 0%, #0c1324 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.stage-view::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  animation: spin 17s linear infinite;
}

.stage-view::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 20%;
  bottom: 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 10, 18, 0.88), rgba(8, 10, 18, 0));
  filter: blur(3px);
}

.stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ring-one {
  width: 58%;
  height: 58%;
  animation: spin 12s linear infinite;
}

.ring-two {
  width: 68%;
  height: 68%;
  border-style: dashed;
  animation: spin 16s linear infinite reverse;
}

.ring-three {
  width: 78%;
  height: 78%;
  opacity: 0.5;
  animation: pulse 3.6s ease-in-out infinite;
}

.profile-frame {
  width: min(52vw, 300px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 8;
  animation: float 4.8s ease-in-out infinite;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 90%;
  transform: scale(1.38);
  transform-origin: center top;
}

.tech-badge {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 8, 18, 0.76);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  z-index: 10;
  animation: bob 4s ease-in-out infinite;
}

.tech-badge img {
  width: 34px;
  height: 34px;
}

.badge-js {
  top: 14%;
  left: 16%;
}

.badge-php {
  top: 17%;
  right: 14%;
  animation-delay: 0.6s;
}

.badge-react {
  bottom: 19%;
  left: 14%;
  animation-delay: 1.2s;
}

.badge-aws {
  bottom: 15%;
  right: 15%;
  animation-delay: 1.8s;
}

.stage-copy {
  margin-top: 0.9rem;
  padding: 0.25rem 0.35rem 0.1rem;
}

.stage-copy h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  margin-bottom: 0.3rem;
}

.stage-copy p {
  color: var(--muted);
  margin: 0;
}

.content-section {
  padding: 1.1rem 0;
}

.section-title-wrap {
  margin-bottom: 0.8rem;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: #8fa1ca;
}

.section-title-wrap h2 {
  margin: 0.2rem 0 0;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.tech-tile {
  padding: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.tech-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 207, 90, 0.5);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.tile-head img {
  width: 28px;
  height: 28px;
}

.tile-head h3 {
  margin: 0;
  font-size: 1.04rem;
}

.tech-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-card {
  padding: 1rem 1.1rem;
}

.detail-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.06rem;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.time-card {
  padding: 0.92rem 1rem;
}

.time-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.time-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.3rem 0 1.5rem;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.73rem;
  color: #91a2c8;
}

.footer-mail {
  color: #fff;
}

.footer-copy {
  color: #9aa8c8;
  font-size: 0.9rem;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

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

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

@media (max-width: 1199px) {
  .stage-view {
    min-height: 390px;
  }
}

@media (max-width: 767px) {
  .configurator-zone {
    padding-top: 0.8rem;
  }

  .stage-view {
    min-height: 340px;
  }

  .tech-badge {
    width: 56px;
    height: 56px;
  }

  .tech-badge img {
    width: 30px;
    height: 30px;
  }
}
