/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f9fbfd;
  color: #1e2a47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #598bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #6b49ff;
  outline: none;
}

/* Header / Hero */
header {
  background: linear-gradient(135deg, #cce7ff 0%, #f0faff 100%);
  padding: 60px 20px 80px;
  text-align: center;
  box-shadow: inset 0 -10px 30px -15px rgba(110, 166, 245, 0.986);
  position: relative;
}

header .profile-pic {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #3078ff;
  box-shadow: 0 0 20px rgba(56, 69, 252, 0.596);
  margin: 0 auto 24px;
}

header h1 {
  font-size: 2.75rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: #0d1d3a;
}

header p {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  margin-bottom: 15px;
  color: #3a4d7c;
}

/* Command Block */
.about-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.command {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.command:hover {
  transform: scale(1.05);
}

/* Responsive Command Images for Mobile */
@media (max-width: 600px) {
  .command {
    max-width: 120px; /* Ukuran lebih kecil di HP */
  }
}

@media (max-width: 360px) {
  .command {
    max-width: 90px; /* Ukuran lebih kecil di layar sangat kecil */
  }
}

/* Minecraft Command Text Style */
.about span {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem; /* Ukuran lebih kecil */
  color: #fff;
  background-color: #474747;
  padding: 6px 10px;
  border-radius: 4px;
  line-height: 1.4;
  box-shadow: 0 0 6px rgb(182, 176, 176);
  text-shadow: 0.5px 0.5px 0 #000;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Minecraft Character */
.scroll {
    width: 100%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}

.scroll {
    scroll-behavior: smooth;
}

.scroll::-webkit-scrollbar {
    display: none;
}

.example {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden; /* important to keep image inside rounded corners */
    scroll-snap-align: center;
    background-color: antiquewhite;
}

.example img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes image fill box nicely */
    display: block;
}

/* Main Content */
main {
  max-width: 900px;
  background: white;
  margin: -80px auto 80px;
  padding: 40px 30px 60px;
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(30, 96, 255, 0.12);
  position: relative;
  z-index: 1;
}

section {
  margin-bottom: 48px;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 3px solid #cce7ff;
  padding-bottom: 8px;
  color: #1e2a47;
}

.about p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #3a4d7c;
  margin: 0;
}

/* Footer */
footer {
  background-color: #1f2937;
  color: #fff;
  padding: 30px 20px 15px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* RYZCLE */
.footer-content-rz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
}

.nav-ryzcle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.logoR {
  width: 150px;
  height: 100px;
  object-fit: contain;
}
/* END */

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #38bdf8;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;

  /* Transition untuk hover smooth */
  transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-icons a {
  font-size: 26px;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #38bdf8;
  transform: scale(1.2);
}

.footer-divider {
  width: 80%;
  height: 1px;
  background-color: #c2c2c2;
}

footer p {
  font-size: 14px;
  color: #ffffff;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .nav-links {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .social-icons {
    justify-content: center;
  }
}
/* End .Footer*/

/*Responsive Code*/
@media (max-width: 600px) {
  .profile-pic {
    width: 100px;
  }
}
@media (max-width: 360px) {
  .profile-pic {
    width: 80px;
  }
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 40px 20px 60px;
  }
  header h1 {
    font-size: 2rem;
  }
  header p {
    font-size: 1rem;
  }
  nav a {
    margin: 0 12px;
    font-size: 0.875rem;
  }
  main {
    margin: -60px 15px 60px;
    padding: 30px 20px 40px;
  }
  .project-card {
    padding: 20px;
  }
}