
html {
  scroll-behavior: smooth;
}

body {
  background-color: #1a202c; 
  color: #e2e8f0; 
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1280px; 
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem; 
  padding-right: 1.5rem; 
}

.hidden{
  display: none;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: #2d3748; 
  padding: 1rem; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); 
}

#main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.25rem; 
  color: #fff;
}

#hamburger-button {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: #e2e8f0; 
  padding: 0;
}

#hamburger-button .icon {
  width: 1.5rem; 
  height: 1.5rem; 
}

#desktop-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

#desktop-menu li {
  display: inline-block;
  margin-left: 2rem; 
}

#desktop-menu a {
  color: #e2e8f0; 
  text-decoration: none;
  transition: color 0.3s ease;
}

#desktop-menu a:hover {
  color: #60a5fa; 
}

.mobile-menu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #2d3748; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-1rem); 
  pointer-events: none;
  padding: 0.5rem 0;
}

.mobile-menu-container.menu-terbuka {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 1rem; 
  font-size: 0.875rem; 
  text-decoration: none;
  color: #e2e8f0; 
}

.mobile-nav-link:hover {
  background-color: #4a5568; 
}

@media (min-width: 768px) {
  #hamburger-button {
    display: none;
  }
  #desktop-menu {
    display: flex;
  }
}


.section-container {
  padding-top: 6rem; 
  padding-bottom: 4rem;
  width: 100%;
}

.content-box {
  background-color: #2d3748; 
  border-radius: 0.5rem; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 2rem; 
  margin: auto;
  margin-top: 20px;
  width: 80%;
}

.section-title {
  font-size: 1.875rem; 
  font-weight: bold;
  margin-bottom: 1.5rem; 
  text-align: center;
  color: #fff;
}


.about-flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-image-wrapper {
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.profile-photo-circle {
  width: 12rem; 
  height: 12rem; 
  background-color: #4a5568; 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text-wrapper {
  width: 100%;
  padding: 1rem;
}

.about-text {
  margin-bottom: 1rem;
  color: #cbd5e0; 
}

.highlight {
  color: #38bdf8; 
}

@media (min-width: 768px) {
  .about-flex-container {
    flex-direction: row;
  }
  .about-image-wrapper {
    width: 33.333333%; 
  }
  .about-text-wrapper {
    width: 66.666667%; 
  }
}


.skills-wrapper {
  background-color: #1a202c; 
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem; 
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem; 
  background-color: #2d3748; 
  border-radius: 0.5rem; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 120px;
  transition: height 0.3s ease-in-out;
  position: relative;
  justify-content: flex-start;
  padding-top: 16px;
  padding-bottom: 0;
}

.skill-item:hover {
  height: 180px;
  padding-bottom: 16px;
}

.skill-icon-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.skill-icon-wrapper .progress-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle .circle-bg {
  stroke-width: 8px;
  stroke: #4a5568; 
  fill: transparent;
}

.progress-circle .circle-progress {
  stroke-width: 8px;
  stroke: #fff;
  stroke-dasharray: 251.2; 
  fill: transparent;
  transition: stroke-dashoffset 0.5s ease;
}

.skill-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem; 
  height: 4rem; 
  object-fit: contain;
}

.laravel-logo {
  width: 3rem; 
  height: 3rem; 
}

.visual-studio-logo {
  width: 3rem;
  height: 3rem;
}

.google-workspace-logo, .mysql-logo, .postgresql-logo, .microsoft-office-logo {
  width: 3rem;
  height: 3rem;
}

.skill-item .skill-info {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  position: absolute;
  bottom: 16px;
  width: 100%;
  text-align: center;
}

.skill-item:hover .skill-info {
  opacity: 1;
  transform: translateY(0);
}

.skill-name {
  font-size: 1.125rem; 
  font-weight: 600; 
  color: #fff;
  display: block;
}

.skill-level {
  font-size: 0.875rem; 
  color: #a0aec0; 
  display: block;
}


.projects-wrapper {
  background-color: #1a202c; 
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem; 
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  background-color: #2d3748; 
  border-radius: 0.5rem; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-image {
  width: 100%;
  height: 12rem; 
  object-fit: cover;
}

.project-content {
  padding: 1.5rem; 
}

.project-title {
  font-size: 1.5rem; 
  font-weight: bold;
  margin-bottom: 0.5rem; 
  color: #fff;
}

.project-description {
  color: #cbd5e0; 
  margin-bottom: 1rem; 
}

.project-tags {
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem; 
  font-weight: 600; 
  padding: 0.25rem 0.625rem; 
  border-radius: 9999px; 
  margin-right: 0.5rem; 
  display: inline-block;
}

.tag-c-sharp {
  background-color: #9b6c16; 
  color: #f6e09c; 
}

.tag-html, .tag-python {
  background-color: #2f855a; 
  color: #9ae6b4; 
}

.tag-css, .tag-javascript, .tag-python {
  background-color: #c53030; 
  color: #fbb6ce; 
}

.tag-javascript, .tag-css {
  background-color: #1a718c; 
  color: #81e6d9; 
}

.project-links {
  display: flex;
  gap: 1rem; 
}

.button {
  background-color: #4a5568; 
  color: #fff;
  padding: 0.5rem 1rem; 
  border-radius: 0.375rem; 
  text-decoration: none;
  transition: background-color 0.3s;
  text-align: center;
}

.button:hover {
  background-color: #2d3748; 
}

.button-primary {
  background-color: #2b6cb0; 
}

.button-primary:hover {
  background-color: #2c5282; 
}

#kontak {
  background-color: #0b1016; 
  color: #fff;
  padding-top: 2.5rem; 
  padding-bottom: 1.25rem; 
}

.contact-header {
  text-align: center;
}

.contact-title {
  font-size: 1.875rem; 
  font-weight: bold;
  color: #fff;
}

.social-links-container {
  margin-top: 1.5rem; 
  display: flex;
  justify-content: center;
  gap: 1.5rem; 
}

@media (min-width: 768px) {
  .social-links-container {
    gap: 2rem; 
  }
}

.social-link {
  color: #a0aec0; 
  transition: color 0.3s;
}

.social-link:hover {
  color: #60a5fa; 
}

.social-icon {
  width: 2rem; 
  height: 2rem; 
}

.social-icon.instagram {
  width: 1.75rem; 
  height: 1.75rem; 
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.footer-separator {
  border-color: #4a5568; 
  margin-top: 1.5rem; 
  margin-bottom: 1.5rem;
}

.copyright {
  text-align: center;
  color: #a0aec0; 
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}