/* ==========================================================================
   Doc Scanner - Comprehensive Mobile Friendly & Responsive Styles
   ========================================================================== */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

/* --------------------------------------------------------------------------
   Large Displays (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 42px;
  }
  
  .hero-moc-img {
    max-width: 380px;
  }
  
  .swiper-container .swiper-prev {
    left: calc(50% - 180px);
  }
  
  .swiper-container .swiper-next {
    right: calc(50% - 180px);
  }
}

/* --------------------------------------------------------------------------
   Tablets and Medium Screens (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .padding {
    padding: 70px 0;
  }

  /* Header */
  .header-btn {
    display: none;
  }

  .menu-wrap ul.nav {
    display: none;
  }

  .slicknav_menu {
    display: block;
    margin-left: auto;
  }

  .slicknav_btn {
    margin: 0;
    padding: 10px 12px;
  }

  .slicknav_nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 8px;
    z-index: 1000;
  }

  .navbar {
    padding: 4px 0;
  }

  /* Hero Section */
  .hero-section {
    padding: 120px 0 60px;
    min-height: auto;
    text-align: center;
    background: #ffffff;
  }

  .hero-section::before {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 35px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .btn-group {
    justify-content: center;
  }

  .hero-moc-wrapper {
    padding: 10px;
  }

  .hero-moc-img {
    max-width: 320px;
  }

  /* Promo Section */
  .promo-section {
    padding: 60px 0;
  }

  .promo-content {
    margin-bottom: 20px;
  }

  /* Content Section */
  .content-section {
    padding: 70px 0;
  }

  .content-mockups {
    height: 340px;
    margin-bottom: 35px;
  }

  .mockup-back {
    width: 260px;
    height: 260px;
    left: 40px;
  }

  .mockup-front {
    width: 280px;
    height: 330px;
    left: 10px;
  }

  /* Screenshots Section */
  .swiper-container {
    max-width: 320px;
    height: 500px;
    margin: 0 auto;
  }

  .swiper-container .swiper-prev {
    left: -20px;
  }

  .swiper-container .swiper-next {
    right: -20px;
  }

  /* Download Section */
  .download-card {
    padding: 45px 30px;
    text-align: center;
  }

  .download-content {
    margin-bottom: 30px;
  }

  .download-content h2 {
    font-size: 32px;
  }

  .download-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .download-content .btn-group {
    justify-content: center;
  }

  .download-moc-wrap {
    margin-top: 20px;
  }

  .download-moc-img {
    max-height: 280px;
  }
}

/* --------------------------------------------------------------------------
   Mobile Devices (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body, p {
    font-size: 15px;
    line-height: 1.6;
  }

  h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  h3 {
    font-size: 18px;
  }

  .padding {
    padding: 55px 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Header */
  .navbar-brand img {
    height: 28px;
  }

  .header-section {
    padding: 8px 0;
  }

  .slicknav_nav a {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid #f1f5f9;
  }

  /* Section Headings */
  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading p {
    font-size: 15px;
    line-height: 1.55;
  }

  .section-tag {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  /* Hero Section */
  .hero-section {
    padding: 100px 0 45px;
    min-height: auto;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hero-content h1 {
    font-size: 27px !important;
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-content .btn-group {
    gap: 10px;
  }

  .hero-content .btn-group a img,
  .download-content .btn-group a img {
    height: 44px;
  }

  .hero-moc-wrapper {
    margin-top: 25px;
    padding: 0;
  }

  .hero-moc-glow {
    width: 220px;
    height: 220px;
  }

  .hero-moc-img {
    max-width: 240px;
  }

  /* Promo Section */
  .promo-section {
    padding: 50px 0;
  }

  .promo-content {
    padding: 28px 20px;
    margin-bottom: 16px;
  }

  .promo-icon-wrap {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .promo-content .icon {
    font-size: 26px;
  }

  /* Content Section */
  .content-section {
    padding: 55px 0;
  }

  .content-mockups {
    height: 260px;
    margin-bottom: 25px;
  }

  .mockup-back {
    display: none;
  }

  .mockup-front {
    width: 240px;
    height: 260px;
    left: 50%;
    transform: translateX(-50%);
  }

  .list-item {
    padding: 14px 16px;
    margin-bottom: 12px !important;
  }

  .step-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 12px;
    margin-right: 10px;
  }

  .list-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 17px;
  }

  .list-content {
    padding-left: 10px;
  }

  .list-content h3 {
    font-size: 16px;
  }

  .list-content p {
    font-size: 13.5px;
  }

  /* Features Section */
  .features-section {
    padding: 55px 0;
  }

  .feature-wrap .col-md-4 {
    padding: 6px 15px;
    margin-bottom: 12px;
  }

  .feature-content {
    padding: 28px 20px;
  }

  .feat-icon-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
  }

  .feat-icon-wrap i {
    font-size: 24px;
  }

  /* Screenshots Section on Mobile - Perfect inside phone screen */
  .screenshots-section {
    padding: 55px 0 45px;
  }

  .swiper-container {
    width: 100%;
    max-width: 280px;
    height: 500px;
    margin: 0 auto;
    overflow: visible;
  }

  .swiper-container .mobile-mock {
    width: 240px;
    height: 486px;
    z-index: 1;
  }

  .swiper-container .screen {
    width: 212px;
    height: 376px;
  }

  .swiper-container .swiper-slide-active {
    z-index: 15;
  }

  .swiper-container .swiper-slide img,
  .swiper-container .swiper-slide .screenshot-img {
    width: 212px !important;
    max-width: 212px !important;
    height: 376px !important;
    max-height: 376px !important;
    object-fit: cover !important;
    position: relative;
    z-index: 16;
  }

  .swiper-container .swiper-prev {
    left: -12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .swiper-container .swiper-next {
    right: -12px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Download Section */
  .download-section {
    padding: 50px 0;
  }

  .download-card {
    padding: 35px 20px;
    border-radius: var(--radius-lg);
  }

  .download-content h2 {
    font-size: 24px;
  }

  .download-content p {
    font-size: 14.5px;
    margin-bottom: 22px;
  }

  .download-moc-wrap {
    margin-top: 20px;
  }

  .download-moc-img {
    max-height: 220px;
  }

  .xs-d-none {
    display: none !important;
  }

  /* Subscribe Section */
  .subscribe-section {
    padding: 55px 0 45px;
  }

  .subscribe-content .logo {
    height: 36px;
    margin-bottom: 14px;
  }

  .subscribe-content p {
    font-size: 14.5px;
  }

  .subscribe-wrap {
    width: 100%;
    max-width: 100%;
    margin-bottom: 25px;
  }

  .subscribe-input-box {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 10px;
  }

  .subscribe-input-box .form_input {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 6px 0;
  }

  .subscribe-input-box .submit {
    width: 100%;
    padding: 12px;
    font-size: 13px;
  }

  .subscribe-input-box .form-icon {
    display: none;
  }

  .social-link {
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
  }

  .social-link li a {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  /* Footer Section */
  .footer-section {
    padding: 22px 15px;
  }

  .footer-section p {
    font-size: 12px;
  }

  #scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 12px;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Devices (max-width: 420px)
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 24px !important;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .download-content h2 {
    font-size: 22px;
  }

  .hero-content .btn-group a img,
  .download-content .btn-group a img {
    height: 40px;
  }

  .swiper-container .swiper-prev {
    left: -6px;
  }

  .swiper-container .swiper-next {
    right: -6px;
  }
}
