:root {
  /* Colors - More Artistic Palette */
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --secondary: #0a0f1a;
  --accent: #34d399;
  --bg-dark: #020617; /* True deep slate */
  --card-bg: rgba(15, 23, 42, 0.6);
  --text-white: #f8fafc;
  --text-slate: #94a3b8;

  /* Advanced Glassmorphism */
  --glass: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);

  /* Spacing & Sizes */
  --container-max: 1400px;
  --section-gap: 16rem;
  --nav-height: 75px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

main {
  padding-top: var(--nav-height); /* Global clearing for fixed header */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Outfit",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.75;
  letter-spacing: -0.01em; /* Optimized for Outfit readability */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.12) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(120px);
  animation: pulse 15s infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(
    circle,
    rgba(52, 211, 153, 0.08) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(100px);
}

@keyframes pulse {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-5%, 10%);
  }
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-white);
}

.logo-text span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-white);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:not(.btn-primary):hover {
  color: var(--primary);
}

.nav-links .btn-primary {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* Buttons */
.btn-primary {
  font-family: "Outfit", sans-serif;
  background: var(--primary);
  color: #050505 !important;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  letter-spacing: -0.02em;
}

.btn-primary:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.icon-m-r {
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
}

.btn-secondary {
  font-family: "Outfit", sans-serif;
  background: rgba(255, 255, 255, 0.15); /* Diperjelas lagi */
  color: var(--text-white);
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25); /* Border lebih tegas */
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  letter-spacing: -0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
  padding: 12rem 0 var(--section-gap);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  z-index: 10;
  padding: 0 1.5rem;
}

.hero-content h1 {
  font-family: "Outfit", sans-serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.05em; /* Optimized for Outfit headlines */
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), #a7f3d0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px var(--primary-glow));
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-slate);
  max-width: 700px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Artistic Background Image & Shapes */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.2), var(--bg-dark)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80")
      center center / cover no-repeat;
  opacity: 0.65; /* Increased opacity for much clearer visual */
  filter: brightness(0.85) contrast(1.1);
  z-index: 1;
  mask-image: radial-gradient(circle, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 95%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 2;
  animation: float 20s infinite ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

/* Demos Section */
.section-header {
  text-align: center;
  margin-bottom: 6rem; /* Increased whitespace */
}

.section-header h2 {
  font-family: "Outfit", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.section-header p {
  color: var(--text-gray);
}

/* Search Styles */
.search-container {
  margin: 0 auto 3rem;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-box .search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 5;
  transition: var(--transition);
}

.search-box input {
  width: 100%;
  padding: 1.1rem 3.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-white);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.search-box input:focus + .search-icon {
  color: var(--primary);
}

.search-clear {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-gray);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-clear i {
  width: 14px !important;
  height: 14px !important;
}

.search-clear.visible {
  opacity: 1;
  visibility: visible;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px dashed var(--glass-border);
}

.no-results i {
  width: 48px;
  height: 48px;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: var(--section-gap);
}

.demo-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  transform: translateY(-16px) scale(1.02);
  border-color: var(--primary);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 20px var(--primary-glow);
}

.demo-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.demo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.demo-card:hover .demo-image img {
  transform: scale(1.1);
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.demo-card:hover .demo-overlay {
  opacity: 1;
}

.btn-visit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--text-white);
  color: var(--secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-info {
  padding: 1.5rem;
}

.demo-info h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.demo-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.demo-tags {
  display: flex;
  gap: 0.5rem;
}

.demo-tags span {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Order Section */
.order {
  padding: var(--section-gap) 0; /* Consistent with other sections */
}

.order-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 6rem;
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.order-info h2 {
  font-family: "Outfit", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.05em;
}

.order-info p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.features {
  list-style: none;
}

.features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.features i {
  color: var(--primary);
  width: 20px;
}

.order-form-box {
  background: rgba(2, 6, 23, 0.4);
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-gray);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.h-captcha {
  margin-bottom: 1.5rem;
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #050505;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.btn-submit:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

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

.footer-content p {
  color: var(--text-gray);
}

.footer-bottom {
  display: flex;
  gap: 2rem;
}

.footer-bottom a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--text-white);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

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

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {
  .order-container {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  nav {
    height: 60px;
  }

  main {
    padding-top: 60px;
  }

  .hero {
    padding: 18rem 0 6rem; /* Menambah jarak atas lagi khusus mobile agar lebih nyaman */
    min-height: auto;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
    padding-top: 2rem; /* Tambahan padding khusus di dalam hero-content */
  }

  .hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
  }

  .hero-content p {
    font-size: 1.15rem;
    margin: 0 auto 3rem;
    padding: 0;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 5rem; /* Menambah jarak ke seksi portfolio di bawahnya */
  }

  .hero::before {
    display: none; /* Keep complex glows hidden on mobile */
  }

  .hero::after {
    opacity: 0.5;
    background:
      linear-gradient(to bottom, rgba(2, 6, 23, 0.2), var(--bg-dark)),
      url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&q=80")
        center center / cover no-repeat;
    mask-image: radial-gradient(circle, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
  }

  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* Rapatkan gap agar muat 2 card */
  }

  .demo-card {
    border-radius: 16px;
  }

  .demo-image {
    height: 120px;
  }

  .demo-info {
    padding: 1rem;
  }

  .demo-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }

  .demo-info p {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; /* Batasi deskripsi agar card tidak terlalu panjang */
  }

  .demo-tags {
    gap: 0.35rem;
  }

  .demo-tags span {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .section-header h2 {
    font-size: 2.25rem;
    letter-spacing: -0.04em;
  }

  .order-container {
    padding: 1.5rem;
    gap: 2.5rem;
  }

  .order-info h2 {
    font-size: 2.25rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.04em;
  }

  .order-info p {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2rem;
  }

  .features {
    margin: 0 0 2rem 0;
    text-align: left;
  }

  .features li {
    justify-content: flex-start;
  }

  .order-form-box {
    padding: 2.5rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    margin-top: 3rem; /* Extra space from the form above */
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .order-container {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .order-form-box {
    padding: 2rem 1.25rem;
    border-radius: 1rem;
  }

  .h-captcha {
    transform: scale(0.85);
    transform-origin: 0 0;
    margin-bottom: 1rem;
  }
}
/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.95);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.modal-title {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-use-template {
  background: var(--primary);
  color: #050505;
  border: none;
  padding: 0.6rem 1.75rem;
  border-radius: 99px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  font-size: 0.95rem;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-use-template:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-footer-mobile {
  display: none; /* Hidden by default */
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.modal-footer-mobile .btn-use-template {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}

/* Responsive visibility for modal actions */
@media (max-width: 768px) {
  .btn-desktop-only {
    display: none !important;
  }

  .modal-footer-mobile {
    display: block;
  }

  .modal-header {
    padding: 0.75rem 1rem;
  }

  .modal-title {
    font-size: 0.9rem;
  }
}

.modal-close:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.modal-body {
  flex-grow: 1;
  position: relative;
  background: white; /* Contrast for the content */
}

.modal-body iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--text-white); /* Ensure fallback background */
}

/* Fix for btn-visit if it's a button now */
button.btn-visit {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
