/* Final refinements: mouse effects, logos, team, contact and portfolio. */

/* Restrained ambient motion, with desktop-only pointer enhancements. */
.card:before {
  opacity: .45;
  animation-duration: 12s;
}

.card:hover:before {
  opacity: .75;
}

.card:hover {
  transform: translateY(-4px);
}

.hub {
  animation-duration: 5s;
}

.closing {
  animation-duration: 7s;
}

.whatsapp:before {
  animation-duration: 3.5s;
}

.mouse-spotlight {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}

.mouse-spotlight:before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  left: -240px;
  top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle,#ff6b010a 0%,#ff6b0104 40%,transparent 70%);
}

[data-theme=dark] .mouse-spotlight:before {
  background: radial-gradient(circle,#ff6b0110 0%,#ff6b0106 40%,transparent 70%);
}

@media (hover:hover) and (pointer:fine) and (min-width:901px) and (prefers-reduced-motion:no-preference) {
  .mouse-spotlight {
    display: block;
  }
  .mouse-spotlight.visible {
    opacity: 1;
  }
  .button {
    transition: translate .22s ease-out,transform .25s,box-shadow .25s,background .25s;
  }
  .orbit {
    transition: translate .65s cubic-bezier(.2,.65,.3,1);
  }
}

@media(prefers-reduced-motion:reduce) {
  .mouse-spotlight {
    display: none!important;
  }
  .button,.orbit {
    translate: none!important;
  }
}

/* Supplied SVG brand assets: preserved proportions and theme-safe contrast. */
.service-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 64px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  flex-shrink: 0;
}

.service-brand img {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.service-brand.brand-shopify img,.service-brand.brand-wordpress img,.service-brand.brand-digital-marketing img {
  width: 42px;
  height: 42px;
}

.service-brand.etsy-mark {
  font-family: Georgia,serif;
  font-size: 34px;
  letter-spacing: -1px;
  color: #f1641e;
}

.card-top {
  gap: 12px;
}

/* Leadership and team photographs */
.portrait.team-portrait {
  background: #252525;
  align-items: stretch;
}

.portrait.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.portrait.team-portrait[data-person="rana-asad"] img {
  object-position: center 27%;
}

.portrait.team-portrait span {
  display: grid;
  gap: 2px;
  left: 20px;
  bottom: 20px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}

.portrait.team-portrait span strong {
  font-family: 'Clash Display',Arial,sans-serif;
  font-size: 19px;
  line-height: 1.1;
  color: #151515;
  letter-spacing: -.02em;
}

.team-card {
  min-height: 390px;
}

.team-avatar {
  width: 96px;
  height: 96px;
  background: var(--surface2);
  border-radius: 50%;
  overflow: hidden;
  color: #a8a397;
  margin-bottom: 20px;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.team-card h3 {
  margin: 12px 0 3px;
}

.team-card h4 {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.team-card p:last-child {
  margin-top: 14px;
}

@media(max-width:767px) {
  .team-card {
    min-height: 0;
  }
  .team-avatar {
    width: 102px;
    height: 102px;
  }
}

/* Show founder photographs in their complete original frame. */
.portrait.team-portrait {
  height: auto;
  display: block;
  aspect-ratio: auto;
}

.portrait.team-portrait img {
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
}

.portrait.team-portrait[data-person="rana-asad"] img {
  object-position: center;
}

.team {
  align-items: start;
}

.team-card {
  min-height: 0;
  height: max-content;
  align-self: start;
}

/* Real team portraits in the Home-page orbit */
.hub img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 26%;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
}

.s0 .avatar img {
  object-position: center 26%;
}

/* Readability and contact details */
body {
  font-size: 16px;
}

.eyebrow {
  font-size: 11px;
}

.pill {
  font-size: 10px;
}

.lead {
  font-size: 16px;
}

.stats small {
  font-size: 11px;
}

nav a {
  font-size: 13px;
}

.button {
  font-size: 13px;
}

.button.small {
  font-size: 12px;
}

.section-heading p:not(.eyebrow),.split p {
  font-size: 14px;
}

.text-link {
  font-size: 12px;
}

.card p {
  font-size: 13px;
}

.card .text-link {
  font-size: 11px;
}

.number {
  font-size: 11px;
}

.contact-line small,.form-card label {
  font-size: 12px;
}

input,select,textarea {
  font-size: 14px;
}

.form-card .form-note {
  font-size: 11px;
}

.footer-grid p {
  font-size: 13px;
}

.footer-grid h4 {
  font-size: 13px;
}

.footer-grid>div>a:not(.logo) {
  font-size: 13px;
}

.footer-grid .eyebrow {
  font-size: 9px;
}

.footer-bottom {
  justify-content: flex-start;
  font-size: 12px;
}

.contact-line p a {
  color: var(--text);
  font-weight: 600;
}

.contact-line p a:hover {
  color: var(--orange);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact a {
  display: flex!important;
  align-items: center;
  gap: 10px;
  margin: 0!important;
  color: #d7d7d7!important;
  font-size: 13px!important;
  line-height: 1.25;
}

.footer-contact a:hover {
  color: #fff!important;
}

.footer-contact a>span:last-child {
  display: grid;
  gap: 2px;
}

.footer-contact small {
  color: #858585;
  font-size: 9px;
  letter-spacing: 1.1px;
}

.footer-contact-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #484848;
  border-radius: 8px;
  color: var(--orange);
  font-size: 16px;
}

.social-links {
  display: flex;
  gap: 9px;
  margin-top: 19px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #454545;
  border-radius: 50%;
  color: #e7e7e7;
  transition: transform .2s,border-color .2s,color .2s;
}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  color: var(--orange);
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-icon.instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.social-icon.instagram svg .filled {
  fill: currentColor;
  stroke: none;
}

.footer-credit {
  display: grid;
  gap: 5px;
}

.zainify-link {
  color: #A7EB07!important;
  font-weight: 700;
}

.zainify-link:hover {
  color: #d2ff69!important;
}

@media(max-width:767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    font-size: 11px;
  }
  .footer-contact a {
    font-size: 12px!important;
  }
  .social-links {
    gap: 7px;
  }
  .social-icon {
    width: 33px;
    height: 33px;
  }
}

@media(max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .lead {
    font-size: 15px;
  }
  .button {
    font-size: 12px;
  }
  .footer-bottom {
    padding-bottom: 28px;
  }
}

/* Portfolio screenshots */
.home-portfolio-slider {
  overflow: hidden;
  padding: 3px 0;
}

.home-portfolio-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: portfolio-scroll 34s linear infinite;
}

.home-portfolio-slider:hover .home-portfolio-track {
  animation-play-state: paused;
}

.home-portfolio-card {
  margin: 0;
  flex: 0 0 clamp(275px,30vw,365px);
  height: 220px;
  background: #fff;
  border: 1px solid #dfe5e5;
  border-top: 4px solid #167c80;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000000c;
}

.home-portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@keyframes portfolio-scroll {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 25px;
  align-items: start;
}

.portfolio-image {
  margin: 0;
  background: #fff;
  border: 1px solid #dde4e4;
  border-top: 4px solid #167c80;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px #0000000b;
}

.portfolio-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

@media(max-width:980px) {
  .home-portfolio-card {
    flex-basis: calc((100vw - 100px)/2);
    height: 220px;
  }
  .portfolio-gallery {
    gap: 18px;
  }
}

@media(max-width:767px) {
  .home-portfolio-card {
    flex-basis: 78vw;
    height: 205px;
  }
  .portfolio-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .home-portfolio-track {
    animation: none;
  }
}
