:root {
  --grad-1: #6a11cb;
  --grad-2: #2575fc;
  --accent: #ff4d8d;
  --sun: #ffb703;
  --ink: #1b1f36;
  --bg: #ffffff;
  --muted: #666a85;
  --soft: #f4f5fb;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 20px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  color: #fff;
  font-weight: 800; font-size: 26px;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.35);
}
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.accent { color: var(--accent); }
.brand-tag { display: block; font-size: 12px; color: var(--muted); }

.links { display: flex; gap: 26px; flex-wrap: wrap; }
.links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .2s; }
.links a:hover { color: var(--grad-1); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--grad-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid #dcddff;
}
.btn-ghost:hover { border-color: var(--grad-2); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(106, 17, 203, 0.12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 77, 141, 0.14), transparent 42%),
    radial-gradient(circle at 70% 85%, rgba(37, 117, 252, 0.12), transparent 45%),
    linear-gradient(135deg, #f7f4ff, #fff);
  padding: 90px 20px 70px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1px;
  max-width: 800px;
  margin: 0 auto 20px;
}
.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; color: var(--grad-1); }
.hero-stats span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 70px 20px; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.subtitle { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }

/* Services */
.services { background: var(--soft); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(27, 31, 54, 0.06);
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid transparent;
}
.card:nth-child(1) { border-top-color: var(--grad-1); }
.card:nth-child(2) { border-top-color: var(--grad-2); }
.card:nth-child(3) { border-top-color: var(--accent); }
.card:nth-child(4) { border-top-color: var(--sun); }
.card:nth-child(5) { border-top-color: #2ec4b6; }
.card:nth-child(6) { border-top-color: #f77f00; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(27, 31, 54, 0.12); }
.card-icon { font-size: 38px; margin-bottom: 14px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 30px rgba(27, 31, 54, 0.12);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px 16px 14px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.gallery-loading, .photo-skeleton {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}
.photo-skeleton {
  border-radius: 20px;
  background: linear-gradient(100deg, #eee 40%, #f7f7fb 50%, #eee 60%);
  background-size: 200% 100%;
  animation: shine 1.4s infinite;
  aspect-ratio: 4 / 3;
}
@keyframes shine { to { background-position-x: -200%; } }

/* About */
.about { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 30px; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text ul { list-style: none; display: grid; gap: 12px; }
.about-text li { padding-left: 30px; position: relative; font-weight: 600; }
.about-text li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}
.about-img img { width: 100%; border-radius: 20px; box-shadow: 0 18px 40px rgba(27,31,54,0.15); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; }
.contact-info { display: grid; gap: 22px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci > span { font-size: 24px; }
.ci strong { display: block; font-size: 16px; }
.ci p { color: var(--muted); font-size: 15px; }

.contact-form {
  display: grid;
  gap: 14px;
  background: var(--soft);
  border-radius: 20px;
  padding: 28px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--grad-2);
  border-color: transparent;
}
.contact-form button { margin-top: 6px; }

/* Footer */
footer { background: var(--ink); color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 30px 20px; }
.footer-inner p { font-size: 13px; color: #b9bdd6; }
.footer-inner .brand-name { color: #fff; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 760px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav { justify-content: center; }
  .links { justify-content: center; gap: 16px; }
}