/* Hero Section of index.html */
.heroMain {
  padding: 3rem 0 3rem;
  background: var(--hero-bg);
  color: #fff;
  text-align: center;
}
.heroSec {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-bubble {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.3rem 0.95rem;
  border: 1.3px solid var(--light-accent);
  border-radius: 999px;
  color: var(--light-accent);
  font-size: 0.9rem;
}
.heroMain h1 {
  margin: 0 auto 0.8rem;
  max-width: 46rem;
  font:
    700 3.25rem/1.2 system-ui,
    "Times New Roman",
    serif;
  letter-spacing: 0em;
}
.heroMain h1 span {
  display: block;
  color: var(--accent);
}
.heroText {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--header-text);
  font-size: 1.15rem;
  line-height: 2rem;
}
.dragDrop {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem;
  background: #fff;
  color: black;
  border: 3px dashed var(--accent);
  border-radius: 18px;
}
.dragDrop.over,
.dragDrop:focus-visible {
  border-color: var(--border);
  background: #e0aaff;
  outline: none;
}
.dragDrop:focus-visible {
  box-shadow: 0 0 0 4px #e0aaffb6;
}
.selectButton {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  background: var(--button-bg);
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
}
.selectButton:hover {
  background: var(--accent);
}
.selectButton svg {
  width: 1.5rem;
  height: 1.5rem;
}
.dropText {
  margin: 0.9rem 0 0.2rem;
  font-weight: 600;
}
.fileInfo {
  margin: 0;
  color: #3a3a3a;
  font-size: 0.9rem;
}
.trustStatement {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  color: #fff;
}
.trustStatement li::before {
  content: "\2713";
  margin-right: 0.45rem;
  color: white;
  font-weight: 700;
}
/* Hero Styling Ends Here*/

/* ================== Result Queue Section ================== */
.resultQueue {
  margin-top: 1rem;
  padding: 3rem 1.5rem;
  background: var(--cream-background);
  color: black;
}
.resultQueue *,
.resultQueue *::before,
.resultQueue *::after {
  box-sizing: border-box;
}
.resultQueue [hidden] {
  display: none !important;
}
.resultQueueInner {
  max-width: 80rem;
  margin: 0 auto;
}
.resultQueuePanel {
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(159, 90, 219, 0.12);
}

/* Header row of Result Queue */
.panelHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.panelTitle {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: black;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;;
  font-size: 1.5rem;
}
.imageCount {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--white-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}
.resultFormats {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.formatArrow {
  padding-bottom: 0.65rem;
  color: var(--header-bg);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Format Box Styling */
.formatBox {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 8.5rem;
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--button-bg);
  border-radius: 12px;
}
.formatBox-label {
  color: var(--light-text);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.formatBox-value {
  font-weight: 600;
}
.formatSelect {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: #fdfaff;
  border-radius: 12px;
  color: black;
  font:
    600 1rem system-ui,
    sans-serif;
  cursor: pointer;
}
.formatBox .formatSelect {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.formatBox .formatSelect:focus-visible {
  outline: 0;
}
.formatSelect:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
select:focus-visible{
  outline: none;
}

/* Messages */
.resultNotice {
  margin: 1rem 0 0;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 2px solid rgb(156, 0, 0);
  border-radius: 12px;
  color: rgb(187, 0, 0);
  font-size: 0.9rem;
}
.resultNotice-line {
  display: block;
  overflow-wrap: anywhere;
}

/* Progress bar */
.resultProgress {
  margin-top: 1.25rem;
}
.resultProgress-title {
  margin: 0;
  color: var(--border);
  font-weight: 700;
}
.resultProgress-file {
  margin: 0.2rem 0 0.6rem;
  color: var(--light-text);
  overflow-wrap: anywhere;
}
.progressBar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--progress-bg);
}
.progressFill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--button-bg), var(--accent));
  transition: width 0.35s ease;
}

/* Thumbnail grid and result cards share one grid */
.Resultgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.resultItem,
.resultCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white-bg);
  border: 2px solid var(--light-accent);
  border-radius: 16px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.resultItem:hover,
.resultCard:hover {
  transform: translateY(-4px);
  border-color: var(--button-bg);
}
.resultCard.resultCardError {
  border-color: rgb(156, 0, 0);
}
.Resulthumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 12rem;
  overflow: hidden;
  background: var(--progress-bg);
  border-radius: 12px;
}
.Resulthumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.resultBadge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--button-bg);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.resultRemove {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--button-bg);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.resultItem:hover .resultRemove,
.resultItem:focus-within .resultRemove {
  opacity: 1;
}
.resultRemove:hover {
  background: var(--white-bg);
  color: var(--border);
  border: 1px solid var(--border);
}
.resultRemove:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (hover: none) {
  .resultRemove {
    opacity: 1;
  }
}
.resultName,
.resultCard h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.resultSize {
  margin: 0;
  color: var(--light-text);
}
.resultError {
  margin: 0;
  color: rgb(156, 0, 0);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Action buttons: centred, equal width */
.resultActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.resultButton {
  flex: 0 0 14rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--button-bg);
  border-radius: 12px;
  font:
    700 1rem system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.resultButtonPrimary {
  background: var(--button-bg);
  color: var(--white-bg);
}
.resultButtonPrimary:hover:not(:disabled) {
  background: var(--button-bg);
  border-color: var(--button-bg);
  color: #fff;
}
.resultButtonSecondary {
  background: #fff;
  color: var(--button-bg);
}
.resultButtonSecondary:hover:not(:disabled) {
  background: var(--border);
  color: white;
  border-color: var(--button-bg);
}
.resultButton-small {
  flex: none;
  width: 100%;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}
.resultButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resultButton:focus-visible {
  outline: 3px solid var(--border);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .resultItem,
  .resultCard,
  .progressFill,
  .resultRemove,
  .resultButton {
    transition: none;
  }
  .resultItem:hover,
  .resultCard:hover {
    transform: none;
  }
}
/* ===== Result Queue Section Ends ===== */

/* ===== Promotion Section Starts ===== */
.promoSection {
  padding: 3rem 1.5rem;
  background: var(--cream-background);
  color: black;
}
.promoHeading {
  text-align: center;
  font-size: 2.55rem;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 700;
  color: black;
  margin: 1rem 0 1rem 1rem;
}
.promoSub {
  text-align: center;
  font-size: 1.1rem;
  color: var(--light-text);
  margin: 0;
}
.promoGrid {
  max-width: 64rem;
  margin: 2rem auto auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.promoSec1 h2 {
  font-size: 2.25rem;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: black;
}

.promoSec1 h2 span {
  color: var(--button-bg);
}

.promoSec1Sub {
  font-size: 1.05rem;
  color: var(--light-text);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.promoSec1List {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.promoSec1ListItem {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.promoListNumber {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--button-bg);
  color: var(--white-bg);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(199, 125, 255, 0.35);
}

.promoListContent strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: black;
}

.promoListContent p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.5;
}

.promoSec2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.promoImage {
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.12);
}

.promoImage img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  max-height: 380px;
  display: block;
  border-radius: 20px;
  opacity: 0.95;
}
.promoImage img:hover {
  transform: scale(1.05);
  transition: 0.25s ease;
}
/* ===== Promo Section Ends ===== */

/* ===== FAQ Section ===== */
.faqSection {
  padding: 4rem 1.5rem;
  background: var(--cream-background);
}

.faqHeader {
  text-align: center;
  max-width: 68rem;
  margin: 0 auto 3rem;
}

.faqHeader h2 {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-size: 2.55rem;
  color: black;
  font-weight: 700;
  margin: 0 0 1rem;
}

.faqSubtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  margin: 0;
}

.faqGrid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faqItem {
  background: var(--white-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faqItem:hover {
  border-color: var(--accent);
  transform: scale(1.05);
  transition: 0.25s ease;
}

.faqQuestion {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: black;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faqQuestion:hover {
  background: var(--white-bg);
}

.faqQuestion span:first-child {
  flex: 1;
}

.faqToggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--button-bg);
  width: 1.5rem;
  text-align: center;
}

.faqAnswer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--button-bg);
  font-size: 1rem;
  line-height: 1.6;
}

.faqAnswer p {
  margin: 0;
  color: black;
}
/* ===== FAQ Section Ends ===== */

/* ========================== HOME PAGE MEDIA QUERIES - TABLET (max-width: 48rem) ========================== */
@media (max-width: 48rem) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .foot {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .resultQueue {
    padding: 2rem 1rem;
  }
  .resultQueuePanel {
    padding: 1.25rem;
  }
  .panelHeader {
    flex-direction: column;
    align-items: flex-start;
  }
  .resultFormats {
    width: 100%;
  }
  .formatBox {
    flex: 1 1 0;
    min-width: 0;
  }
  .Resultgrid {
    grid-template-columns: 1fr;
  }
  .resultActions {
    flex-direction: column;
  }
  .resultButton {
    flex: 1 1 auto;
    width: 100%;
  }
  .promoGrid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .promoSection {
    padding: 2.5rem 1rem;
  }
  .promoSec1 h2 {
    font-size: 1.75rem;
  }
  .faqSection {
    padding: 3rem 1rem;
  }
  .faqHeader h2 {
    font-size: 2rem;
  }
}

/* ============================================================
   HOME PAGE MEDIA QUERIES - MOBILE (max-width: 40rem)
   ============================================================ */
@media (max-width: 40rem) {
  .hero {
    padding: 2.25rem 0 2.5rem;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .results {
    grid-template-columns: 1fr;
  }
  .card {
    grid-template-columns: 4rem 1fr;
  }
  .thumb {
    width: 4rem;
    height: 4rem;
  }
  .controls {
    flex-direction: column;
  }
  select,
  input[type="range"] {
    width: 100%;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .heroMain {
    padding: 2.25rem 0;
  }
  .heroMain h1 {
    font-size: 2.2rem;
  }
  .heroText {
    font-size: 1rem;
  }
  .dragDrop {
    padding: 2rem 1rem;
  }
  .selectButton {
    padding: 0.9rem 1.6rem;
    font-size: 1.1rem;
  }
  .Resulthumb {
    height: 9rem;
  }
  .panelTitle {
    font-size: 1.35rem;
  }
  .formatBox {
    padding: 0.5rem 0.6rem;
  }
  .formatBox-value {
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .promoImage {
    max-width: 100%;
    height: auto;
    min-height: 220px;
  }
}

[hidden] {
  display: none !important;
}
