:root {
  --primary-color: #1b213b;
  --secondary-color: #76b8e8;
  --text-color: #f3f6fa;
  --accent-color: #7aa1bc;
  --gradient-start: #4c93d3;
  --gradient-end: #482cbf;
  --card-bg: #242a4a;
  --footer-bg: #131324;
}

body {
  color: var(--text-color);
  background: var(--primary-color);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

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

/* Navbar styles */
.navbar {
  padding: 1rem 2rem;
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(27, 33, 59, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: var(--text-color);
  margin: 0 10px;
  position: relative;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

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

.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
}

/* Button styles */
.btn-gradient {
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--gradient-end),
    var(--gradient-start)
  );
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 5px 15px rgba(76, 147, 211, 0.4);
}

.btn-gradient:hover::before {
  opacity: 1;
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1542831371-29b0f74f9713?q=80&w=2070")
    center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1:nth-child(1) {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 0;
}

#typing {
  color: var(--secondary-color);
  border-right: 3px solid var(--secondary-color);
  padding-right: 5px;
}

.hero-content {
  max-width: 700px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* About me section */
.about-me {
  background-color: rgba(36, 42, 74, 0.5);
  padding: 6rem 0;
}

.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.profile-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

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

.blue-frame {
  position: absolute;
  top: 10px;
  left: -34px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 10px solid var(--secondary-color);
  z-index: -1;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover .blue-frame {
  transform: translate(-5px, -5px);
  border-color: #3bafda;
}

.about-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 0.5rem;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
}

.about-content p {
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Portfolio section */
.portfolio {
  padding: 6rem 0;
  background-color: var(--primary-color);
}

.portfolio h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.portfolio h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
}

.portfolio .nav-tabs {
  border-bottom: none;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.portfolio .nav-tabs .nav-link {
  color: var(--text-color);
  border: none;
  padding: 0.6rem 1.8rem;
  margin: 0.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.portfolio .nav-tabs .nav-link.active {
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: white;
  box-shadow: 0 5px 15px rgba(76, 147, 211, 0.3);
}

.portfolio .nav-tabs .nav-link:hover:not(.active) {
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.1);
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.img-container {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  border-radius: 10px;
  aspect-ratio: 16/9;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-container:hover img {
  transform: scale(1.1);
}

.img-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-container:hover .overlay {
  opacity: 1;
}

.btn-visit {
  color: white;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-visit:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(76, 147, 211, 0.4);
  color: white;
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-subtitle {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.project-description {
  line-height: 1.6;
  color: rgba(243, 246, 250, 0.8);
}

/* API Projects */
.api-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 1.8rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--secondary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.api-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.api-card-title {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.api-card-description {
  line-height: 1.6;
  color: rgba(243, 246, 250, 0.8);
}

/* Mobile App Card */
.mobile-app-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.mobile-app-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  transition: transform 0.5s ease;
}

.mobile-app-card:hover .mobile-app-img {
  transform: scale(1.05);
}

.mobile-app-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.mobile-app-title {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.mobile-app-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-app-desc {
  line-height: 1.6;
  color: rgba(243, 246, 250, 0.8);
  margin-bottom: 1.5rem;
}

.mobile-app-badge {
  display: inline-block;
  background-color: rgba(118, 184, 232, 0.1);
  color: var(--secondary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.mobile-app-links {
  margin-top: auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  margin-right: 0.8rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.store-badge i {
  margin-right: 0.4rem;
  font-size: 1.2rem;
}

.store-badge:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

/* Skills section */
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Skills Section - Fixed Database Layout</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        :root {
  --primary-color: #1b213b;
  --secondary-color: #76b8e8;
  --text-color: #f3f6fa;
  --accent-color: #7aa1bc;
  --gradient-start: #4c93d3;
  --gradient-end: #482cbf;
  --card-bg: #242a4a;
  --footer-bg: #131324;
}

body {
  color: var(--text-color);
  background: var(--primary-color);
  font-family: "Poppins", sans-serif;
  padding: 2rem 0;
}

/* Skills section */
.skills {
  padding: 6rem 0;
  background-color: rgba(36, 42, 74, 0.5);
}

.skills h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.skills h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
}

.skills h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: white;
  font-weight: 600;
}

.skill-category {
  margin-bottom: 4rem;
  position: relative;
}

.skill-category::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(118, 184, 232, 0.3),
    transparent
  );
}

.skill-category:last-child::after {
  display: none;
}

/* Flex container untuk skills */
.skills-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.skill-item-wrapper {
  flex: 0 0 auto;
  width: calc(25% - 1.125rem); /* Default: 4 items per row */
  max-width: 200px;
  min-width: 150px;
}

/* Khusus untuk 5 items */
.skills-flex-container.five-items .skill-item-wrapper {
  width: calc(20% - 1.2rem); /* 5 items per row */
  max-width: 180px;
  min-width: 140px;
}

.skill-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.skill-item:hover img {
  transform: scale(1.1);
}

.skill-item p {
  font-weight: 500;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  padding: 2rem 0;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
}

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

.social-links {
  display: flex;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 50%;
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-5px);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Scroll up button */
.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -20%;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.4s ease;
  opacity: 0;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.scrollup__icon {
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.4s ease;
}

.show-scroll {
  opacity: 1;
  bottom: 2rem;
}

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

.scrollup:hover .scrollup__icon {
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 1s ease forwards;
}

/* Responsive design */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 1rem;
  }

  .navbar-nav .nav-link {
    font-size: 0.9rem;
    margin: 0 5px;
  }

  .about-content h2,
  .portfolio h2,
  .skills h2 {
    font-size: 2.2rem;
  }

  .skills-flex-container.five-items .skill-item-wrapper {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .about-me,
  .portfolio,
  .skills {
    padding: 4rem 0;
  }

  .profile-container {
    flex-direction: column;
  }

  .profile-card {
    margin-bottom: 2rem;
    width: 70%;
    max-width: 300px;
  }

  .blue-frame {
    display: none;
  }

  .about-content h2,
  .portfolio h2,
  .skills h2 {
    font-size: 2rem;
    text-align: center;
  }

  .about-content h2::after,
  .portfolio h2::after,
  .skills h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-content {
    flex-direction: column;
  }

  .copyright {
    margin-bottom: 1rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .social-link {
    margin: 0 0.5rem;
  }

  .skills-flex-container.five-items {
    justify-content: space-evenly;
  }
  .skill-item-wrapper {
    width: calc(50% - 0.75rem);
    max-width: 200px;
  }

  .skills-flex-container.five-items .skill-item-wrapper {
    width: calc(50% - 0.75rem);
    max-width: 200px;
  }

  .skills-flex-container:not(.five-items) .skill-item-wrapper {
    width: calc(25% - 1.125rem);
    max-width: 180px;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h1:nth-child(1) {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-gradient {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }

  .profile-card {
    width: 85%;
  }

  .about-content h2,
  .portfolio h2,
  .skills h2 {
    font-size: 1.8rem;
  }

  .portfolio .nav-tabs .nav-link {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-subtitle {
    font-size: 1.5rem;
  }

  .skills h3 {
    font-size: 1.5rem;
  }

  .skill-item img {
    width: 60px;
    height: 60px;
  }

  .skill-item {
    padding: 1rem;
  }

  .scrollup {
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}
