/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #111827;
  color: #f3f4f6;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f2937;
  padding: 15px 30px;
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.logo a {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.logo-icon {
  height: 28px;   /* adjust size */
  width: 28px;
  margin-right: 8px;
  border-radius: 6px; /* optional, makes it look neat */
}

header .logo span {
  color: #3b82f6;
}

header nav a {
  margin-left: 15px;
  text-decoration: none;
  color: #f3f4f6;
  font-weight: 500;
}

header nav a:hover {
  color: #3b82f6;
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button */
.dropbtn {
  cursor: pointer;
  color: #f3f4f6;
  text-decoration: none;
  font-weight: 500;
  padding: 0 10px;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1f2937;
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 1000;
  border-radius: 8px;
  margin-top: 1px;
}

/* Links inside dropdown */
.dropdown-content a {
  color: #f3f4f6;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #3b82f6;
  color: #fff;
  border-radius: 5px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* Hero Buttons */
.hero-buttons {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  margin: 5px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: #2563eb;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn:hover {
  transform: scale(1.02);
}


.btn-secondary {
  background: #9333ea;
}

/* Tools Section */
.tools-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.tools-heading::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, #3b82f6, #9333ea); 
}

.tools-container {
   max-width: 600px;
   margin: 30px auto; 
   padding: 20px; 
}

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

.card {
  background: #1f2937;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  position: relative;
}

.card h2 {
  margin-bottom: 15px;
  color: #3b82f6;
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.card input,
.card select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
}

.card button {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #9333ea);
  color: white;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.card button:hover {
  opacity: 0.9;
}

.card p {
  margin-top: 10px;
  font-weight: bold;
}

/* text-input */
textarea#textInput {
  width: 100%;
  height: 200px;   /* Bigger height */
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical; /* Allow user to resize */
  margin-bottom: 15px;
}


/* Quick Conversions */
.quick-conversions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.quick-conversions button {
  flex: 1;
  padding: 8px;
  font-size: 0.9rem;
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  padding: 40px 20px;
  background: #111827;
}

.about.tool-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* Footer Styles */
footer {
  background: #1f2937; /* dark background */
  color: #9ca3af;      /* light gray text */
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  text-align: left;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
  color: #fff;
}

.footer-logo span {
  background: linear-gradient(90deg, #3b82f6, #ec4899, #cebe08);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #3b82f6;
}

.footer-tagline {
  color: #9ca3af;
  margin: 10px 0;
  font-size: 0.95rem;
}

.footer-links h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.footer-links h3::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin: 2px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #ec4899);
}

/* ===== FIX for Quick Links & Company alignment ===== */

/* Quick Links → centered title + 2-column layout */
.footer-links:nth-of-type(2) {
  text-align: center; /* center the title */
}

.footer-links:nth-of-type(2) ul {
  columns: 2;           /* two columns */
  column-gap: 10px;     /* spacing between columns */
  display: inline-block;
  text-align: left;     /* left align text inside each column */
  margin: 0 auto;
}

.footer-links:nth-of-type(3) h3::after {
  transform: translateX(-185%); /* center underline */
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: #3b82f6;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-legal a {
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.footer-legal a:hover {
  background: #3b82f6;
  color: #fff;
  transform: translateY(-2px);
}

/* Blog Index Page Styles */
.blog-index h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #38bdf8;
}

.blog-index ul {
  list-style-type: none;
  padding: 0;
}

.blog-index li {
  margin-bottom: 15px;
  background: rgba(255,255,255,0.05);
  padding: 12px 15px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.blog-index li:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.08);
}

.blog-index li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.blog-index li a:hover {
  color: #38bdf8;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animate hamburger to X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile nav hidden by default */
#navMenu {
  display: flex;
  gap: 15px;
}

/* Responsive */
@media(max-width:640px) { 
  /* Mobile Nav */
  #navMenu {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    right: 10px;
    left: 10px;
    border-radius: 10px;
    padding: 15px;
    z-index: 100;
  }

  #navMenu.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 80%;   /* stack neatly, not too wide */
  }

  /* Footer Responsive */
  footer {
    text-align: center;
    padding: 20px 10px;
  }

  .footer-container {
    padding: 20px 10px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;   /* stack brand + links vertically */
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-links h3 {
    margin-top: 10px;
  }

  .footer-bottom {
    flex-direction: column;   /* stack copyright + links */
    gap: 10px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;   /* allow multiple rows if needed */
    justify-content: center;
    gap: 10px;
  }
}


#qr-result img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

/* Back-Buttons */
button.back-btn {
  margin: 20px auto;
  display: block;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background-color: #38bdf8;
  color: #fff;
  cursor: pointer;
}
button.back-btn:hover {
  background-color: #2563eb;
}

/* aritcles */
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.8;
  font-size: 1rem; 
  color: #e5e7eb;
}

article h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

article h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  color: #fff;
}

article p, article ul {
  margin-bottom: 15px;
  line-height: 1.6;
}

article ul li {
  margin-left: 20px;
  list-style-type: disc;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

/* FAQ Section */
/* FAQ Section */
.faqs {
  background: #222;
  color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.faqs h2 {
  margin-bottom: 30px;
  font-size: 28px;
  color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background: #333;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin: 15px 0;
  padding: 15px 20px;
  transition: transform 0.2s;
}

.faq-card:hover {
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  color: #3b82f6;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span {
  font-size: 22px;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #ddd;
  font-size: 16px;
  margin-top: 8px;
}

.faq-card.open .faq-answer {
  max-height: 200px;
}

.faq-card.open .faq-question span {
  transform: rotate(45deg); /* + turns into × */
}

/* Floating Share Icons */
.floating-share {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-share a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.3s, opacity 0.3s;
  background: rgba(0,0,0,0.6);
}

/* Specific Colors (fixed selectors) */
.floating-share .fa-whatsapp { color: #25D366; }
.floating-share .fa-twitter,
.floating-share .fa-facebook,
.floating-share .fa-linkedin { color: #fff; }

/* Hover Animation */
.floating-share a:hover {
  transform: scale(1.2);
  opacity: 0.8;
  background: #3b82f6;  /* bright blue background on hover */
}
