/* ===== Font Custom ===== */
@font-face {
  font-family: 'SyauqiF01';
  src: url('SyauqiF01.woff') format('woff');
  font-weight: normal;
}
@font-face {
  font-family: 'SyauqiF01';
  src: url('SyauqiF01Bold.woff') format('woff');
  font-weight: bold;
}

/* ===== Reset & Base Style ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SyauqiF01', sans-serif;
}

body.home,
body.profile,
body.artworks,
body.digital {
  background-color: salmon;
  padding-top: 80px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* ===== Navbar ===== */
.navbar {
  width: 100%;
  height: 60px;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.profile-container {
  height: 50px;
  width: 50px;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 40px;
}

.menu-container {
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
}

.menu-text {
  margin-right: 10px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  background: white;
  height: 4px;
  width: 25px;
  margin: 3px 0;
}

/* ===== Menu Popup ===== */
.menu-popup {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

.menu-popup ul {
  list-style: none;
}

.menu-popup ul li {
  padding: 10px 0;
}

.menu-popup ul li a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

/* ===== Judul Halaman ===== */
.page-title {
  background-color: white;
  border: 3px solid black;
  padding: 20px 30px;
  font-weight: bold;
  font-size: 24px;
  width: fit-content;
  margin: 30px auto 30px 30px;
  max-width: 1000px;
}

.page-title h1 {
  font-size: 3rem;
  color: #222;
  margin: 0;
  text-align: left;
}

.page-title p {
  color: #666;
  font-style: italic;
}

/* ===== Blog (Halaman HOME) ===== */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.blog-post {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.2s ease;
}

.blog-post:hover {
  transform: scale(1.02);
}

.blog-post h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #222;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.blog-post .date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 15px;
}

.blog-post p {
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

.read-more {
  color: #fac472;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

.read-more:hover {
  text-decoration: underline;
  color: #f7b84e;
  cursor: pointer;
}

.blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* ===== Responsive Layout ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 10px;
  }

  .profile-container {
    height: 40px;
    width: 40px;
  }

  .logo img {
    height: 60px;
  }

  .hamburger span {
    width: 20px;
  }

  .page-title {
    font-size: 20px;
    padding: 8px 16px;
  }

  .content-container h2 {
    font-size: 24px;
  }

  .content-container p,
  .content-container ul {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .blog-container {
    padding: 15px;
  }

  .blog-post {
    padding: 20px;
  }
}

/* ===== About Me Section ===== */
.about-me {
  padding: 50px 20px;
  background-color: #fefefe;
  color: #333;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, SyauqiF01;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.about-photo {
  flex: 1 1 300px;
  max-width: 300px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 2 1 600px;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ===== Social Links ===== */
.social-links {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.social-links li {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.social-links li span {
  font-size: 20px;
  margin-right: 10px;
  min-width: 24px;
}

.social-links a {
  color: #007acc;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.social-links a:hover {
  color: #ff6f61;
  text-decoration: underline;
}

/* ===== Konten Umum ===== */
.main-content {
  padding: 50px 20px;
  background-color: #fff;
  color: #333;
  font-family: 'SyauqiF01', sans-serif;
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.content-container h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
  font-weight: bold;
}

.content-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.content-container ul {
  font-size: 18px;
  margin-left: 20px;
  list-style-type: disc;
  padding-left: 20px;
  color: #444;
}

.content-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Efek Hover Garis Merah untuk Link ===== */
.voret-link {
  position: relative;
  display: inline-block;
  color: black;
  text-decoration: none;
  font-weight: bold;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.voret-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: red;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.voret-link:hover::after {
  transform: scaleX(1);
}

/* ===== Efek Hover untuk h2 di Blog ===== */
.blog-post h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: red;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.blog-post h2:hover::after {
  transform: scaleX(1);
}

/* ===== Efek Underline Salmon Saat Diklik ===== */
a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: #fa8072;
  transition: width 0.3s ease;
}

a.clicked-effect::after {
  width: 100%;
}

a.clicked-effect {
  text-decoration: none !important;
}