/* =========================================
   1. RESET + GLOBAL BASE
========================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f4f6fb;
  color: #111827;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  padding: 0 16px;
}

section {
  /* margin-top: 60px; */
  margin-top: 0;
}

/* =========================================
   2. HEADER (GLOBAL NAVIGATION)
========================================= */

.header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* LOGO */
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  color: #111;
}

.logo img {
  margin-right: 8px;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.2s;
}

.nav-link:hover {
  color: #ff0000;
}

/* =========================================
   3. DROPDOWN (DESKTOP)
========================================= */

.dropdown {
  position: relative;
  margin-left: 20px;
}

.dropbtn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

.dropdown-content {
  position: absolute;
  top: 40px;
  left: 0;
  background: #fff;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  overflow: hidden;
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  transition: 0.2s;
}

.dropdown-content a:hover {
  background: #f5f7fb;
  padding-left: 18px;
}

/* SHOW DROPDOWN */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================
   4. HAMBURGER (MOBILE)
========================================= */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  border: none;
  background: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: 0.3s;
}

/* ANIMATION */
.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);
}

/* =========================================
   5. MOBILE MENU
========================================= */

.mobile-menu {
  position: fixed;
  top: 70px;
  right: -100%;
  width: 85%;
  height: 100%;
  background: #fff;
  padding: 20px;
  transition: 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu a {
  display: block;
  margin: 12px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* MOBILE DROPDOWN */
.mobile-dropdown-content {
  display: none;
  padding-left: 10px;
}

.mobile-dropdown-content.show {
  display: block;
}

.mobile-dropdown-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 15px;
  margin-top: 10px;
  cursor: pointer;
}

/* =========================================
   6. HERO (ALL PAGES)
========================================= */

.hero {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.hero p {
  font-size: clamp(14px, 3vw, 18px);
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #fff;
  color: #ff0000;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   7. CARD (TOOLS UI)
========================================= */

.card {
  width: 100%;
  max-width: 800px;
  margin: -60px auto 40px;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* INPUT */
input,
select {
  width: 100%;
  max-width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f9fafc;
}


/* RESULT */
.result {
  margin-top: 10px;
  font-weight: 600;
  color: #2563eb;
}

/* =========================================
   8. GRID (HOMEPAGE)
========================================= */

.tool-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tool-card,
.feature {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #111;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.tool-card:hover,
.feature:hover {
  transform: translateY(-5px);
}

/* =========================================
   9. CONTENT (SEO TEXT)
========================================= */

.content {
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
}

/* =========================================
   10. FOOTER
========================================= */


/* =========================================
   FOOTER MAIN
========================================= */

.footer {
  background: #111827;
  color: #fff;
  margin-top: 60px;
  padding-top: 50px;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

/* COLUMN */
.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
}

.footer-col p {
  color: #bbb;
  line-height: 1.6;
}

/* LINKS */
.footer-col a {
  display: block;
  color: #ccc;
  margin: 6px 0;
  text-decoration: none;
  transition: 0.2s;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 5px;
}

/* BRAND SPECIAL */
.footer-col.brand h3 {
  font-size: 20px;
}

/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding: 15px 0;
}

.footer-bottom-flex {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #aaa;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

  .footer-grid {
    gap: 20px;
  }

  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

}

/* =========================================
   11. RESPONSIVE (CRITICAL)
========================================= */

@media (max-width: 768px) {

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 60px 15px;
  }

  .card {
    margin: -30px auto 30px;
    /* reduce overlap */
    padding: 18px;
  }

  .container {
    padding: 0 14px;
  }

}
@media (max-width: 480px) {

  .card {
    margin: -20px auto 20px;
    padding: 15px;
  }

  .hero {
    padding: 50px 12px;
  }
}

/* INTERNAL LINK BLOCK */
.tool-links {
  margin: 40px 0;
  padding: 20px;
  background: #f9fafc;
  border-radius: 12px;
  text-align: center;
}

.tool-links h3 {
  margin-bottom: 15px;
}

.tool-links a {
  display: block;
  margin: 8px 0;
  color: #ff0000;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s;
}

.tool-links a:hover {
  text-decoration: underline;
}

/* =========================
   ABOUT PAGE – PRO UI
========================= */

.about-container {
  max-width: 950px;
  margin: 40px auto;
  padding: 20px;
}

/* HERO */
.about-hero {
  text-align: center;
  margin-bottom: 40px;
}

.about-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 10px;
}

.about-hero p {
  color: #6b7280;
  max-width: 600px;
  margin: auto;
}

/* CARD */
.about-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 25px;
  transition: 0.3s;
}

.about-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

.about-card h2 {
  margin-bottom: 10px;
}

.about-card p {
  color: #475569;
  line-height: 1.7;
}

/* GRID */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.about-box {
  background: #f9fafc;
  padding: 15px;
  border-radius: 10px;
}

.about-box h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

/* LIST */
.about-card ul {
  padding-left: 20px;
}

.about-card li {
  margin-bottom: 8px;
}

/* CTA */
.about-cta {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  color: white;
}

.about-cta a {
  display: block;
  margin: 10px auto;
  max-width: 320px;
  background: white;
  color: #ff0000;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.about-cta a:hover {
  transform: scale(1.05);
  background: #fff5f5;
}

/* MOBILE */
@media (max-width: 768px) {

  .about-container {
    padding: 15px;
  }

  .about-card {
    padding: 16px;
  }

  .about-cta a {
    font-size: 14px;
  }

}

/* =========================
   CONTACT PAGE – PRO UI
========================= */

.contact-container {
  max-width: 950px;
  margin: 40px auto;
  padding: 20px;
}

/* HERO */
.contact-hero {
  text-align: center;
  margin-bottom: 40px;
}

.contact-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 10px;
}

.contact-hero p {
  color: #6b7280;
  max-width: 600px;
  margin: auto;
}

/* CARD */
.contact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 25px;
  transition: 0.3s;
}

.contact-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-3px);
}

/* GRID */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.contact-box {
  background: #f9fafc;
  padding: 15px;
  border-radius: 10px;
}

/* FORM */
.contact-form {
  margin-top: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f9fafc;
}

/* BUTTON */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #e60000;
}

/* NOTE */
.contact-note {
  margin-top: 10px;
  color: #6b7280;
  font-size: 14px;
}

/* CTA */
.contact-cta {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  color: white;
}

.contact-cta a {
  display: block;
  margin: 10px auto;
  max-width: 320px;
  background: white;
  color: #ff0000;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.contact-cta a:hover {
  transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-container {
    padding: 15px;
  }

  .contact-card {
    padding: 16px;
  }
}

/* =========================
   PRIVACY PAGE UI
========================= */

.privacy-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

/* HERO */
.privacy-hero {
  text-align: center;
  margin-bottom: 40px;
}

.privacy-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 10px;
}

.privacy-hero p {
  color: #6b7280;
  max-width: 600px;
  margin: auto;
}

/* CARD */
.privacy-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.privacy-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.privacy-card h2 {
  margin-bottom: 8px;
}

.privacy-card p {
  color: #475569;
  line-height: 1.7;
}

.privacy-card ul {
  padding-left: 20px;
}

.privacy-card li {
  margin-bottom: 6px;
}

/* CTA */
.privacy-cta {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  padding: 25px;
  border-radius: 14px;
  text-align: center;
  color: white;
}

.privacy-cta a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: white;
  color: #ff0000;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.privacy-cta a:hover {
  transform: scale(1.05);
}

/* FOOTER */
.privacy-footer {
  text-align: center;
  margin-top: 20px;
  color: #6b7280;
}

/* MOBILE */
@media (max-width: 768px) {
  .privacy-container {
    padding: 15px;
  }

  .privacy-card {
    padding: 15px;
  }
}

/* ======================================
   TERMS PAGE – PRO UI (CONSISTENT SYSTEM)
====================================== */

/* CONTAINER */
.terms-container {
  max-width: 950px;
  margin: 40px auto;
  padding: 20px;
}

/* =========================
   HERO SECTION
========================= */
.terms-hero {
  text-align: center;
  margin-bottom: 40px;
}

.terms-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 10px;
  font-weight: 600;
}

.terms-hero p {
  color: #6b7280;
  max-width: 650px;
  margin: auto;
  line-height: 1.6;
}

/* =========================
   CARD SECTION
========================= */
.terms-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 22px;
  transition: all 0.25s ease;
}

/* HOVER EFFECT */
.terms-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

/* HEADINGS */
.terms-card h2 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #111827;
}

/* TEXT */
.terms-card p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* LIST */
.terms-card ul {
  padding-left: 20px;
  margin-top: 10px;
}

.terms-card li {
  margin-bottom: 8px;
  color: #374151;
}

/* =========================
   IMPORTANT BOX (OPTIONAL)
========================= */
.terms-card:nth-child(3) {
  border-left: 4px solid #ff0000;
  background: #fff5f5;
}

/* =========================
   CTA SECTION
========================= */
.terms-cta {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  color: white;
  margin-top: 30px;
}

.terms-cta h2 {
  margin-bottom: 8px;
}

.terms-cta p {
  margin-bottom: 15px;
  color: #ffe5e5;
}

/* CTA BUTTON */
.terms-cta a {
  display: inline-block;
  padding: 12px 20px;
  background: #ffffff;
  color: #ff0000;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.terms-cta a:hover {
  transform: scale(1.05);
  background: #fff0f0;
}

/* =========================
   FOOTER TEXT
========================= */
.terms-footer {
  text-align: center;
  margin-top: 20px;
  color: #6b7280;
  font-size: 14px;
}

/* =========================
   LINK STYLE
========================= */
.terms-card a {
  color: #ff0000;
  text-decoration: none;
  font-weight: 500;
}

.terms-card a:hover {
  text-decoration: underline;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  .terms-container {
    padding: 15px;
  }

  .terms-card {
    padding: 16px;
  }

  .terms-hero h1 {
    font-size: 24px;
  }

  .terms-cta {
    padding: 20px;
  }

  .terms-cta a {
    width: 90%;
    display: block;
    margin: 10px auto 0;
  }

}