/* General Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

body.light {
  background: #fff;
  color: #333;
}

body.dark {
  background: #121212;
  color: #f9f9f9;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.dark header {
  background: #1f1f1f;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-left: auto; /* Agar menu berada di sisi kanan */
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  position: relative;
}

body.dark .nav-links a {
  color: #f9f9f9;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e63946;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  color: #333;
}

body.dark .logo {
  color: #f9f9f9;
}

/* Dark Mode Toggle */
.theme-toggle {
  margin-left: 20px;
  cursor: pointer;
  background: none;
  border: none;
}

.theme-toggle img {
  width: 30px;
  height: 30px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  background: #fff;
  text-align: center;
}

body.dark .hero {
  background: #1f1f1f;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-text h1 span {
  color: #e63946;
}

/* About Section */
.about {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
}

body.dark .about {
  background: #1f1f1f;
}

.about h2 {
  font-size: 2rem;
  color: #333;
}

body.dark .about h2 {
  color: #f9f9f9;
}

.about p {
  max-width: 600px;
  margin: 20px auto;
  color: #555;
}

body.dark .about p {
  color: #ddd;
}
html {
  scroll-behavior: smooth;
}
.about {
  padding: 20px;
}

h3 {
  font-size: 1.8rem;
  margin-top: 20px;
  font-weight: bold;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 20px;
  margin-top: 20px;
}

.skill {
  text-align: center;
  width: 100px;
  height: 100px;
}

.skill img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #f4f4f4;
  padding: 10px;
}

.skill p {
  font-size: 1rem;
  margin-top: 5px;
  color: #555;
}
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200x;
  height: 200px;
  background-color: #f0f0f0; /* Warna latar belakang container */
  border-radius: 50%; /* Membuat container menjadi lingkaran */
  border: 5px solid #333; /* Border berwarna hitam */
  overflow: hidden; /* Menjaga gambar tetap berada dalam lingkaran */
}

.profile-img {
  width: 100%; /* Menyesuaikan lebar gambar dengan ukuran container */
  height: 100%; /* Menyesuaikan tinggi gambar dengan ukuran container */
  object-fit: cover; /* Menjaga proporsi gambar agar tetap terlihat bagus */
}

/* Projects Section */
.projects {
  padding: 50px 20px;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  color: #333;
}

body.dark .projects h2 {
  color: #f9f9f9;
}

.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.project {
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  text-align: center;
  max-width: 300px;
}

body.dark .project {
  background: #2a2a2a;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.project img {
  width: 100%;
  border-radius: 5px;
}

.project h3 {
  margin-top: 10px;
  color: #333;
}

body.dark .project h3 {
  color: #f9f9f9;
}

.project p {
  color: #555;
}

body.dark .project p {
  color: #ddd;
}

/* Footer */
footer {
  text-align: center;
  padding: 10px 0;
  background: #333;
  color: #fff;
}

body.dark footer {
  background: #1f1f1f;
}
/* Contact Info Icons */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px; /* Menambahkan jarak antara tulisan dan ikon */
}

.contact-info a {
  display: inline-block;
  width: 40px;
  height: 40px;
}

.contact-info img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.contact-info a:hover img {
  transform: scale(1.1);
}

/* Optional: Make the icons a bit larger when hovered */
.contact-info a:hover {
  opacity: 0.7;
}
