/* =========================
   RESET & BASE
========================= */
* {
  margin: 4px;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, Arial, sans-serif;
}

body {
  background: #f8fafc;
  color: #0f172a;
}

/* =========================
   DARK MODE
========================= */
.dark {
  background: #020617;
  color: #e5e7eb;
}

.dark header,
.dark .tool-card,
.dark .card,
.dark .why-card,
.dark .step {
  background: #0f172a;
  color: #e5e7eb;
}

/* =========================
   Search css
========================= */

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #f2f2f2;
  transition: all 0.3s ease;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 120px;
  transition: width 0.3s ease;
}

.search-box:hover input,
.search-box input:focus {
  width: 200px;
}

body.dark .search-box {
  background: #1e1e1e;
}

/* =========================
   Hamunburg Menu Mobile
========================= */

.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px;
  }

  .navbar.show {
    display: flex;
  }

  .menu-btn {
    display: block;
  }
}



/* =========================
   HEADER / NAV
========================= */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #2563eb;
  text-decoration: none;
}

.navbar a {
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
  color: #0f172a;
}

#search {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

/* =========================
   HERO
========================= */
.hero {
  text-align: center;
  padding: 40px 20px;
}

/* =========================
   TOOLS GRID
========================= */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: 40px 0;
}

.tool-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.tool-card span {
  display: block;
  margin-top: 10px;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(37,99,235,0.2);
  background: linear-gradient(135deg,#2563eb,#3b82f6);
  color: white;
}

/* =========================
   TOOL PAGE AREA
========================= */
.tool-area {
  padding: 30px;
  background: #ffffff;
  margin: 20px;
  border-radius: 12px;
}

.tool-area h3 {
  margin-top: 20px;
}

.tool-area input,
.tool-area button,
input,
select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
}

button,
.primary-btn {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 5px 20px;
  cursor: pointer;
}

button:hover,
.primary-btn:hover {
  background: #1d4ed8;
}


/* =========================
   RESULT / MEDIA
========================= */
#imageOutput img,
#qrResult img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 8px;
}

#timerDisplay,
#stopwatchDisplay {
  font-size: 32px;
  font-weight: bold;
  margin: 15px 0;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* =========================
   WHY CHOOSE US
========================= */
.why-us {
  text-align: center;
  padding: 60px 20px;
}

.why-us h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.subtitle {
  color: #64748b;
  margin-bottom: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: auto;
}

.why-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-weight: 500;
}

/* =========================
   HOW IT WORKS
========================= */
.how-it-works {
  background: #f1f5f9;
  padding: 60px 20px;
  text-align: center;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.step {
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-weight: 500;
}

/* =========================
   ANIMATIONS
========================= */
.fade {
  animation: fadeIn 0.4s ease;
}

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

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .row {
    flex-direction: column;
  }

  input, select, button {
    width: 100%;
  }

  .tool-area {
    padding: 15px;
  }
}
/* ================= WHY US ================= */
.why-us {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.why-toggle {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  text-align: left;
}

.why-grid {
  display: none;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.why-grid.active {
  display: grid;
}

.why-card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* FORCE REAL EMOJI RENDERING */
.emoji{
  font-family:
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Noto Color Emoji",
    system-ui;
  font-size:clamp(22px,6vw,28px); /* 📱 auto scale */
}

/* Tooltip for country name */
.emoji[data-country]:hover::after{
  content:attr(data-country);
  position:absolute;
  bottom:-26px;
  left:50%;
  transform:translateX(-50%);
  background:#000;
  color:#fff;
  font-size:11px;
  padding:3px 6px;
  border-radius:4px;
  white-space:nowrap;
  z-index:10;
}
body {
  background: #f3f4f6;
}

/* Shared card style (same as PDF page) */
.info-card {
  max-width: 760px;
  margin: 60px auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  text-align: left; /* IMPORTANT: keep content left aligned */
}

/* Center ONLY main section headings */
.info-card > h2,
#comments > h2 {
  text-align: center;
  color: #111827;
  margin-bottom: 22px; /* gap under heading */
}

/* Sub-headings */
.info-card h3 {
  color: #111827;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Paragraphs & list text */
.info-card p,
.info-card li {
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

/* Add breathing room under description */
.info-card p {
  margin-bottom: 20px;
}

button:hover,
#comments button:hover {
  background: #1e40af;
}

#comments input,
#comments textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* 👇 Rating select box same width as Submit Review button and centered */
#comments select {
  display: inline-block;           /* shrink to button size */
  padding: 2px 20px;              /* same horizontal padding as button */
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  cursor: pointer;
  box-sizing: border-box;
 
   -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;

  text-align: left;                /* keep text left inside select */
  margin-bottom: 0px;
}



/* Center the form elements */
#comments {
  margin-top: 40px;
  text-align: center;               /* center select + button */
}

/* Mobile spacing */
@media (max-width: 640px) {

  .tool-wrapper {
    margin: 20px 12px;
    padding: 24px;
    border-radius: 16px;
  }

  .info-card {
    margin: 30px 12px;
    padding: 24px;
  }

  textarea {
    min-height: 140px;
    font-size: 14px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-box strong {
    font-size: 18px;
  }

  button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  /* Center select box on mobile too */
  #comments select {
    width: auto;   /* keep same as button width */
  }
}

/* ================= FOOTER ================= */
.site-footer{
  width:100%;
  text-align:center;
  padding:22px 15px;
  background:#f8f8f8;
  margin-top:60px;
  font-size:14px;
  line-height:1.6;
}

/* Dark mode */
body.dark .site-footer{
  background:#1e1e1e;
  color:#e5e7eb;
}

/* Footer text */
.site-footer p{
  margin:0;
  font-weight:500;
}

/* Footer links wrapper */
.footer-links{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Footer links */
.footer-links a{
  font-size:14px;
  font-weight:500;
  color:#2563eb;
  text-decoration:none;
  transition:color .2s ease;
}

.footer-links a:hover{
  color:#1e40af;
  text-decoration:underline;
}

/* Mobile optimization */
@media (max-width:600px){
  .site-footer{
    font-size:13px;
    padding:20px 12px;
  }

  .footer-links{
    gap:12px;
  }
}

