

/* public/css/main.css - Global Styles for ToolsRope (Redesigned Premium) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --surface: rgba(255,255,255,0.06);
  --surface-hover: rgba(255,255,255,0.1);
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.05);
  --accent: #00E5CC;
  --accent-dim: rgba(0,229,204,0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted: #777777;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}



html { scroll-behavior: smooth; height: 100%; overflow-x: hidden; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

main { flex: 1; display: flex; flex-direction: column; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
body.light ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }
body.light ::-webkit-scrollbar-thumb:hover { background: #000; }
::selection { background: var(--accent); color: #000000; }

/* Alert Messages */
.alert-container { position: fixed; top: 80px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.alert { padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 500; animation: slideIn 0.3s ease forwards; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.alert.success { background: rgba(0,229,204,0.1); color: var(--accent); border: 1px solid rgba(0,229,204,0.2); }
.alert.error { background: rgba(255,77,77,0.1); color: #FF4D4D; border: 1px solid rgba(255,77,77,0.2); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Utility Classes */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ========== NAVBAR ========== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: padding 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: padding;
}
#navbar .nav-container {
  max-width: 1280px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0px;
  backdrop-filter: blur(0px) saturate(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%);
  box-shadow: none;
  transition:
    max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    -webkit-backdrop-filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background, border-radius, backdrop-filter, max-width;
}
#navbar.scrolled {
  padding: 10px 0;
}
#navbar.scrolled .nav-container {
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1.5px solid rgba(0, 229, 204, 0.45);
  border-radius: 60px;
  padding: 8px 28px;
  max-width: 1100px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(0,229,204,0.12) inset;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text-primary);
  font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700;
}
.logo-mark {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 30px; height: 30px; transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1); }
.logo:hover .logo-mark svg { transform: rotate(360deg); }
.logo span.hi { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 15px; font-weight: 600; transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search-wrap { position: relative; }
.nav-search {
  background: var(--surface); border: 2px solid var(--border-light);
  border-radius: 40px; padding: 8px 16px 8px 38px;
  font-size: 13px; color: var(--text-primary); width: 200px;
  transition: all 0.3s ease; outline: none;
}
.nav-search:focus { width: 260px; border-color: var(--accent); }
.nav-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted);
}

body:not(.light) .btn-ghost {
  background: #FFFFFF; color: #000000; border: 2px solid #FFFFFF;
  padding: 7px 20px; border-radius: 40px; font-size: 13px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
body:not(.light) .btn-ghost:hover {
  background: #E0E0E0; color: #000000; border-color: #E0E0E0;
  transform: translateY(-1px);
}
body.light .btn-ghost {
  background: #000000; color: #FFFFFF; border: 2px solid #000000;
  padding: 7px 20px; border-radius: 40px; font-size: 13px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
body.light .btn-ghost:hover {
  background: #333333; color: #FFFFFF; border-color: #333333;
  transform: translateY(-1px);
}

body:not(.light) .btn-accent {
  background: #FFFFFF; color: #000000; border: none;
  padding: 8px 24px; border-radius: 40px; font-size: 13px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
body:not(.light) .btn-accent:hover {
  background: #E0E0E0; color: #000000; transform: translateY(-2px);
}
body.light .btn-accent {
  background: #000000; color: #FFFFFF; border: none;
  padding: 8px 24px; border-radius: 40px; font-size: 13px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
body.light .btn-accent:hover {
  background: #333333; color: #FFFFFF; transform: translateY(-2px);
}

/* Theme Toggle with tooltip */
.theme-toggle-wrapper {
  position: relative;
}
.theme-toggle {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 50%; width: 40px; height: 40px; color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s;
}
.theme-toggle:hover { background: var(--accent); color: #000; border-color: var(--accent); transform: rotate(15deg); }
.theme-tooltip {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) scale(0.9);
  background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600;
  opacity: 0; visibility: hidden; transition: all 0.2s; white-space: nowrap;
  pointer-events: none;
}
.theme-toggle-wrapper:hover .theme-tooltip {
  opacity: 1; visibility: visible; transform: translateX(-50%) scale(1);
}

/* ========== LANGUAGE SELECTOR ========== */
.lang-selector-wrap {
  position: relative;
}
.lang-selector-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 40px; padding: 7px 13px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.25s ease;
  white-space: nowrap; font-family: 'Outfit', sans-serif;
}
.lang-selector-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
}
.lang-selector-btn .lang-globe {
  width: 14px; height: 14px; flex-shrink: 0; color: var(--accent);
}
.lang-selector-btn .lang-arrow {
  width: 10px; height: 10px; flex-shrink: 0;
  transition: transform 0.25s ease;
}
.lang-selector-wrap.open .lang-arrow { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: #0d0d0d; border: 1px solid var(--border);
  border-radius: 18px; width: 300px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,204,0.06);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001; overflow: hidden;
}
.lang-selector-wrap.open .lang-dropdown {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-dd-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.lang-dd-search {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
  font-size: 12px; color: var(--text-primary);
  outline: none; transition: border-color 0.2s;
  font-family: 'Outfit', sans-serif;
}
.lang-dd-search:focus { border-color: var(--accent); }
.lang-dd-search::placeholder { color: var(--text-muted); }

.lang-list {
  max-height: 280px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
  padding: 8px 0;
}
.lang-list::-webkit-scrollbar { width: 4px; }
.lang-list::-webkit-scrollbar-track { background: transparent; }
.lang-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.lang-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; cursor: pointer;
  transition: background 0.15s ease;
  font-size: 13px; color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
}
.lang-item:hover { background: var(--surface); color: var(--text-primary); }
.lang-item.active { color: var(--accent); }
.lang-item.active .lang-item-name::after {
  content: ' ✓'; font-size: 11px; color: var(--accent);
}
.lang-item-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lang-item-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lang-item-name { font-weight: 600; font-size: 13px; }
.lang-item-native { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.lang-no-results {
  padding: 24px 16px; text-align: center;
  font-size: 12px; color: var(--text-muted);
  display: none;
}

/* Mobile lang selector */
.mob-lang-wrap {
  margin-top: 8px; width: 100%;
}
.mob-lang-select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  font-size: 14px; color: var(--text-primary); font-weight: 600;
  font-family: 'Outfit', sans-serif; cursor: pointer; outline: none;
  transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300E5CC' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.mob-lang-select:focus { border-color: var(--accent); }
.mob-lang-select option { background: #111; color: #fff; }

/* Mobile Toggle */
.mobile-toggle {
  display: none; background: none; border: none; color: var(--text-primary);
  cursor: pointer; padding: 4px;
}

/* Mobile Menu — smooth slide from right */
#mobile-menu {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  z-index: 500;
  background: #0a0a0a;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  padding: 72px 24px 40px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
#mobile-menu.open {
  display: flex;
  transform: translateX(0);
}

/* Overlay behind mobile menu */
#mob-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 499;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#mob-overlay.open {
  display: block;
  opacity: 1;
}

#mobile-menu a {
  padding: 14px 16px; border-radius: 12px; color: var(--text-secondary);
  text-decoration: none; font-size: 16px; font-weight: 600;
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
}
#mobile-menu a:hover,
#mobile-menu a.active { background: var(--surface); color: var(--accent); padding-left: 20px; }

#mobile-menu .mob-search {
  background: var(--surface); border: 1.5px solid var(--border-light);
  border-radius: 40px; padding: 12px 18px; width: 100%; margin: 12px 0 6px;
  font-size: 15px; color: var(--text-primary);
  outline: none; transition: all 0.2s; font-family: 'Outfit', sans-serif;
}
#mobile-menu .mob-search:focus { border-color: var(--accent); }

#mobile-menu .mob-btns {
  display: flex; gap: 10px; margin-top: 16px; flex-direction: column;
  border-top: 1px solid var(--border); padding-top: 16px;
}

#mobile-menu .mob-btns .btn-ghost {
  background: var(--surface); color: var(--text-primary);
  border: 1.5px solid var(--border);
  text-align: center; padding: 13px; border-radius: 12px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: all 0.2s; display: block;
}
#mobile-menu .mob-btns .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

#mobile-menu .mob-btns .btn-accent {
  background: var(--accent); color: #000000; border: none;
  text-align: center; padding: 13px; border-radius: 12px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: all 0.2s; display: block;
}
#mobile-menu .mob-btns .btn-accent:hover { filter: brightness(1.08); }

.mobile-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; font-weight: 600;
  background: var(--surface); color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.mobile-close:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Mobile menu section label */
.mob-section-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 16px 4px; margin-top: 4px;
}


/* ========== HERO ========== */
.hero {
  position: relative; z-index: 1;
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 32px 60px;
  text-align: center;
}
.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.04em;
  max-width: 800px; color: var(--text-primary);
}
.hero-heading em { font-style: normal; color: var(--accent); }
.hero-search-row {
  display: flex; align-items: center; justify-content: center;
  margin-top: 40px; width: 100%; max-width: 540px;
}
.hero-search-box {
  width: 100%; display: flex; align-items: center;
  background: var(--surface); border: 2px solid var(--border-light);
  border-radius: 60px; transition: all 0.25s ease; padding: 4px;
}
.hero-search-box:focus-within { border-color: var(--accent); }
.hero-search-box svg { margin: 0 16px; color: var(--text-muted); transition: color 0.2s; }
.hero-search-box:focus-within svg { color: var(--accent); }
.hero-search-box input {
  flex: 1; background: none; border: none; outline: none;
  padding: 14px 0; font-size: 15px; color: var(--text-primary);
  font-family: 'Outfit', sans-serif; font-weight: 400;
}
.hero-search-box input::placeholder { color: var(--text-muted); }
.hero-search-box button {
  background: var(--text-primary); color: var(--bg);
  border: none; padding: 0 24px; border-radius: 40px;
  font-weight: 600; font-size: 13px; cursor: pointer;
  align-self: stretch; margin: 2px; transition: all 0.2s;
}
.hero-search-box button:hover { background: var(--accent); color: #000; }

/* ========== STATS ========== */
.stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 32px; background: var(--bg-card); }
.stats-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { text-align: center; position: relative; }
.stat-item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border);
}
.stat-num { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.05em; margin-top: 8px; font-weight: 500; text-transform: uppercase; }

/* ========== SECTION HELPERS ========== */
.section-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section-head { margin-bottom: 40px; }
.eyebrow {
  font-size: 11px; font-weight: 600; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.eyebrow-line { width: 40px; height: 1px; background: var(--accent); }
.section-title {
  font-family: 'Outfit', sans-serif; font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary);
}
.section-sub { font-size: 14px; color: var(--text-secondary); margin-top: 8px; max-width: 500px; }

/* ========== CATEGORY PILLS ========== */
.cat-section { padding: 80px 0 40px; }
.pills-wrapper { width: 100%; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pills-wrapper::-webkit-scrollbar { display: none; }
.pills-row { display: flex; flex-wrap: nowrap; gap: 10px; justify-content: flex-start; padding-bottom: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 4px; padding: 8px 20px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
  text-decoration: none; border: 1px solid var(--border); color: var(--text-secondary); background: transparent;
}
.pill:hover, .pill.active { border-color: var(--accent); color: var(--accent); background: var(--surface); }

/* ========== TOOLS GRID ========== */
.tools-section { padding: 40px 0 80px; }
.tools-header { margin-bottom: 48px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; text-decoration: none; display: flex; align-items: center; gap: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  border-radius: 0 0 14px 0; opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; z-index: 2;
}
.tool-card:hover::after { width: 100%; height: 100%; opacity: 1; border-radius: 0 0 14px 0; }
.tool-card:hover { border-color: var(--border); background: var(--surface-hover); transform: translateY(-4px); }
.tool-icon-wrap {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim); border: none;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  font-size: 22px; color: var(--text-primary);
  position: relative; z-index: 1; flex-shrink: 0;
}
.tool-card:hover .tool-icon-wrap { background: var(--accent); color: #000; }
.tool-card-info {
  display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1;
}
.tool-name { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-primary); transition: color 0.3s ease; }
.tool-card:hover .tool-name { color: var(--accent); }
.tool-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; transition: color 0.3s ease; }
.tool-card:hover .tool-desc { color: var(--accent); }
.tool-footer { display: none; }
.browse-more { text-align: center; margin-top: 60px; }

/* btn-outline */
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid; padding: 12px 32px; border-radius: 100px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease;
  text-decoration: none;
}
body:not(.light) .btn-outline { border-color: #FFFFFF; background: transparent; color: #FFFFFF; }
body:not(.light) .btn-outline:hover { background: #FFFFFF; color: #000000; border-color: #FFFFFF; transform: translateY(-2px); }
body.light .btn-outline { border-color: #000000; background: transparent; color: #000000; }
body.light .btn-outline:hover { background: #000000; color: #FFFFFF; border-color: #000000; transform: translateY(-2px); }

/* ========== FEATURES ========== */
.features-section { padding: 80px 0; border-top: 1px solid var(--border); background: var(--bg-card); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.feature-card { padding: 0 20px; text-align: center; }
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; transition: all 0.2s;
  color: var(--text-primary);
}
.feature-icon-wrap svg { width: 20px; height: 20px; }
.feature-title { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ========== BLOGS ========== */
.blogs-section { padding: 80px 0; border-top: 1px solid var(--border); }
.blogs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; display: flex; flex-direction: column; position: relative;
}
.blog-card::after {
  content: ''; position: absolute; right: 0; bottom: 0; width: 0; height: 0;
  border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent);
  border-radius: 0 0 14px 0; opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; z-index: 2;
}
.blog-card:hover::after { width: 100%; height: 100%; opacity: 1; border-radius: 0 0 14px 0; }
.blog-card:hover { transform: translateY(-4px); background: var(--surface-hover); }
.blog-thumb { height: 160px; background-size: cover; background-position: center; background-color: var(--surface); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); position: relative; z-index: 1; }
.blog-card:hover .blog-thumb { transform: scale(1.04); }
.blog-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; background: var(--surface); transition: background 0.4s ease; }
.blog-card:hover .blog-body { background: var(--surface-hover); }
.blog-body h4 { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; line-height: 1.3; transition: color 0.3s ease; }
.blog-card:hover .blog-body h4 { color: var(--accent); }
.blog-date { font-size: 11px; color: var(--text-muted); font-weight: 500; transition: color 0.3s ease; }
.blog-card:hover .blog-date { color: var(--accent); }

/* ========== CTA ========== */
.cta-section { padding: 80px 0; }
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  transition: all 0.3s;
}
.cta-card:hover { border-color: var(--accent); transform: translateY(-3px); }
body:not(.light) .cta-card .cta-heading,
body:not(.light) .cta-card .cta-sub,
body:not(.light) .cta-card .cta-fine { color: #FFFFFF; }
body.light .cta-card .cta-heading,
body.light .cta-card .cta-sub,
body.light .cta-card .cta-fine { color: #000000; }

.cta-heading { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.cta-sub { font-size: 13px; font-weight: 500; margin-top: 8px; color: var(--text-secondary); }
.cta-form { display: flex; gap: 10px; max-width: 420px; margin: 28px auto 0; }
.cta-input {
  flex: 1; background: var(--surface); border: 2px solid var(--border-light);
  border-radius: 100px; padding: 11px 18px; font-size: 13px; color: var(--text-primary);
  outline: none; font-weight: 500;
  transition: all 0.2s;
}
.cta-input:focus { border-color: var(--accent); }
.cta-fine { font-size: 11px; font-weight: 500; margin-top: 14px; color: var(--text-muted); }

/* btn-accent-cta */
.btn-accent-cta {
  background: var(--accent); color: #000000; border: none;
  padding: 11px 28px; border-radius: 100px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-accent-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ========== FOOTER ========== */
footer {
  background: var(--accent);
  color: #000000;
  padding: 56px 32px 40px;
  border-top: none;
  border-radius: 40px 40px 0 0;
  margin-top: 20px;
  width: 100%;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand-desc { font-size: 14px; font-weight: 500; color: #000000; opacity: 0.8; margin-top: 14px; line-height: 1.6; max-width: 240px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(0,0,0,0.1); border: none;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #000000;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.social-btn:hover { background: #000000; color: var(--accent); transform: translateY(-3px); }
.footer-col-title { font-size: 13px; font-weight: 700; color: #000000; opacity: 0.9; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px; font-weight: 500; color: #000000; opacity: 0.75; text-decoration: none;
  transition: all 0.2s;
}
.footer-links a:hover { opacity: 1; transform: translateX(2px); }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.15); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 12px; font-weight: 500; color: #000000; opacity: 0.7; }

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  background: var(--bg);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  border-top: 3px solid var(--accent);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-form label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 6px; /* slightly smaller border radius */
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.auth-form input:focus {
  border-color: var(--accent);
}
.auth-btn {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 10px;
  border-radius: 6px; /* slightly smaller border radius */
  background: var(--accent);
  color: #000000;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.auth-links {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .nav-search { width: 160px; }
  .nav-search:focus { width: 200px; }
  .section-wrap { padding: 0 24px; }
}

/* Small tablet */
@media (max-width: 950px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .blogs-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

  /* --- Navbar --- */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
  }
  #navbar .nav-container {
    padding: 10px 20px;
  }
  #navbar.scrolled .nav-container {
    max-width: calc(100% - 32px);
    border-radius: 24px;
    padding: 10px 20px;
    margin: 12px auto 0;
  }

  /* --- Hero --- */
  .hero {
    padding: 110px 20px 40px;
    min-height: auto;
  }
  .hero-heading {
    font-size: clamp(28px, 8vw, 42px);
    letter-spacing: -0.03em;
  }
  .hero-search-row {
    margin-top: 28px;
    max-width: 100%;
  }
  .hero-search-box input {
    font-size: 14px;
    padding: 12px 0;
  }

  /* --- Stats --- */
  .stats-strip { padding: 28px 20px; }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-num { font-size: 24px; }

  /* --- Section wrap --- */
  .section-wrap { padding: 0 20px; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }

  /* --- Tools --- */
  .tools-section { padding: 40px 0 60px; }
  .tools-grid { grid-template-columns: 1fr; gap: 14px; }
  .tools-header { margin-bottom: 28px; }
  .browse-more { margin-top: 36px; }

  /* --- Features --- */
  .features-section { padding: 50px 0; }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }
  .feature-card { padding: 0; }

  /* --- Blogs --- */
  .blogs-section { padding: 50px 0; }
  .blogs-grid { grid-template-columns: 1fr; gap: 16px; }

  /* --- CTA --- */
  .cta-section { padding: 50px 0; }
  .cta-card { padding: 50px 24px; border-radius: 20px; }

  /* --- Footer --- */
  footer { padding: 40px 20px 28px; border-radius: 24px 24px 0 0; margin-top: 12px; }
  .footer-inner { padding: 0; }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-lang-wrap { width: 100%; }
  .footer-lang-btn { width: 100%; justify-content: center; }
  .footer-lang-dropdown {
    right: 0; left: 0; width: 100%;
    border-radius: 12px;
  }

  /* --- Auth pages --- */
  .auth-page { padding-top: 100px; }
  .auth-box { padding: 32px 20px; margin: 0 16px; }

  /* --- Pills/category --- */
  .pills-row { flex-wrap: wrap; }
  .pill { padding: 7px 16px; font-size: 12px; }

  /* --- Profile / other pages --- */
  .page-hero { padding: 110px 20px 40px !important; }
  .search-hero { padding: 110px 20px 36px !important; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-heading { font-size: 26px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 22px; }
  .tool-card { padding: 16px; gap: 12px; }
  .blog-image { height: 130px; }
  .footer-top { gap: 28px; }
  .btn-outline { padding: 11px 24px; font-size: 13px; }
  #navbar .nav-container { padding: 8px 16px; }
}