/* General Styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --purple-color: #6f42c1;
}

body {
  font-family: 'Inter', sans-serif;
  color: #333;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin-right: 10px;
}

/* .nav-link:hover{
    color: #f0e9e9;
} */
.burger {
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.tool-textarea {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  resize: vertical;
  font-family: 'Courier New', monospace;
}

.output-textarea {
  background-color: #f8f9fa;
}

/* Sections */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-header .lead {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Cards */
.step-card,
.feature-card {
  background: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

/* Gradient Backgrounds */
.bg-primary-gradient {
  background: linear-gradient(45deg, var(--primary-color), #4dabf7);
}

.bg-success-gradient {
  background: linear-gradient(45deg, var(--success-color), #69db7c);
}

.bg-info-gradient {
  background: linear-gradient(45deg, var(--info-color), #74c0fc);
}

.bg-warning-gradient {
  background: linear-gradient(45deg, var(--warning-color), #ffd43b);
}

.bg-danger-gradient {
  background: linear-gradient(45deg, var(--danger-color), #ff8787);
}

.bg-purple-gradient {
  background: linear-gradient(45deg, var(--purple-color), #9775fa);
}

/* About Section */
.about-image {
  transition: all 0.3s ease;
}

.about-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-card {
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-list i {
  width: 20px;
  text-align: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background-color: var(--dark-color);

}

.contact-from {
  /* text-decoration: none;
    color: white;
    font-weight: 600; */
  padding: 12px 24px;
  font-size: 16px;
  background-color: #333;
  /* Green */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;

}

.contact-from:hover {
  /* border: 1px, solid #000; */
  background-color: #0d6efd;
  /* Blue on hover */
  color: white;


}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white !important;
}

.footer .text-muted {
  color: white !important;
  /* Lighter white for muted text */

}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.textarea-form {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  border: var(--bs-border-width) solid var(--bs-border-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--bs-border-radius);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  background-color: #f8f9fa;
  font-family: 'Inter', sans-serif;

}

label {
  white-space: normal !important;
}

/* General container for static pages */
.page-container {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2rem 2.5rem;
}

.simple-header {
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.simple-footer {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--secondary-color);
  font-size: 1rem;
  padding-bottom: 1.5rem;
}

/* Style for static page links */
.page-container a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.2s;
}

.page-container a:hover {
  color: var(--dark-color);
}

/* FAQ and How-to lists */
.page-container ol,
.page-container ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-container li {
  margin-bottom: 0.7rem;
  line-height: 1.7;
}

/* Contact form styling */
.page-container form {
  max-width: 400px;
  margin: 0 auto 2rem auto;
  background: #f8f9fa;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-container input[type="text"],
.page-container input[type="email"],
.page-container textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #fff;
  transition: border-color 0.2s;
}

.page-container input[type="text"]:focus,
.page-container input[type="email"]:focus,
.page-container textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.page-container input[type="submit"] {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.page-container input[type="submit"]:hover {
  background: var(--dark-color);
}

/* Responsive for static pages */
@media (max-width: 600px) {
  .page-container {
    padding: 1rem 0.5rem;
  }

  .simple-header {
    font-size: 1.4rem;
  }
}

/* JSON ↔ Excel Converter Section Styles */
#json-excel-section .converter-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 30px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

#json-excel-section h2 {
  font-weight: 600;
}

#json-excel-section textarea,
#json-excel-section pre {
  font-family: monospace;
  font-size: 14px;
}

#json-excel-section .tab-pane {
  padding-top: 15px;
}

#json-excel-section .btn {
  min-width: 150px;
}

#json-excel-section .output-box {
  background-color: #f1f3f5;
  border-radius: 8px;
  padding: 12px;
  max-height: 300px;
  overflow: auto;
  font-size: 14px;
}

/* Remove inline text-decoration */
.no-underline,
a.no-underline {
  text-decoration: none !important;
}

/* Image Comperssor CSS */


/* Custom CSS for Smart Image Compressor */

/* General Styles */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Progress Bar */
.progress-bar {
  height: 6px;
  border-radius: 3px;
  background-color: #e5e7eb;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.5s ease;
}

/* File Input Button Custom Styling */
.file-input-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #3b82f6;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.file-input-label:hover {
  background-color: #2563eb;
}

.file-input-label svg {
  margin-right: 8px;
}

/* Notification System */
.notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.notification.success {
  background-color: #10b981;
  /* Green-600 */
}

.notification.error {
  background-color: #ef4444;
  /* Red-500 */
}

.notification.info {
  background-color: #3b82f6;
  /* Blue-500 */
}

.notification.warning {
  background-color: #f59e0b;
  /* Amber-500 */
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

#messageToast {
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: 9999;
}

/* Small Scroll-to-Top Button */
#scrollBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#scrollBtn:hover {
  background-color: #555;
}

/* For Cookies */

.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 900px;
  margin: auto;
  background: #212529;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  z-index: 9999;
}

.cookie-consent p {
  margin: 0;
  flex: 1;
}

.cookie-consent a {
  color: #0d6efd;
  text-decoration: underline;
}

.cookie-consent button {
  background: #0d6efd;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cookie-consent button:hover {
  background: #0b5ed7;
}
.hover-primary { transition: color 0.3s ease; } 
.hover-primary:hover { color: var(--primary-color) !important; cursor: pointer; }
