:root {
  --bg-color: #0d1117;
  --text-color: #c9d1d9;
  --secondary-text: #9faab6;
  --card-bg: #161b22;
  --border-color: #30363d;
  --primary: #58a6ff;
  --accent: #235986;
}

/* General Body & Layout */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #121212;
  color: white;
  padding: 0.5rem 2rem;
  border-bottom: 1px solid #333;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 42px;
}
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #24b9fe;
}
.contact-button {
  background: #0099ff;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}
.contact-button:hover {
  background: #00c3ff;
}

@media (min-width: 768px) {
  .main-container {
    grid-template-columns: 1fr 2fr;
  }
}

/* Card Styling */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.card__header {
  position: relative;
  margin-bottom: 1rem;
}

.card__label {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--bg-color);
  padding: 0.3rem 0.8rem;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Profile Card */
.profile-card {
  text-align: center;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
}

.profile-card .card__title {
  font-size: 1.8em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.profile-card .card__description {
  font-style: italic;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

/* Info & Riwayat */
.info h3,
.riwayat h3 {
  color: var(--text-color);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.info ul,
.riwayat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info li,
.riwayat li {
  margin-bottom: 0.7rem;
  color: var(--secondary-text);
}

.riwayat li strong {
  color: var(--text-color);
  font-weight: 600;
}

/* About Me Section */
.cv-main-content-wrapper .card:first-of-type .card__title {
  font-size: 1.8em;
  color: var(--primary);
  margin-bottom: 0.7rem;
}

.cv-main-content-wrapper .card:first-of-type .card__description {
  color: var(--secondary-text);
  text-align: justify;
}

/* Skills Section */
.grid-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-item {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.skill-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1.2em;
}

.skill-item p {
  font-size: 0.9em;
  color: var(--secondary-text);
  margin-bottom: 1rem;
}

.skill-level {
  height: 8px;
  background-color: var(--accent);
  border-radius: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.5s ease-out;
}

/* Level Info */
.level-info {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 1200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.level-info h3 {
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.level-info ul {
  list-style: none;
  padding: 0;
}

.level-info li {
  margin-bottom: 0.5rem;
  color: var(--secondary-text);
}

.level-info li strong {
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--card-bg);
  color: var(--secondary-text);
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Glow Effect */
.card--border-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: radial-gradient(
    var(--glow-radius, 300px) circle at var(--glow-x, 0%) var(--glow-y, 0%),
    rgba(var(--glow-color, 132, 0, 255), var(--glow-intensity, 0.5)) 0%,
    transparent 100%
  );
  opacity: var(--glow-intensity, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.global-spotlight {
  position: fixed;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle at center,
    rgba(var(--glow-color, 132, 0, 255), 0.3) 0%,
    transparent 70%
  );
  width: var(--spotlight-size, 600px);
  height: var(--spotlight-size, 600px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  filter: blur(50px);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  z-index: 10;
}

/* Header Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }

  header nav ul li {
    width: 100%;
  }

  header nav ul li a {
    display: block;
    padding: 0.5rem 0;
  }

  .contact-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
.contact-button {
  display: inline-block;
  background-color: #235986; /* Warna hijau GitHub */
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.contact-button:hover {
  background-color: #1f8bd3; /* Warna hijau yang sedikit lebih terang */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(182, 176, 176, 0.4);
}

.contact-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .contact-button {
    width: 100%;
    text-align: center;
  }
}
