:root {
  --bg: #0b1020;
  --surface: rgba(255, 255, 255, 0.03);
  --muted: #98a0b0;
  --accent: #ff9800;
  --accent-2: #00d8ff;
  --card: rgba(255, 255, 255, 0.02);
  --glass: rgba(255, 255, 255, 0.035);
  --maxw: 1100px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(
      800px 400px at 10% 10%,
      rgba(0, 216, 255, 0.03),
      transparent
    ),
    linear-gradient(180deg, var(--bg), #061021 140%);
  color: #e8eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 12px;
  z-index: 80;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px auto;
  padding: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.01),
    transparent
  );
  border-radius: 14px;
  backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #08121a, #0b1626);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.name {
  font-weight: 700;
}

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

nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.18s;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ffb86b);
  color: #07101a;
  font-weight: 700;
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

@media (max-width: 880px) {
  nav .links {
    display: none;
    position: absolute;
    right: 22px;
    top: 64px;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.7);
    padding: 12px;
    border-radius: 10px;
  }
  nav .links.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 64px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(255, 152, 0, 0.09),
    rgba(0, 216, 255, 0.04)
  );
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 13px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.02;
  margin: 0 0 12px;
  font-weight: 800;
}

.lead {
  color: var(--muted);
  max-width: 720px;
  font-size: 16px;
}

.typing {
  color: var(--accent);
  font-weight: 700;
  border-right: 2px solid rgba(255, 255, 255, 0.06);
  padding-right: 6px;
  white-space: nowrap;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 4px solid rgba(255, 255, 255, 0.03);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stat-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 12px;
}

.stat {
  min-width: 64px;
  text-align: center;
}

.stat .num {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-2);
}

.stat .lbl {
  font-size: 12px;
  color: var(--muted);
}

section {
  padding: 72px 0;
}

.section-title {
  font-size: 28px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 28px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
}

/* SKILL BADGE */
.skill-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );
  border: 1px solid rgba(255,255,255,0.05);
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  backdrop-filter: blur(6px);
  transition: all .28s ease;
  cursor: default;
}

/* ICON */
.skill-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* HOVER EFFECT */
.skill-pill:hover {
  transform: translateY(-8px) scale(1.06);
  color: #fff;
  border: 1px solid rgba(0,216,255,.4);
  background: linear-gradient(
    135deg,
    rgba(0,216,255,.15),
    rgba(255,255,255,.05)
  );
  box-shadow:
    0 10px 25px rgba(0,216,255,.15),
    0 0 20px rgba(0,216,255,.25);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.proj-card {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 240px;
}

.proj-thumb {
  flex: 1;
  background-size: cover;
  background-position: center;
  min-height: 140px;
}

.proj-body {
  padding: 14px;
}

.proj-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.proj-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.proj-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-ghost {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  transition: all 0.18s;
}

.btn-ghost:hover {
  color: var(--accent);
  transform: translateY(-4px);
}

.btn-primary {
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), #ffb86b);
  color: #07101a;
  font-weight: 800;
  border: none;
  box-shadow: 0 10px 30px rgba(255, 152, 0, 0.12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: transparent;
  color: var(--muted);
}

.form-card button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, var(--accent), #ffb86b);
  font-weight: 800;
  color: #07101a;
  cursor: pointer;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

@media (max-width: 520px) {
  .container {
    padding: 0 14px;
  }
  .hero-title {
    font-size: 28px;
  }
}
