/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e8e8e8;
  z-index: 100;
  padding: 1rem 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #000;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  transition: color 0.2s;
}

.nav-links a:hover { color: #000; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: #000;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}

.hero h1 span { color: #aaa; }

.hero p {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.badge {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #ccc;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
}

/* ===== TABS SECTION ===== */
.tabs-section {
  padding: 3rem 0 5rem;
  background: #f9f9f9;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: #efefef;
  padding: 0.4rem;
  border-radius: 12px;
  width: fit-content;
}

.tab-btn {
  padding: 0.6rem 1.8rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.tab-btn.active {
  background: #000;
  color: #fff;
}

.tab-btn:hover:not(.active) {
  background: #ddd;
  color: #000;
}

/* ===== TAB CONTENT ===== */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: #fff;
}

.upload-zone:hover {
  border-color: #000;
  background: #f5f5f5;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.upload-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #111;
}

.upload-sub {
  font-size: 0.9rem;
  color: #888;
}

/* ===== CONTROLS ===== */
.controls {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.control-row input[type="range"] {
  width: 160px;
  accent-color: #000;
  cursor: pointer;
}

.control-row select {
  padding: 0.4rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.btn-row {
  display: flex;
  gap: 0.8rem;
  margin-left: auto;
}

.btn-primary {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: #222; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  background: transparent;
  color: #555;
  border: 1px solid #ccc;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: #000;
  color: #000;
}

/* ===== RESULT CARDS ===== */
.results {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
}

.result-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #111;
}

.result-sizes {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.result-saving {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: #000;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-left: 0.5rem;
}

/* ===== DOWNLOAD BUTTON ===== */
.result-download {
  display: inline-block;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.result-download:hover {
  background: #333;
  transform: scale(1.04);
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: #eee;
  border-radius: 999px;
  height: 6px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #000;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ===== PRESETS ===== */
.preset-intro {
  color: #666;
  margin-bottom: 1.8rem;
  font-size: 1rem;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.preset-card {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.22s;
}

.preset-card:hover {
  border-color: #000;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.preset-card.selected {
  border-color: #000;
  background: #000;
  color: #fff;
}

.preset-card.selected p,
.preset-card.selected .preset-tag { color: #aaa; }

.preset-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.preset-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.preset-card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.preset-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  background: #f0f0f0;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
}

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 5rem 0;
  background: #fff;
  text-align: center;
}

.how-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  padding: 2rem 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  transition: box-shadow 0.2s;
}

.step:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); }

.step-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0e0e0;
  margin-bottom: 0.8rem;
}

.step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3rem 2rem;
}

.footer .logo {
  color: #fff;
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.footer p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #555;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .controls { flex-direction: column; align-items: flex-start; }
  .btn-row { margin-left: 0; }
  .nav-links { gap: 1rem; }
  .tab-buttons { width: 100%; justify-content: center; }
  .result-card { flex-wrap: wrap; }
  .result-download { width: 100%; text-align: center; }
}
/* ===== GOOGLE TRANSLATE ===== */
#google_translate_element {
  display: inline-block;
}

#google_translate_element select {
  background: #000;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

#google_translate_element select:hover {
  border-color: #fff;
}

.goog-te-banner-frame { display: none !important; }
.goog-te-menu-value span { color: #fff !important; }
body { top: 0 !important; }
.skiptranslate { display: none !important; }