/* ============================================================
   ZEROCREATION — RESPONSIVE STYLES
   Breakpoints:
   • Large Desktop : min-width 1440px
   • Tablet        : max-width 1023px
   • Mobile Large  : max-width 767px
   • Mobile Small  : max-width 479px
   ============================================================ */

/* ─── GLOBAL BASE ──────────────────────────────────────────── */

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

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

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ─── LARGE DESKTOP  (min-width: 1440px) ──────────────────── */

@media (min-width: 1440px) {
  .site-header-inner {
    padding: 0 64px;
  }

  #hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #hero h1 {
    font-size: 4.5rem !important;
  }
}

/* ─── TABLET  (max-width: 1023px) ─────────────────────────── */

@media (max-width: 1023px) {
  /* Header */
  .site-header {
    height: 72px;
  }

  .site-header-inner {
    padding: 0 32px;
  }

  .header-logo-img {
    height: 42px;
  }

  main#main-content {
    padding-top: 72px;
  }

  /* Hero */
  #hero {
    padding-top: 64px;
    padding-bottom: 64px;
    min-height: auto;
  }

  #hero .grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  #hero .lg\:col-span-7 {
    order: 1;
  }

  #hero .lg\:col-span-5 {
    order: 2;
  }

  #hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem) !important;
    line-height: 1.1 !important;
  }

  /* About / Ideas section */
  section.bg-\[#fafafa\].pt-12 .grid.grid-cols-1.lg\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  section.bg-\[#fafafa\].pt-12 .rounded-\[2rem\].aspect-\[4\/3\] {
    aspect-ratio: 16 / 9 !important;
  }

  section.bg-\[#fafafa\].pt-12 .absolute.-bottom-5 {
    display: none !important;
  }

  /* Industries */
  #industries .grid.grid-cols-1.lg\:grid-cols-12 {
    grid-template-columns: 1fr !important;
  }

  #industries .lg\:col-span-4 {
    padding-right: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 40px;
    margin-bottom: 0;
  }

  #industries .grid.grid-cols-2.md\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  #industries .lg\:col-span-4 h2 {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
  }

  /* Stats */
  section.py-20.bg-black .grid.grid-cols-2.md\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }

  section.py-20.bg-black .grid.grid-cols-2 > div {
    border: none !important;
    padding: 32px 24px !important;
  }

  section.py-20.bg-black .stat-counter {
    font-size: clamp(2.5rem, 8vw, 4rem) !important;
  }

  /* Testimonials */
  #testimonials {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  #testimonials h2 {
    font-size: clamp(2rem, 5vw, 3.2rem) !important;
  }

  #testimonials .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 40px !important;
  }
}

/* ─── MOBILE LARGE  (max-width: 767px) ────────────────────── */

@media (max-width: 767px) {
  /* Header */
  .site-header {
    height: 64px;
  }

  .site-header-inner {
    padding: 0 20px;
  }

  .header-logo-img {
    height: 36px;
  }

  main#main-content {
    padding-top: 64px;
  }

  .hamburger-btn {
    width: 44px !important;
    height: 44px !important;
    padding: 10px !important;
  }

  .hamburger-line:nth-child(1),
  .hamburger-line:nth-child(3) {
    width: 22px !important;
  }

  .hamburger-line:nth-child(2) {
    width: 16px !important;
  }

  /* Hero */
  #hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  #hero h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem) !important;
    line-height: 1.12 !important;
    margin-bottom: 1.25rem !important;
  }

  #hero .w-12.h-1 {
    display: none !important;
  }

  #hero p.text-base {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 1.5rem !important;
  }

  #hero .flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  #hero a[href="contact.php"],
  #hero a[href="#work"] {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 24px !important;
  }

  #hero .swiper.hero-cards-swiper {
    max-width: 240px !important;
  }

  #hero .lg\:col-span-5 {
    min-height: 280px !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
    padding-top: 8px !important;
  }

  #hero .-bottom-4.-left-4 {
    padding: 10px 12px !important;
  }

  #hero .-right-2.top-\[10\%\],
  #hero .-right-4.top-\[10\%\] {
    right: -4px !important;
    font-size: 7px !important;
    padding: 6px 10px !important;
  }

  #hero .relative.w-\[75\%\].max-w-\[260px\] {
    max-width: 230px !important;
  }

  #hero > div.container svg.absolute.top-1\/2 {
    display: none !important;
  }

  #hero .absolute.top-0.right-0.rounded-full {
    opacity: 0.3 !important;
  }

  #hero .h-\[1px\].bg-neutral-200 {
    display: none !important;
  }

  /* Logo Slider */
  section.py-16.bg-white {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  section.py-16.bg-white .text-center.mb-8 {
    padding: 0 20px;
  }

  section.py-16.bg-white .section-label {
    text-align: center !important;
    justify-content: center !important;
  }

  .logos-swiper .swiper-slide img {
    height: 60px !important;
  }

  .logos-swiper .swiper-slide > div {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* About / Ideas section */
  section.bg-\[#fafafa\].pt-12 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  section.bg-\[#fafafa\].pt-12 h2 {
    font-size: clamp(1.7rem, 6.5vw, 2.6rem) !important;
    margin-bottom: 1rem !important;
  }

  section.bg-\[#fafafa\].pt-12 h2.font-heading {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem) !important;
    line-height: 1.12 !important;
  }

  section.bg-\[#fafafa\].pt-12 p.text-base {
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
  }

  section.bg-\[#fafafa\].pt-12 ul.space-y-4 li {
    font-size: 0.875rem !important;
  }

  /* Industries */
  #industries {
    padding-top: 0;
  }

  #industries .lg\:col-span-4 {
    padding: 40px 20px 32px !important;
  }

  #industries .lg\:col-span-4.flex.flex-col {
    padding-top: 40px !important;
    padding-bottom: 32px !important;
  }

  #industries .lg\:col-span-4 h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    margin-bottom: 0.75rem !important;
  }

  #industries h2.font-heading {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }

  #industries .lg\:col-span-4 p {
    font-size: 0.875rem !important;
  }

  #industries .group.relative.flex.flex-col {
    padding: 20px 16px !important;
  }

  #industries .group .w-14.h-14 {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 12px !important;
  }

  #industries .group span.text-\[15px\] {
    font-size: 13px !important;
  }

  #industries .lg\:col-span-8 .grid > div {
    border-right: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
  }

  #industries .lg\:col-span-8 .grid > div:nth-child(odd) {
    border-right: 1px solid #e5e5e5 !important;
  }

  #industries .lg\:col-span-8 .grid > div:last-child {
    border-bottom: none !important;
    border-right: none !important;
  }

  #industries .lg\:col-span-8 .grid > div:nth-last-child(2):nth-child(odd) {
    border-bottom: none !important;
  }

  /* Stats */
  section.py-20.bg-black {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  section.py-20.bg-black .grid.grid-cols-2 > div {
    padding: 24px 16px !important;
    text-align: center !important;
    align-items: center !important;
  }

  section.py-20.bg-black .stat-counter {
    font-size: clamp(2.2rem, 9vw, 3.5rem) !important;
  }

  section.py-20.bg-black span.text-\[10px\] {
    font-size: 8px !important;
    letter-spacing: 0.2em !important;
  }

  section.py-20.bg-black .flex.flex-col.items-center,
  section.py-20.bg-black .flex.flex-col.md\:items-start {
    align-items: center !important;
    text-align: center !important;
  }

  /* Testimonials */
  #testimonials {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    overflow: hidden;
  }

  #testimonials.py-24 {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  #testimonials h2 {
    font-size: clamp(1.7rem, 7vw, 2.6rem) !important;
    line-height: 1.1 !important;
  }

  #testimonials h2.font-heading {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }

  #testimonials .testimonials-swiper {
    width: 100% !important;
    overflow: hidden !important;
  }

  #testimonials .swiper-slide {
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  #testimonials .swiper-slide > div {
    padding: 24px 20px !important;
    border-radius: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #testimonials p.text-base,
  #testimonials p.text-lg {
    font-size: 0.9rem !important;
    line-height: 1.75 !important;
    margin-bottom: 1.25rem !important;
  }

  #testimonials .w-12.h-12.rounded-full {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
  }

  #testimonials .font-bold.text-sm {
    font-size: 13px !important;
  }

  #testimonials .text-\[10px\] {
    font-size: 8px !important;
    letter-spacing: 0.2em !important;
  }

  #testimonials .text-6xl {
    font-size: 3rem !important;
    line-height: 1 !important;
  }

  #testimonials .swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 16px !important;
  }

  /* Sidebar */
  .sidebar-panel {
    width: min(100vw, 460px) !important;
  }

  .sidebar-nav-link {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    padding: 16px 0 !important;
  }

  .sidebar-nav-link-arrow {
    width: 30px !important;
    height: 30px !important;
  }

  /* Project Modal */
  #project-modal-panel {
    width: 95% !important;
    padding: 2rem 1.5rem !important;
    margin: 3vh auto !important;
    border-radius: 1.5rem !important;
  }

  #project-modal-panel form > div[style*="grid-template-columns:1fr 1fr"],
  #project-modal-panel form > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Scroll Progress Bar */
  #scroll-progress {
    height: 2px;
  }

  /* Container Padding */
  .container.mx-auto {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Typography */
  .section-label {
    font-size: 8px !important;
    letter-spacing: 0.3em !important;
    margin-bottom: 1rem !important;
  }

  /* Touch Targets */
  a[href],
  button {
    min-height: 44px;
  }

  .sidebar-nav-link,
  .sidebar-social-btn,
  .hamburger-btn,
  .header-cta-btn {
    min-height: 44px !important;
  }

  .inline-flex.rounded-full a[href]:not(.inline-flex) {
    min-height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .video-trigger {
    width: 72px !important;
    height: 72px !important;
  }

  /* Border Radius */
  .rounded-\[3rem\],
  .rounded-\[2rem\] {
    border-radius: 1.25rem !important;
  }

  .rounded-3xl,
  .rounded-\[1\.5rem\] {
    border-radius: 1rem !important;
  }

  /* Buttons */
  .magnetic-btn {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
    font-size: 10px !important;
    letter-spacing: 0.25em !important;
    min-height: 48px !important;
  }

  .flex.flex-col.sm\:flex-row > .magnetic-btn,
  .flex.flex-col.sm\:flex-row > a[href].group {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Work / Portfolio */
  .work-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .work-tab-btn {
    padding: 8px 16px !important;
    font-size: 10px !important;
  }

  .port-card,
  .video-card {
    border-radius: 1rem !important;
  }

  #work-tabs-bar .py-4 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  #work-tabs-bar .text-\[9px\] {
    font-size: 8px !important;
    margin-right: 8px !important;
  }

  /* Footer */
  footer {
    font-size: 0.875rem;
    padding-top: 48px !important;
  }

  footer .grid.grid-cols-1.md\:grid-cols-12 {
    gap: 28px !important;
  }

  footer h4 {
    margin-bottom: 14px !important;
    font-size: 9px !important;
  }

  footer ul.flex.flex-col.gap-5 {
    gap: 8px !important;
  }

  footer ul.flex.flex-col.gap-5 li a {
    font-size: 0.9rem !important;
    min-height: auto !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  footer p.mb-10 {
    margin-bottom: 16px !important;
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
  }

  footer a.mb-8 {
    margin-bottom: 12px !important;
  }

  footer .h-10.md\:h-12 {
    height: 36px !important;
  }

  footer .flex.items-center.gap-4 {
    gap: 8px !important;
  }

  footer .w-12.h-12.rounded-full {
    width: 40px !important;
    height: 40px !important;
  }

  footer .border-b.border-neutral-900.pb-16 {
    padding-bottom: 28px !important;
    margin-bottom: 12px !important;
  }

  footer .flex.flex-col.gap-6 {
    gap: 12px !important;
  }

  footer .text-lg.font-medium {
    font-size: 1rem !important;
  }

  footer .mt-4.text-neutral-500 {
    margin-top: 8px !important;
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }

  footer .flex.flex-col.md\:flex-row.justify-between {
    gap: 8px !important;
    padding-bottom: 16px !important;
    align-items: center !important;
  }
}

/* ─── MOBILE SMALL  (max-width: 479px) ────────────────────── */

@media (max-width: 479px) {
  /* Header */
  .site-header-inner {
    padding: 0 16px;
  }

  .header-logo-img {
    height: 32px;
  }

  /* Hero */
  #hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  #hero h1 {
    font-size: clamp(1.65rem, 8.5vw, 2.2rem) !important;
  }

  #hero .inline-flex.items-center.gap-3.px-4 {
    font-size: 8px !important;
    letter-spacing: 0.18em !important;
    padding: 7px 14px !important;
  }

  #hero .lg\:col-span-5 {
    min-height: 240px !important;
  }

  #hero .relative.w-\[75\%\] {
    width: 68% !important;
    max-width: 220px !important;
  }

  #hero .relative.w-\[75\%\].max-w-\[260px\] {
    width: 72% !important;
    max-width: 200px !important;
  }

  #hero .-bottom-4.-left-4,
  #hero .-bottom-6.-left-6 {
    left: -8px !important;
    bottom: -8px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  #hero .-bottom-4.-left-4 .font-heading,
  #hero .-bottom-6.-left-6 .font-heading {
    font-size: 0.7rem !important;
  }

  #hero .-bottom-4.-left-4 .text-\[9px\],
  #hero .-bottom-6.-left-6 .text-\[9px\] {
    font-size: 7px !important;
  }

  #hero .-bottom-4.-left-4 .w-10.h-10,
  #hero .-bottom-6.-left-6 .w-10.h-10 {
    width: 32px !important;
    height: 32px !important;
  }

  /* Logo Slider */
  .logos-swiper .swiper-slide img {
    height: 48px !important;
  }

  /* About / Ideas section */
  section.bg-\[#fafafa\].pt-12 h2.font-heading {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem) !important;
  }

  section.bg-\[#fafafa\].pt-12 .rounded-\[2rem\].overflow-hidden {
    border-radius: 1.25rem !important;
    aspect-ratio: 4 / 3 !important;
  }

  /* Industries */
  #industries h2.font-heading {
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
  }

  #industries .group.relative.flex.flex-col {
    padding: 16px 12px !important;
  }

  #industries .group .w-14.h-14 {
    width: 38px !important;
    height: 38px !important;
  }

  #industries .group .w-\[26px\].h-\[26px\] {
    width: 20px !important;
    height: 20px !important;
  }

  /* Stats */
  section.py-20.bg-black .stat-counter {
    font-size: clamp(1.9rem, 10vw, 3rem) !important;
  }

  section.py-20.bg-black .grid.grid-cols-2 > div {
    padding: 20px 12px !important;
  }

  /* Testimonials */
  #testimonials h2.font-heading {
    font-size: clamp(1.55rem, 8vw, 2rem) !important;
  }

  #testimonials.py-24 {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  #testimonials .swiper-slide > div {
    padding: 20px 16px !important;
    border-radius: 1.25rem !important;
  }

  #testimonials p.text-base {
    font-size: 0.82rem !important;
  }

  /* Sidebar */
  .sidebar-panel {
    width: 100vw !important;
  }

  .sidebar-header {
    height: 64px !important;
    padding: 0 20px !important;
  }

  .sidebar-header-logo img {
    height: 40px !important;
  }

  .sidebar-nav-link {
    font-size: clamp(1.6rem, 9vw, 2.2rem) !important;
  }

  /* Preloader */
  #loader-logo {
    height: 60px !important;
  }

  #loader .w-64 {
    width: 200px !important;
  }

  /* Project Modal */
  #project-modal-panel {
    padding: 1.5rem 1rem !important;
    border-radius: 1.25rem !important;
  }

  #project-modal-panel h2 {
    font-size: 1.6rem !important;
  }

  /* Container Padding */
  .container.mx-auto {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Buttons */
  .magnetic-btn {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-size: 9px !important;
    letter-spacing: 0.2em !important;
    min-height: 44px !important;
  }

  /* Footer */
  footer {
    padding-top: 36px !important;
  }

  footer .grid.grid-cols-1.md\:grid-cols-12 {
    gap: 20px !important;
  }

  footer ul.flex.flex-col.gap-5 {
    gap: 8px !important;
  }

  footer h4 {
    margin-bottom: 10px !important;
  }

  footer .border-b.border-neutral-900.pb-16 {
    padding-bottom: 20px !important;
  }
}
