h1, h2, p, label, a, button, span {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; 
}

/** Responsive Design **/
/* Active Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to right, #f8f9fa, #7f8bea);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #73279a;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 2px;
  background-color: #000000;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Opening Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fadeIn {
  animation: fadeIn 2.5s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.animate-slideInLeft {
  animation: slideInLeft 2s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.animate-slideInRight {
  animation: slideInRight 2s ease-out forwards;
}

/* Space Background */
@keyframes moveStars {
  from { transform: translate(0, 0); }
  to { transform: translate(-500px, -500px); }
}

.home-section, .project-section, .contact-section {
  /* height: 100vh; */
  background: radial-gradient(circle at top, #1a1a2e, #000);
  color: white;
  position: relative;
  overflow: hidden;
}

.home-section::before, .project-section::before, .contact-section::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: transparent url("https://www.transparenttextures.com/patterns/stardust.png") repeat;
  animation: moveStars 60s linear infinite;
}

/* Tab Design */
@media (max-width: 1023px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(to right, #f8f9fa, #7f8bea);
    width: 100%;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-item {
    padding-left: 45px;
  }

  .nav-container {
    margin: 0 auto;
    padding: 0 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .social-links {
    font-size: medium;
  }
}

/* Mobile Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .nav-item {
    padding-left: 35px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(to right, #f8f9fa, #7f8bea);
    width: 100%;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-links {
    font-size: medium;
  }

  .contact-content {
    grid-template-columns: 0fr;
    gap: 2rem;
  }
}

#scrollContainer {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.card {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

/* Hilangkan scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Default Background */
.aboutme-section, .certificates-section {
  background: radial-gradient(circle at top, #c4c4ea, #ffffff);
  color: black;
}

#home,
#aboutme,
#projects,
#certificates {
  scroll-margin-top: 30px; 
}

/* Welcome message */ 
.welcome-message { 
    letter-spacing: 1px;
} 

.welcome-message h1 { 
    font-size: large; 
    color: #f9d371;
    font-weight: 600; 
} 

.welcome-message p { 
    font-size: small; 
    font-weight: 500; 
    color: rgb(255, 245, 227);
} 

/* Introduction Text */ 
.introduction { 
    letter-spacing: 1px; 
} 

.btn-p {
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #a5b4fc;
    border-radius: 50px;
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-p:hover {
    background: #a5b4fc;
    color: #000;
}

.btn-cv {
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #a5b4fc;
    border-radius: 50px;
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-cv:hover {
    background: #a8fca5;
    color: #000;
}

/* Project Section  */
.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background-color: #eaeeff;
  color: #666666;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
.footer {
    background: #2d367a;
    color: #ffffff;
    padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: #e7e7e7;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

.nav-footer:hover {
    color: #cdd5ff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

