/* ============================================================
   home.css — Khusus styling untuk section #home
   ============================================================ */

.home {
  color: #001f3f;
  padding-top: 50px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: 80px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home .content {
  flex: 1;
  padding-left: 2rem;
}

.home h1 {
  font-size: 2.5rem;
  color: #001f3f;
  margin-bottom: 0.5rem;
}

.home h1 span {
  color: #0074d9;
}

.home p {
  font-size: 1.1rem;
  color: #333;
  max-width: 600px;
  margin: 1rem 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.home .btn-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.home .btn-group a {
  padding: 10px 16px;
  border-radius: 6px;
  background: #001f3f;
  color: #ffffff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.home .btn-group a:hover {
  background: #0074d9;
}

/* ── Quick Stats ─────────────────────────────────────────── */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quick-stats span {
  background: #001f3f;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Profile Picture ─────────────────────────────────────── */
.home .profile-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: url('../css/ppku.webp') no-repeat center center / cover;
  border: 6px solid #0074d9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* Transisi untuk rotasi dan efek lainnya */
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease;
}

.home .profile-pic:hover {
  /* Rotasi 3 kali putaran (1080deg) agar tidak berlebihan seperti 100000deg */
  transform: scale(1.08) rotate(100000deg);
  box-shadow: 0 12px 35px rgba(0, 116, 217, 0.45);
  
  /* Menjalankan animasi warna border */
  animation: borderCycle 1.2s infinite; 
}

/* Definisi urutan warna yang terbagi rata */
@keyframes borderCycle {
  0% {
    border-color: #0074d9; /* Warna awal (Biru) */
  }
  33% {
    border-color: #2ecc40; /* Warna kedua (Hijau) */
  }
  66% {
    border-color: #fe8903; /* Warna ketiga (Oranye) */
  }
  100% {
    border-color: #ff0909; /* Warna keempat (Merah) */
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

#about {
  padding: 80px 20px;
  box-sizing: border-box;
}

/* Dipakai di #about dan #portfolio sebagai wrapper konten */
.section-container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.section-title {
  font-size: 2.2rem;
  text-align: center;
  color: #0074d9;
  margin-bottom: 2rem;
}
.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ── Layout Utama ────────────────────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

/* ── Teks Kiri ───────────────────────────────────────────── */
.about-text h3 {
  font-size: 1.6rem;
  color: #0074d9;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ── Tombol CTA ──────────────────────────────────────────── */
.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: #0074d9;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 116, 217, 0.25);
}

.btn-primary:hover {
  background: #005fa3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 116, 217, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: #001f3f;
  border: 2px solid #001f3f;
}

.btn-secondary:hover {
  background: #001f3f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 31, 63, 0.2);
}

/* ── Timeline Kanan ──────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

/* Garis vertikal */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #0074d9, #2ecc40);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 1.4rem 1.5rem;
  background: #ffffff;
  border: 1px solid #ccdff0;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 31, 63, 0.06);
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Titik bulat di garis */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0074d9;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #0074d9;
}

.timeline-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(0, 116, 217, 0.12);
  border-color: #0074d9;
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: #0074d9;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 4px;
  text-transform: capitalize;
}

.timeline-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* ── Animasi Slide ───────────────────────────────────────── */
.animate-slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-in-left.animate-visible,
.animate-slide-in-right.animate-visible {
  opacity: 1;
  transform: translateX(0);
}
