@media screen and (max-width: 768px) {

  .reveal-left,
  .reveal-right {
    transform: translateY(28px);
  }

  .reveal-left.show,
  .reveal-right.show {
    transform: translateY(0);
  }

    .feature-box {
    text-align: left !important;
    justify-content: flex-start !important;
}

.feature-box h2 {
    text-align: left !important;
    margin-bottom: 6px;
}

.feature-box p {
    text-align: left !important;
}

.feature-box > div:last-child {
    width: 100%;
    text-align: left !important;
}

  .container {
    width: 100%;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  section {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }

  .hero {
    padding-top: 28px !important;
    padding-bottom: 38px !important;
    min-height: auto !important;
  }

  .hero-grid {
    padding-top: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-left {
    min-width: 0;
    max-width: 100%;
    text-align: center !important;
  }

  .hero-right {
    min-width: 0;
    max-width: 100%;
  }

  .hero .tag {
    display: inline-flex !important;
    margin-bottom: 20px;
  }

  .hero h1::before {
    content: none !important;
    display: none !important;
  }

  .hero h1 {
    font-size: 2.05rem !important;
    line-height: 1.12 !important;
    margin-bottom: 22px !important;
    text-align: center !important;
    letter-spacing: -0.8px;
  }

  .hero-description {
    max-width: 315px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 34px !important;
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
    text-align: center !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
    max-width: 340px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 38px !important;
  }

  .hero-actions a,
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .benefits-marquee,
  .features-grid {
    margin-top: 25px !important;
  }

  .benefits-marquee {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
  }

  .benefits-marquee.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
  }

  .benefits-track {
    display: flex !important;
    width: max-content;
    max-width: none;
    gap: 14px !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }

  .benefits-group {
    display: flex;
    gap: 14px;
  }

  .benefits-group .feature-box {
    flex: 0 0 clamp(260px, 78vw, 320px);
    width: clamp(260px, 78vw, 320px);
    min-width: 0;
  }

  .feature-card,
  .service-card,
  .process-card,
  .contact-info-item,
  .page-card {
    padding: 20px !important;
    border-radius: 18px !important;
  }

  .portfolio-card {
    padding: 0 !important;
    border-radius: 18px !important;
  }

  .portfolio-content {
    padding: 20px !important;
  }

  .feature-card {
    text-align: left !important;
  }

  .feature-card h3,
  .feature-card h4,
  .feature-card p {
    text-align: left !important;
  }

  .features-grid,
  .portfolio-grid,
  .process-grid,
  .contact-grid,
  .form-row,
  .pages-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .section-header {
    margin-bottom: 22px !important;
  }

  .section-title {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    text-align: left !important;
    margin-bottom: 12px !important;
  }

  .section-subtitle {
    text-align: left !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .process,
  .portfolio,
  .pages,
  .contact {
    padding-top: 35px !important;
  }

  .process-grid,
  .portfolio-grid,
  .pages-grid {
    margin-top: 0 !important;
  }

  .contact-form-box,
  .contact-info-box {
    padding: 22px !important;
  }

  .contact-info {
    display: block !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 18px !important;
  }

  .contact-info-toggle {
    width: 100%;
    min-height: 78px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
  }

  .contact-toggle-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(20, 230, 110, 0.14);
    border-radius: 50%;
    background: rgba(20, 230, 110, 0.08);
    color: #8ef0b8;
  }

  .contact-toggle-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .contact-toggle-copy strong {
    font-size: 1rem;
    line-height: 1.35;
  }

  .contact-toggle-copy > span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .contact-toggle-chevron {
    transition: transform 0.25s ease;
  }

  .contact-info.is-open .contact-toggle-chevron {
    transform: rotate(180deg);
  }

  .contact-info-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .contact-info.is-open .contact-info-details {
    max-height: 320px;
  }

  .contact-info-details-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px;
    transition: padding 0.25s ease;
  }

  .contact-info.is-open .contact-info-details-inner {
    padding: 0 12px 12px;
  }

  .contact-info .info-card {
    min-width: 0;
    gap: 9px;
    align-items: center;
    padding: 11px !important;
    border-radius: 13px;
  }

  .contact-info .info-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .contact-info .info-icon svg {
    width: 16px;
    height: 16px;
  }

  .contact-info .info-text {
    min-width: 0;
  }

  .contact-info .info-text h3 {
    margin-bottom: 1px;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .contact-info .info-text p {
    font-size: 0.73rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .contact-info .info-text a {
    color: #cfe1ff;
    text-decoration: underline;
    text-decoration-color: rgba(207, 225, 255, 0.35);
    text-underline-offset: 2px;
  }

  .tag,
  .chip,
  .type-chip {
    margin-bottom: 8px;
  }

  .floating-whatsapp {
    right: 18px !important;
    bottom: 90px !important;
  }

  .scroll-top {
    right: 18px !important;
    bottom: 25px !important;
  }

  .hero-right {
    display: none !important;
  }

  .portfolio-grid {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 0 24px !important;
    gap: 16px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .portfolio-swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: -10px 0 18px;
    color: #b9c8e6;
    font-size: 0.86rem;
    font-weight: 650;
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .portfolio-swipe-hint span {
    color: #14e66e;
    font-size: 1.15rem;
    animation: portfolio-swipe-hint 1.8s ease-in-out infinite;
  }

  .portfolio-swipe-hint.is-hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
  }

  .portfolio-grid::-webkit-scrollbar {
    display: none;
  }

  .portfolio-card {
    flex: 0 0 min(80vw, 360px);
    width: min(80vw, 360px);
    max-width: 380px;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .portfolio-content {
    min-width: 0;
  }

  .portfolio-description,
  .portfolio-content h3 {
    overflow-wrap: anywhere;
  }

  .portfolio-button {
    width: 100%;
    white-space: normal;
  }

  .portfolio-more {
    width: 100%;
    margin-top: 24px !important;
    padding-inline: 14px;
    justify-content: center;
  }

  .whatsapp-float,
  .scroll-top-btn {
    right: max(18px, env(safe-area-inset-right)) !important;
    width: 48px;
    height: 48px;
    opacity: 0.92;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  }

  .scroll-top-btn {
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  }

  .whatsapp-float {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  .whatsapp-float:hover,
  .whatsapp-float:focus-visible,
  .scroll-top-btn:hover,
  .scroll-top-btn:focus-visible {
    opacity: 1;
  }

  @keyframes portfolio-swipe-hint {
    0%, 100% { transform: translateX(0); opacity: 0.65; }
    50% { transform: translateX(7px); opacity: 1; }
  }
}

@media screen and (max-width: 350px) {
  .contact-info-details-inner {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 769px) {
  .benefits-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .benefits-group:first-child {
    display: contents;
  }

  .benefits-group[aria-hidden="true"] {
    display: none;
  }

  .contact-info-toggle {
    display: none;
  }

  .contact-info-details,
  .contact-info-details-inner {
    display: contents;
  }
}

@media (prefers-reduced-motion: reduce) {
  .benefits-marquee {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .benefits-marquee::-webkit-scrollbar {
    display: none;
  }

  .benefits-track {
    will-change: auto;
  }

  .contact-info-details,
  .contact-info-details-inner,
  .contact-toggle-chevron {
    transition: none;
  }

  .portfolio-swipe-hint span {
    animation: none;
  }
}
