/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f9;
  color: #333;
  line-height: 1.6;
}

/* Header Styles */
header {
  text-align: center;
  padding: 1.5rem 1rem; /* Adjust padding to change header height */
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: white;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10.01%);
  background-size: 20px 20px;
  animation: moveBackground 10s linear infinite;
  opacity: 0.5;
}

@keyframes moveBackground {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

.header-content {
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-size: 3rem;
  font-weight: bold;
  animation: fadeIn 1.5s ease-in-out;
}

header p {
  margin: 0.5rem 0 0; /* Adjusted margin */
  font-size: 1.2rem;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tool Grid Styles */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.tool-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tool-card i {
  margin-bottom: 1rem;
  color: var(--color); /* Match icon color with card color */
  transition: transform 0.3s ease;
}

.tool-card:hover i {
  transform: scale(1.1); /* Add a slight zoom effect on hover */
}

.tool-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--color);
}

.tool-card p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #ffd700, #ff8c00); /* Warm Yellow to Orange */
  color: white;
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 3rem 1rem; /* Adjust padding for tablets */
  }

  header h1 {
    font-size: 2.5rem; /* Adjust title size for tablets */
  }

  header p {
    font-size: 1rem; /* Adjust subtitle size for tablets */
  }

  .tool-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 1rem;
  }

  .tool-card {
    padding: 1rem;
  }

  .tool-card h2 {
    font-size: 1.25rem;
  }

  .tool-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2rem 1rem; /* Adjust padding for mobile */
  }

  header h1 {
    font-size: 2rem; /* Adjust title size for mobile */
  }

  header p {
    font-size: 0.9rem; /* Adjust subtitle size for mobile */
  }

  .tool-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* Organize PDF Page Styles */
.tool-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-section {
  text-align: center;
  margin-bottom: 2rem;
}

.upload-label {
  display: inline-block;
  padding: 1rem 2rem;
  background: #6a11cb;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-label:hover {
  background: #2575fc;
}

.page-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f4f4f9;
  border-radius: 5px;
  cursor: move;
}

.page-item i {
  color: #666;
}

.actions {
  text-align: center;
  margin-top: 2rem;
}

#organize-button {
  padding: 1rem 2rem;
  background: #ff6f61;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#organize-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#organize-button:hover:not(:disabled) {
  background: #ff4a3d;
}/* Organize PDF Page Styles */

/* Page Preview Styles */
/* Page Grid Styles */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.page-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f4f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: move;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-preview {
  width: 100%;
  max-width: 150px;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.page-preview canvas {
  width: 100%;
  height: auto;
}

.page-item span {
  font-size: 0.9rem;
  color: #333;
}

.page-item i {
  color: #666;
  margin-top: 0.5rem;
}/* Page Preview Styles */
/* PDF Item Styles for merge pdf */
.pdf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f4f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pdf-preview {
  width: 100%;
  max-width: 150px;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.pdf-preview canvas {
  width: 100%;
  height: auto;
}

.pdf-item span {
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}
/* Remove Button Styles */
.remove-button {
  background: #ff6f61;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 5px;
  color: white;
  transition: background 0.3s ease;
}

.remove-button:hover {
  background: #ff4a3d;
}

.pdf-item {
  position: relative; /* Ensure the remove button is positioned correctly */
}/* PDF Item Styles for merge pdf */
/* Split Options Styles */
.split-options {
  margin-top: 2rem;
  text-align: center;
}

.split-options label {
  font-size: 1rem;
  color: #333;
  margin-right: 0.5rem;
}

.split-options input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.split-options button {
  padding: 0.5rem 1rem;
  background: #ff6f61;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-left: 0.5rem;
}

.split-options button:hover {
  background: #ff4a3d;
}
/* Page Checkbox Styles */
.page-checkbox {
  position: absolute;
  top: 5px;
  left: 5px;
  cursor: pointer;
}

/* Clear Selection Button Styles */
#clear-selection-button {
  padding: 0.5rem 1rem;
  background: #6b5b95;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-left: 0.5rem;
}

#clear-selection-button:hover {
  background: #4a3d6b;
}

/* Download All Button Styles */
#download-all-button {
  padding: 0.5rem 1rem;
  background: #88b04b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

#download-all-button:hover {
  background: #6b8e3a;
}/* Split Options Styles */
/* Compress Options Styles */
.compress-options {
  margin-top: 2rem;
  text-align: center;
}

.compress-options label {
  font-size: 1rem;
  color: #333;
  margin-right: 0.5rem;
}

.compress-options select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.compress-options button {
  padding: 0.5rem 1rem;
  background: #ff6f61;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-left: 0.5rem;
}

.compress-options button:hover {
  background: #ff4a3d;
}/* Compress Options Styles */
/* Image Preview Styles JPG to PDF */
.image-preview {
  max-width: 100%;
  max-height: 200px; /* Adjust this value as needed */
  width: auto;
  height: auto;
  object-fit: contain; /* Ensures the image fits within the container */
  border-radius: 5px;
}

/* PDF Item Styles */
.pdf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f4f4f9;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pdf-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pdf-item span {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.5rem;
}/* Image Preview Styles jPG to PDF */
/* Rotate Options Styles */
/* Rotate Options Styles */
.rotate-options {
  margin-top: 2rem;
  text-align: center;
}

.rotate-options button {
  padding: 0.5rem 1rem;
  background: #6a11cb;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0 0.5rem;
}

.rotate-options button:hover {
  background: #2575fc;
}

.rotate-options button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Rotate Page Button Styles */
.rotate-page-button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ff6f61;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.rotate-page-button:hover {
  background: #ff4a3d;
}/* Rotate Options Styles */
/* Password Section Styles */
/* Password Section Styles */
.password-section {
  margin-top: 2rem;
  text-align: center;
}

.password-section label {
  font-size: 1rem;
  color: #333;
  margin-right: 0.5rem;
}

.password-section input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  margin-right: 0.5rem;
}

.password-section button {
  padding: 0.5rem 1rem;
  background: #6a11cb;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.password-section button:hover {
  background: #2575fc;
}

.password-section button:disabled {
  background: #ccc;
  cursor: not-allowed;
}/* Password Section Styles */
/* FAQ Section Styles */
.faq-section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-section h2 {
  text-align: center;
  color: #6b5b95;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.faq-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #6b5b95, #88b04b);
  border-radius: 3px;
}

.faq-section > div {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-section > div:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-section h3 {
  background-color: white;
  color: #333;
  padding: 1.2rem 2rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-section h3:hover {
  color: #6b5b95;
}

.faq-section h3::after {
  content: '+';
  font-size: 1.5rem;
  color: #6b5b95;
  transition: transform 0.3s ease;
}

.faq-section div[itemprop="acceptedAnswer"] {
  background-color: white;
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-section div[itemprop="acceptedAnswer"] p {
  padding: 0 0 1.5rem;
  margin: 0;
  line-height: 1.6;
  color: #555;
}

/* Active state for FAQ items */
.faq-section > div.active h3 {
  color: #6b5b95;
}

.faq-section > div.active h3::after {
  content: '-';
  transform: rotate(0deg);
}

.faq-section > div.active div[itemprop="acceptedAnswer"] {
  max-height: 300px;
  padding: 0 2rem 1.5rem;
  border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-section {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }
  
  .faq-section h2 {
    font-size: 1.5rem;
  }
  
  .faq-section h3 {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .faq-section div[itemprop="acceptedAnswer"] p {
    font-size: 0.9rem;
  }
}

/* FAQ Section Styles */

/* Enhanced Breadcrumb Navigation - Centered */
.breadcrumb {
  background-color: #f5f5f5;
  padding: 0.8rem 2rem;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.breadcrumb ol {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 1200px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  color: #6b5b95;
  font-size: 1.2rem;
}

.breadcrumb a {
  color: #6b5b95;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: #ff6f61;
  background-color: rgba(107, 91, 149, 0.1);
}

.breadcrumb [aria-current="page"] {
  color: #555;
  font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.6rem 1rem;
  }
  
  .breadcrumb li {
    font-size: 0.8rem;
  }
  
  .breadcrumb li:not(:last-child)::after {
    margin: 0 0.3rem;
  }
}

/* New Add */

    /* Navigation Bar Styles */
    .top-nav {
      background: linear-gradient(135deg, #6b5b95 0%, #88b04b 100%);
      padding: 0.8rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .nav-buttons {
      display: flex;
      gap: 1rem;
    }

    .nav-button {
      color: white;
      text-decoration: none;
      padding: 0.6rem 1.2rem;
      border-radius: 25px;
      font-weight: 600;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-button.home {
      background-color: rgba(255, 255, 255, 0.2);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-button.ai-tools {
      background-color: #ff6f61;
      border: 1px solid #ff6f61;
    }

    .nav-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-button.home:hover {
      background-color: rgba(255, 255, 255, 0.3);
    }

    .nav-button.ai-tools:hover {
      background-color: #ff5345;
    }

    .logo {
      color: white;
      font-weight: 700;
      font-size: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .logo i {
      font-size: 1.3rem;
    }

    /* Enhanced Breadcrumb Navigation */
    .breadcrumb {
      background-color: #f5f5f5;
      padding: 0.8rem 2rem;
      margin: 0 auto;
      max-width: 1200px;
      border-radius: 0 0 8px 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .breadcrumb ol {
      display: flex;
      align-items: center;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    
    .breadcrumb li {
      display: flex;
      align-items: center;
      font-size: 0.9rem;
    }
    
    .breadcrumb li:not(:last-child)::after {
      content: '›';
      margin: 0 0.5rem;
      color: #6b5b95;
      font-size: 1.2rem;
    }
    
    .breadcrumb a {
      color: #6b5b95;
      text-decoration: none;
      font-weight: 500;
      transition: all 0.2s ease;
      padding: 0.3rem 0.5rem;
      border-radius: 4px;
      display: flex;
      align-items: center;
    }
    
    .breadcrumb a:hover {
      color: #ff6f61;
      background-color: rgba(107, 91, 149, 0.1);
    }
    
    .breadcrumb [aria-current="page"] {
      color: #555;
      font-weight: normal;
    }

    /* Adjust header margin to account for sticky nav */
    header {
      margin-top: 0;
    }

    /* FAQ Section Styles */
    .faq-section {
      max-width: 800px;
      margin: 3rem auto;
      padding: 2rem;
      background-color: #f9f9f9;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .faq-section h2 {
      text-align: center;
      color: #6b5b95;
      font-size: 2rem;
      margin-bottom: 2rem;
      position: relative;
      padding-bottom: 0.5rem;
    }

    .faq-section h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 3px;
      background: linear-gradient(90deg, #6b5b95, #88b04b);
      border-radius: 3px;
    }

    .faq-section > div {
      margin-bottom: 1.5rem;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }

    .faq-section > div:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .faq-section h3 {
      background-color: white;
      color: #333;
      padding: 1.2rem 2rem;
      margin: 0;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s ease;
    }

    .faq-section h3:hover {
      color: #6b5b95;
    }

    .faq-section h3::after {
      content: '+';
      font-size: 1.5rem;
      color: #6b5b95;
      transition: transform 0.3s ease;
    }

    .faq-section div[itemprop="acceptedAnswer"] {
      background-color: white;
      padding: 0 2rem;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .faq-section div[itemprop="acceptedAnswer"] p {
      padding: 0 0 1.5rem;
      margin: 0;
      line-height: 1.6;
      color: #555;
    }

    /* Active state for FAQ items */
    .faq-section > div.active h3 {
      color: #6b5b95;
    }

    .faq-section > div.active h3::after {
      content: '-';
      transform: rotate(0deg);
    }

    .faq-section > div.active div[itemprop="acceptedAnswer"] {
      max-height: 300px;
      padding: 0 2rem 1.5rem;
      border-top: 1px solid #eee;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
      .top-nav {
        padding: 0.8rem 1rem;
      }
      .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
      }
      .logo {
        font-size: 1.2rem;
      }
      .breadcrumb {
        padding: 0.6rem 1rem;
      }
      .breadcrumb li {
        font-size: 0.8rem;
      }
      .breadcrumb li:not(:last-child)::after {
        margin: 0 0.3rem;
      }
      .faq-section {
        padding: 1.5rem;
        margin: 2rem 1rem;
      }
      .faq-section h2 {
        font-size: 1.5rem;
      }
      .faq-section h3 {
        padding: 1rem 1.5rem;
        font-size: 1rem;
      }
      .faq-section div[itemprop="acceptedAnswer"] p {
        font-size: 0.9rem;
      }
    }


