:root {
  --text-color: #CCCCCC;
  --text-color2: #6d6c74;
}

/* ===================================================
   Global Viewport Fix: Prevent Page Horizontal Scrollbar
   =================================================== */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
}

.page-wrapper {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
}

/* Fix mobile menu off-screen overflow when closed */
.mobile-menu {
  overflow: hidden !important;
  pointer-events: none !important;
}

.mobile-menu-visible .mobile-menu {
  pointer-events: auto !important;
  overflow: visible !important;
}

/* Constrain all major sections to viewport */
.banner-section-h1,
.ks-service-area,
.about-section-h1,
.cta-section-h1,
.industries-section,
.ks-choose-2-area,
.contact-section-h1,
.main-footer {
  max-width: 100vw !important;
  overflow-x: clip !important;
}



/* ===================================================
   Services Infinite Auto-Scroll Carousel
   Pure GPU-accelerated continuous scroll without buttons
   =================================================== */
.services-marquee-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow: hidden !important;
  padding: 15px 0 35px 0;
  position: relative;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.services-marquee-wrapper:active {
  cursor: grabbing;
}

.services-marquee-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 24px;
  width: max-content;
  animation: servicesAutoScroll 20s linear infinite;
  will-change: transform;
}

/* Pause auto-scroll on hover so users can easily read & click */
.services-marquee-wrapper:hover .services-marquee-track,
.services-marquee-wrapper.is-paused .services-marquee-track {
  animation-play-state: paused;
}

@keyframes servicesAutoScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Individual card inside the auto-scroll track */
.service-scroll-item {
  flex: 0 0 360px !important;
  width: 360px !important;
  max-width: 360px !important;
  display: flex !important;
}

@media (max-width: 991px) {
  .service-scroll-item {
    flex: 0 0 320px !important;
    width: 320px !important;
    max-width: 320px !important;
  }
  .services-marquee-track {
    gap: 18px;
    animation-duration: 24s;
  }
  .services-marquee-wrapper {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 576px) {
  .service-scroll-item {
    flex: 0 0 285px !important;
    width: 285px !important;
    max-width: 285px !important;
  }
  .services-marquee-track {
    gap: 14px;
    animation-duration: 30s;
  }
}

.service-scroll-item .ks-service-item {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 350px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  z-index: 1;
}

.service-scroll-item .ks-service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--theme-color1, #007bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
}

.service-scroll-item .ks-service-item:hover .service-icon-box {
  background: var(--theme-color1, #007bff);
  color: #ffffff;
  transform: rotate(6deg) scale(1.06);
}

.service-number-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* ===================================================
   WhatsApp Direct Click Styling & Floating Button
   =================================================== */
.floating-whatsapp-btn {
  position: fixed !important;
  bottom: 25px !important;
  left: 25px !important;
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #25d366 !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.floating-whatsapp-btn i {
  font-size: 22px !important;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65) !important;
  color: #ffffff !important;
}

@media (max-width: 576px) {
  .floating-whatsapp-btn span {
    display: none !important;
  }
  .floating-whatsapp-btn {
    padding: 13px !important;
    border-radius: 50% !important;
    bottom: 20px !important;
    left: 20px !important;
    width: 48px !important;
    height: 48px !important;
    justify-content: center !important;
  }
}

.whatsapp-click-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-click-card:hover {
  border-color: #25d366 !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
  transform: translateY(-2px);
}

/* ===================================================
   Hero Section Layout & Consultation Form
   =================================================== */
.banner-section-h1 .inner-box {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 40px !important;
  padding-bottom: 70px !important;
  position: relative !important;
  z-index: 10 !important;
}

.banner-section-h1 .inner-box .banner-content {
  flex: 1 1 56% !important;
  max-width: 720px !important;
}

.banner-section-h1 .inner-box .banner-content .inner-content {
  max-width: 100% !important;
  margin: 20px 0 30px !important;
  font-size: 56px !important;
  line-height: 1.15 !important;
  margin-bottom: 22px !important;
}

@media (max-width: 1399.98px) {
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-title {
    font-size: 48px !important;
    line-height: 1.2 !important;
  }
}

.hero-form-box {
  flex: 0 0 440px !important;
  max-width: 440px !important;
  min-width: 0 !important;
}

@media (min-width: 1200px) {
  .hero-form-box {
    margin-right: 2vw;
  }
}

.hero-form-card {
  background: rgba(17, 12, 34, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 32px 30px 26px !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5) !important;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.hero-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffaa17;
}

.hero-form-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 170, 23, 0.12) !important;
  color: #ffaa17 !important;
  border: 1px solid rgba(255, 170, 23, 0.3) !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
}

.hero-form-title {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 14px 0 6px !important;
}

.hero-form-subtitle {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.hero-form {
  margin-top: 22px;
}

.hero-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.hero-form .form-group {
  margin-bottom: 14px;
}

.hero-form-card label {
  display: block;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 6px !important;
  text-transform: none;
  letter-spacing: 0;
}

.hero-form-card label .req {
  color: #ffaa17;
}

.hero-form-card label .optional {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}

.hero-form-card .form-control {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  padding: 11px 14px !important;
  width: 100% !important;
  min-height: 46px;
  height: auto !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.hero-form-card .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffaa17 !important;
  box-shadow: 0 0 0 3px rgba(255, 170, 23, 0.25) !important;
  outline: none !important;
}

.hero-form-card .form-control.is-invalid {
  border-color: #ff7a66 !important;
}

.hero-form-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.hero-form-card .hero-form-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}

.hero-form-card .hero-form-select:invalid {
  color: rgba(255, 255, 255, 0.4) !important;
}

.hero-form-card .hero-form-select option {
  color: #110c22;
  background: #ffffff;
}

.hero-form-card textarea.form-control {
  resize: vertical;
  min-height: 88px !important;
  line-height: 1.45 !important;
}

.hero-form-error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #ffb4a8;
}

.hero-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  background: #ffaa17 !important;
  color: #110c22 !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 20px !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

.hero-submit-btn:hover,
.hero-submit-btn:focus-visible {
  background: #ffffff !important;
  color: #110c22 !important;
}

.hero-form-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.hero-form-note i {
  color: #25d366;
  margin-right: 4px;
}

.hero-form-success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #ffffff;
  font-size: 13.5px;
  line-height: 1.55;
}

.hero-form-success a {
  color: #25d366;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .hero-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199.98px) {
  .banner-section-h1 .inner-box {
    flex-direction: column !important;
    gap: 40px !important;
    padding-bottom: 60px !important;
  }
  .banner-section-h1 .inner-box .banner-content {
    max-width: 100% !important;
    text-align: center !important;
  }
  .banner-section-h1 .inner-box .banner-content .inner-content {
    margin: 10px auto 10px !important;
    padding: 0 !important;
  }
  .banner-section-h1 .inner-box .hero-form-box {
    max-width: 520px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 767.98px) {
  .banner-section-h1 .inner-box .banner-content .inner-content .banner-title {
    font-size: 38px !important;
    line-height: 1.25 !important;
  }
  .hero-form-card {
    padding: 24px 18px 20px !important;
    border-radius: 16px !important;
  }
  .hero-form-title {
    font-size: 20px !important;
  }
}
/* ===================================================
   Industries We Serve Section
   =================================================== */
.industries-section {
  position: relative;
  padding: 100px 0 80px;
  background: #110c22;
  overflow: hidden;
}

.industries-section .sec-title-h1 .sub-title {
  color: var(--theme-color1);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.industries-section .sec-title-h1 .title {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 20px;
}

.industry-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px 24px 24px;
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--theme-color1);
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.industry-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 170, 23, 0.12);
  color: var(--theme-color1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-card-icon {
  background: var(--theme-color1);
  color: #110c22;
  transform: scale(1.08);
}

.industry-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.industry-card-text {
  font-size: 14.5px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
  flex-grow: 1;
}

.industry-card-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--theme-color1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.industry-card:hover .industry-card-link {
  color: #ffffff;
  gap: 10px;
}

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

/* Why Work with Us 5-item styling */
.why-us-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.why-us-list-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 170, 23, 0.12);
  color: var(--theme-color1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.why-us-list-title {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-us-list-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 22px;
  margin-bottom: 0;
}

/* Footer CTA banner: title + supporting line stacked, button beside */
.footer-style-one .upper-box .inner-box .footer-cta-copy {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  max-width: 560px;
  padding: 45px 0;
}
.footer-style-one .upper-box .inner-box .footer-cta-copy .title {
  padding: 0;
}
.footer-style-one .upper-box .inner-box .footer-cta-text {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 24px;
  color: rgba(17, 12, 34, 0.8);
}
.footer-style-one .upper-box .inner-box .theme-btn {
  margin-left: 40px;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .footer-style-one .upper-box .inner-box .footer-cta-copy {
    padding: 0;
  }
  .footer-style-one .upper-box .inner-box .theme-btn {
    margin-left: 0;
    flex-shrink: 1;
    max-width: 100%;
  }
  .footer-style-one .upper-box .inner-box .theme-btn .btn-title {
    white-space: normal;
  }
}

/* Footer: keep the email address as typed; let the bottom links wrap on phones */
.footer-style-one .newsletter-widget .list-style-five li a[href^="mailto:"] {
  text-transform: none;
}
@media (max-width: 767.98px) {
  .footer-style-one.main-footer .footer-bottom .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
  }
  .footer-style-one.main-footer .footer-bottom .footer-nav li {
    margin-left: 0;
  }
}

/* ===================================================
   Portfolio Section
   =================================================== */
.portfolio-section {
  position: relative;
  padding: 110px 0 100px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 170, 23, 0.10), transparent 70%),
    radial-gradient(700px 380px at 95% 100%, rgba(17, 12, 34, 0.06), transparent 70%),
    #f7f5f1;
  max-width: 100vw;
  overflow-x: clip;
}

.portfolio-section .sec-title-h1 .sub-title {
  color: #b87400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.portfolio-section .sec-title-h1 .title {
  color: #110c22;
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.portfolio-intro {
  font-size: 16px;
  line-height: 27px;
  color: #5d5a66;
  margin: 0 auto;
  max-width: 680px;
}

/* Filter pills */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 44px;
}

.portfolio-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(17, 12, 34, 0.12);
  background: #ffffff;
  color: #110c22;
  font-family: var(--title-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-filter:hover {
  border-color: var(--theme-color1);
  box-shadow: 0 8px 20px rgba(17, 12, 34, 0.08);
}

.portfolio-filter:focus-visible {
  outline: 2px solid var(--theme-color1);
  outline-offset: 3px;
}

.portfolio-filter.is-active {
  background: #110c22;
  border-color: #110c22;
  color: #ffffff;
}

.portfolio-filter-count {
  min-width: 26px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(17, 12, 34, 0.07);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.portfolio-filter.is-active .portfolio-filter-count {
  background: var(--theme-color1);
  color: #110c22;
}

/* Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-item[hidden] {
  display: none !important;
}

.portfolio-item.is-revealed {
  animation: portfolioReveal 0.5s ease both;
}

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

/* Card */
.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(17, 12, 34, 0.06);
  box-shadow: 0 6px 24px rgba(17, 12, 34, 0.06);
  overflow: hidden;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(17, 12, 34, 0.14);
}

.portfolio-card:focus-visible {
  outline: 3px solid var(--theme-color1);
  outline-offset: 3px;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ece8e1;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portfolio-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 12, 34, 0) 40%, rgba(17, 12, 34, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-card:hover .portfolio-thumb::after {
  opacity: 1;
}

.portfolio-zoom {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--theme-color1);
  color: #110c22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.portfolio-card:hover .portfolio-zoom,
.portfolio-card:focus-visible .portfolio-zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 22px 22px;
}

.portfolio-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 170, 23, 0.14);
  color: #8a5600;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.portfolio-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #110c22;
  transition: color 0.25s ease;
}

.portfolio-card:hover .portfolio-title {
  color: #b87400;
}

/* Actions */
.portfolio-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 50px;
}

.portfolio-more {
  border: 0;
  cursor: pointer;
}

.portfolio-more[hidden] {
  display: none !important;
}

.portfolio-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--title-font);
  font-size: 16px;
  font-weight: 600;
  color: #110c22;
  border-bottom: 2px solid var(--theme-color1);
  padding-bottom: 3px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.portfolio-cta-link:hover {
  color: #b87400;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .portfolio-grid { gap: 22px; }
}

@media (max-width: 991.98px) {
  .portfolio-section { padding: 80px 0 70px; }
  .portfolio-section .sec-title-h1 .title { font-size: 34px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .portfolio-section { padding: 64px 0 56px; }
  .portfolio-section .sec-title-h1 .title { font-size: 28px; }
  .portfolio-intro { font-size: 15px; line-height: 25px; }
  .portfolio-filters { gap: 8px; margin: 28px 0 30px; }
  .portfolio-filter { padding: 9px 14px; font-size: 14px; gap: 8px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-meta { padding: 16px 18px 18px; }
  .portfolio-title { font-size: 18px; }
}

/* Touch devices have no hover, so keep a small expand hint visible */
@media (hover: none) {
  .portfolio-zoom,
  .portfolio-card:hover .portfolio-zoom {
    opacity: 1;
    top: auto;
    left: auto;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    font-size: 14px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-item.is-revealed { animation: none; }
  .portfolio-card,
  .portfolio-thumb img,
  .portfolio-zoom { transition: none; }
}
