/* ==========================================================================
   TARGETCOM — Mobile (portrait) layout
   Same design system as the desktop, but image-free and single-column.
   Loaded only on portrait phones via the <link media> attribute.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Remove decorative imagery (keeps branding logos only)
   -------------------------------------------------------------------------- */
.hero {
  background-image: linear-gradient(rgba(39, 5, 25, 0.6), rgba(39, 5, 25, 0.6)),
    url("assets/Herosection image.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #270519;
}

.hero::before {
  display: none;
}

.services-image {
  display: none !important;
}

/* Living background — slow left-to-right drift plus soft breathing glow */
body::after {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 22%, rgba(232, 59, 59, 0.07) 0%, rgba(232, 59, 59, 0) 70%),
    radial-gradient(ellipse 50% 40% at 82% 78%, rgba(150, 25, 55, 0.06) 0%, rgba(150, 25, 55, 0) 70%),
    linear-gradient(100deg, rgba(232, 59, 59, 0) 25%, rgba(232, 59, 59, 0.045) 50%, rgba(232, 59, 59, 0) 75%);
  background-size: auto, auto, 220% 100%;
  background-repeat: no-repeat;
  animation: mobile-bg-live 26s ease-in-out infinite alternate;
  will-change: transform, opacity, background-position;
}

@keyframes mobile-bg-live {
  0% {
    opacity: 0.45;
    transform: translateX(-3%) scale(1);
    background-position: 0 0, 0 0, 0% 50%;
  }
  50% {
    opacity: 0.8;
    transform: translateX(0) scale(1.05);
    background-position: 0 0, 0 0, 50% 50%;
  }
  100% {
    opacity: 0.45;
    transform: translateX(3%) scale(1);
    background-position: 0 0, 0 0, 100% 50%;
  }
}

/* --------------------------------------------------------------------------
   2. Section rhythm — natural height, consistent padding
   -------------------------------------------------------------------------- */
.next-section,
#our-services {
  min-height: auto;
  padding: clamp(40px, 8vw, 56px) clamp(20px, 6vw, 96px) clamp(20px, 4vw, 28px);
}

.next-section::before {
  content: "";
  inset: auto;
  top: 0;
  bottom: auto;
  left: 50%;
  right: auto;
  width: clamp(56px, 15vw, 90px);
  height: 1px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero img.logo {
  top: 24px;
  left: clamp(20px, 6vw, 96px);
  transform: none;
  height: 22px;
}

.socials {
  top: 28px;
  right: 20px;
  gap: 14px;
}

.content {
  max-width: 100%;
  margin: 0;
  padding: 0 clamp(20px, 6vw, 96px);
  text-align: center;
}

.content h1 {
  font-size: clamp(2.1rem, 9vw, 3rem);
}

.content p {
  font-size: 1rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  text-align-last: center;
  text-wrap: balance;
}

.hero-cta {
  margin-top: 24px;
}

.scroll-hint {
  position: static;
  margin-top: 36px;
  transform: none;
  animation: none;
}

/* --------------------------------------------------------------------------
   4. Section titles — infinite right-to-left strap
   -------------------------------------------------------------------------- */
.services-title,
.solutions-title,
.portfolio-title,
.contact-title {
  position: static;
  top: auto;
  align-self: stretch;
  margin: 0 calc(-1 * clamp(20px, 6vw, 96px)) clamp(28px, 6vw, 44px);
  font-size: clamp(1.8rem, 10vw, 3rem);
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.services-title .strap-track,
.solutions-title .strap-track,
.portfolio-title .strap-track,
.contact-title .strap-track {
  display: inline-flex;
  animation: strap-move 18s linear infinite;
}

.services-title .strap-chunk em,
.solutions-title .strap-chunk em,
.portfolio-title .strap-chunk em,
.contact-title .strap-chunk em {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Services — 2-column grid, icon + title cards, tap to expand
   -------------------------------------------------------------------------- */
.services-body {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  min-width: 0;
  padding: 18px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.service-card img {
  height: 34px;
  width: auto;
}

.service-card h3 {
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

.service-card .service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.service-card.open .service-details {
  max-height: 260px;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Solutions — pizza + menu visual on top (above the heading/text)
   -------------------------------------------------------------------------- */
.solutions-body {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 24px;
}

.solutions-intro {
  position: relative;
  z-index: 2;
  transform: none;
  margin: 0 auto;
  text-align: center;
}

.solutions-visual {
  position: relative;
  order: -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
  transform: none;
}

.solutions-visual img {
  width: min(88%, 360px);
  max-height: none;
  animation: menu-float-m 6s ease-in-out infinite;
}

.solutions-visual .pizza-overlay {
  width: 62%;
  max-height: none;
  animation: pizza-float-m 7s ease-in-out infinite;
}

.holo {
  transform: scale(0.75);
}

@keyframes menu-float-m {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes pizza-float-m {
  0%, 100% {
    transform: translateY(8px);
  }
  50% {
    transform: translateY(-40px);
  }
}

.solutions-footer {
  text-align: center;
}

/* --------------------------------------------------------------------------
   7. Portfolio — folder animation
   -------------------------------------------------------------------------- */
.portfolio-body {
  margin-top: 0;
  padding-top: clamp(24px, 6vw, 40px);
  text-align: center;
}

.pf3d {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   8. Contact
   -------------------------------------------------------------------------- */
.contact-body {
  margin-top: 0;
  margin-right: 0;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-intro {
  text-align: center;
}

.contact-intro h3 {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 14px 28px;
}

.contact-list li {
  justify-content: flex-start;
}

.form {
  padding: 20px;
  gap: 16px;
}

.form-row {
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-submit {
  align-self: stretch;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 40px 20px 96px;
}

.site-footer::after {
  background: linear-gradient(
    to bottom,
    rgba(232, 59, 59, 0.07) 0%,
    rgba(232, 59, 59, 0.025) 30%,
    rgba(232, 59, 59, 0) 100%
  );
}

.footer-inner {
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand p {
  margin: 18px auto 0;
  max-width: 100%;
}

.footer-links {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: #ff5a5a;
  transform: translateX(4px);
}

.footer-social {
  justify-content: center;
  text-align: center;
}

.footer-social .label {
  width: auto;
}

.footer-bottom {
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Bottom navigation — liquid glass dock
   -------------------------------------------------------------------------- */
.capsules {
  position: fixed;
  top: auto;
  left: 50%;
  right: auto;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 0 12px;
  z-index: 100;
}

.glass-dock {
  flex-direction: row;
  border-radius: 999px;
  padding: 8px;
  gap: 14px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px) saturate(135%);
  -webkit-backdrop-filter: blur(5px) saturate(135%);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.28),
    0 1px 6px rgba(255, 255, 255, 0.07) inset;
}

.bubble {
  top: 8px;
  left: 8px;
  width: 52px;
  height: 52px;
}

.glass-item {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
}

.glass-item i {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.glass-item span {
  display: none;
}

/* --------------------------------------------------------------------------
   11. Misc
   -------------------------------------------------------------------------- */
.sound-wrap {
  bottom: 80px;
}

#target-cursor {
  display: none;
}

html, body, a, button {
  cursor: auto;
}

/* Language toggle stays centered and compact above logo + socials */
.topbar {
  padding-top: 8px;
}

.lang-toggle button {
  font-size: 0.62rem;
  padding: 4px 10px;
}

/* NEW badge fits the round icon dock */
.nav-badge {
  top: -5px;
  right: -3px;
  font-size: 0.5rem;
  padding: 2px 6px;
}

/* Discover line flows centered right above the scroll hint */
.hero-discover {
  position: static;
  margin: 8px 0 0;
  padding: 0 clamp(20px, 6vw, 96px);
  pointer-events: none;
}
