/* Image to Pdf */

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-orange: #ff6a00;
  --primary-pink: #ee0979;
  --primary-purple: #6a11cb;
  --primary-blue: #2575fc;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7fb;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-highlight {
  color: var(--primary-orange);
  font-weight: 700;
}

/* Header (Same as Image Resizer) */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  height: 55px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  font-weight: bold;
  color: #444;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 5px 10px;
}

nav ul li a:hover {
  color: var(--primary-orange);
  transform: translateY(-2px);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary-orange);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
  }

  nav.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  nav ul li {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  nav.active ul li {
    opacity: 1;
    transform: translateY(0);
  }

  nav ul li:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav ul li:nth-child(2) {
    transition-delay: 0.2s;
  }

  nav ul li:nth-child(3) {
    transition-delay: 0.3s;
  }

  nav ul li:nth-child(4) {
    transition-delay: 0.4s;
  }

  nav ul li:nth-child(5) {
    transition-delay: 0.5s;
  }

  nav ul li:nth-child(6) {
    transition-delay: 0.6s;
  }

  nav ul li:nth-child(7) {
    transition-delay: 0.7s;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  color: #fff;
  text-align: center;
  padding: 70px 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  animation: fadeInDown 1s ease;
}

.hero p {
  font-size: 1.2rem;
  animation: fadeInUp 1.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main content wrapper */
.main-content {
  flex: 1 0 auto;
  width: 100%;
  padding: 40px 20px;
  background: #f4f7fb;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 968px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Tool Card */
.tool-card {
  background: white;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-orange), var(--primary-pink));
}

/* Tool Introduction Heading */
.tool-intro {
  text-align: center;
  margin: 30px auto;
  animation: fadeInDown 1s ease;
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
}

.tool-intro h2 {
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.tool-intro h2::after {
  content: "";
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.tool-intro h2:hover::after {
  width: 140px;
}

.tool-intro p {
  font-size: 1rem;
  color: var(--gray);
  max-width: 650px;
  margin: 15px auto 0;
  line-height: 1.6;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary-orange);
}

/* Upload Area */
.upload-area {
  border: 3px dashed var(--primary-orange);
  border-radius: 14px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  margin-bottom: 20px;
  background: rgba(255, 106, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.upload-area.active {
  border-color: var(--primary-pink);
  background: rgba(238, 9, 121, 0.05);
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 15px;
  color: var(--primary-orange);
}

.upload-text {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333;
}

input[type="file"] {
  display: none;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
  margin: 10px 5px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 106, 0, 0.6);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-success {
  background: linear-gradient(135deg, #00c851, #007e33);
  box-shadow: 0 5px 15px rgba(0, 200, 81, 0.4);
}

.btn-success:hover {
  box-shadow: 0 8px 25px rgba(0, 200, 81, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #33b5e5, #0099cc);
  box-shadow: 0 5px 15px rgba(51, 181, 229, 0.4);
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(51, 181, 229, 0.6);
}

.btn i {
  margin-right: 8px;
}

/* Preview */
.preview-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.preview-item:hover {
  transform: scale(1.05);
}

.preview-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.remove-btn:hover {
  transform: scale(1.2);
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  width: 0%;
  transition: width 0.3s;
}

.status {
  margin: 15px 0;
  font-weight: 500;
  color: var(--gray);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.action-buttons .btn {
  flex: 1;
  min-width: 160px;
}

/* How to Use Section - Redesigned */
.how-to-use {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.how-to-use-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.how-to-use-card::before {
  content: 'Toolnex AI';
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: bold;
}

.how-to-use-card:hover {
  transform: translateY(-5px);
}

.how-to-use-card h2 {
  font-size: 1.8rem;
  color: var(--primary-orange);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 10px;
}

.how-to-use-card h2::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
  bottom: 0;
  left: 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.how-to-use-card:hover h2::after {
  width: 140px;
}

.how-to-use-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.step {
  background: var(--light);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-orange);
  position: relative;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  color: var(--white);
  border-radius: 50%;
  font-weight: bold;
  margin: 0 auto 15px;
  box-shadow: 0 4px 8px rgba(255, 106, 0, 0.3);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
  position: relative;
  padding-bottom: 8px;
}

.step h3::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: var(--primary-orange);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
}

.step p {
  color: var(--gray);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .how-to-use-steps {
    grid-template-columns: 1fr;
  }
}

/* Footer (Same as Image Resizer) */
footer {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  color: #fff;
  padding: 20px 15px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 100%;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink), #00c4cc);
  z-index: 1;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.footer-logo:hover {
  transform: translateY(-5px);
}

.footer-logo img {
  height: 50px;
  transition: transform 0.3s ease;
  border-radius: 8px;
  background: white;
  padding: 5px;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 100%;
  opacity: 0.9;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.footer-heading:hover::after {
  width: 50px;
}

.footer-tools ul,
.footer-quick-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-tools ul li a,
.footer-quick-links ul li a {
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-tools ul li a:hover,
.footer-quick-links ul li a:hover {
  opacity: 1;
  color: #ffcc00;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  justify-content: center;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-social a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: -1;
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: #fff;
}

.footer-social a:hover::after {
  transform: scale(1);
}

.footer-social a i {
  transition: transform 0.3s ease;
}

.footer-social a:hover i {
  transform: scale(1.2);
}

.footer-contact {
  margin-top: 15px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  opacity: 0.9;
  font-size: 0.9rem;
}

.footer-contact i {
  margin-right: 8px;
  color: #ffcc00;
  font-size: 16px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  grid-column: 1 / -1;
}

.footer-bottom p {
  margin-bottom: 12px;
  opacity: 0.9;
  width: 100%;
}

.footer-legal {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.footer-legal a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
  font-size: 0.85rem;
  position: relative;
  white-space: nowrap;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  background: #ffcc00;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.footer-legal a:hover {
  opacity: 1;
  color: #ffcc00;
}

.footer-legal a:hover::after {
  width: 100%;
}

.footer-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 8s infinite ease-in-out;
}

.footer-bubble:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 5%;
  animation-delay: 0s;
}

.footer-bubble:nth-child(2) {
  width: 40px;
  height: 40px;
  top: 60%;
  left: 8%;
  animation-delay: 1s;
}

.footer-bubble:nth-child(3) {
  width: 50px;
  height: 50px;
  top: 30%;
  right: 5%;
  animation-delay: 2s;
}

.footer-bubble:nth-child(4) {
  width: 30px;
  height: 30px;
  top: 70%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(10deg);
  }
}

/* Newsletter Form */
.footer-newsletter {
  margin-top: 15px;
  width: 100%;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.newsletter-input {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px;
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.5);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-pink));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px;
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 106, 0, 0.4);
}

/* Responsive Design */
@media (min-width: 769px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    grid-column: 1 / span 4;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .tool-card {
    padding: 20px;
  }

  .upload-area {
    padding: 30px 15px;
  }

  .btn {
    padding: 12px 20px;
    margin: 8px 4px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-logo img {
    height: 40px;
  }

  .footer-heading {
    font-size: 1.1rem;
  }

  .footer-tools ul,
  .footer-quick-links ul {
    grid-template-columns: 1fr;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .footer-contact p {
    font-size: 0.8rem;
  }

  .footer-contact i {
    font-size: 14px;
  }

  .footer-legal a {
    font-size: 0.8rem;
  }

  .newsletter-input,
  .newsletter-btn {
    padding: 8px 12px;
    font-size: 12px;
    max-width: 200px;
  }
}