/* ==============================
   CAMPUSQUILL - COMPLETE CSS
   ============================== */

/* --- ROOT VARIABLES --- */
:root {
  --bg-primary: #FDFAF6;
  --bg-secondary: #F5F0E8;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #8B5E3C;
  --accent-light: #D4AF37;
  --accent-hover: #6B4423;
  --border: #E8E0D0;
  --shadow: rgba(0,0,0,0.08);
  --shadow-hover: rgba(0,0,0,0.16);
  --nav-bg: rgba(253,250,246,0.95);
  --nav-height: 70px;
}

/* --- DARK MODE --- */
body.dark-mode {
  --bg-primary: #0F0F0F;
  --bg-secondary: #1A1A1A;
  --bg-card: #1E1E1E;
  --text-primary: #F0EAD6;
  --text-secondary: #B0A090;
  --text-muted: #706050;
  --accent: #D4AF37;
  --accent-light: #F0C84A;
  --accent-hover: #F0C84A;
  --border: #2A2A2A;
  --shadow: rgba(0,0,0,0.4);
  --shadow-hover: rgba(0,0,0,0.6);
  --nav-bg: rgba(15,15,15,0.98);
}

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

html {
  font-size: 16px;
  /* ✅ KEY FIX - offset scroll for fixed navbar */
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.4s ease,
              color 0.4s ease;
  overflow-x: hidden;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

/* --- SELECTION --- */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-icon {
  font-size: 1.4rem;
  color: var(--accent);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* --- HAMBURGER --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- NAV OVERLAY --- */
.nav-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==============================
   HERO SECTION
   ============================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 100px 2rem 80px;
}

.hero-bg-text {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(120px, 25vw, 300px);
  font-weight: 900;
  color: var(--accent);
  opacity: 0.03;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -10px;
}

.hero-container {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-highlight {
  position: relative;
  color: var(--accent);
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 0;
  width: 100%; height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
  /* ✅ FIX touch on mobile */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139,94,60,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--accent);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
  /* ✅ FIX touch on mobile */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

/* --- HERO STATS --- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* --- FLOATING WORDS --- */
.floating-words {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.fw {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--accent);
  opacity: 0.06;
  font-size: 1.2rem;
  animation: float-word 15s ease-in-out infinite;
}

.fw2, .fw4, .fw6 {
  font-family: 'Tiro Bangla', serif;
  font-style: normal;
}

.fw1 {
  top: 15%; left: 5%;
  animation-delay: 0s;
  font-size: 1.5rem;
}
.fw2 { top: 70%; left: 8%; animation-delay: 3s; }
.fw3 {
  top: 20%; right: 5%;
  animation-delay: 1.5s;
  font-size: 1.8rem;
}
.fw4 { top: 60%; right: 10%; animation-delay: 4.5s; }
.fw5 { top: 40%; left: 3%; animation-delay: 6s; }
.fw6 {
  bottom: 20%; right: 5%;
  animation-delay: 2s;
  font-size: 1.3rem;
}

@keyframes float-word {
  0%, 100% { transform: translateY(0px) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* ==============================
   SECTION COMMONS
   ============================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ==============================
   FEATURED SECTION
   ============================== */
.featured-section { background: var(--bg-secondary); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  /* ✅ FIX touch */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    to right, var(--accent), var(--accent-light)
  );
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-hover);
  border-color: var(--accent);
}

.card-category {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.author-info strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-info span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.read-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.3s ease;
  white-space: nowrap;
}

.featured-card:hover .read-btn { gap: 0.6rem; }

/* ==============================
   LANGUAGE BADGES
   ============================== */
.lang-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.lang-badge.english {
  background: rgba(139, 94, 60, 0.1);
  color: var(--accent);
  border: 1px solid rgba(139, 94, 60, 0.25);
}

.lang-badge.bengali {
  background: rgba(212, 175, 55, 0.12);
  color: #a07c10;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.72rem;
  text-transform: none;
  letter-spacing: 0;
}

body.dark-mode .lang-badge.bengali {
  color: #F0C84A;
  border-color: rgba(240, 200, 74, 0.35);
  background: rgba(240, 200, 74, 0.1);
}

/* ==============================
   EXPLORE SECTION
   ============================== */
.explore-section { background: var(--bg-primary); }

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-icon {
  position: absolute;
  left: 1.2rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,94,60,0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.lang-filters { margin-bottom: 3rem; }

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.lang-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-filter-btn:hover,
.lang-filter-btn.active {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: white;
}

body.dark-mode .lang-filter-btn:hover,
body.dark-mode .lang-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-hover);
  border-color: var(--accent);
}

.no-results {
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ==============================
   BENGALI TEXT
   ============================== */
.bengali-text {
  font-family: 'Tiro Bangla', serif !important;
  font-size: 1.1rem;
  line-height: 2.2;
  font-style: normal !important;
}

.card-title.bengali-text {
  font-size: 1.35rem;
  line-height: 1.5;
}

.work-card .card-title.bengali-text {
  font-size: 1.1rem;
}

.card-excerpt.bengali-text {
  font-family: 'Hind Siliguri', sans-serif !important;
  font-size: 0.95rem;
  line-height: 1.9;
  font-style: normal !important;
}

.modal-body.bengali-text {
  font-size: 1.1rem;
  line-height: 2.4;
}

.modal-title.bengali-text {
  font-size: 1.8rem;
  line-height: 1.4;
}

.writer-bio.bengali-text {
  font-family: 'Hind Siliguri', sans-serif !important;
  font-size: 0.9rem;
  line-height: 1.8;
  font-style: normal !important;
}

/* ==============================
   WRITERS SECTION
   ============================== */
.writers-section { background: var(--bg-secondary); }

.writers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.writer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.writer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-hover);
  border-color: var(--accent);
}

.writer-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(
    135deg, var(--accent), var(--accent-light)
  );
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
  border: 3px solid var(--border);
  transition: border-color 0.3s ease;
}

.writer-card:hover .writer-photo {
  border-color: var(--accent);
}

.writer-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.writer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.writer-college {
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.writer-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.writer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
}

.writer-works-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.writer-works-count i {
  color: var(--accent);
  font-size: 0.72rem;
}

/* ✅ WRITER SINCE BADGE */
.writer-since-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  transition: all 0.3s ease;
}

.writer-since-badge i {
  font-size: 0.62rem;
  color: var(--accent-light);
}

.writer-card:hover .writer-since-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.writer-card:hover .writer-since-badge i {
  color: white;
}

/* ==============================
   MODAL
   ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
}

.modal-category {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.modal-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-divider {
  width: 40px; height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.modal-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 2;
  white-space: pre-line;
  font-style: italic;
}

.modal-author-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.modal-action-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ==============================
   SUBMIT SECTION
   ============================== */
.submit-section { background: var(--bg-primary); }

.submit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.submit-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 1rem 0;
}

.submit-title em {
  color: var(--accent);
  font-style: italic;
}

.submit-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.submit-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.submit-step {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  min-width: 40px;
}

.step-info strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.step-info span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.submit-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.submit-info-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.submit-info-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.info-icon {
  width: 50px; height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.submit-info-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.submit-info-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom i { color: var(--accent); }

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

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

/* ==============================
   SUBMIT SECTION RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .submit-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {

  /* Submit card full fix */
  .submit-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
  }

  /* Submit title smaller */
  .submit-title {
    font-size: 1.8rem;
    margin: 0.5rem 0;
  }

  /* Submit description */
  .submit-desc {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  /* Submit steps */
  .submit-steps {
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .submit-step {
    gap: 0.8rem;
  }

  .step-num {
    font-size: 1.2rem;
    min-width: 30px;
  }

  .step-info strong {
    font-size: 0.9rem;
  }

  .step-info span {
    font-size: 0.8rem;
  }

  /* Submit right boxes */
  .submit-right {
    gap: 1rem;
  }

  /* Info boxes full width */
  .submit-info-box {
    padding: 1.5rem 1rem;
    border-radius: 12px;
    width: 100%;
  }

  .submit-info-box h3 {
    font-size: 1rem;
  }

  .submit-info-box p {
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  /* Info icon smaller */
  .info-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  /* Buttons full width in boxes */
  .submit-info-box .btn-primary,
  .submit-info-box .btn-secondary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

}

/* Very small screens */
@media (max-width: 380px) {

  .submit-card {
    padding: 1.2rem;
  }

  .submit-title {
    font-size: 1.5rem;
  }

  .submit-info-box {
    padding: 1.2rem 0.8rem;
  }

  .submit-info-box .btn-primary,
  .submit-info-box .btn-secondary {
    font-size: 0.8rem;
    padding: 0.7rem 0.8rem;
  }

}

/* ==============================
   RESPONSIVE MOBILE
   ============================== */
@media (max-width: 768px) {

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px var(--shadow);
    padding: 2rem;
  }

  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; }

  .hero { padding: 90px 1.5rem 60px; }
  .hero-stats { gap: 1.2rem; }
  .stat-number { font-size: 2rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* ✅ MOBILE BUTTON FIX */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .featured-grid,
  .works-grid,
  .writers-grid {
    grid-template-columns: 1fr;
  }

  .section-container { padding: 70px 1.5rem; }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-links { justify-content: center; }

  .modal-box { padding: 2rem 1.5rem; }
  .modal-title { font-size: 1.5rem; }
  .modal-title.bengali-text { font-size: 1.4rem; }

  .filter-buttons,
  .lang-filters { gap: 0.5rem; }

  .filter-btn,
  .lang-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-stats { gap: 0.8rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.65rem; }
  .hero-title { font-size: 2.5rem; }

  .btn-primary,
  .btn-secondary {
    font-size: 0.9rem;
    padding: 0.9rem 1.5rem;
  }
}
/* ==============================
   ABOUT THE CREATOR BUTTON
   ============================== */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.creator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.creator-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
/* ==============================
   FOUNDER BADGE AND CARD
   ============================== */

/* Founder Profile Card */
.founder-card {
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  background: linear-gradient(
    145deg,
    var(--bg-card) 0%,
    rgba(212, 175, 55, 0.03) 100%
  ) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.08),
              0 4px 20px var(--shadow) !important;
  position: relative;
}

.founder-card:hover {
  border-color: rgba(212, 175, 55, 0.8) !important;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.15),
              0 20px 50px var(--shadow-hover) !important;
  transform: translateY(-8px);
}

/* Subtle gold top line */
.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.6),
    rgba(212, 175, 55, 0.9),
    rgba(212, 175, 55, 0.6),
    transparent
  );
  border-radius: 16px 16px 0 0;
}

/* Founder Badge */
.founder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.12),
    rgba(212, 175, 55, 0.06)
  );
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #B8960C;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
}

body.dark-mode .founder-badge {
  color: #D4AF37;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.15),
    rgba(212, 175, 55, 0.08)
  );
  border-color: rgba(212, 175, 55, 0.4);
}

.founder-card:hover .founder-badge {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2),
    rgba(212, 175, 55, 0.1)
  );
  border-color: rgba(212, 175, 55, 0.6);
}
/* ==============================
   NOTIFICATION BANNER
   ============================== */
.notif-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  display: none;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease,
              transform 0.4s ease;
}

.notif-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.notif-close:hover {
  background: rgba(255,255,255,0.4);
}

/* Mobile */
@media (max-width: 768px) {
  .notif-banner {
    width: 90%;
    white-space: normal;
    text-align: left;
    border-radius: 16px;
    bottom: 1rem;
    padding: 0.8rem 1.2rem;
  }
}
