* { box-sizing: border-box; }

:root {
  --bg: #081126;
  --bg-soft: #0b1626;
  --surface: rgba(12, 16, 28, 0.86);
  --surface-strong: rgba(10, 14, 24, 0.98);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: #c1c8d6;
  --accent: #8b5cf6;
  --accent-2: #06b6d4;
  --accent-3: #f472b6;
  --shadow: 0 28px 76px rgba(8, 12, 30, 0.5);
}

html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable", "Bahnschrift", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(139, 92, 246, 0.12), transparent 26%),
    radial-gradient(circle at 82% 10%, rgba(6, 182, 212, 0.10), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #0d1b33 45%, #071025 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
  opacity: 0.42;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.88), rgba(7, 9, 13, 0.55));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #080812;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.28);
}

.brand-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(8, 14, 28, 0.94), rgba(6, 10, 18, 0.92)),
    radial-gradient(circle at 18% 18%, rgba(139, 92, 246, 0.14), transparent 36%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -24% auto;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14), transparent 68%);
  filter: blur(14px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  animation: riseIn 720ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  max-width: 10ch;
}

.hero-text {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.84rem;
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-link {
  color: #0b0710;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  box-shadow: 0 18px 42px rgba(139, 92, 246, 0.18);
}

.secondary-link {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  z-index: 1;
}

.visual-frame {
  height: 100%;
  min-height: 540px;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 44px rgba(2, 6, 18, 0.36);
  display: grid;
  place-items: center;
  animation: sway 9s ease-in-out infinite;
}

.visual-frame img {
  width: min(100%, 420px);
  filter: drop-shadow(0 26px 36px rgba(0, 0, 0, 0.3));
}

.floating-card {
  position: absolute;
  display: flex;
  gap: 14px;
  align-items: center;
  width: min(290px, calc(100% - 28px));
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  animation: floaty 5.6s cubic-bezier(0.2,0.9,0.3,1) infinite;
}

.floating-card img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.floating-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.floating-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.card-a {
  top: 24px;
  left: -10px;
}

.card-b {
  right: -12px;
  bottom: 24px;
  animation-delay: -2.5s;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 56px;
  display: grid;
  gap: 20px;
}

section {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.06), transparent 36%, rgba(94, 234, 212, 0.05));
  z-index: 0;
  pointer-events: none;
}

section > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  color: var(--text);
}

h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: #fff4e6;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid p {
  margin-bottom: 0;
  padding: 18px 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-band {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.image-band figure,
.gallery-card,
.service-card,
.info-box,
.timeline article {
  background: rgba(7, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.image-band figure {
  margin: 0;
  padding: 14px;
  border-radius: 22px;
}

.image-band img,
.gallery-card img {
  width: 100%;
  height: auto;
}

.image-band figcaption,
.gallery-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 18px;
  border-radius: 22px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.32);
}

.card-image {
  width: 100%;
  height: 156px;
  object-fit: contain;
  margin-bottom: 14px;
}

.process-panel .timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  padding: 18px;
  border-radius: 20px;
  min-height: 210px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #080b11;
  background: linear-gradient(135deg, var(--accent-2), #d9f99d);
  font-weight: 900;
}

.gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  gap: 14px;
}

.gallery-card {
  margin: 0;
  padding: 14px;
  border-radius: 24px;
  transition: transform 260ms ease;
}

.gallery-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.gallery-card.wide img {
  min-height: 280px;
  object-fit: cover;
}

.contact-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.info-box {
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
}

.main-contact p {
  font-size: 1.02rem;
}

footer {
  padding: 24px 16px 34px;
  text-align: center;
  color: var(--muted);
}

.footer-note {
  margin-top: 6px;
  font-size: 0.95rem;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sway {
  0%,100% { transform: translateY(0) rotate(-0.15deg); }
  45% { transform: translateY(-12px) rotate(0.25deg); }
  80% { transform: translateY(-6px) rotate(-0.08deg); }
}

@keyframes floaty {
  0% { transform: translateY(0) translateX(0); }
  40% { transform: translateY(-10px) translateX(6px); }
  70% { transform: translateY(-6px) translateX(-4px); }
  100% { transform: translateY(0) translateX(0); }
}

@media (max-width: 1100px) {
  .hero,
  .contact-info,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .process-panel .timeline,
  .intro-grid,
  .image-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 480px;
  }

  .visual-frame {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero,
  .container {
    width: min(100% - 20px, 1240px);
  }

  .hero {
    border-radius: 26px;
  }

  .section-heading,
  .intro-grid,
  .services-grid,
  .process-panel .timeline,
  .image-band {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero-visual,
  .visual-frame {
    min-height: 420px;
  }

  .card-a,
  .card-b {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
