:root {
 
  --bg-primary: #0a1022;
  --bg-secondary: #121a34;
  --accent-primary: #00cc99;
  --accent-secondary: #cd7f32;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #777777;
  
 
  --neon-blue: #00f7ff;
  --neon-green: #39ff14;
  --neon-pink: #ff00ff;
  
 
  --transition-slow: 0.5s;
  --transition-medium: 0.3s;
  --transition-fast: 0.2s;
  
 
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}


body::-webkit-scrollbar {
  width: 0.8rem;
}

body::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

body::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5rem;
}


#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4.2rem;
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1.6rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-medium) ease;
}

a:hover {
  color: var(--accent-primary);
}


.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-header h2 {
  display: inline-block;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.section-header h2::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 0.3rem;
  background: var(--accent-primary);
  bottom: -1rem;
  left: 30%;
  border-radius: 5px;
}

.section-header span {
  color: var(--accent-primary);
}

section {
  padding: 10rem 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

 

.btn-download {
  display: inline-block;
  padding: 1.2rem 2.8rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 5rem;
  margin-top: 2rem;
  transition: all var(--transition-medium) ease;
}

.btn-download:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.btn-primary{
  width: 140px;
  height: auto;
  float: left;
  transition: 0.5s linear;
  position: relative;
  display: block;
  overflow: hidden;
  padding: 15px;
  text-align: center;
  margin: 0 5px;
  background: transparent;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--text-primary);
}

.btn-primary:before,
.btn-secondary:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(100%);
}

.btn-primary:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 4px solid transparent;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(-100%);
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover:before {
  border-color: var(--accent-primary);
  height: 100%;
  transform: translateX(0);
  transition: 0.3s transform linear, 0.3s height linear 0.3s;
}

.btn-primary:hover:after {
  border-color: var(--accent-primary);
  height: 100%;
  transform: translateX(0);
  transition: 0.3s transform linear, 0.3s height linear 0.5s;
}

.btn-secondary {
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  border: 0;
  background-color: transparent;
  box-shadow: rgb(0 0 0 / 5%) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  gap: 10px; /* Jarak antara ikon dan teks */
}

.btn-secondary i {
  font-size: 18px;
  color: hsl(168, 100%, 40%);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  letter-spacing: 3px;
  background-color: hsl(168, 100%, 40%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(0, 204, 153) 0px 7px 29px 0px;
}

.btn-secondary:hover i {
  color: hsl(0, 0%, 100%);
}

.btn-secondary:active {
  letter-spacing: 3px;
  background-color: hsl(168, 100%, 40%);
  color: hsl(0, 0%, 100%);
  box-shadow: rgb(0, 204, 153) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}


.gradient-bg {
  background: linear-gradient(45deg, var(--bg-primary), var(--bg-secondary));
}


.card {
  background: var(--bg-secondary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-medium) ease;
}

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


.glitch {
  position: relative;
  color: var(--text-primary);
  text-shadow: 0.05em 0 0 var(--neon-blue), -0.025em -0.05em 0 var(--neon-green),
               0.025em 0.05em 0 var(--neon-pink);
  animation: glitch 2s infinite;
}

.glitch span {
  position: absolute;
  top: 0;
  left: 0;
}

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 var(--neon-blue), -0.025em -0.05em 0 var(--neon-green),
                 0.025em 0.05em 0 var(--neon-pink);
  }
  14% {
    text-shadow: 0.05em 0 0 var(--neon-blue), -0.025em -0.05em 0 var(--neon-green),
                 0.025em 0.05em 0 var(--neon-pink);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 var(--neon-blue), 0.025em 0.025em 0 var(--neon-green),
                 -0.05em -0.05em 0 var(--neon-pink);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 var(--neon-blue), 0.025em 0.025em 0 var(--neon-green),
                 -0.05em -0.05em 0 var(--neon-pink);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 var(--neon-blue), 0.05em 0 0 var(--neon-green),
                 0 -0.05em 0 var(--neon-pink);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 var(--neon-blue), 0.05em 0 0 var(--neon-green),
                 0 -0.05em 0 var(--neon-pink);
  }
  100% {
    text-shadow: -0.025em 0 0 var(--neon-blue), -0.025em -0.025em 0 var(--neon-green),
                 -0.025em -0.05em 0 var(--neon-pink);
  }
}


.glow-effect {
  box-shadow: 0 0 15px var(--accent-primary);
  transition: all var(--transition-medium) ease;
}

.glow-effect:hover {
  box-shadow: 0 0 30px var(--accent-primary);
}


.back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(20, 20, 20);
  border: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 0px 4px rgba(0, 180, 0);
  cursor: pointer;
  transition-duration: 0.3s;
  overflow: hidden;
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 999;
}

.back-to-top .svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.back-to-top .svgIcon path {
  fill: white;
}

.back-to-top:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: rgb(0, 204, 153);
  align-items: center;
}

.back-to-top:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.back-to-top::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: white;
  font-size: 0px;
}

.back-to-top:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
}


.ai-assistant {
  position: fixed;
  bottom: 3rem;
  left: 3rem;
  z-index: 999;
}

.chat-bubble {
  width: 6rem;
  height: 6rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-medium) ease;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 25px rgba(0, 204, 153, 0.4);
}

.chat-window {
  position: absolute;
  bottom: 7.5rem;
  left: 0;
  width: 35rem;
  height: 45rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transform-origin: bottom left;
  transition: all var(--transition-medium) ease;
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.chat-header {
  padding: 1.5rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.8rem;
}

.close-chat {
  font-size: 2.4rem;
  cursor: pointer;
}

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.message {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.message.user {
  align-items: flex-end;
}

.message.ai {
  align-items: flex-start;
}

.message-content {
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  max-width: 80%;
}

.message.user .message-content {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-top-right-radius: 0;
}

.message.ai .message-content {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-top-left-radius: 0;
}

.chat-input {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.4rem;
  outline: none;
}

.chat-input button {
  margin-left: 1rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-medium) ease;
}

.chat-input button:hover {
  background: var(--accent-secondary);
  transform: scale(1.05);
}


@media (max-width: 1200px) {
  html {
    font-size: 56.25%;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 50%;
  }
  
  section {
    padding: 8rem 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 43.75%;
  }
  
  h1 {
    font-size: 5rem;
  }
  
  h2 {
    font-size: 3.5rem;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .ai-assistant {
    bottom: 2rem;
    left: 2rem;
  }
  
  .chat-window {
    width: 30rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 37.5%;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .btn {
    padding: 1rem 2rem;
  }
  
  .chat-window {
    width: 28rem;
    left: -5rem;
  }
}
