:root {
  --bg: #030712;
  --bg-soft: #071329;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f6f8fb;
  --muted: #a9b8d6;
  --brand: #006fff;
  --brand-2: #2c8cff;
  --accent: #57d7ff;
  --danger: #ff6578;
  --ink: #061450;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 111, 255, 0.22), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(87, 215, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(6, 20, 80, 0.38), transparent 36%),
    var(--bg);
  color: var(--text);
}

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

.navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(6, 20, 80, 0.12);
  box-shadow: 0 12px 34px rgba(3, 7, 18, 0.08);
  backdrop-filter: blur(18px);
  transition: padding 0.25s ease, background 0.25s ease;
  padding: 18px 0;
}

.navbar.navbar-scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 800;
  max-width: 330px;
}

.navbar-logo {
  display: block;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  width: min(320px, 64vw);
}

.navbar-toggler {
  border: 1px solid rgba(6, 20, 80, 0.18);
  color: var(--brand);
}

.nav-link {
  color: #1f2d4d;
  font-weight: 600;
  margin: 0 4px;
}

.nav-link:hover,
.nav-link.active,
.navbar-brand:hover {
  color: var(--brand);
}

.btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  letter-spacing: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 0;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 111, 255, 0.24);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.hero-section {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  background:
    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: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  position: absolute;
}

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

.eyebrow,
.section-kicker {
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.93;
  margin-bottom: 24px;
}

.hero-lead {
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 800;
  min-height: 72px;
}

#typedText {
  color: var(--brand);
}

.hero-copy,
.section-text {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
  max-width: 680px;
}

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

.hero-stats {
  gap: 32px;
}

.hero-stats div {
  min-width: 92px;
}

.hero-stats strong {
  color: var(--brand-2);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  animation: floatPanel 5.5s ease-in-out infinite;
  position: relative;
}

.code-window,
.profile-panel,
.contact-form,
.project-card,
.service-card,
.skill-card,
.timeline-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.code-window {
  overflow: hidden;
}

.window-top {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  padding: 14px 18px;
}

.window-top span {
  border-radius: 999px;
  display: block;
  height: 12px;
  width: 12px;
}

.window-top span:nth-child(1) {
  background: var(--danger);
}

.window-top span:nth-child(2) {
  background: var(--brand-2);
}

.window-top span:nth-child(3) {
  background: var(--brand);
}

pre {
  color: #d8ecff;
  font-size: clamp(0.82rem, 1.8vw, 1.03rem);
  line-height: 1.8;
  margin: 0;
  min-height: 320px;
  overflow: auto;
  padding: 28px;
  white-space: pre-wrap;
}

.stack-strip {
  background: rgba(3, 7, 18, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: -28px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  left: 28px;
  padding: 14px;
  position: absolute;
  right: 28px;
}

.stack-strip span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 8px;
}

.stack-strip i {
  color: var(--brand);
}

.section {
  padding: 110px 0;
}

.section-muted {
  background:
    linear-gradient(135deg, rgba(0, 111, 255, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.032);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 42px;
  max-width: 760px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 16px;
}

.profile-panel {
  padding: 32px;
}

.profile-avatar {
  background: rgba(0, 111, 255, 0.1);
  border-radius: 8px;
  display: block;
  height: 112px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: left center;
  padding: 10px;
  width: 150px;
}

.profile-panel h2 {
  font-size: 2rem;
  font-weight: 900;
}

.profile-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-line {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 16px;
}

.feature-line i {
  color: var(--brand);
  font-size: 1.3rem;
}

.skill-card {
  margin-bottom: 16px;
  padding: 20px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  height: 10px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  width: 0;
  transition: width 1.25s ease;
}

.tech-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tech-grid div {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 13px;
  min-height: 86px;
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tech-grid div:hover,
.project-card:hover,
.service-card:hover {
  border-color: rgba(0, 111, 255, 0.68);
  transform: translateY(-6px);
}

.tech-grid i,
.service-card i,
.project-icon {
  color: var(--brand);
  font-size: 1.6rem;
}

.project-card,
.service-card {
  height: 100%;
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-icon {
  align-items: center;
  background: rgba(0, 111, 255, 0.14);
  border-radius: 8px;
  display: inline-flex;
  height: 54px;
  justify-content: center;
  margin-bottom: 22px;
  width: 54px;
}

.project-card h3,
.service-card h3,
.timeline-item h3 {
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.project-card p,
.service-card p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

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

.tags span {
  background: rgba(77, 184, 255, 0.12);
  border: 1px solid rgba(77, 184, 255, 0.24);
  border-radius: 999px;
  color: #ccecff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  align-items: flex-start;
  display: grid;
  gap: 20px;
  grid-template-columns: 64px 1fr;
  padding: 24px;
}

.timeline-item > span {
  align-items: center;
  background: var(--panel-strong);
  border-radius: 8px;
  color: var(--brand-2);
  display: flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.service-card i {
  display: block;
  margin-bottom: 18px;
}

.testimonial-band {
  background: linear-gradient(135deg, rgba(0, 111, 255, 0.18), rgba(87, 215, 255, 0.08));
}

blockquote {
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 18px;
}

.carousel-item span {
  color: var(--brand);
  font-weight: 800;
}

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

.contact-links a {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 12px;
}

.contact-links a:hover {
  color: var(--brand);
}

.contact-form {
  padding: 28px;
}

.form-label {
  color: var(--text);
  font-weight: 800;
}

.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 50px;
}

.form-control::placeholder {
  color: rgba(168, 179, 197, 0.72);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(0, 111, 255, 0.18);
  color: var(--text);
}

.form-select option {
  background: var(--bg-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0;
}

.scroll-top {
  align-items: center;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  bottom: 24px;
  color: #ffffff;
  display: flex;
  height: 44px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 44px;
  z-index: 20;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(6, 20, 80, 0.12);
    border-radius: 8px;
    margin-top: 14px;
    padding: 14px;
  }

  .hero-section {
    padding-top: 86px;
  }

  .hero-lead {
    min-height: 96px;
  }

  .stack-strip {
    position: static;
    margin-top: 16px;
  }
}

@media (max-width: 575px) {
  .section {
    padding: 78px 0;
  }

  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    gap: 18px;
    justify-content: space-between;
  }

  .tech-grid,
  .stack-strip {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .profile-panel,
  .project-card,
  .service-card {
    padding: 22px;
  }
}
