:root {
  --bg: #07130c;
  --bg-soft: #0d1f14;
  --card: rgba(15, 35, 24, 0.88);
  --line: rgba(130, 255, 165, 0.15);
  --primary: #29d66f;
  --primary-2: #8cffb1;
  --text: #ecfff2;
  --muted: #afd3ba;
  --accent: #ffe66d;
  --danger: #ff7f7f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(41, 214, 111, 0.18), transparent 22%),
    radial-gradient(circle at right, rgba(255, 230, 109, 0.10), transparent 18%),
    linear-gradient(160deg, #051009 0%, #07130c 40%, #0a1910 100%);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(41, 214, 111, 0.07), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(255, 230, 109, 0.05), transparent 16%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 82%);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: rgba(140, 255, 177, 0.25);
  color: #fff;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(92%, var(--max));
  margin: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(6, 16, 10, 0.68);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #05210d;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(41, 214, 111, 0.25);
}

.brand-meta {
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-2);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.hero {
  padding: 80px 0 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-2);
  background: rgba(23, 53, 35, 0.55);
  margin-bottom: 18px;
  font-size: 0.92rem;
  animation: fade-up 0.8s ease both;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #9ff9be, #ffe66d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
  margin: 20px 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #17b357);
  color: #04170a;
  box-shadow: 0 16px 30px rgba(41, 214, 111, 0.18);
}

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

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

.btn-secondary:hover {
  border-color: rgba(140, 255, 177, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card {
  background: linear-gradient(180deg, rgba(18, 44, 29, 0.9), rgba(10, 23, 15, 0.96));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fade-up 1s ease both;
  transform-style: preserve-3d;
}

.glow {
  position: absolute;
  inset: auto auto -60px -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(41, 214, 111, 0.3), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite;
}

.mini-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--primary-2);
  margin-bottom: 16px;
}

.role-list {
  display: grid;
  gap: 12px;
}

.role-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.role-item:hover {
  transform: translateX(6px);
  border-color: rgba(140, 255, 177, 0.25);
}

.role-item span:first-child {
  font-weight: 700;
}

.role-item span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: rgba(140, 255, 177, 0.22);
}

.stat h3 {
  margin: 0 0 6px;
  font-size: 2rem;
  color: var(--primary-2);
}

.stat p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

section {
  padding: 38px 0;
}

.section-title {
  margin-bottom: 20px;
}

.section-title .tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-title p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
  margin: 10px 0 0;
}

.about-grid,
.contact-grid,
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 255, 177, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.highlights {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.highlight {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.muted-copy {
  color: var(--muted);
  line-height: 1.8;
}

.mt-18 {
  margin-top: 18px;
}

.skills-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(41, 214, 111, 0.14);
  border-color: rgba(140, 255, 177, 0.28);
  color: var(--primary-2);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-box {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 255, 177, 0.22);
}

.skill-box h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.skill-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 214, 111, 0.07), transparent 45%, rgba(255, 230, 109, 0.06));
  pointer-events: none;
}

.project-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 214, 111, 0.14);
  color: var(--primary-2);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.project h3 {
  margin: 14px 0 10px;
}

.project p,
.project ul {
  color: var(--muted);
  line-height: 1.7;
}

.project ul {
  padding-left: 18px;
  margin: 0;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--primary), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding-top: 18px;
  padding-right: 20px;
  padding-bottom: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(6px);
  border-color: rgba(140, 255, 177, 0.22);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 6px rgba(41, 214, 111, 0.08);
}

.timeline-item h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

form {
  display: grid;
  gap: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  font-size: 0.96rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(140, 255, 177, 0.5);
  box-shadow: 0 0 0 4px rgba(41, 214, 111, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

select option {
  background: #0d1f14;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #8ca697;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.input-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.form-invalid {
  border-color: rgba(255, 127, 127, 0.75) !important;
  box-shadow: 0 0 0 4px rgba(255, 127, 127, 0.12) !important;
}

.contact-card p,
.contact-card li,
.payment-card p,
.payment-card li {
  color: var(--muted);
  line-height: 1.75;
}

.contact-list,
.payment-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-list li,
.payment-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notice-box {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.is-hidden {
  display: none;
}

.notice-success {
  background: rgba(41, 214, 111, 0.12);
  border: 1px solid rgba(41, 214, 111, 0.3);
  color: #bdf8d0;
}

.notice-error {
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.25);
  color: #ffb8b8;
}

.payment-method-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.payment-method-card {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: 0.25s ease;
  font-weight: 700;
}

.payment-method-card:hover,
.payment-method-card.active {
  border-color: rgba(140, 255, 177, 0.35);
  background: rgba(41, 214, 111, 0.12);
  color: var(--primary-2);
  transform: translateY(-2px);
}

.payment-details-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  line-height: 1.75;
}

.payment-details-box strong {
  color: var(--text);
}

.payment-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.payment-info-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-info-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.payment-info-card strong {
  color: var(--text);
  font-size: 1rem;
  word-break: break-word;
}

.qr-box {
  margin-top: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  min-height: 240px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  padding: 20px;
  color: var(--muted);
}

.qr-image {
  width: min(100%, 240px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 20px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.payment-note {
  margin: 14px 0 0;
}

.hidden-radio {
  display: none;
}

.footer {
  padding: 34px 0 50px;
  color: var(--muted);
  text-align: center;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .payment-grid,
  .skill-grid,
  .projects,
  .stats,
  .field-grid,
  .payment-info-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 4%;
    left: 4%;
    background: #08140d;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.show {
    display: flex;
  }

  .about-grid,
  .contact-grid,
  .payment-grid,
  .skill-grid,
  .projects,
  .field-grid,
  .stats,
  .payment-method-options,
  .payment-info-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding-top: 50px;
  }

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

  .role-item span:last-child {
    text-align: left;
  }
}
