/* =====================================================
   RESPONSIVE.CSS — DevSupreme Global Responsive Overhaul
   Covers: Phone (≤480), Tablet (≤768), iPad (≤1024),
           Laptop (≤1280), Desktop (>1280)
   ===================================================== */

/* ── Global Resets ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

/* ===================================================================
   LARGE DESKTOP (≥1440px) — comfort spacing
   =================================================================== */
@media (min-width: 1440px) {
  .container, .container-lg, .container-xl {
    max-width: 1320px;
  }
}

/* ===================================================================
   LAPTOP / SMALL DESKTOP (≤1280px)
   =================================================================== */
@media (max-width: 1280px) {
  /* Hero */
  .hero-mascot-wrapper {
    width: 380px;
  }

  /* Services cards */
  .services-cards-row {
    gap: 1.5rem;
  }

  /* Products hero */
  .products-hero-grid {
    padding: 0 5vw 120px 5vw;
  }

  /* About journey */
  .journey-left {
    flex: 0 0 48%;
  }
  .journey-right {
    flex: 0 0 48%;
  }
}

/* ===================================================================
   TABLET / iPAD LANDSCAPE (≤1024px)
   =================================================================== */
@media (max-width: 1024px) {
  /* Hero section */
  .hero-mascot-wrapper {
    width: 320px;
  }

  .hero-text-col {
    padding-top: 6rem;
  }

  /* Services section */
  .services-title {
    font-size: 2.2rem;
  }

  .services-subtitle {
    font-size: 1.05rem;
  }

  .service-card {
    width: 280px;
    padding: 1.8rem 1.5rem 1.4rem 1.5rem;
  }

  /* About page */
  .about-section-inner {
    padding: 3.5rem 1.5rem;
  }

  .about-section-lead {
    font-size: 1.15rem;
  }

  /* Dev process */
  .process-steps-row {
    gap: 1.2rem;
  }

  .process-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .process-connector {
    font-size: 1.6rem;
    min-width: 24px;
  }

  /* Products hero */
  .products-hero-grid {
    padding: 0 4vw 100px 4vw;
  }

  .products-hero-heading {
    font-size: clamp(2.5rem, 7vw, 5rem);
  }

  /* Products stats */
  .products-stat-card {
    padding: 1.25rem 1.2rem;
    gap: 0.8rem;
  }

  .products-stat-number {
    font-size: 1.8rem;
  }

  /* Contact */
  .contact-heading {
    font-size: 2.1rem !important;
  }

  /* Tech stack */
  .tech-categories-row {
    gap: 1.5rem;
  }

  .tech-group-pill {
    padding: 0.8rem 1.4rem;
  }

  /* Core values slider */
  .cv-slider {
    padding: 2rem 70px;
  }
}

/* ===================================================================
   TABLET PORTRAIT / iPAD (≤768px)
   =================================================================== */
@media (max-width: 768px) {
  /* ── Navbar ── */
  #mainNav .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .navbar-brand span {
    font-size: 0.95rem !important;
  }

  .navbar-brand img {
    height: 34px !important;
  }

  /* ── General typography scaling ── */
  .services-title {
    font-size: 1.9rem;
  }

  .services-subtitle {
    font-size: 0.98rem;
    padding: 0 1rem;
  }

  .services-badge {
    font-size: 0.88rem;
  }

  /* ── Hero ── */
  .hero-headline {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-sub {
    font-size: 0.98rem;
    max-width: 100%;
  }

  .hero-mascot-col {
    padding-top: 2rem;
  }

  .hero-text-col .d-flex {
    justify-content: center;
  }

  .hero-mascot-wrapper {
    width: 240px;
    margin: 0 auto;
  }

  /* ── Floating hero cards — scale down ── */
  .hfc {
    transform: scale(0.75) !important;
  }

  /* Keep cards within screen bounds on tablet */
  .hero-mascot-wrapper .hfc-pills {
    top: 2% !important;
    left: -25px !important;
    transform-origin: left top;
  }

  .hero-mascot-wrapper .hfc-stat {
    top: 35% !important;
    right: -25px !important;
    transform-origin: right center;
  }

  .hero-mascot-wrapper .hfc-brand {
    bottom: -2% !important;
    right: -15px !important;
    transform-origin: right bottom;
  }

  .hfc-pills {
    min-width: 160px;
  }

  .hfc-stat {
    min-width: 120px;
  }

  .hfc-brand {
    min-width: 160px;
  }

  /* ── Services cards — single column ── */
  .services-cards-row {
    grid-template-columns: 1fr !important;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
    min-height: 360px !important;
  }

  /* ── Partners marquee ── */
  .partners-marquee img {
    height: 42px;
    padding: 8px;
  }

  .partners-section {
    padding: 2.5rem 0 2rem 0;
  }

  /* ── Tech stack ── */
  .tech-categories-row {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .tech-group-pill {
    padding: 0.7rem 1.2rem;
    gap: 0.7rem;
  }

  .tech-group-pill img {
    height: 32px !important;
    width: 32px !important;
  }

  /* ── Dev process ── */
  .process-steps-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .process-connector {
    transform: rotate(90deg);
    height: auto;
    margin-top: 0;
    min-width: auto;
  }

  .process-icon {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .process-label {
    font-size: 0.85rem;
  }

  /* ── About page ── */
  .about-hero-content {
    padding: 0 5vw;
  }

  .about-hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .about-section-inner {
    padding: 3rem 1.2rem;
  }

  .about-section-title {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
  }

  .about-section-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about-mv-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-mv-card {
    padding: 2rem 1.5rem;
  }

  /* Journey / Timeline — stacked */
  .journey-scroll-wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .journey-left {
    position: relative;
    height: auto;
    min-height: 120px;
    flex: none;
    padding-top: 40px;
  }

  .journey-year-active {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }

  .journey-right {
    flex: none;
    padding: 1.5rem 5vw;
    min-height: auto;
  }

  .journey-divider {
    display: none;
  }

  .journey-cards-label {
    font-size: clamp(1.4rem, 4vw, 2rem);
  }

  .journey-text-display p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* ── Core values slider ── */
  .cv-slider {
    min-height: 280px;
    padding: 2rem 50px;
  }

  .cv-slider-num {
    font-size: clamp(5rem, 14vw, 9rem);
  }

  .cv-slider-num--left {
    left: 20px;
  }

  .cv-slider-num--right {
    right: 20px;
  }

  .cv-slider-content {
    max-width: 300px;
    padding: 0 1.5rem;
  }

  .cv-slider-title {
    font-size: 1.5rem;
  }

  .cv-slider-desc {
    font-size: 1.05rem;
  }

  .cv-slider-arrow {
    width: 38px;
    height: 38px;
  }

  .cv-slider-arrow--left {
    left: 4px;
  }

  .cv-slider-arrow--right {
    right: 4px;
  }

  /* ── Products page ── */
  .products-hero-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5vw 80px 5vw;
  }

  .products-hero-heading {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .products-hero-desc {
    font-size: 0.95rem;
  }

  .products-hero-stats {
    flex-wrap: wrap;
  }

  .products-stat-card {
    flex: 1 1 45%;
    min-width: 140px;
    padding: 1.1rem 0.8rem;
    gap: 0.6rem;
  }

  .products-stat-number {
    font-size: 1.5rem;
  }

  .products-stat-label {
    font-size: 0.65rem;
  }

  .products-stat-card i {
    font-size: 1.5rem;
  }

  /* Products toolbar & grid */
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .products-search {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
  }

  .product-card-image {
    height: 160px;
  }

  /* Products modal */
  .pm-modal {
    width: 95%;
    max-height: 85vh;
  }

  .pm-image-col {
    flex: 0 0 100%;
    border-right: none;
    border-bottom: 1px solid #2a2d32;
    padding: 1.5rem;
  }

  .pm-details-col {
    padding: 1.5rem;
    min-width: auto;
  }

  .pm-details-col h2 {
    font-size: 1.4rem;
  }

  /* ── Contact page ── */
  .contact-heading {
    font-size: 2rem !important;
  }

  .contact-form-card {
    padding: 2rem 1.5rem !important;
  }

  .contact-info-block {
    padding: 1.1rem 1.2rem !important;
  }

  /* ── Footer ── */
  .footer-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
  }

  .footer-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* ── Services page hero ── */
  .masthead .display-4 {
    font-size: 2.4rem !important;
  }

  .masthead .lead {
    font-size: 1rem !important;
    padding: 0 1rem;
  }

  /* Services grids */
  .software-grid,
  .labeling-grid,
  .maintenance-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .service-details-card,
  .software-grid-card {
    padding: 1.5rem 1rem !important;
  }

  /* Dev process stepper */
  .dev-process-stepper {
    flex-direction: column !important;
    gap: 0.8rem 0 !important;
    align-items: center !important;
  }

  .dev-step-circle {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .dev-step-label {
    font-size: 0.95rem;
  }

  .dev-step-arrow {
    transform: rotate(90deg);
    height: auto !important;
    min-width: unset;
    margin-top: 0;
  }

  /* ── Contact CTA section ── */
  .contact-cta-section h2 {
    font-size: 1.7rem !important;
  }

  .contact-cta-section p {
    font-size: 1rem !important;
    padding: 0 1rem;
  }

  /* ── About cards (Mission/Vision) ── */
  .about-cards-section .services-cards-row {
    gap: 1.5rem;
  }

  .about-cards-section .services-cards-row .service-card {
    max-width: 100% !important;
  }

  /* ── Core values row ── */
  .core-values-row {
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-items: center !important;
  }

  .core-values-row .service-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* ===================================================================
   PHONE LANDSCAPE / LARGE PHONE (≤600px)
   =================================================================== */
@media (max-width: 600px) {
  /* ── Containers ── */
  .container,
  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* ── Navbar ── */
  .navbar-brand img {
    height: 30px !important;
    max-width: 34px !important;
  }

  .navbar-brand span {
    font-size: 0.9rem !important;
  }

  #mainNav {
    background: #181a1b !important;
    z-index: 4000 !important;
  }

  .navbar-collapse {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100vw !important;
    background: #181a1b !important;
    z-index: 3000 !important;
    padding: 1.2rem 1rem 1.5rem 1rem !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.7rem 0 !important;
    font-size: 1.08rem !important;
    border-bottom: 1px solid #232425;
  }

  /* ── Typography ── */
  .services-title {
    font-size: 1.6rem;
  }

  .services-subtitle {
    font-size: 0.92rem;
  }

  /* ── Hero ── */
  .hero-headline {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .hero-sub {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .hero-text-col {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .hero-text-col .d-flex {
    justify-content: center;
  }

  .hero-logo-img {
    height: 56px;
    margin-bottom: 1rem;
  }

  .hero-btn-main,
  .hero-btn-outline {
    padding: 0.55rem 1.3rem !important;
    font-size: 0.9rem !important;
  }

  .hero-mascot-wrapper {
    width: 170px;
    margin: 0 auto;
  }

  /* ── Floating hero cards — smaller ── */
  .hfc {
    transform: scale(0.60) !important;
    border-radius: 1rem;
  }

  /* Force positions so custom admin values don't push them off-screen */
  .hero-mascot-wrapper .hfc-pills {
    top: 0% !important;
    left: -20px !important;
    transform-origin: left top;
  }

  .hero-mascot-wrapper .hfc-stat {
    top: 40% !important;
    right: -20px !important;
    transform-origin: right center;
  }

  .hero-mascot-wrapper .hfc-brand {
    bottom: -5% !important;
    right: -10px !important;
    transform-origin: right bottom;
  }

  .hfc-pills {
    min-width: 140px;
    padding: 0.5rem 0.6rem;
    gap: 0.35rem;
  }

  .hfc-pill {
    padding: 0.3rem 0.6rem 0.3rem 0.35rem;
  }

  .hfc-pill-text {
    font-size: 0.62rem;
  }

  .hfc-pill-check {
    width: 16px;
    height: 16px;
  }

  .hfc-stat {
    min-width: 100px;
    padding: 0.6rem 0.7rem;
  }

  .hfc-stat-value {
    font-size: 1.3rem;
  }

  .hfc-stat-label {
    font-size: 0.62rem;
  }

  .hfc-brand {
    min-width: 130px;
    padding: 0.6rem 0.7rem;
  }

  .hfc-brand-title {
    font-size: 0.72rem;
  }

  .hfc-brand-subtitle {
    font-size: 0.62rem;
  }

  /* ── Service cards ── */
  .service-card {
    min-height: 280px !important;
    border-radius: 1rem;
  }

  .service-card-content {
    padding: 1.2rem;
  }

  .service-title {
    font-size: 1.05rem;
  }

  .service-desc {
    font-size: 0.88rem;
  }

  .service-card-icon-box {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* ── Partners ── */
  .partners-marquee img {
    height: 34px;
    padding: 6px;
  }

  .partners-marquee {
    gap: 2.5vw;
  }

  /* ── Tech stack ── */
  .tech-group-pill img {
    height: 26px !important;
    width: 26px !important;
  }

  .tech-category-label {
    font-size: 0.82rem;
  }

  /* ── About hero ── */
  .about-hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about-hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .about-hero-scroll-btn {
    font-size: 0.82rem;
    padding: 0.6rem 1.4rem;
  }

  /* ── About sections ── */
  .about-section-inner {
    padding: 2.5rem 1rem;
  }

  .about-section-header {
    margin-bottom: 2.5rem;
  }

  .about-section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .about-section-lead {
    font-size: 0.92rem;
    text-align: left;
    text-align-last: left;
  }

  .about-eyebrow-tag {
    font-size: 0.68rem;
    padding: 0.25rem 0.8rem;
  }

  /* ── Journey ── */
  .journey-year-active {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .journey-left {
    min-height: 100px;
    padding-top: 30px;
  }

  .journey-right {
    padding: 1.2rem 4vw;
  }

  .journey-cards-label {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .journey-text-display p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .journey-scroll-btn {
    width: 40px;
    height: 40px;
  }

  /* ── Core values slider ── */
  .cv-slider {
    min-height: 260px;
    padding: 1.5rem 42px;
  }

  .cv-slider-num {
    font-size: clamp(3.5rem, 14vw, 6rem);
  }

  .cv-slider-num--left {
    left: 8px;
  }

  .cv-slider-num--right {
    right: 8px;
  }

  .cv-slider-content {
    max-width: 230px;
    padding: 0 0.8rem;
  }

  .cv-slider-title {
    font-size: 1.3rem;
  }

  .cv-slider-desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .cv-slider-icon {
    font-size: 2rem;
  }

  .cv-slider-arrow {
    width: 32px;
    height: 32px;
  }

  .cv-slider-arrow svg {
    width: 16px;
    height: 16px;
  }

  .cv-slider-arrow--left {
    left: 2px;
  }

  .cv-slider-arrow--right {
    right: 2px;
  }

  .cv-slider-progress {
    max-width: 240px;
  }

  /* ── Mission / Vision cards ── */
  .about-mv-card {
    padding: 1.5rem 1.2rem;
  }

  .about-mv-card h3 {
    font-size: 1.2rem;
  }

  .about-mv-card p {
    font-size: 0.9rem;
  }

  .about-mv-icon {
    width: 48px;
    height: 48px;
  }

  /* ── Products page ── */
  .products-hero-grid {
    padding: 0 4vw 70px 4vw;
  }

  .products-hero-heading {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .products-hero-label {
    font-size: 0.72rem;
  }

  .products-hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .products-hero-cta {
    font-size: 0.82rem;
    padding: 0.6rem 1.4rem;
  }

  /* Products stats bar */
  .products-hero-stats {
    flex-wrap: wrap;
  }

  .products-stat-card {
    flex: 1 1 48%;
    padding: 0.8rem 0.6rem;
    gap: 0.5rem;
  }

  .products-stat-number {
    font-size: 1.3rem;
  }

  .products-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .products-stat-card i {
    font-size: 1.2rem;
  }

  /* Products grid */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .product-card-body {
    padding: 0.8rem 0.9rem 1rem;
  }

  .product-card-name {
    font-size: 0.95rem;
  }

  .product-card-desc {
    font-size: 0.8rem;
  }

  .product-card-image {
    height: 130px;
    padding: 1rem;
  }

  .product-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.5rem;
  }

  /* Filter pills */
  .filter-pills {
    gap: 0.35rem;
  }

  .filter-pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.8rem;
  }

  /* Products modal */
  .pm-modal {
    width: 96%;
    border-radius: 1rem;
  }

  .pm-details-col h2 {
    font-size: 1.25rem;
  }

  .pm-lead {
    font-size: 0.92rem;
  }

  /* ── Contact page ── */
  .contact-heading {
    font-size: 1.7rem !important;
  }

  .contact-desc {
    font-size: 0.9rem !important;
  }

  .contact-form-card {
    padding: 1.5rem 1rem !important;
  }

  .contact-social-link {
    width: 38px !important;
    height: 38px !important;
    font-size: 0.95rem !important;
  }

  .contact-name-subject-row {
    grid-template-columns: 1fr !important;
  }

  /* ── Services page ── */
  .masthead .display-4 {
    font-size: 2rem !important;
  }

  .masthead .lead {
    font-size: 0.92rem !important;
  }

  .service-details-card,
  .software-grid-card {
    padding: 1.2rem 0.8rem !important;
  }

  .dev-step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .dev-step-label {
    font-size: 0.88rem;
  }

  /* ── Footer ── */
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .footer {
    padding: 2rem 0 1rem 0;
  }

  .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .footer-section p,
  .footer-list li,
  .footer-list a {
    font-size: 0.88rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }

  /* ── Contact CTA ── */
  .contact-cta-section h2 {
    font-size: 1.5rem !important;
  }

  .contact-cta-section p {
    font-size: 0.92rem !important;
  }

  .contact-cta-section .hero-btn-main {
    font-size: 1rem !important;
    padding: 0.7rem 1.8rem !important;
  }
}

/* ===================================================================
   SMALL PHONE (≤480px)
   =================================================================== */
@media (max-width: 480px) {
  /* ── Typography ── */
  .services-title {
    font-size: 1.4rem;
  }

  /* ── Hero ── */
  .hero-headline {
    font-size: clamp(1.35rem, 6.5vw, 1.9rem);
  }

  .hero-sub {
    font-size: 0.85rem;
  }

  .hero-text-col {
    padding-top: 4.5rem;
    text-align: center;
  }

  .hero-logo-img {
    height: 48px;
    margin: 0 auto 0.8rem auto;
  }

  .hero-btn-main,
  .hero-btn-outline {
    padding: 0.5rem 1.1rem !important;
    font-size: 0.85rem !important;
  }

  .hero-mascot-wrapper {
    width: 190px;
  }

  /* ── Floating hero cards — hide on very small screens ── */
  .hfc {
    transform: scale(0.6);
  }

  /* ── Service cards ── */
  .service-card {
    min-height: 240px !important;
  }

  .service-card-content {
    padding: 1rem;
    gap: 0.5rem;
  }

  .service-card-label {
    font-size: 0.65rem;
  }

  /* ── Products grid — single column ── */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card-image {
    height: 150px;
    padding: 1.2rem;
  }

  .product-card-body {
    padding: 1rem;
  }

  .product-card-name {
    font-size: 1rem;
  }

  .product-card-desc {
    font-size: 0.85rem;
  }

  /* ── Products stats — 2×2 grid ── */
  .products-hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .products-stat-card {
    flex: 1 1 48%;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem 0.5rem;
  }

  .products-stat-card+.products-stat-card::before {
    display: none;
  }

  .products-stat-number {
    font-size: 1.2rem;
  }

  .products-stat-card i {
    font-size: 1.1rem;
  }

  /* ── Products modal ── */
  .pm-modal {
    width: 98%;
    max-height: 90vh;
    border-radius: 0.8rem;
  }

  .pm-image-col {
    padding: 1.2rem;
  }

  .pm-image-col img {
    max-height: 180px;
  }

  .pm-details-col {
    padding: 1.2rem;
  }

  .pm-details-col h2 {
    font-size: 1.15rem;
  }

  .pm-lead {
    font-size: 0.85rem;
  }

  .pm-close {
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
    top: 0.7rem;
    right: 0.7rem;
  }

  /* ── About hero ── */
  .about-hero-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .about-hero-subtitle {
    font-size: 0.9rem;
  }

  .about-hero-eyebrow {
    font-size: 0.72rem;
  }

  /* ── About sections ── */
  .about-section-inner {
    padding: 2rem 0.75rem;
  }

  .about-mv-card {
    padding: 1.3rem 1rem;
  }

  /* ── Journey ── */
  .journey-year-active {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .journey-left {
    min-height: 80px;
    padding-top: 20px;
  }

  .journey-right {
    padding: 1rem 3vw;
  }

  .journey-text-display p {
    font-size: 0.85rem;
  }

  .journey-scroll-btn {
    width: 36px;
    height: 36px;
  }

  /* ── Core values slider ── */
  .cv-slider {
    min-height: 240px;
    padding: 1.5rem 36px;
  }

  .cv-slider-num {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .cv-slider-num--left {
    left: 4px;
  }

  .cv-slider-num--right {
    right: 4px;
  }

  .cv-slider-content {
    max-width: 200px;
    padding: 0 0.5rem;
  }

  .cv-slider-title {
    font-size: 1.15rem;
  }

  .cv-slider-desc {
    font-size: 0.88rem;
  }

  .cv-slider-icon {
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
  }

  .cv-slider-arrow {
    width: 28px;
    height: 28px;
  }

  .cv-slider-arrow svg {
    width: 14px;
    height: 14px;
  }

  .cv-slider-progress {
    max-width: 180px;
    margin-top: 1rem;
  }

  /* ── Contact ── */
  .contact-heading {
    font-size: 1.5rem !important;
  }

  .contact-form-card {
    padding: 1.25rem 0.8rem !important;
    border-radius: 1rem !important;
  }

  .contact-info-block {
    padding: 1rem !important;
  }

  .contact-features li {
    font-size: 0.85rem !important;
  }

  button.contact-submit-btn,
  .contact-submit-btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  /* ── Services page ── */
  .masthead {
    height: 50vh !important;
    min-height: 400px !important;
  }

  .masthead .display-4 {
    font-size: 1.7rem !important;
  }

  .masthead .lead {
    font-size: 0.85rem !important;
  }

  .services-badge {
    font-size: 0.78rem;
    padding: 0.2em 0.9em;
  }

  .software-grid-item,
  .labeling-grid-item,
  .maintenance-grid-item {
    font-size: 0.95rem;
    padding: 0.5rem 0.3rem;
    gap: 0.6rem;
  }

  .software-icon {
    font-size: 1.3rem;
  }

  /* ── Footer ── */
  .footer-social-link {
    width: 36px;
    height: 36px;
  }
}

/* ===================================================================
   VERY SMALL PHONE (≤360px) — extra compact
   =================================================================== */
@media (max-width: 360px) {
  .hero-headline {
    font-size: 1.3rem;
  }

  .hero-sub {
    font-size: 0.8rem;
  }

  .hero-mascot-wrapper {
    width: 160px;
  }

  /* Hide floating cards on very small screens */
  .hfc {
    display: none;
  }

  .services-title {
    font-size: 1.25rem;
  }

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

  .products-hero-heading {
    font-size: 1.6rem;
  }

  .masthead .display-4 {
    font-size: 1.4rem !important;
  }

  .cv-slider {
    padding: 1rem 28px;
    min-height: 220px;
  }

  .cv-slider-content {
    max-width: 170px;
  }

  .cv-slider-title {
    font-size: 1rem;
  }

  .cv-slider-desc {
    font-size: 0.8rem;
  }

  .products-grid {
    gap: 0.8rem;
  }

  .contact-heading {
    font-size: 1.3rem !important;
  }
}

/* ===================================================================
   TOUCH DEVICE ADJUSTMENTS
   =================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for links/buttons */
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .filter-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .cv-slider-arrow {
    min-width: 44px;
    min-height: 44px;
  }

  .journey-scroll-btn {
    min-width: 44px;
    min-height: 44px;
  }

  /* Disable hover-only effects */
  .service-card:hover {
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }

  .services-cards-row .service-card:nth-child(1):hover,
  .services-cards-row .service-card:nth-child(2):hover,
  .services-cards-row .service-card:nth-child(3):hover {
    transform: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  }
}

/* ===================================================================
   LANDSCAPE ORIENTATION on phones — fix hero height
   =================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .about-hero-fullscreen,
  .hero-inner {
    min-height: auto;
    height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .products-hero {
    min-height: auto;
    height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .masthead {
    min-height: 400px !important;
    height: auto !important;
  }

  .hero-mascot-col {
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .hero-mascot-wrapper {
    width: 180px;
  }
}

/* ===================================================================
   PRINT — basic cleanup
   =================================================================== */
@media print {
  #particles-js,
  .navbar,
  .footer-social,
  .cv-slider-arrow,
  .journey-scroll-btn,
  .hero-btn-main,
  .hero-btn-outline {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .service-card,
  .product-card,
  .about-mv-card,
  .contact-form-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
