:root {
  --text:#111;
  --muted:#555;
  --border:#ddd;
  --accent:#000;
}

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

body {
  font-family:Inter,system-ui,sans-serif;
  color:var(--text);
  background:#fff;
}

/* HEADER */
.header {
  border-bottom:1px solid var(--border);
}
.container {
  max-width:1100px;
  margin:auto;
  padding:40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.logo {
  font-weight:900;
  font-size:1.4rem;
}
.logo span {
  font-weight:700;
}
nav a {
  margin-left:26px;
  text-decoration:none;
  color:#000;
  font-weight:600;
  position:relative;
}
nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:#000;
  transition:.3s;
}
nav a:hover::after {
  width:100%;
}

/* HERO */
.hero {
  text-align:center;
  padding:80px 20px 40px;
}
.hero h1 {
  font-size:40px;
}
.hero p {
  margin-top:10px;
  color:var(--muted);
  font-size:18px;
}

/* TOOL */
.tool-wrapper {
  max-width:800px;
  margin:60px auto;
  padding:0 20px;
}
.tool-box {
  border:1px solid var(--border);
  padding:30px;
  background:#fafafa;
}

/* DROPDOWN */
.dropdown {
  position:relative;
  max-width:360px;
}
.dropdown button {
  width:100%;
  padding:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:600;
  display:flex;
  justify-content:space-between;
  cursor:pointer;
}
.options {
  display:none;
  position:absolute;
  width:100%;
  background:#fff;
  border:1px solid var(--border);
}
.dropdown.open .options {
  display:block;
}
.options div {
  padding:14px;
  cursor:pointer;
}
.options div:hover,
.options .active {
  background:#000;
  color:#fff;
}

/* INPUTS */
input, textarea {
  width:100%;
  margin-top:20px;
  padding:14px;
  border:1px solid var(--border);
  font-family:inherit;
}
textarea {
  min-height:120px;
}

.btn {
  margin-top:20px;
  padding:12px 20px;
  border:1px solid #000;
  background:#000000;
  color: #fff;
  font-weight:600;
  cursor:pointer;
}
.btn:hover {
  background:#ffffff;
  color:#000000;
}

/* RESULT */
.result {
  margin-top:30px;
}
.result h2 {
  margin-bottom:10px;
}
#preview img,
#preview audio {
  max-width:100%;
  margin-top:20px;
}

/* ================================
   FOOTER – DARK TEXT
================================ */
.footer {
  border-top: 1px solid var(--border);
  background: transparent;
  padding: 28px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* LEFT */
.footer-left {
  font-size: 14px;
  color: #111; /* dark text */
  white-space: nowrap;
}

/* CENTER – SOCIAL ICONS */
.footer-center {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-center a {
  font-size: 18px;
  color: #111; /* dark */
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-center a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

/* RIGHT – TERMS & PRIVACY */
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-right a {
  font-size: 13px;
  color: #111; /* dark text */
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* SAME hover as center */
.footer-right a:hover {
  transform: translateY(-2px);
  opacity: 0.7;
}

.hamburger {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

  /* ===================== MOBILE HEADER / NAV ===================== */

  .hamburger {
      display: block;
      cursor: pointer;
      font-size: 28px;
      margin-right: 15px;
  }

  /* Hide Desktop Nav */
  nav, 
  .nav-right nav {
      display: none !important;
  }
  /* -------------------------------
   MOBILE DARK MODE NAV
    ---------------------------------*/
    body.dark .mobile-nav {
        background: var(--card); /* dark background */
    }

    body.dark .mobile-nav a {
        color: var(--text); /* white text */
    }

    body.dark .mobile-nav a:hover {
        background: var(--accent); /* hover background in dark mode */
        color: var(--bg);           /* hover text in dark mode */
    }

    body.dark .mobile-close {
        color: var(--text); /* close button white */
    }

    body.dark .mobile-close:hover {
        color: var(--accent); /* hover color for close button */
    }

  /* Mobile Nav Dropdown */
  .mobile-nav {
      display: none;
      flex-direction: column;
      background: #fff;
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 10px 0;
      border-bottom: 1px solid #ccc;
      z-index: 9999 !important;
  }

  .mobile-nav.open {
      display: flex;
  }

  .mobile-nav a {
      padding: 12px 20px;
      color: #000;
      font-weight: 600;
      text-decoration: none;
      border-top: 1px solid #eee;
  }

  .mobile-nav a:first-child {
      border-top: none;
  }

  .mobile-nav a:hover {
      background: #000;
      color: #fff;
      transition: 0.2s ease;
  }

  .mobile-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    text-align: right;
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
}

.mobile-close:hover {
    color: var(--accent);
}
.footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-center,
  .footer-right {
    justify-content: center;
  }
}