/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Header & Navigation */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
nav {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: lowercase;
}
.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none; /* show only on mobile */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links li a {
  font-size: 1rem;
}

/* Carousel */
.carousel {
  position: relative;
  max-width: 100%;
  height: 70vh;
  overflow: hidden;
}
.carousel-img {
  width: 100%;
  display: none;
  object-fit: cover;
}
.carousel-img.active {
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
.carousel-btn:hover{
  color: #777;
}
.carousel-btn.prev {
  left: 1rem;
}
.carousel-btn.next {
  right: 1rem;
}

/* Hero Section */
.hero {
  background: #f2f2f2;
  text-align: center;
}
.hero-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.cta-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}
.cta-btn:hover {
  background: #0056b3;
}

/***********/
.modal{
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000000c9;
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
.modal-content ul{
  display: flex;
  flex-direction: column;
}
.modal-content ul li{
  margin: 0.5rem 0;
  display: flex;
  margin: 4px;
}
.modal-content ul li img{
  max-width: 40px;
  border-radius: 100%;
  margin-right: 10px;
}
.modal-content ul li button{
  color: #000;
  background: transparent;
  font-weight: 300;
  border: none;
  font-size: 1.1rem;
  text-decoration: none;
}


/* Testimonials */
.testimonials {
  background: #fff;
  padding: 3rem 1rem;
  text-align: center;
}
.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.testimonials-container {
  display: grid;
  gap: 2rem;
}
.testimonial {
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: 6px;
}
.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial span {
  display: block;
  font-weight: bold;
  color: #555;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Modal boxes */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

/* Close button */
.close-btn {
  color: #aaa;
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}
.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.modal-content ul li button {
  color: #000;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  text-decoration: none;
}
/* Form styling */
#textToPDFForm h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

#textInput {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

label {
  font-weight: 500;
  margin-right: 0.5rem;
  color: #444;
}

input[type="radio"] {
  margin-right: 0.3rem;
}

button[type="submit"] {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #1e40af;
}

/* Responsive design */
@media (max-width: 600px) {
  .modal-content {
    padding: 1.5rem;
    max-width: 90%;
  }

  #textToPDFForm h2 {
    font-size: 1.25rem;
  }

  button[type="submit"] {
    font-size: 0.95rem;
  }
}

/* Simple fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#pdfToDocxForm h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

#pdfFile {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

#pdfToDocxForm button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #10b981; /* Emerald green */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pdfToDocxForm button[type="submit"]:hover {
  background-color: #059669;
}

#docxToPDFForm h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

#docxFile {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

#docxToPDFForm button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #8b5cf6; /* Violet */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#docxToPDFForm button[type="submit"]:hover {
  background-color: #7c3aed;
}

#pdfToTextForm h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

#pdfToTextFile {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

#pdfToTextForm button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #f97316; /* Orange */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pdfToTextForm button[type="submit"]:hover {
  background-color: #ea580c;
}

#pdfToImageForm h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

#pdfToImageFile {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

#pdfToImageForm button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #0ea5e9; /* Sky blue */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pdfToImageForm button[type="submit"]:hover {
  background-color: #0284c7;
}

#imageToPDFForm h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

#imageToPDFFile {
  display: block;
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

#imageToPDFForm button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #22c55e; /* Green */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#imageToPDFForm button[type="submit"]:hover {
  background-color: #16a34a;
}


/* Base feedback modal */
.feedback {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.feedback.show {
  display: flex;
}

/* Modal content styling */
.feedback .modal-content {
  background-color: #ffffff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #000;
}

/* Form styles */
.feedback form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #333;
}

.feedback form input[type="text"],
.feedback form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 1.2rem;
  resize: vertical;
}

.feedback form button[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  background-color: #6366f1; /* Indigo */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.feedback form button[type="submit"]:hover {
  background-color: #4f46e5;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .feedback .modal-content {
    padding: 1.5rem;
    max-width: 90%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Footer */
.footer-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  background: #000;
  flex-wrap: wrap;
  padding: 30px;
  margin: 0;
}
.footer-links li {
  margin: 0;
}
.footer-links li a {
  font-size: 1rem;
  color: #007bff;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.footer-links li a:hover {
  color: #0056b3;
}
.footer-section {
  padding: 2rem;
  text-align: center;
}
.footer-section p {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel{
    height: 50vh;
  }
  .carousel-img{
    width: 100%;
    height: 100%;
  }
  .carousel-btn{
    top: 50%;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 100;
    gap: 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
  .nav-links li a {
    width: 100%;
    display: block;
    font-size: 1.1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .testimonials-container {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) {
  .testimonials-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    position: relative;
  }
  .menu-toggle {
    display: block;
  }
}
