:root {
  color-scheme: dark;
  --bg: #04030b;
  --bg-alt: #090f1f;
  --surface: rgba(17, 22, 39, 0.85);
  --surface-strong: rgba(19, 27, 47, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f6f7ff;
  --muted: #b3b8d0;
  --accent: #68f8d6;
  --accent-strong: #47c1ff;
  --accent-secondary: #a86bff;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 10% 20%, #0c1230, #030308 70%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.hero {
  min-height: 100vh;
  padding: 2.5rem clamp(1rem, 6vw, 4.5rem) 4rem;
  background: radial-gradient(
      circle at 80% 10%,
      rgba(72, 134, 255, 0.35),
      transparent 45%
    ),
    linear-gradient(145deg, #070b1c, #020205);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 8vh, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 20% -10% -20%;
  background: radial-gradient(
    circle,
    rgba(104, 248, 214, 0.35),
    transparent 60%
  );
  opacity: 0.6;
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: 32px;
  padding: 2.5rem 2rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(
      circle at 50% 15%,
      rgba(104, 248, 214, 0.45),
      transparent 60%
    ),
    linear-gradient(155deg, rgba(5, 9, 22, 0.95), rgba(2, 4, 12, 0.9));
  overflow: hidden;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.5);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.hero-visual__glow {
  position: absolute;
  inset: -20% -40% 10%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(104, 248, 214, 0.4),
    transparent 70%
  );
  filter: blur(90px);
  opacity: 0.8;
  z-index: 0;
}

.hero-emblem {
  position: relative;
  width: min(260px, 60vw);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.hero-emblem__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: heroOrbitSpin 30s linear infinite;
}

.hero-emblem__ring--outer {
  border-color: rgba(104, 248, 214, 0.35);
  filter: drop-shadow(0 0 12px rgba(104, 248, 214, 0.4));
}

.hero-emblem__ring--middle {
  inset: 12%;
  border-style: dashed;
  animation-duration: 18s;
  opacity: 0.7;
}

.hero-emblem__ring--inner {
  inset: 25%;
  animation-duration: 12s;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-emblem__pulse {
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(168, 107, 255, 0.6),
    rgba(104, 248, 214, 0.1)
  );
  animation: heroOrbPulse 6s ease-in-out infinite;
  filter: blur(1px);
  opacity: 0.8;
}

.hero-emblem__core {
  width: 160px;
  height: 160px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 10, 30, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  box-shadow: inset 0 0 25px rgba(104, 248, 214, 0.2);
  position: relative;
  z-index: 1;
}

.hero-emblem__initials {
  font-size: 2rem;
  font-weight: 700;
}

.hero-emblem__label {
  font-size: 0.95rem;
  letter-spacing: 0.5em;
}

.hero-emblem__tag {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.hero-visual__chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  width: 100%;
  z-index: 1;
}

.hero-chip {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-chip__label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-chip__value {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brand {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-glow {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 0 18px var(--accent), 0 0 28px var(--accent-secondary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.08);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-btn.active {
  background: var(--text);
  color: #05060f;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  background: none;
  color: var(--text);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
  overflow: hidden;
  isolation: isolate;
  -webkit-appearance: none;
  appearance: none;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--cta-fill, rgba(255, 255, 255, 0.05));
  z-index: -1;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.cta:hover::before {
  transform: scale(1.04);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cta.primary {
  --cta-fill: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  color: #050505;
  box-shadow: 0 15px 25px rgba(104, 248, 214, 0.25);
}

.cta.primary:hover {
  box-shadow: 0 20px 35px rgba(104, 248, 214, 0.32);
}

.cta.secondary,
.cta.ghost {
  --cta-fill: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cta.ghost {
  --cta-fill: rgba(255, 255, 255, 0.02);
}

.cta.secondary:hover,
.cta.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  --cta-fill: rgba(104, 248, 214, 0.12);
}

.cta:active {
  transform: translateY(1px);
}

.hero-content {
  max-width: 740px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.muted-text {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

main {
  padding: 4rem clamp(1rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.gradient-panel {
  background: linear-gradient(
    135deg,
    rgba(52, 77, 133, 0.8),
    rgba(12, 23, 53, 0.95)
  );
}

.section-header {
  max-width: 740px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--muted);
  margin-top: 0;
}

.projects-grid,
.plan-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-header h3 {
  margin: 0;
}

.card-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.input-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.input-row input {
  flex: 1;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(104, 248, 214, 0.15);
}

.github-result {
  min-height: 140px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}

.github-result.loading {
  border-color: var(--accent);
  animation: pulse 1.5s ease infinite;
}

.github-profile {
  display: flex;
  gap: 1rem;
}

.github-profile img {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.github-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.github-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.repo-tags span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.skills-card {
  background: linear-gradient(
    140deg,
    rgba(10, 19, 43, 0.8),
    rgba(11, 31, 69, 0.95)
  );
}

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.skill-list li {
  text-align: center;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.plan-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.plan-card.featured {
  border-color: var(--accent);
  background: rgba(8, 16, 36, 0.65);
  box-shadow: 0 15px 35px rgba(21, 233, 206, 0.25);
}

.plan-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.plan-card__title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.plan-card__title h3 {
  margin: 0;
}

.plan-price-group {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.plan-price-note {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.plan-description {
  margin: 0;
  color: var(--muted);
}

.plan-features {
  padding-left: 1.2rem;
  color: var(--muted);
  flex: 1 1 auto;
  margin: 0;
}

.plan-features li + li {
  margin-top: 0.35rem;
}

.plan-card__actions {
  margin-top: auto;
}

.plan-card__actions .cta {
  width: 100%;
}

.contact-panel {
  background: linear-gradient(
    145deg,
    rgba(9, 14, 32, 0.95),
    rgba(4, 7, 15, 0.95)
  );
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-info dl {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
}

.contact-info dt {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  color: var(--muted);
}

.contact-info dd {
  margin: 0;
  font-weight: 600;
}

.contact-info .placeholder {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
}

@keyframes heroOrbPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.75;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.75;
  }
}

@keyframes heroOrbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    border-color: rgba(104, 248, 214, 0.4);
  }
  50% {
    border-color: rgba(168, 107, 255, 0.6);
  }
  100% {
    border-color: rgba(104, 248, 214, 0.4);
  }
}

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

  .nav-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hero {
    padding: 2rem 1.5rem 3rem;
  }

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

  .hero-visual {
    min-height: 320px;
  }

  main {
    padding: 3rem 1.5rem;
  }

  .plan-grid {
    grid-auto-rows: auto;
  }

  /* .contact-info dl {
    align-items: center;
  } */
}

@media (max-width: 600px) {
  .card,
  .panel {
    padding: 1.5rem;
  }

  .input-row {
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-visual {
    padding: 1.5rem;
  }

  .hero-emblem__label {
    letter-spacing: 0.2em;
  }

  .plan-grid {
    grid-auto-rows: auto;
  }

  /* .contact-info dl {
    align-items: center;
  } */

  .contact-info dl {
    display: flex;
    flex-direction: column;
  }

  .contact-info h3,
  p {
    margin: 0;
  }

  #contact_comp_name {
    padding-bottom: 10px;
  }

  .github-profile {
    flex-direction: column;
    align-items: center;
  }

  .github-meta {
    text-align: center;
  }

  .repo-tags {
    justify-content: center;
    padding: 0 0 10px 0;
  }

  .github-stats {
    padding: 10px 0;
  }

  .github-meta strong {
    padding: 0 0 10px 0;
  }

  .contact-form-card h3 {
    margin: 0;
  }
}
