:root {
  --bg: #0b0d12;
  --bg-alt: #11141b;
  --text: #f4f5f7;
  --text-muted: #9aa1ad;
  --accent: #3d7cff;
  --border: #1f2430;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(61, 124, 255, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav nav a {
  position: relative;
  margin-left: 28px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav nav a:hover::after { width: 100%; }

.hero {
  position: relative;
  padding: 130px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(61, 124, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(61, 124, 255, 0.18), transparent 50%),
    radial-gradient(circle at 50% -10%, #1a2236, var(--bg) 60%);
  background-size: 200% 200%;
  animation: drift 16s ease-in-out infinite;
  z-index: 0;
}

@keyframes drift {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 0%; }
  50% { background-position: 15% 10%, 85% 15%, 50% 5%; }
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 40%),
    rgba(140, 175, 255, 0.16),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero:hover .hero-glow {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce), (hover: none) {
  .hero-glow { display: none; }
}

.hero .container { position: relative; z-index: 1; }

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

.hero-logo img {
  display: block;
  height: 130px;
  width: auto;
}

@media (max-width: 480px) {
  .hero-logo img { height: 90px; }
}

.hero .eyebrow {
  color: var(--text-muted);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  background: linear-gradient(100deg, #ffffff 30%, #9cb6ff 50%, #ffffff 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: -220% center; }
}

.hero .sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 0 0 rgba(61, 124, 255, 0);
}
.btn:hover {
  text-decoration: none;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(61, 124, 255, 0.35);
}

.about, .services, .vision-mission, .projects, .office, .contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.brand-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.brand-strip-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.brand-strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 48px;
}

.brand-wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  opacity: 0.75;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.brand-wordmark:hover {
  opacity: 1;
  color: var(--text);
}

@media (max-width: 600px) {
  .brand-strip-list {
    gap: 14px 28px;
  }
  .brand-wordmark {
    font-size: 0.9rem;
  }
}

.about h2, .services h2, .projects h2, .office h2, .contact h2 {
  font-size: 1.75rem;
  margin-bottom: 32px;
}

.about p {
  color: var(--text-muted);
  max-width: 720px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 124, 255, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.service-card h3 { margin-bottom: 4px; }
.service-card .service-sub {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.service-card p:not(.service-sub) { color: var(--text-muted); }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.vm-card h2 { font-size: 1.5rem; margin-bottom: 16px; }
.vm-card p { color: var(--text-muted); }

.project-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.project-group-title {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 8px 0 4px;
  letter-spacing: 0.04em;
}

.project-loading,
.project-empty,
.project-error {
  color: var(--text-muted);
}

.project-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 124, 255, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.project-card.has-photo {
  padding-top: 0;
}

.project-photo {
  margin: 0 -24px 18px;
}

.project-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}


.project-num {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.status-ongoing {
  background: rgba(255, 184, 61, 0.15);
  color: #ffb83d;
  border: 1px solid rgba(255, 184, 61, 0.4);
}

.status-finished {
  background: rgba(61, 255, 140, 0.12);
  color: #3dffa0;
  border: 1px solid rgba(61, 255, 140, 0.35);
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.project-card h3 small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 4px;
}

.project-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3px 0;
}

.project-card ul li::before {
  content: "— ";
  color: var(--accent);
}

.office p {
  color: var(--text-muted);
  max-width: 560px;
}

.testimonials {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.testimonials h2 {
  font-size: 1.75rem;
  margin-bottom: 32px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-loading {
  color: var(--text-muted);
}

.testimonial-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote-mark {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: rgba(61, 124, 255, 0.18);
  line-height: 1;
}

.testimonial-stars {
  color: #ffb83d;
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.contact-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-list a { color: var(--text); font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.meeting {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.meeting h2 { font-size: 1.75rem; margin-bottom: 12px; }

.meeting-sub {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.meeting-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.meeting-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meeting-form .optional { color: var(--text-muted); font-weight: 400; }

.meeting-form input,
.meeting-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.meeting-form input:focus,
.meeting-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.meeting-submit {
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.meeting-submit:disabled { opacity: 0.6; cursor: default; }

.meeting-status {
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
}

.meeting-success {
  background: rgba(61, 255, 140, 0.12);
  color: #3dffa0;
  border: 1px solid rgba(61, 255, 140, 0.35);
}

.meeting-error {
  background: rgba(255, 107, 107, 0.12);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 50;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.whatsapp-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.5;
  animation: whatsapp-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-grid .reveal:nth-child(1) { --d: 0; }
.service-grid .reveal:nth-child(2) { --d: 1; }
.service-grid .reveal:nth-child(3) { --d: 2; }
.service-grid .reveal:nth-child(4) { --d: 3; }

.project-grid-inner .reveal { --d: 0; }
.project-grid-inner .reveal:nth-child(2n) { --d: 1; }
