:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand__name, .brand__mark {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-900);
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 25px 40px rgba(79, 70, 229, 0.25); }
.btn--ghost {
  background: var(--white);
  color: var(--primary);
  border-color: var(--gray-200);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn--block { width: 100%; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.eyebrow--center { justify-content: center; width: 100%; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 4px; font-size: 1.3rem; }
.brand__mark { color: var(--primary); }
.brand--light .brand__mark, .brand--light .brand__name { color: var(--white); }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--primary); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-900);
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 160px 0 100px;
  background: radial-gradient(circle at 80% 0%, rgba(79,70,229,0.08), transparent 50%),
              radial-gradient(circle at 0% 100%, rgba(6,182,212,0.08), transparent 50%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero__cta { display: flex; gap: 16px; margin-bottom: 50px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat__label { font-size: 0.85rem; color: var(--gray-500); }

.hero__visual {
  position: relative;
  height: 420px;
}
.hero__glow {
  position: absolute;
  width: 320px; height: 320px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  opacity: 0.18;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(10px);
  animation: blob 8s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
  50% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
}
.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-900);
  animation: float 5s ease-in-out infinite;
}
.hero__card i { font-size: 1.4rem; color: var(--primary); }
.hero__card--1 { top: 10%; left: 5%; animation-delay: 0s; }
.hero__card--2 { top: 45%; right: 0%; animation-delay: 1.5s; }
.hero__card--3 { bottom: 8%; left: 18%; animation-delay: 3s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Trust strip */
.trust { padding: 28px 0; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.trust__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gray-500);
}
.trust__items { display: flex; gap: 28px; flex-wrap: wrap; }
.trust__items span { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gray-700); }
.trust__items i { color: var(--primary); }

/* Sections */
.section { padding: 100px 0; }
.section--alt { background: var(--gray-50); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section__desc { color: var(--gray-500); }

.grid { display: grid; gap: 28px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--portfolio { grid-template-columns: repeat(3, 1fr); }
.grid--testimoni { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.25s ease;
}
.card--service:hover, .card--portfolio:hover, .card--testimoni:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.card--service h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card--service p { color: var(--gray-500); font-size: 0.95rem; }

/* Portfolio cards */
.card--portfolio { padding: 0; overflow: hidden; }
.card__cover {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  color: var(--white);
}
.card__cover--1 { background: linear-gradient(135deg, #6366f1, #06b6d4); }
.card__cover--2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.card__cover--3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.card__cover--4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.card__cover--5 { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.card__cover--6 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.card--portfolio .tag {
  display: inline-block;
  margin: 20px 24px 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.card--portfolio h3 { margin: 10px 24px 8px; font-size: 1.1rem; }
.card--portfolio p { margin: 0 24px 24px; color: var(--gray-500); font-size: 0.92rem; }

/* Testimoni */
.card--testimoni .quote { color: var(--primary-light); font-size: 1.6rem; margin-bottom: 14px; }
.card--testimoni p { color: var(--gray-700); margin-bottom: 24px; font-size: 0.96rem; }
.testimoni__author { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.testimoni__author strong { display: block; font-size: 0.92rem; color: var(--gray-900); }
.testimoni__author span { font-size: 0.82rem; color: var(--gray-500); }

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about__visual { position: relative; height: 380px; }
.about__glow {
  position: absolute;
  width: 280px; height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.15;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
}
.about__box {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}
.about__box i { font-size: 1.6rem; color: var(--primary); }
.about__box strong { display: block; font-size: 0.95rem; color: var(--gray-900); }
.about__box span { font-size: 0.82rem; color: var(--gray-500); }
.about__box--1 { top: 10%; left: 0; }
.about__box--2 { bottom: 10%; right: 0; }

.about__list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.about__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.about__list i { color: var(--primary); margin-top: 4px; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact__item { display: flex; align-items: flex-start; gap: 16px; margin-top: 24px; }
.contact__item i {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--primary);
}
.contact__item strong { display: block; color: var(--gray-900); font-size: 0.95rem; }
.contact__item span { font-size: 0.9rem; color: var(--gray-500); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form__row label { font-size: 0.88rem; font-weight: 600; color: var(--gray-900); }
.form__row input, .form__row select, .form__row textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form__row input:focus, .form__row select:focus, .form__row textarea:focus {
  border-color: var(--primary);
  background: var(--white);
}
.alert {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

/* Footer */
.footer { background: var(--dark); color: #cbd5e1; padding: 70px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__about p { margin: 16px 0 20px; font-size: 0.9rem; color: #94a3b8; max-width: 300px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer__social a:hover { background: var(--primary); }
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer__col ul li i { margin-right: 8px; color: var(--primary-light); }
.footer__col a:hover { color: var(--white); }
.footer__bottom { text-align: center; padding: 24px 0; font-size: 0.85rem; color: #64748b; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid--services, .grid--portfolio, .grid--testimoni { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__visual, .about__visual { height: 320px; margin-top: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    gap: 18px;
  }
  .hero { padding: 130px 0 70px; }
  .hero h1 { font-size: 2.2rem; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .grid--services, .grid--portfolio, .grid--testimoni { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .section__head h2 { font-size: 1.7rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
