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

:root {
  --primary: #5b4fff;
  --primary-dark: #4538e0;
  --secondary: #00d1c1;
  --dark: #080c20;
  --light: #ffffff;
  --gray: #f5f7fb;
  --accent: #ff4d94;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: var(--gray);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(91, 79, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(91, 79, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--light);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

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

/* Hilangkan underline di semua link navbar */
.navbar a {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.logo .icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: linear-gradient(45deg, #5b4fff, #00d1c1);
  opacity: 0.1;
}

.hero-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.hero-text {
  flex: 1;
  z-index: 2;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-text h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-image {
  flex: 1;
  z-index: 2;
  text-align: center;
}

.hero-image img {
  max-width: 90%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(91, 79, 255, 0.2);
}

/* Features Section */
.features {
  padding: 120px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 38px;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: #777;
  max-width: 700px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(91, 79, 255, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(91, 79, 255, 0.1),
    rgba(0, 209, 193, 0.1)
  );
  color: var(--primary);
  font-size: 30px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card p {
  color: #666;
}

/* Pricing Section */
.pricing {
  background: linear-gradient(135deg, #f9f9ff, #f0f4ff);
  padding: 120px 0;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  position: relative;
}

.pricing-card.popular {
  border: 3px solid var(--primary);
  transform: scale(1.05);
  z-index: 1;
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(91, 79, 255, 0.15);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-type {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.pricing-price {
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-price span {
  font-size: 20px;
  color: #777;
  font-weight: normal;
}

.pricing-features {
  list-style: none;
  margin: 0; /* hilangkan margin default */
  padding: 0; /* hilangkan padding default */
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  color: #666;
  text-align: left; /* pastikan teks rata kiri */
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--primary);
  margin-right: 8px;
}

.pricing-features li i.danger {
  color: var(--accent);
}

/* About Section */
.about {
  padding: 120px 0;
  background-color: white;
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.about-image {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  display: block;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 38px;
  margin-bottom: 25px;
  color: var(--dark);
}

.about-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #555;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo .icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.footer-logo h3 {
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.footer-text {
  color: #bbb;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #22293a;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--gradient);
  transform: translateY(-5px);
}

footer h4 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links li a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #22293a;
  color: #bbb;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 42px;
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
  }

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

  .hero-text,
  .hero-image {
    text-align: center;
    max-width: 600px;
  }

  .hero-text p,
  .hero-actions {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    right: -300px;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: white;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .pricing-card.popular {
    transform: scale(1);
  }

  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
}
/* Desktop: menu kiri, login kanan */
#mobileNav {
  display: flex;
  align-items: center;
  gap: 30px;
}

#mobileNav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
}

#mobileNav .login-btn {
  padding: 10px 25px;
}

/* Mobile: login masuk ke bawah menu */
@media (max-width: 768px) {
  #mobileNav {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 20px;
  }

  #mobileNav ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  #mobileNav .login-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }
}

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