body {
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* Header styling */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  top: 0;
  z-index: 1000;
  position: relative;
}

/* Logo */
.logo-link {
  font-family: 'Marck Script', cursive;
  font-size: 45px;
  color: #ff5e66;
  letter-spacing: -0.08em;
  text-decoration: none;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-item {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
  background-color: #f1f1f1;
}

.nav-item.active {
  background-color: #ff5e66;
  color: #fff;
  font-weight: bold;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #ff5e66;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px 30px;
  background: linear-gradient(to right, #ff5e66, #ff9a8b);
}


.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #ffffff;
}

/* Upload Box */
.upload-box {
  background-color: #fff;
  border: 2px dashed #ccc;
  margin: 30px auto;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  border-radius: 12px;
}

.upload-box button {
  background-color: #000;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}

.upload-note {
  margin-top: 10px;
  font-size: 14px;
  color: #999;
}

/* Preview Section */
.preview-section {
  text-align: center;
  padding: 40px 20px;
}

.preview-section h2 {
  margin-bottom: 20px;
}

.preview-section img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* Download Button */
.download-btn {
  margin-top: 20px;
}

.download-btn button {
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

/* Ad Section */
.ad-section {
  background-color: #f0f0f0;
  padding: 30px;
  text-align: center;
  font-size: 16px;
  color: #777;
}

/* Other Tools */
.other-tools {
  background-color: #1e1e1e; /* dark grey */
  padding: 60px 20px;
  max-width: 100%;
  margin: auto;
  color: white;
}

.tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 60px;
  gap: 40px;
}

.tool.reverse {
  flex-direction: row-reverse;
}

.tool-img img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 30px;
}

.tool-text {
  max-width: 500px;
}

.tool-text h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.tool-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.tool-text a {
  display: inline-block;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.8s ease;
}

.tool-text a:hover {
  background: #0056cc;
}

footer {
  text-align: center;
  padding: 20px;
  background: #171717;
  color: #555;
  font-size: 14px;
}

.footer-legal {
  margin-left: 15px;
  color: #0077ff;
  text-decoration: none;
  font-weight: 600;
}

.footer-legal:hover {
  text-decoration: underline;
}


/* ======================================================
   Loader Spinner
====================================================== */
.loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.spinner {
  border: 6px solid #eee;
  border-top: 6px solid #4CAF50;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#countdown {
  font-weight: bold;
  color: #d32f2f;
  display: none;
}

/* ======================================================
   Hamburger Menu
====================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #ff5e66;
  border-radius: 2px;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 220px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  .hamburger {
    display: flex;
  }
}

/* ======================================================
   Tool Images Responsive
====================================================== */
.preview-section img,
.tool-img img {
  width: 100%;
  height: auto;
  max-width: 700px;
}

/* ======================================================
   ⭐ TOP Banner Ad Under Header
====================================================== */
.banner-ad {
  max-width: 900px;
  margin: 25px auto;
  text-align: center;
}

/* ======================================================
   ⭐ SIDE ADS — For Upload + Preview area
====================================================== */
.tools-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 10px;
}

.side-ad-vertical {
  width: 160px;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .side-ad-vertical {
    display: none;
  }
}

.compress-wrapper {
  width: 100%;
  max-width: 700px;
}

/* ======================================================
   ⭐ BOTTOM Sticky Ad
====================================================== */
/* BOTTOM STICKY AD */
.bottom-sticky-ad {
  position: fixed;
  bottom: -100px; /* start hidden */
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  background: white;
  padding: 10px;
  display: block; /* keep it block; we control visibility with animation */
  z-index: 9999;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

/* SLIDE UP ANIMATION */
@keyframes slideUp {
  0% {
    bottom: -100px;
    opacity: 0;
  }
  100% {
    bottom: 15px;
    opacity: 1;
  }
}
.close-sticky {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  z-index: 99999;
  opacity: 0.8;
}

.close-sticky:hover {
  opacity: 1;
}

/* MOBILE RESPONSIVE */
@media(max-width: 600px) {
  .bottom-sticky-ad {
    width: 90%;
  }
}

/* Normalize ad alignment */
.adsbygoogle {
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }
  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .upload-box {
    padding: 20px;
  }

  .tool {
    flex-direction: column;
    gap: 30px;
  }

  .tool.reverse {
    flex-direction: column;
  }
}
