:root {
  --bg: #050914;
  --bg-raised: #0b1425;
  --border: #1b3558;
  --text: #e8f3ff;
  --text-muted: #91a9c5;
  --accent: #55b8ff;
  --accent-soft: rgba(46, 151, 255, 0.2);
  --font-display: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1px 1px at 8% 18%, #b9ddff 99%, transparent),
    radial-gradient(1px 1px at 76% 12%, #b9ddff 99%, transparent),
    radial-gradient(1.5px 1.5px at 91% 68%, #b9ddff 99%, transparent),
    radial-gradient(1px 1px at 24% 82%, #b9ddff 99%, transparent),
    radial-gradient(1px 1px at 48% 44%, #b9ddff 99%, transparent),
    radial-gradient(ellipse at 50% 45%, #0b1b34 0%, var(--bg) 68%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Navbar */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 9, 20, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-soft);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.nav-link {
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.socials {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.socials a:hover {
  color: var(--accent);
}

/* Sections */
.content-section {
  min-height: calc(100vh - 73px);
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.container {
  max-width: 720px;
  margin: 64px auto;
  width: 100%;
}

.eyebrow-plain {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 12px;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  padding: 64px 0;
}

.hero-text {
  max-width: 480px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
  max-width: 42ch;
}

/* Skills */
.skills {
  margin: 0 0 32px;
}

.skills-title {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

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

.skill-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.skill-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card span {
  color: var(--text);
}

.skill-card strong {
  float: right;
  color: var(--text-muted);
  font-weight: 500;
}

.skill-bar {
  clear: both;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.skill-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.8s ease;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--bg);
  background: var(--accent);
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-soft);
}

.slide-navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.slide-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.slide-button.next {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--accent-soft);
}

.slide-button.next:hover {
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-soft);
}

.slide-button.is-disabled {
  color: var(--text-muted);
  opacity: 0.5;
}

.hero-image {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #368fe0;
  background: radial-gradient(circle at 50% 40%, #17365a, #07101f 70%);
  box-shadow: 0 0 0 10px rgba(39, 132, 220, 0.08), 0 0 45px rgba(46, 151, 255, 0.25);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -17px;
  border: 1px dashed rgba(85, 184, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-image.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image.no-photo img {
  display: none;
}

.hero-image.no-photo::after {
  content: "ikhsan";
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Section headings */
h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 0 40px;
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 10px;
  padding: 24px;
  box-shadow: inset 0 1px rgba(85, 184, 255, 0.08), 0 12px 36px rgba(0, 0, 0, 0.18);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.project-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.contact-details strong {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 8px;
}

.contact-details a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 720px) {
  nav {
    flex-wrap: wrap;
    padding: 16px 24px;
    gap: 12px;
  }

  .content-section {
    padding: 0 24px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 0;
  }

  .hero-text {
    max-width: 100%;
  }

  .intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    width: 180px;
    height: 180px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary {
    transition: none;
  }

  .skill-card,
  .skill-bar i {
    transition: none;
  }
}
