/* 🪐 RESET DAN UTAMA */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #ffffff;
  --text-color: #222222;
  --nav-bg: #f4f6f9;
  --primary-color: #4f46e5;
  --secondary-color: #10b981;
  --card-bg: #f8fafc;
}

.dark-theme {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --nav-bg: #1e293b;
  --primary-color: #6366f1;
  --secondary-color: #34d399;
  --card-bg: #1e293b;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  line-height: 1.6;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

.text-center { text-align: center; }

/* 🧭 NAVBAR CSS */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--nav-bg);
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 5px 10px;
  transition: 0.2s;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--primary-color);
}

.dark-btn {
  padding: 8px 15px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* 🚀 HERO LAYOUT */
.hero-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.badge {
  display: inline-block;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  max-width: 600px;
  margin: 15px auto 25px auto;
  font-size: 16px;
  opacity: 0.8;
}

/* 🎴 BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin: 5px;
  transition: 0.2s;
}

.btn-primary { background-color: var(--primary-color); color: white; }
.btn-secondary { background-color: transparent; border: 2px solid var(--text-color); color: var(--text-color); }
.btn-primary:hover { transform: translateY(-2px); }

/* 🛠️ SKILLS */
.skills-showcase {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.skill-tag {
  background-color: var(--card-bg);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 👨 ABOUT PAGE LAYOUT */
.about-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.about-image-side, .about-text-side { flex: 1; }

.profile-img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border: 5px solid var(--primary-color);
  display: block;
  margin: auto;
}

.bio-list, .timeline-box {
  margin-top: 15px;
  list-style: none;
}

.bio-list li { margin-bottom: 10px; }

.timeline-box p {
  background-color: var(--card-bg);
  padding: 15px;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 15px;
  border-radius: 0 8px 8px 0;
}

/* 📞 CONTACT PAGE GRID */
.contact-header { text-align: center; margin-bottom: 30px; }
.contact-grid {
  display: flex;
  gap: 30px;
}

.socials-card, .form-card {
  flex: 1;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.social-links-vertical a {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  padding: 12px;
  background-color: rgba(0,0,0,0.02);
  margin-bottom: 10px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.2s;
}

.social-links-vertical a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.styled-form input, .styled-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.btn-block { width: 100%; text-align: center; cursor: pointer; border: none; }

/* 📑 FOOTER & TOP BUTTON */
footer {
  text-align: center;
  padding: 30px;
  background-color: var(--nav-bg);
  margin-top: 50px;
  font-size: 14px;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--secondary-color);
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
}

/* RESPONSIVE UNTUK LAYAR HP 📱 */
@media (max-width: 768px) {
  nav { flex-direction: column; gap: 15px; }
  .about-wrapper, .contact-grid { flex-direction: column; }
  .skills-showcase { flex-direction: column; align-items: center; }
}
/* Layout Khusus Hero Section Beranda */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 60vh;
  margin-top: 20px;
}

.hero-text {
  flex: 1.2;
  text-align: left; /* Teks rata kiri agar lebih rapi berdampingan dengan foto */
}

.hero-image-area {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

/* Bingkai Foto Profil Beranda */
.profile-frame {
  width: 260px;
  height: 260px;
  border-radius: 50%; /* Membuat foto berbentuk lingkaran estetik */
  overflow: hidden;
  border: 5px solid var(--primary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.profile-frame:hover {
  transform: scale(1.05); /* Efek membesar sedikit saat kursor diarahkan ke foto */
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Memastikan foto tidak gepeng */
}

/* Responsive Setup untuk Layar Handphone 📱 */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse; /* Di HP, foto akan berada di atas teks */
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
}