:root {
  --dark: #0a0a0a;
  --dark-deep: #050505;
  --light: #efefef;
  --light-deep: #e4e4e4;
  --blue: #5aa9dd;
  --blue-deep: #4c97cf;
  --text-soft: #b4b4b4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(180deg, var(--light) 0%, var(--light-deep) 100%);
  color: #111;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  background: var(--dark);
}

.navbar {
  padding: 1rem 0;
}

.brand-logo {
  height: 60px;
}

.navbar-nav .nav-link {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 1.2rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--blue);
}

.section-light {
  background: transparent;
}

.section-dark {
  background: radial-gradient(circle at top, #1a1a1a 0%, var(--dark-deep) 70%);
  color: #fff;
  padding: 80px 0 110px;
}

.image-card {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
  background: #111;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  transition: opacity 0.25s ease;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.35s ease;
}

.image-card:not(.project-card) {
  cursor: pointer;
}

.image-card:not(.project-card):hover,
.image-card:not(.project-card):focus-within,
a.image-card:not(.project-card):focus-visible {
  transform: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.image-card:not(.project-card):hover::after,
.image-card:not(.project-card):focus-within::after,
a.image-card:not(.project-card):focus-visible::after {
  opacity: 0.82;
}

.image-card:not(.project-card):hover .card-image,
.image-card:not(.project-card):focus-within .card-image,
a.image-card:not(.project-card):focus-visible .card-image {
  transform: scale(1.04);
}

.hero-card {
  min-height: 420px;
}

.card-small {
  height: 360px;
}

.card-wide {
  min-height: 420px;
}

.project-card {
  height: 340px;
  border-radius: 24px;
}

.card-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  width: 160px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.hero-logo {
  width: 190px;
}

.card-plus {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.image-card:hover .card-plus,
.image-card:focus-within .card-plus {
  animation: plusPulse 2.6s ease-in-out infinite;
}

@keyframes plusPulse {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.92);
    color: #000;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  }
  50% {
    background: #000;
    color: #fff;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.4);
  }
}

.card-content {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  max-width: 70%;
}

.card-content-top {
  position: absolute;
  left: 28px;
  top: 110px;
  z-index: 2;
  color: #fff;
  max-width: 70%;
}

.hero-card .card-content {
  max-width: 60%;
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.7rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.card-title strong {
  font-weight: 700;
}

.card-title-lg {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 700;
  margin: 12px 0 16px;
}


.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.pill-light {
  background: #f4f4f4;
  color: #111;
}

.pill-dark {
  background: #0b0b0b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pill-outline {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.pill-outline-soft {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1rem;
  font-weight: 600;
}

.section-title-left {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.project-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-text {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.contact-wrapper {
  padding-bottom: 20px;
}

.contact-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 42px;
  padding: 40px 48px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contact-social {
  display: flex;
  gap: 12px;
}

.contact-social img {
  width: 34px;
  height: 34px;
}

.form-control-plain {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.form-control-plain:focus {
  background: transparent;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
}

.form-control-plain::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.btn-send {
  border-radius: 8px;
  padding: 8px 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.site-footer {
  background: #000;
  color: #fff;
  padding: 46px 0 50px;
}

.footer-logo {
  height: 92px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--blue);
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title-accent {
  color: var(--blue);
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social img {
  width: 34px;
  height: 34px;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 2147483647;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  isolation: isolate;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  color: #fff;
  background: #1ebe5d;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp img {
  width: 44px;
  height: 44px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .navbar-nav .nav-link {
    margin-left: 0;
    padding: 0.6rem 0;
  }

  .hero-card,
  .card-wide {
    min-height: 340px;
  }

  .card-small {
    height: 320px;
  }

  .project-card {
    height: 320px;
  }

  .card-content {
    max-width: 85%;
  }

  .card-content-top {
    top: 90px;
    max-width: 85%;
  }

  .card-logo {
    width: 130px;
  }

  .hero-logo {
    width: 150px;
  }

  .contact-card {
    padding: 32px;
  }
}

@media (max-width: 575px) {
  .brand-logo {
    height: 52px;
  }

  .hero-card .card-logo {
    width: 120px;
    top: 16px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .card-plus {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .card-content {
    left: 20px;
    right: 20px;
    max-width: 100%;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .section-dark {
    padding: 70px 0 90px;
  }

  .floating-whatsapp {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }

  .floating-whatsapp img {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .image-card:hover .card-plus,
  .image-card:focus-within .card-plus {
    animation: none;
  }
}
