@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #1a1a1a;
  --sub-text: #4a4a4a;
  --card-bg: #f8f8f8;
  --border-color: #e8e8e8;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-hover: 0 25px 70px rgba(0,0,0,0.1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --snap: cubic-bezier(0.5, 0, 0, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --transition-base: 0.5s;
}

.dark-theme {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --accent-color: #f0f0f0;
  --sub-text: #b0b0b0;
  --card-bg: #111111;
  --border-color: #1e1e1e;
  --glass-bg: rgba(10, 10, 10, 0.88);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-hover: 0 25px 70px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; transition: background 0.3s; }
::-webkit-scrollbar-thumb:hover { background: var(--sub-text); }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.8s var(--smooth), color 0.8s var(--smooth);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%; }

/* Page Entrance */
@keyframes pageIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

main {
  animation: pageIn 1s var(--smooth) both;
}

/* Keyframes */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(35px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes scaleIn {
  0% { opacity: 0; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(0.5deg); }
  66% { transform: translateY(-3px) rotate(-0.5deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes shimmerSlide {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes slideIn {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes rippleAnim {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes cardBorderFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scaleBounce {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.03); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--text-color) 0%, var(--text-color) 30%, var(--sub-text) 70%, var(--text-color) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease-in-out infinite;
}

/* Header */
header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.7s var(--smooth), opacity 0.7s var(--smooth);
  will-change: transform;
}

header.hidden {
  transform: translateY(-130px);
  opacity: 0;
  pointer-events: none;
}

.nav-wrap {
  margin: 0 auto;
  width: 95%;
  max-width: 1250px;
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.6s var(--smooth);
  will-change: padding, width, border-radius;
  box-shadow: var(--shadow-sm);
}

.nav-wrap.scrolled {
  padding: 8px 30px;
  width: 90%;
  border-radius: 80px;
  box-shadow: var(--shadow-md);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.5px;
  color: var(--text-color);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.4s var(--smooth), transform 0.5s var(--spring);
  text-decoration: none;
  display: inline-block;
}

.logo:hover { opacity: 0.7; transform: scale(1.05); }

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.8s var(--smooth);
}

.about-image:hover img { transform: scale(1.03); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: opacity 0.4s var(--smooth), transform 0.5s var(--spring);
  white-space: nowrap;
  display: inline-block;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text-color);
  transition: width 0.5s var(--snap);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { opacity: 0.5; transform: translateY(-2px); }

.nav-links a:visited, .nav-links a:active, .nav-links a:focus {
  color: var(--text-color);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Dropdown */
.dropdown-parent { position: static; }

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.dropdown-toggle i {
  font-size: 0.6rem;
  transition: transform 0.6s var(--snap);
}

.dropdown-parent.show .dropdown-toggle i,
.dropdown-toggle i.open { transform: rotate(180deg); }

.dropdown-menu {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  background: transparent;
  backdrop-filter: none;
  border: none;
  padding: 0;
  min-width: 0;
  list-style: none;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  box-shadow: none;
  text-align: center;
  display: none;
}

.dropdown-parent.show .dropdown-menu,
.dropdown-parent.open .dropdown-menu { display: block; }

.dropdown-menu li a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  letter-spacing: 1.2px;
  color: var(--sub-text);
  transition: all 0.35s var(--smooth);
  text-transform: capitalize;
  width: 100%;
  text-align: center;
}

.dropdown-menu li a:hover {
  background: var(--border-color);
  color: var(--text-color);
  opacity: 1;
  transform: none;
}

.dropdown-menu li a:visited, .dropdown-menu li a:active, .dropdown-menu li a:focus {
  color: var(--sub-text);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.dropdown-menu li a.all-cat {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--text-color);
}

@media (min-width: 769px) {
  .dropdown-parent { position: relative; }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.94);
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(1.2);
    -webkit-backdrop-filter: blur(30px) saturate(1.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 210px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.45s var(--snap);
    box-shadow: var(--shadow-md);
    text-align: left;
    display: block;
    transform-origin: top center;
  }

  .dropdown-parent.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .dropdown-menu li a { padding: 10px 22px; font-size: 0.72rem; text-align: left; }
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.1rem;
  outline: none;
  padding: 0;
  transition: transform 0.8s var(--spring);
  will-change: transform;
  position: relative;
}

.theme-toggle:hover { transform: rotate(50deg) scale(1.15); }

.join-hub-btn {
  background: var(--text-color);
  color: var(--bg-color) !important;
  padding: 10px 25px;
  border-radius: var(--radius-full);
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  transition: all 0.45s var(--spring) !important;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.join-hub-btn:hover {
  transform: translateY(-3px) scale(1.03);
  opacity: 0.9 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hamburger-icon {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 1002;
  transition: all 0.45s var(--spring);
}

.hamburger-icon:hover { opacity: 0.6; transform: scale(1.2) rotate(5deg); }

#closeBtn { display: none; }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sub-text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  transition: all 0.45s var(--smooth);
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.back-btn:hover { color: var(--text-color); gap: 16px; }
.back-btn i { transition: transform 0.45s var(--snap); }
.back-btn:hover i { transform: translateX(-6px); }

/* Search & Category pills */
.search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeUp 0.9s 0.1s var(--smooth) both;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 12px 22px;
  width: 100%;
  max-width: 550px;
  transition: all 0.5s var(--smooth);
}

.search-box:focus-within {
  border-color: var(--text-color);
  box-shadow: 0 0 0 8px rgba(128, 128, 128, 0.05);
  transform: scale(1.015);
}

.search-box i { color: var(--sub-text); font-size: 1rem; }

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.search-box input::placeholder { color: var(--sub-text); opacity: 0.7; }

.cat-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(8px, 1.5vw, 14px);
  margin-bottom: 50px;
  animation: fadeUp 0.9s 0.2s var(--smooth) both;
}

.cat-pill {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--sub-text);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.7rem, 0.9vw, 0.78rem);
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.45s var(--spring);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cat-pill.all-pill { background: transparent; }

/* 3D Tilt Card styles */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1200px;
}

.tilt-card-inner {
  transition: transform 0.15s var(--smooth);
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card .card-content {
  transform: translateZ(20px);
}

.tilt-card .card-img-wrap {
  transform: translateZ(0);
  transition: transform 0.5s var(--smooth);
}

.tilt-card:hover .card-img-wrap {
  transform: translateZ(10px);
}

.tilt-card .card-meta {
  transform: translateZ(15px);
}

.tilt-card .card-link {
  transform: translateZ(25px);
}

/* Card styles */
.blog-card, .podcast-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.6s var(--spring), box-shadow 0.6s var(--smooth), border-color 0.5s var(--smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  will-change: transform;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.blog-card::before, .podcast-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: linear-gradient(135deg, transparent 40%, var(--border-color) 50%, transparent 60%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity 0.6s var(--smooth);
  z-index: -1;
}

.blog-card:hover::before, .podcast-card:hover::before {
  opacity: 1;
  animation: cardBorderFlow 3s ease-in-out infinite;
}

.blog-card:hover, .podcast-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-color);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #e0e0e0;
}

.dark-theme .card-img-wrap { background: #1a1a1a; }

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--snap);
  will-change: transform;
}

.blog-card:hover .card-img-wrap img,
.podcast-card:hover .card-img-wrap img { transform: scale(1.1); }

.card-content {
  padding: clamp(22px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.card-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sub-text);
  margin-bottom: 14px;
  font-weight: 600;
  opacity: 0.8;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 700;
  transition: opacity 0.5s var(--smooth);
}

.blog-card:hover .card-title, .podcast-card:hover .card-title { opacity: 0.8; }

.card-desc {
  font-size: clamp(0.8rem, 1.3vw, 0.95rem);
  color: var(--sub-text);
  margin-bottom: 22px;
  line-height: 1.7;
}

.card-link {
  color: var(--text-color);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.45s var(--spring), opacity 0.4s var(--smooth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover { gap: 14px; opacity: 0.7; }

.no-results {
  text-align: center;
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--sub-text);
  font-size: 1rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(45px) scale(0.96);
  transition: opacity 1.1s var(--smooth), transform 1.1s var(--smooth);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Scale reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.9s var(--snap), transform 0.9s var(--snap);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Ripple effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

.dark-theme .ripple-btn .ripple {
  background: rgba(255, 255, 255, 0.15);
}

/* Footer */
footer {
  padding: clamp(80px, 12vw, 120px) 0 0;
  margin-top: 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: clamp(40px, 6vw, 60px);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(0.68rem, 0.85vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: clamp(20px, 2.5vw, 28px);
  color: var(--text-color);
  position: relative;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text-color);
  letter-spacing: -1px;
}

.footer-about p {
  color: var(--sub-text);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 380px;
}

.newsletter-text {
  color: var(--sub-text);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-links-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links-row a {
  color: var(--sub-text);
  text-decoration: none;
  transition: color 0.35s var(--smooth);
}

.footer-links-row a:hover { color: var(--text-color); }

.dot {
  color: var(--border-color);
  font-size: 0.6rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--sub-text);
  text-decoration: none;
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 500;
  transition: color 0.35s var(--smooth), transform 0.4s var(--spring);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--text-color);
  transition: width 0.35s var(--smooth);
}

.footer-links a:visited, .footer-links a:active, .footer-links a:focus { color: var(--sub-text); }

.footer-links a:hover {
  color: var(--text-color);
  transform: translateX(10px);
}

.footer-links a:hover::before {
  width: 16px;
  margin-right: 4px;
}

.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-icons a {
  color: var(--sub-text);
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  transition: all 0.45s var(--spring);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--bg-color);
  background: var(--text-color);
  border-color: var(--text-color);
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.newsletter-form input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: clamp(10px, 1.2vw, 12px) clamp(14px, 1.8vw, 16px);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  border-radius: 8px;
  outline: none;
  transition: all 0.4s var(--smooth);
  min-width: 0;
}

.newsletter-form input::placeholder { color: var(--sub-text); opacity: 0.6; }

.newsletter-form input:focus {
  border-color: var(--text-color);
  box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.05);
  transform: scale(1.015);
}

.newsletter-form button {
  background: var(--text-color);
  color: var(--bg-color);
  border: none;
  padding: clamp(10px, 1.2vw, 12px) clamp(16px, 2vw, 20px);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(0.65rem, 0.85vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s var(--spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.newsletter-form button:hover { opacity: 0.85; transform: translateY(-2px) scale(1.03); }
.newsletter-form button:active { transform: scale(0.94); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(22px, 3vw, 32px) 0;
  border-top: 1px solid var(--border-color);
  font-size: clamp(0.7rem, 0.85vw, 0.8rem);
  color: var(--sub-text);
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.footer-bottom a {
  color: var(--sub-text);
  text-decoration: none;
  transition: color 0.35s var(--smooth);
}

.footer-bottom a:hover { color: var(--text-color); }

/* Media Queries */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; gap: 30px; }
  .footer-grid .footer-col:last-child { grid-column: span 3; }
  .footer-about p { max-width: 100%; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 768px) {
  .container { padding: 0 25px; }

  .hamburger-icon { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow-y: auto;
    transition: right 0.65s var(--snap);
    z-index: 1001;
    gap: 18px;
  }

  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; text-align: center; flex-shrink: 0; }
  .nav-links a { font-size: 1.1rem; letter-spacing: 2px; -webkit-tap-highlight-color: transparent; }
  .nav-links .hamburger-icon { display: none; }

  #closeBtn {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1003;
    background: none;
    border: none;
    line-height: 1;
  }

  .nav-links .dropdown-parent { position: static !important; }

  .nav-links .dropdown-parent .dropdown-menu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    list-style: none !important;
  }

  .nav-links .dropdown-parent.open .dropdown-menu { display: block !important; }

  .nav-links .dropdown-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 8px 0 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .nav-wrap { padding: 10px 22px; border-radius: 50px; }
  .nav-wrap.scrolled { padding: 7px 20px; border-radius: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid .footer-col:last-child { grid-column: span 2; }
  .footer-about { grid-column: span 2; }
  .newsletter-form { flex-direction: row; }

  .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border-radius: 10px;
    padding: 10px 20px;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .dropdown-parent.open > .dropdown-toggle:active { background: transparent; }
}

@media (max-width: 420px) {
  .container { padding: 0 15px; }
  .nav-wrap { padding: 8px 18px; border-radius: 40px; }
  .nav-wrap.scrolled { padding: 6px 15px; border-radius: 35px; }
  .logo { font-size: 1.05rem; }
  .hamburger-icon { font-size: 1.1rem; }
  #closeBtn { top: 15px; right: 15px; font-size: 1.8rem; }
  .card-content { padding: 18px 15px; }
  .card-title { font-size: 1.2rem; }
  .card-desc { font-size: 0.78rem; }
  .cat-pill { padding: 6px 14px; font-size: 0.65rem; }
  .search-box { padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid .footer-col:last-child, .footer-about { grid-column: span 1; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
