/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --surface: #16161f;
  --border: #2a2a3a;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --text: #f0eff8;
  --text-muted: #8b8aa8;
  --badge-lang: #1a1a2e;
  --badge-tech: #0d1b2a;
  --badge-tool: #1a2a1a;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover, nav a.active {
  color: var(--text);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* ===== MAIN LAYOUT ===== */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

#content {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 3rem;
  align-items: center;
}

/* ===== PROFILE IMAGE ===== */
.image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.08); opacity: 0.15; }
}

.image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--surface);
  position: relative;
  z-index: 1;
}

/* ===== DESCRIPTION ===== */
.deskripsi {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
}

.cursor {
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.deskripsi h2 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.name-highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role-tag {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
}

.bio strong {
  color: var(--accent2);
}

/* ===== BADGES ===== */
.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.badge.lang {
  background: var(--badge-lang);
  color: #9b8fff;
  border: 1px solid #2d2d50;
}

.badge.tech {
  background: var(--badge-tech);
  color: #5bc8d4;
  border: 1px solid #1a3040;
}

.badge.tool {
  background: var(--badge-tool);
  color: #6dbb8a;
  border: 1px solid #1a3020;
}

/* ===== BUTTONS ===== */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  padding: 0;
}

.btn-primary a {
  display: block;
  padding: 10px 22px;
  color: #fff;
  text-decoration: none;
}

.btn-primary:hover {
  background: #7c75ff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0;
}

.btn-secondary a {
  display: block;
  padding: 10px 22px;
  color: var(--text);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-secondary:hover a {
  color: var(--accent);
}

/* ===== SOCIAL ICONS ===== */
.kontak {
  display: flex;
  align-items: center;
}

.social-icon {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.social-icon a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.08);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .image { justify-content: center; }
  .bio { max-width: 100%; }
  .skills-row { justify-content: center; }
  .button-group { justify-content: center; }

  .kontak { justify-content: center; }
  .social-icon { flex-direction: row; }
  .social-icon a { width: 38px; height: 38px; }
}

@media (max-width: 600px) {
  .deskripsi h2 { font-size: 1.8rem; }
  .navbar-container { padding: 0 1rem; }
  nav ul { gap: 1.2rem; }
}
