/* General */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  z-index: -1;
}
body {
  background-color: #f0f4f8;
  background-image: radial-gradient(#d0d9e6 1px, transparent 1px);
  background-size: 20px 20px;
}
body::before {
  width: 300px; height: 300px;
  background: #0073e620;
  top: -100px; right: -100px;
}
body::after {
  width: 250px; height: 250px;
  background: #00c6ff20;
  bottom: -80px; left: -80px;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2, h3 {
  font-family: 'Merriweather', serif;
  margin-bottom: 1rem;
}

.highlight { color: #0073e6; }
.tagline { font-size: 1.2rem; color: #555; }

/* Header */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav a {
  margin: 0 0.8rem;
  text-decoration: none;
  color: #0073e6;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover { color: #005bb5; }

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.snap { scroll-snap-align: start; }
html { scroll-snap-type: y mandatory; }

/* Home */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid #0073e6;
  margin-bottom: 1rem;
}

/* Skills */
.skills-container {
  text-align: left;
  max-width: 600px;
  margin: auto;
}
.skill {
  margin: 1rem 0;
}
.skill span {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.bar {
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
}
.bar div {
  height: 12px;
  background: linear-gradient(90deg, #0073e6, #00c6ff);
  transition: width 1s ease;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.card a.download {
  background: #28a745; /* hijau */
}
.card a.download:hover {
  background: #1e7e34;
}
.card a {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: #fff;
  background: #0073e6;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: background 0.3s;
}
.card a:hover { 
  background: #005bb5; }


/* Timeline */
.timeline {
  border-left: 3px solid #0073e6;
  padding-left: 1.5rem;
  text-align: left;
  max-width: 600px;
  margin: auto;
}
.event {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 25px;
}
.event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  background: #0073e6;
  border-radius: 50%;
}

/* Contact */
.social-links {
  list-style: none;
  padding: 0;
}
.social-links li {
  margin: 0.5rem 0;
}
.social-links a {
  color: #0073e6;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}
.social-links a:hover { color: #005bb5; }

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #0073e6;
  color: #fff;
  margin-top: 2rem;
}
