*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f7fa;
}

/* ===== HEADER / NAVBAR ===== */
header.navbar-container {
  width: 100%;
  max-width: 1200px;
  padding-block: 1rem;
  margin-inline: auto;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  z-index: 9999;
}

header.navbar-container .nav-list ul {
  padding-left: 0;
  display: flex;
  justify-content: center;
  gap: 2rem 0.5rem;
  flex-wrap: wrap;
}

header.navbar-container .nav-list li {
  list-style-type: none;
}

header.navbar-container .nav-list li a {
  padding: 0.5rem 1.5rem;
  border-radius: 999px;

  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: black;

  transition: all 0.2s ease-in-out;
}

header.navbar-container .nav-list li:hover a {
  background-color: #425c77;
  color: white;
}

header.navbar-container .nav-list li a.nav-dicoding {
  background-color: #2d3e50;
  color: white;
  font-weight: 700;
}

header.navbar-container .nav-list li:hover a.nav-dicoding {
  background-color: #425c77;
}

/* ===== MAIN ===== */
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* ===== HERO CONTENT ===== */
main .content {
  display: flex;
  align-items: center;
}

main .content .content-description {
  flex: 1 1;
}

main .content .content-description .title {
  margin-block: 1rem;
  font-size: 3.5rem;
}

main .content .content-description p {
  font-size: 1.2rem;
  line-height: 1.7rem;
}

main .content .content-description button {
  padding: 0.8rem 2.5rem;
  border: 3px solid transparent;
  border-radius: 999px;
  margin-block-start: 1rem;

  background-color: #2d3e50;

  font-family: 'Quicksand', sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 700;
  color: white;

  cursor: pointer;
  transition: all 0.15s ease-in;
}

main .content .content-description button:hover {
  border: 3px solid #2d3e50;
  background-color: transparent;
  color: #2d3e50;
}

main .content .content-image {
  flex: 1;
  display: flex;
}

main .content .content-image img {
  width: 300px;
  min-width: 250px;
  margin: auto;
}

/* ===== ARTICLES SECTION ===== */
.articles-section {
  width: 100%;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3e50;
  margin-block-end: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: #425c77;
  border-radius: 2px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-tag {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background-color: #e8eef4;
  color: #2d3e50;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.article-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2b3c;
  margin: 0;
  line-height: 1.4;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #5a6a7a;
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8a9ab0;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-link {
  text-decoration: none;
  color: #425c77;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.article-link:hover {
  color: #2d3e50;
}

/* ===== SIDEBAR ASIDE ===== */
.sidebar-aside {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  width: 100%;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.aside-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.aside-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2d3e50;
}

.aside-profile h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3e50;
}

.aside-profile p {
  margin: 0;
  font-size: 0.85rem;
  color: #6a7e90;
}

.aside-skills h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3e50;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aside-skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside-skills ul li {
  font-size: 0.9rem;
  color: #3a4e60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aside-skills ul li i {
  color: #425c77;
  width: 16px;
}

/* ===== SOCIAL MEDIA ASIDE (fixed right) ===== */
.social-aside {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
}

.social-aside .social-media {
  height: 100%;
  display: flex;
}

.social-aside .social-media ul {
  padding: 1.5rem 1rem;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  margin: auto;
  background-color: #2d3e50;

  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.social-aside .social-media li a {
  text-decoration: none;
  font-size: 1.5rem;
  color: white;
  transition: all 0.1s ease-in-out;
}

.social-aside .social-media li a:hover {
  color: #89b0d9;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #2d3e50;
  color: white;
  padding: 2rem 4rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #89b0d9;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #c5d5e8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.8rem;
  color: #7a95ae;
  margin: 0;
}
/* ===== CONTACT TABS ===== */
.aside-contact {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  min-width: 220px;
  flex: 1;
}

.aside-contact h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d3e50;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  border: 2px solid #2d3e50;
  border-radius: 999px;
  background: transparent;
  color: #2d3e50;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.contact-tab:hover {
  background-color: #e8eef4;
}

.contact-tab.active {
  background-color: #2d3e50;
  color: white;
}

.contact-tab-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-tab-content.hidden {
  display: none;
}

.contact-label {
  margin: 0;
  font-size: 0.8rem;
  color: #8a9ab0;
}

.contact-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d3e50;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s ease;
}

.contact-value:hover {
  color: #425c77;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background-color: #2d3e50;
  color: white;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.contact-btn:hover {
  background-color: #425c77;
}

.contact-btn-wa {
  background-color: #25d366;
}

.contact-btn-wa:hover {
  background-color: #1da851;
}

/* ===== DARK MODE TOGGLE BUTTON ===== */
.dark-mode-toggle {
  background: transparent;
  border: 2px solid #2d3e50;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: #2d3e50;
  margin-left: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  background-color: #2d3e50;
  color: white;
}

/* ===== DARK MODE THEME ===== */
body.dark {
  background-color: #0f1923;
  color: #d0dce8;
}

body.dark header.navbar-container {
  background-color: #0f1923;
}

body.dark header.navbar-container .nav-list li a {
  color: #d0dce8;
}

body.dark header.navbar-container .nav-list li:hover a {
  background-color: #2d5070;
  color: white;
}

body.dark header.navbar-container .nav-list li a.nav-dicoding {
  background-color: #1a3a52;
  color: white;
}

body.dark header.navbar-container .nav-list li:hover a.nav-dicoding {
  background-color: #2d5070;
}

body.dark .dark-mode-toggle {
  border-color: #89b0d9;
  color: #89b0d9;
}

body.dark .dark-mode-toggle:hover {
  background-color: #89b0d9;
  color: #0f1923;
}

body.dark .article-card {
  background-color: #1a2840;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark .article-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark .article-tag {
  background-color: #1e3a52;
  color: #89b0d9;
}

body.dark .article-title {
  color: #d0dce8;
}

body.dark .article-excerpt {
  color: #8a9ab0;
}

body.dark .article-meta {
  color: #5a7a96;
}

body.dark .article-link {
  color: #89b0d9;
}

body.dark .article-link:hover {
  color: #c5d5e8;
}

body.dark .section-title {
  color: #89b0d9;
}

body.dark .section-title::after {
  background-color: #2d5070;
}

body.dark .sidebar-aside {
  background-color: #1a2840;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark .aside-profile h3 {
  color: #89b0d9;
}

body.dark .aside-profile p {
  color: #5a7a96;
}

body.dark .aside-skills h4 {
  color: #89b0d9;
}

body.dark .aside-skills ul li {
  color: #b0c8e0;
}

body.dark .aside-skills ul li i {
  color: #89b0d9;
}

body.dark .aside-avatar {
  border-color: #89b0d9;
}

body.dark .aside-contact {
  background-color: #1a2840;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.dark .aside-contact h4 {
  color: #89b0d9;
}

body.dark .contact-tab {
  border-color: #89b0d9;
  color: #89b0d9;
}

body.dark .contact-tab:hover {
  background-color: #1e3a52;
}

body.dark .contact-tab.active {
  background-color: #2d5070;
  color: white;
  border-color: #2d5070;
}

body.dark .contact-label {
  color: #5a7a96;
}

body.dark .contact-value {
  color: #89b0d9;
}

body.dark .contact-btn {
  background-color: #2d5070;
}

body.dark .contact-btn:hover {
  background-color: #3a6a8a;
}

body.dark .social-aside .social-media ul {
  background-color: #1a2840;
}

body.dark .site-footer {
  background-color: #0a1420;
}

body.dark main .content .content-description button {
  background-color: #2d5070;
}

body.dark main .content .content-description button:hover {
  border-color: #89b0d9;
  color: #89b0d9;
  background-color: transparent;
}