
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
}

*{
  font-family: 'Poppins', sans-serif;
}
.footer {
  width: 100vw;
  background: #f1f5f9;
  color: #64748b;
  text-align: center;
  padding: 18px 0 12px 0;
  font-size: 1rem;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
}
.footer a {
  color: #2563eb;
  text-decoration: underline;
}

/* Upload Animation */
.upload-animation {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px auto;
  display: none;
}
.upload-area.uploading .upload-animation {
  display: block;
}
.upload-animation::before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  border: 6px solid #4f8cff;
  border-top: 6px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Before/After Preview */
.before-after-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center ;
}
.before-after-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 520px;
  max-width: 800px;
  width: 100%;
}
.before-after-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 6px;
}
.before-after-imgs {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.before-after-imgs img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(79,140,255,0.15);
  background: #f7f8fa;
  object-fit: contain;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .before-after-list {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px 2vw;
  }
  .navbar-links {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .compress-container {
    max-width: 98vw;
    padding: 10px 2vw 24px 2vw;
  }
  .image-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 6px;
  }
  .download-btn {
    margin: 10px 0 0 0;
    width: 100%;
  
  }
  .before-after-item {
    min-width: 90vw;
    max-width: 98vw;
    padding: 16px 12px;
  }
  .before-after-imgs {
    flex-direction: column;
    gap: 12px;
  }
  .before-after-imgs img {
    max-width: 150px;
    max-height: 150px;
  }
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f8fa;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Hero section */
.hero-tool {
  background: linear-gradient(135deg, #001f3f 0%, #004b9b 60%, #0077ff 100%);
  color: #fff;
  padding: 56px 0 40px 0;
}

.hero-tool .hero-subtitle {
  opacity: 0.95;
}
.hero-illustration { max-width: 100%; height: auto; }

/* Responsive typed heading (containerh2 / texth2 / cursorh2) */
.hero-tool .hero-title { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.8rem); }
.containerh2 { 
  display: block; 
  max-width: 100%; 
  line-height: 1.2; 
  overflow-wrap: anywhere; 
}
.texth2 { 
  display: inline-block; 
  white-space: nowrap; 
  overflow: hidden; 
  box-sizing: border-box; 
  max-width: 100%;
}
.cursorh2 { 
  display: inline-block; 
  width: 3px; 
  height: 1.2em; 
  background-color: #fff; 
  margin-left: 4px; 
}
@media (max-width: 768px) {
  .hero-tool .hero-title { font-size: calc(1.2rem + 1.2vw); }
}
@media (max-width: 576px) {
  /* Allow wrapping; keep cursor visible; JS handles typing */
  .texth2 { white-space: normal; animation: none !important; width: auto; }
  .cursorh2 { display: inline-block; }
  .hero-tool .hero-title { font-size: 1.4rem; }
  .cursorh2{
    display: none;
  }
}
.hero-badges .badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.btn-cta {
  background: #00d4ff;
  background: linear-gradient(90deg, #00d4ff, #34c759);
  color: #00263e;
  font-weight: 700;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
}
.btn-cta:hover { filter: brightness(1.05); }

/* Breadcrumb spacing */
.breadcrumb-block {
  background: #f7f8fa;
}
.hero-text {
  font-weight: 800;

 
}
/* Feature cards */
.feature-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  padding: 20px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.12);
}
.feature-card .form-label { font-weight: 600; }
.feature-card input[type="file"] { background: #f9fafb; }
.feature-card .btn { border-radius: 10px; }
.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef6ff;
  color: #0b63e5;
  font-size: 22px;
}

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: all .6s ease; }
.reveal-on-scroll.active { opacity: 1; transform: none; }

/* Upload area visual cue */
.upload-area .cloud-icon {
  font-size: 42px;
  color: #2563eb;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Trusted by logos */
.trusted-logos .logo-tile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  padding: 12px 16px;
}
.trusted-logos img { max-height: 26px; filter: grayscale(100%); opacity: 0.9; }
.trusted-logos img:hover { filter: none; opacity: 1; }

/* Performance CTA */
.performance-cta {
  background: #1f2a37;
  color: #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.18);
}
.performance-cta input[type="text"] {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e5e7eb;
  padding: 10px 12px;
  width: 100%;
}
.performance-cta .btn-go {
  background: #22c55e;
  border: none;
  color: #062b12;
  font-weight: 700;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 18px;
  height: 100%;
}
.testimonial-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; margin-right: 8px;
}
.testimonial-card .name { font-weight: 600; }
.testimonial-card .role { font-size: 13px; color: #6b7280; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #12b0ff, #0c5bd8);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(12,91,216,0.28);
}
.cta-banner img { max-height: 180px; }

.compress-container {
  max-width: 700px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 24px 32px 38px 32px;
}

h1 {
  text-align: center;
  color: #2d3748;
  margin-bottom: 24px;
}

.upload-area {
  border: 2px dashed #4f8cff;
  border-radius: 12px;
  background: #eaf2ff;
  padding: 36px 16px;
  text-align: center;
  color: #4f8cff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-bottom: 24px;
}
.upload-area.dragover {
  background: #d0e4ff;
  border-color: #2563eb;
}
.file-label {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.progress-area {
  width: 100%;
  margin: 16px 0 24px 0;
  background: #e2e8f0;
  border-radius: 8px;
  height: 28px;
  position: relative;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f8cff, #2563eb);
  width: 0%;
  transition: width 0.3s;
}
#progress-text {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: #2d3748;
  font-size: 15px;
  line-height: 28px;
}

.images-list {
  margin-top: 16px;
}
.image-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 12px 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.image-info {
  flex: 1 1 180px;
  min-width: 0;
}
.image-filename {
  font-weight: 500;
  color: #2d3748;
  word-break: break-all;
  margin-top: 10px;
}
.image-sizes {
  font-size: 13px;
  color: #4d5a6b;
  margin-top: 5px;
  margin-bottom: 5px;
}
.download-btn {
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 12px;
}
.download-btn:hover {
  background: #2563eb;
}
#download-all-btn {
  width: 100%;
  margin-top: 18px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#download-all-btn:hover {
  background: #1e40af;
}

.folder-upload-area {
  margin-top: 32px;
  background: #eaf2ff;
  border: 2px dashed #4f8cff;
  border-radius: 12px;
  padding: 28px 12px;
  text-align: center;
  color: #4f8cff;
  font-size: 1.08rem;
  transition: background 0.2s, border-color 0.2s;
}
.folder-upload-area .file-label {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}
@media (max-width: 600px) {
  .folder-upload-area {
    padding: 18px 2vw;
    font-size: 1rem;
  }
}

.compression-stats {
  margin: 24px auto 0 auto;
  background: #f1f5f9;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(79,140,255,0.06);
  padding: 16px 18px;
  max-width: 420px;
  text-align: center;
  color: #2d3748;
  font-size: 1.08rem;
  font-weight: 500;
}
.compression-stats span {
  display: inline-block;
  margin: 5px 10px;
}

/* Modal for large image preview */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
.modal.show {
  display: flex;
}
.modal-content {
  background: #fff;
  margin: auto;
  border-radius: 12px;
  padding: 18px 18px 12px 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 96vw;
  max-height: 90vh;
}
#modal-img {
  max-width: 80vw;
  max-height: 65vh;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 8px rgba(79,140,255,0.12);
  background: #f7f8fa;
  transition: transform 0.2s;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 32px;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #ffe066;
}
.modal-zoom-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}
.modal-zoom-controls button {
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-zoom-controls button:hover {
  background: #2563eb;
}
@media (max-width: 600px) {
  .modal-content {
    padding: 8px 2vw 8px 2vw;
  }
  #modal-img {
    max-width: 96vw;
    max-height: 50vh;
  }
  .modal-close {
    top: 8px;
    right: 12px;
    font-size: 2rem;
  }
} 

.image-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.quality-slider {
  width: 120px;
  accent-color: #2563eb;
}
.quality-label {
  font-size: 0.98rem;
  color: #2d3748;
  margin-right: 6px;
}
.apply-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.apply-btn:hover {
  background: #1e40af;
}
.split-preview {
  position: relative;
  width: 540px;
  height: 380px;
  background: #f7f8fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(79,140,255,0.10);
  margin: 0 auto 10px auto;
}
.split-preview img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.split-preview .after-img {
  clip-path: inset(0 0 0 50%);
  z-index: 2;
}
.split-preview .before-img {
  z-index: 1;
}
.split-slider {
  position: absolute;
  top: 0; left: 50%;
  width: 4px;
  height: 100%;
  background: #2563eb;
  z-index: 3;
  cursor: ew-resize;
  transition: background 0.2s;
}
.split-slider:hover {
  background: #4f8cff;
}
.split-slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border: 3px solid #2563eb;
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 1px 6px rgba(79,140,255,0.10);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-slider-circle:after {
  content: '\2194';
  color: #2563eb;
  font-size: 1.2rem;
  font-weight: bold;
}
@media (max-width: 600px) {
  .split-preview {
    width: 98vw;
    height: 38vw;
    min-height: 120px;
    max-width: 99vw;
  }
} 
.breadcrumb li a{
  text-decoration: none;
}
.breadcrumb li:hover{
  transform: scale(1.05);
  transition: all 0.3s ease-in-out ;
}
  .containerh2 {
            font-size: 2em;
            font-weight: bold;
            overflow: visible;
            position: relative;
            display: inline-flex;
            align-items: center;
        }
        .texth2 {
            display: inline-block;
            white-space: normal;
            overflow: visible;
            width: auto;
            animation: none;
        }
        .cursorh2 {
            display: inline-block;
            width: 3px;
            height: 1.2em;
            background-color: white;
            margin-left: 3px;
            animation: blink 0.8s infinite;
        }
        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }
        @keyframes erasing {
            from { width: 100%; }
            to { width: 0; }
        }
        @keyframes blink {
            50% { opacity: 0; }
        }
      @media (max-width: 767px) {

        .hkyouokhkhjj{
          display:inline-block !important;
          justify-content: center;
        }
        .gdpoiop{
          margin-top: 20px;
       margin-left: 70px;
        }

       }
        @media (max-width: 490px) {
            .gdpoiop{
        
       margin-left:auto !important;
        }
        }
             @media (max-width: 390px) {
            .gdpoiop{
        height: 150px;
        width: 280px;
       
        }
        }
               @media (max-width: 350px) {
            .gdpoiop{
        height: 130px;
        width: 250px;
       
        }
        }
        @media (max-width: 400px) {
 .before-after-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 16px 12px;
  display: flex;

  width: 320px;

}
.split-preview {
  position: relative;
  width: 270px;
  height: 230px;
  background: #f7f8fa;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(79,140,255,0.10);
  margin: 0 auto 10px auto;
}

} 