:root {
  --bg-color: #010101; /* TikTok Dark */
  --text-color: #ffffff;
  --accent-cyan: #25F4EE;
  --accent-red: #FE2C55;
  --container-bg: rgba(25, 25, 25, 0.6);
  --border-color: #333;
}

html.light {
  --bg-color: #f9f9f9;
  --text-color: #121212;
  --container-bg: #ffffff;
  --border-color: #e0e0e0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
}

.navbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-header {
  display: flex;
  align-items: center;
}

.navbar-collapse {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  margin-left: 30px;
}

.nav-right-mobile {
  display: none !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent-cyan);
}

.dropdown {
  position: relative;
}

.dropdown-menu, .dropdown-menus {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--container-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  z-index: 100;
  backdrop-filter: blur(10px);
  min-width: 150px;
}

.dropdown:hover .dropdown-menu, .dropdown:hover .dropdown-menus {
  display: flex;
  flex-direction: column;
}

.dropdown-menu li {
  list-style: none;
  margin-bottom: 5px;
}

.dropdown-menu .divider {
  height: 1px;
  background: var(--border-color);
  margin: 5px 0;
}

.dropdown-item {
  padding: 8px 15px;
  color: var(--text-color);
  display: block;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Fix SVG alignment inside nav */
.nav svg {
  vertical-align: middle;
}


/* JUMBOTRON & HERO */
.jumbotron {
  padding: 80px 0;
  text-align: center;
}

.title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #aaa;
  margin-bottom: 40px;
}

.main-box-download {
  max-width: 800px;
  margin: 0 auto;
}

/* INPUT FIELD */
.input-group {
  display: flex;
  background: var(--container-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 5px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.input-text {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-color);
  padding: 15px 25px;
  font-size: 1.1rem;
  outline: none;
}

.input-text::placeholder {
  color: #888;
}

.icon {
  width: 20px;
  height: 20px;
}

.paste-button, .clear-button {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.paste-button:hover, .clear-button:hover {
  color: var(--accent-cyan);
}

/* DOWNLOAD BUTTON */
.btn-download {
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-red));
  border: none;
  border-radius: 50px;
  color: white;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, var(--accent-red), var(--accent-cyan));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-download:hover::before {
  opacity: 1;
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(254, 44, 85, 0.5), 0 0 15px rgba(37, 244, 238, 0.5);
}

.download-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section-header h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.about-description, .faq-answer, .description, .notices-description {
  color: #bbb;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* FAQ */
.faq-item {
  background: var(--container-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
}

.faq-question {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* FEATURES */
.features-content {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.box-item {
  flex: 1;
  min-width: 280px;
  background: var(--container-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.box-item .title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
}

/* FOOTER */
.footer {
  padding: 60px 0 20px;
  border-top: 1px solid var(--border-color);
  color: #888;
  margin-top: 40px;
}

.footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column .heading {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-column .item {
  margin-bottom: 10px;
}

.footer-link {
  color: #888;
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-info {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 20px;
}

.social-network {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}

.social-btn:hover {
  color: var(--accent-cyan);
}

/* NOTICES */
#notices {
  background: rgba(37, 244, 238, 0.05);
  padding: 20px 0;
  border-top: 1px solid rgba(37, 244, 238, 0.2);
  border-bottom: 1px solid rgba(37, 244, 238, 0.2);
}

.notices-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.notices-title h3 {
  margin: 0;
  color: var(--accent-cyan);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  .input-group {
    flex-direction: column;
    border-radius: 20px;
  }
  .btn-download {
    margin-top: 10px;
    width: 100%;
    border-radius: 20px;
    justify-content: center;
  }
  .features-content {
    flex-direction: column;
  }
  .navbar-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Hiding SVG toggles and languages that clutter the mobile view */
.hide-mobile, .show-mobile {
  display: none;
}

/* ── RTL Support (Arabic) ─────────────────────────────────────── */
body.rtl {
  direction: rtl;
  text-align: right;
}
body.rtl .input-group {
  direction: rtl;
}
body.rtl .input-text {
  text-align: right;
}
body.rtl .navbar-brand {
  margin-right: 0;
  margin-left: auto;
}
body.rtl .dropdown-menus {
  left: 0;
  right: auto;
}
body.rtl .footer-links {
  direction: rtl;
}
body.rtl .faq-question a {
  direction: rtl;
}
body.rtl .notices-description {
  direction: rtl;
  text-align: right;
}

