:root {
  --mc-ink: #0b1f33;
  --mc-navy: #123d56;
  --mc-deep: #071525;
  --mc-teal: #0f8b8d;
  --mc-teal-bright: #14b8a6;
  --mc-sand: #e8eef5;
  --mc-white: #ffffff;
  --mc-muted: #5b6b7c;
  --mc-glow: rgba(15, 139, 141, .35);
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--mc-ink);
  background: #f3f7fb;
  line-height: 1.6;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .55;
  animation: floatOrb 18s ease-in-out infinite;
}

.ambient span:nth-child(1) {
  width: 420px; height: 420px;
  left: -80px; top: 10%;
  background: radial-gradient(circle, rgba(20,184,166,.35), transparent 68%);
}

.ambient span:nth-child(2) {
  width: 520px; height: 520px;
  right: -140px; top: 35%;
  background: radial-gradient(circle, rgba(18,61,86,.22), transparent 70%);
  animation-delay: -7s;
}

.ambient span:nth-child(3) {
  width: 360px; height: 360px;
  left: 30%; bottom: -80px;
  background: radial-gradient(circle, rgba(15,139,141,.28), transparent 68%);
  animation-duration: 22s;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 21, 37, .72);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease;
}

.site-header.scrolled { background: rgba(7, 21, 37, .92); }

.nav-wrap {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700;
}

.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--mc-teal), #1dd1a1);
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 24px var(--mc-glow);
  overflow: hidden;
}

.brand-mark-logo {
  background: rgba(255,255,255,.1);
  box-shadow: none;
  padding: .2rem;
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: #fff; }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: .7rem; border: 0; font-weight: 700;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-cta:hover { transform: translateY(-2px); }

.btn-primary-cta {
  background: linear-gradient(135deg, var(--mc-teal), #17a2a4);
  color: #fff;
  box-shadow: 0 12px 30px var(--mc-glow);
}

.btn-ghost-cta {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--mc-deep);
}

.hero-slides {
  position: absolute; inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1s ease;
  filter: saturate(.92) contrast(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  animation: heroDrift 8s ease-out forwards;
}

.hero-orbs {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}

.hero-orbs span {
  position: absolute; border-radius: 50%;
  background: rgba(20, 184, 166, .28);
  filter: blur(2px);
  animation: floatOrb 9s ease-in-out infinite;
}

.hero-orbs span:nth-child(1) { width: 180px; height: 180px; left: 8%; top: 18%; }
.hero-orbs span:nth-child(2) { width: 90px; height: 90px; right: 16%; top: 28%; animation-delay: -3s; background: rgba(255,255,255,.16); }
.hero-orbs span:nth-child(3) { width: 140px; height: 140px; right: 8%; bottom: 16%; animation-duration: 12s; }

.hero-progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 3px; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--mc-teal-bright), #7ee0d6);
}

.hero-progress.is-run { animation: heroLoad 6.5s linear forwards; }

.hero:hover .hero-progress { animation-play-state: paused; }

.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(7,21,37,.88) 8%, rgba(7,21,37,.58) 48%, rgba(11,45,66,.38) 100%),
    linear-gradient(to top, rgba(7,21,37,.55), transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute; inset: auto -10% -20% auto;
  width: 55vw; height: 55vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.22), transparent 65%);
  animation: floatOrb 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-slide-meta {
  margin-top: 2.4rem;
  display: flex; align-items: baseline; gap: .75rem;
  flex-wrap: wrap;
  animation: fadeUp .8s ease .35s both;
}

.hero-slide-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9ff0e8;
}

.hero-slide-caption {
  color: rgba(255,255,255,.72);
  font-size: .95rem;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(7,21,37,.38);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}

.hero-nav:hover {
  background: rgba(20,184,166,.28);
  border-color: rgba(159,240,232,.55);
}

.hero-prev { left: 1.1rem; }
.hero-next { right: 1.1rem; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: .45rem;
}

.hero-dot {
  width: 9px; height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #14b8a6;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; padding: 8rem 1.25rem 6.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(20,184,166,.15);
  border: 1px solid rgba(20,184,166,.35);
  color: #9ff0e8;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeUp .7s ease both;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 8px 32px rgba(7,21,37,.45);
  animation: fadeUp .8s ease .1s both;
}

.hero p {
  max-width: 52ch;
  color: rgba(255,255,255,.88);
  font-size: 1.08rem;
  margin: 0 0 2rem;
  text-shadow: 0 4px 18px rgba(7,21,37,.4);
  animation: fadeUp .8s ease .2s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: .85rem;
  animation: fadeUp .8s ease .3s both;
}

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

.section { padding: 5.5rem 1.25rem; }
.section-inner { max-width: 1180px; margin: 0 auto; }

.section-label {
  color: var(--mc-teal);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: .78rem; margin-bottom: .75rem;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem; max-width: 18ch;
}

.section .lead { color: var(--mc-muted); max-width: 60ch; margin-bottom: 2.5rem; }
.section-body { color: var(--mc-muted); max-width: 72ch; line-height: 1.7; }

.about-grid, .services-grid, .portfolio-grid, .testi-grid, .contact-grid {
  display: grid; gap: 1.5rem;
}

.about-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.testi-grid { grid-template-columns: repeat(2, 1fr); }
.contact-grid { grid-template-columns: .9fr 1.1fr; }

.feature-box {
  padding: 1.25rem 0;
  border-top: 1px solid #dce5ef;
}

.feature-box h4 { margin: 0 0 .35rem; font-size: 1.05rem; }
.feature-box p { margin: 0; color: var(--mc-muted); }

.service-item {
  padding: 1.6rem 0;
  border-top: 1px solid #dce5ef;
  transition: transform .25s ease;
}

.service-item:hover { transform: translateX(6px); }

.service-item .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(15,139,141,.12), rgba(20,184,166,.2));
  color: var(--mc-teal); font-size: 1.25rem; margin-bottom: 1rem;
}

.service-item h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.service-item p { margin: 0; color: var(--mc-muted); }

.about-visual {
  min-height: 420px;
  border-radius: 1.5rem;
  background:
    linear-gradient(160deg, rgba(7,21,37,.45), rgba(15,139,141,.35)),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  box-shadow: 0 30px 60px rgba(7,21,37,.18);
  position: relative;
  overflow: hidden;
}

.about-visual .stat {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  background: rgba(255,255,255,.94);
  padding: 1rem 1.25rem; border-radius: 1rem;
  animation: fadeUp 1s ease .4s both;
}

.about-visual .stat strong {
  display: block; font-size: 1.8rem; color: var(--mc-teal);
  font-family: var(--font-display);
}

.section-muted { background: rgba(247, 250, 252, .78); }

.portfolio-item {
  position: relative; display: block; min-height: 280px; border-radius: 1.1rem; overflow: hidden;
  background: #0b1f33; color: #fff;
  box-shadow: 0 16px 40px rgba(7,21,37,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(7,21,37,.2);
}

.portfolio-cover {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.02);
  transition: transform .8s ease;
}

.portfolio-item:hover .portfolio-cover { transform: scale(1.1); }

.portfolio-item::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(7,21,37,.05), rgba(7,21,37,.82));
}

.portfolio-item .meta {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; color: #fff; z-index: 2;
}

.portfolio-item .meta h3 { margin: .25rem 0 0; font-size: 1.15rem; }
.portfolio-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .55rem; font-size: .85rem; font-weight: 700; color: #9ff0e8;
}

.testi-item {
  padding: 1.5rem 0;
  border-top: 1px solid #dce5ef;
}

.testi-item p { color: var(--mc-muted); font-size: 1.05rem; }
.testi-item .who { font-weight: 700; margin-top: 1rem; }

.contact-section {
  background:
    radial-gradient(circle at 10% 20%, rgba(20,184,166,.12), transparent 35%),
    linear-gradient(180deg, #f7fafc, #eef5f5);
}

.contact-info h3 { margin: 1.25rem 0 .35rem; font-size: 1rem; }
.contact-info p { margin: 0; color: var(--mc-muted); }

.contact-form {
  background: #fff;
  border: 1px solid #dfe8f0;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(7,21,37,.06);
}

.contact-form label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; }
.contact-form .form-control, .contact-form .form-select {
  width: 100%; border: 1px solid #d5e0ea; border-radius: .7rem;
  padding: .8rem 1rem; margin-bottom: 1rem; font: inherit;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  outline: 2px solid rgba(15,139,141,.35); border-color: var(--mc-teal);
}

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.site-footer {
  background: var(--mc-deep);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.25rem;
}

.site-footer .inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}

.alert-success-front {
  background: #e7f8f2; color: #0f6b56; border: 1px solid #b7e8d8;
  padding: .85rem 1rem; border-radius: .7rem; margin-bottom: 1rem;
}

.mobile-toggle {
  display: none; background: transparent; border: 0; color: #fff; font-size: 1.4rem;
}

/* WhatsApp float — bottom left */
.wa-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.wa-float-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #25D366;
  color: #fff;
  padding: .85rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .38);
  transition: transform .2s ease, box-shadow .2s ease;
}

.wa-float-btn i { font-size: 1.45rem; line-height: 1; }

.wa-float:hover .wa-float-btn {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, .48);
  color: #fff;
}

.wa-float-pulse {
  position: absolute;
  left: 0; top: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(37, 211, 102, .45);
  animation: waPulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 991px) {
  .about-grid, .services-grid, .portfolio-grid, .testi-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    background: rgba(7,21,37,.96);
    flex-direction: column; padding: 1.25rem;
    transform: translateY(-120%); transition: .25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .mobile-toggle { display: inline-flex; }
  .hero {
    min-height: 100svh;
    height: auto;
    align-items: flex-start;
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }
  .hero p {
    font-size: .95rem;
    margin-bottom: 1.1rem;
  }
  .hero-inner {
    padding: 5.6rem 1.25rem 4.8rem;
  }
  .hero-nav {
    width: 38px; height: 38px;
    top: auto; bottom: 1.15rem;
    transform: none;
  }
  .hero-prev { left: .7rem; }
  .hero-next { right: .7rem; }
  .hero-dots { bottom: 1.3rem; }
  .hero-slide-meta { margin-top: 1.1rem; }
  .wa-float { left: 1rem; bottom: 1rem; }
  .wa-float-label { display: none; }
  .wa-float-btn {
    width: 56px; height: 56px; padding: 0;
    justify-content: center; border-radius: 50%;
  }
  .wa-float-btn i { font-size: 1.7rem; }
  .wa-float-pulse { width: 56px; height: 56px; }
}

.section, .hero, .site-footer, .portfolio-page { position: relative; z-index: 1; }

.hero-slide-meta.is-in { animation: fadeUp .55s ease; }

.portfolio-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #071525 center/cover no-repeat;
  overflow: hidden;
}

.portfolio-hero-inner { position: relative; z-index: 2; padding: 8rem 0 3.5rem; width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.portfolio-hero h1 { max-width: 16ch; margin: .8rem 0; font-size: clamp(2rem, 4vw, 3.4rem); color: #fff; }
.portfolio-hero p { max-width: 62ch; color: rgba(255,255,255,.86); }
.portfolio-back { color: #9ff0e8; font-weight: 700; }
.portfolio-facts { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.2rem; color: rgba(255,255,255,.8); }
.portfolio-facts i { margin-right: .35rem; color: #9ff0e8; }

.portfolio-body .lead { max-width: 72ch; }
.portfolio-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 2rem 0; }
.portfolio-card {
  background: rgba(255,255,255,.88);
  border: 1px solid #dfe8f0;
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 16px 40px rgba(7,21,37,.05);
}
.portfolio-card h2, .portfolio-cta h2, .related-title { font-size: 1.35rem; margin-top: 0; }
.portfolio-card ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--mc-muted); }
.portfolio-card li + li { margin-top: .45rem; }
.portfolio-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.5rem; border-radius: 1.2rem;
  background: linear-gradient(135deg, #0b1f33, #123d56);
  color: #fff;
}
.portfolio-cta h2, .portfolio-cta p { color: #fff; }
.portfolio-cta p { margin: .35rem 0 0; max-width: 52ch; opacity: .85; }
.related-title { margin: 2.5rem 0 1rem; }

@keyframes heroDrift {
  from { transform: scale(1.14) translate3d(2%, 0, 0); }
  to { transform: scale(1.02) translate3d(-2.5%, -1.5%, 0); }
}

@keyframes heroLoad {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .portfolio-columns, .portfolio-cta { grid-template-columns: 1fr; display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient span, .hero-orbs span, .hero-slide.is-active, .hero-progress, .hero-slide-meta.is-in, .portfolio-cover {
    animation: none !important;
    transition: none !important;
  }
}
