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

:root {
  --text: #111111;
  --muted: #555555;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --border: #e5e5e5;
  --chip-border: #dddddd;
  --accent: #111111;
  --accent-contrast: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

section {
  padding: 60px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.header {
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: bold;
  color: var(--text);
}

.logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
  position: relative;
  color: var(--muted);
}

.nav-menu a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a::after {
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
  color: #fff;
  font-weight: bold;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
}

.nav-actions button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.nav-actions {
  font-size: 14px;
}

.signup-link {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: 0.3s;
  color: var(--text);
  border: 1px solid var(--accent);
}

.signup-link:hover {
  border: 1px solid var(--accent);
  font-weight: bold;
  background: var(--accent);
  color: var(--accent-contrast);
}

.publish-link,
.admin-link,
.logout-link {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: 0.3s;
  color: var(--text);
  border: 1px solid var(--accent);
  margin-left: 8px;
  font-size: 14px;
}

.publish-link:hover,
.admin-link:hover,
.logout-link:hover {
  border: 1px solid var(--accent);
  font-weight: bold;
  background: var(--accent);
  color: var(--accent-contrast);
}

.theme-toggle {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: 0.3s;
  color: var(--text);
  border: 1px solid var(--accent);
  margin-left: 8px;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}

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

.theme-toggle i {
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

/* =========================== */
/* Tagline Section */
.tagline {
  text-align: center;
  padding: 20px 0 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.tagline-text {
  letter-spacing: 0.5px;
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0;
}

/* ============================ */

.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: 0.3s;
  background: transparent;
  border: 1px solid var(--chip-border);
}

.cat-pill:hover {
  background: var(--accent);
  color: var(--accent-contrast);
  transform: scale(1.05);
}

.cat-pill.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

html[data-theme="dark"] {
  --text: #e5e7eb;
  --muted: #9ca3af;
  --bg: #0f172a;
  --surface: #111827;
  --border: #334155;
  --chip-border: #475569;
  --accent: #60a5fa;
  --accent-contrast: #0b1220;
}

html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .service-inner {
  border-color: var(--border);
}

.top-categories {
  padding: 5px 0 20px;
  border-bottom: 1px solid #e5e5e5;
}

/* ============================= */

.slider-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
}

.hero-slider {
  max-width: 80%;
  margin: 40px auto;
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide-card {
  display: flex;
  flex: 0 0 100%;
  gap: 20px;
  text-decoration: none;
  color: var(--text);
  transition: 0.3s;
  padding: 25px;
  border-radius: 20px;
  border: 2px solid #ddd;
  background: #f8f9fa;
  align-items: center;
}

.slide-card:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.slide-img {
  flex: 0 0 45%;
}

.slide-img img {
  width: 100%;
  object-fit: cover;
  height: 230px;
  border-radius: 12px;
}

.slide-content {
  flex: 1;
}

.slide-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.slide-desc {
  font-size: 14px;
  color: #555;
}

.slider-btn {
  width: 45px;
  height: 45px;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  z-index: 20;
}

.prev {
  left: -50px;
}

.next {
  right: -50px;
}

.slider-dots {
  text-align: center;
  margin-top: 15px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 4px;
}

.dot.active {
  background: #111;
}

/* ===================== */

.blog-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: 220px;
  border: 1px solid #ddd;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.12));
}

.card-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: var(--white);
}

.card-title {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

.read-time {
  font-size: 12px;
  opacity: 0.9;
}

.card-category {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-weight: 500;
}

.blog-card:hover img {
  transform: scale(1.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ======================= */

.hero {
  padding: 60px 0;
}

.hero-title {
  margin-bottom: 10px;
  font-size: 42px;
  font-weight: 600;
}

.hero-desc {
  color: #555;
  max-width: 600px;
  font-size: 16px;
  margin-top: 10px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
}

.card {
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #fff;
  border: 1px solid #ddd;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: #555;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-list {
  display: flex;
  gap: 10px;
}

.category {
  border: 1px solid #ddd;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #f8f9fa;
  transition: 0.3s;
  color: var(--text);
}

.category:hover {
  background: #111;
  color: #fff;
  cursor: pointer;
}

.footer {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #888;
  border-top: 1px solid #e5e5e5;
  background: #fff;
  backdrop-filter: blur(8px);
}

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

.footer-text {
  font-size: 15px;
  color: #888;
}

.social-links a {
  position: relative;
  text-decoration: none;
  color: #888;
  margin-left: 20px;
  font-size: 20px;
  transition: 0.3s;
}

.social-links a:hover {
  color: #111;
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: 0.3s;
}

.social-links a:hover::after {
  width: 100%;
}


@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    text-align: center;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

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

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .social-links {
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

  .logo {
    font-size: 18px;
  }

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

  section {
    padding: 40px 0;
  }

  .hero-title {
    font-size: 24px;
  }

  .nav-menu {
    padding: 15px;
  }

  .nav-menu a {
    font-size: 14px;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
  }

  .social-links {
    margin-top: 10px;
  }

  .auth-card {
    width: 90%;
    max-width: 320px;
    padding: 20px;
  }
}

/* ================= AUTH MODAL ================= */

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.auth-modal.active {
  display: flex;
}

.auth-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  width: 320px;
  position: relative;
  animation: popUp 0.3s ease;
}

@keyframes popUp {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn,
.close-publish {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: #888;
}

.tab.active {
  color: #111;
  border-bottom: 2px solid #111;
}

.auth-form {
  display: none;
  flex-direction: column;
}

.auth-form.active {
  display: flex;
}

.auth-form input {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.auth-form button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.auth-form button:hover {
  background: #333;
}

/* =========================== */

.auth-form textarea {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  resize: none;
}

.auth-form select {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
}

.publish-card {
  max-width: 520px;
  width: 100%;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  min-height: 18px;
}

.close-contact {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}

/* ==========================*/
/* BLOG GRID */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  position: relative;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.blog-card:hover img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.card-content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color: #fff;
}

.card-title {
  font-size: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* LOAD MORE CENTER */
.more-wrapper {
  grid-column: span 3;
  display: flex;
  justify-content: center;
}

.more-card {
  padding: 10px 20px;
  background: #111;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
}

/* MODAL */
.summary-card {
  width: 90%;
  max-width: 800px;
  height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
}

.summary-img {
  position: relative;
  height: 250px;
}

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

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

#summaryTitle {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: #fff;
  font-size: 22px;
}

.summary-content {
  padding: 20px;
}

.summary-socials {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.summary-socials a {
  border: 1px solid #111;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  color: #111;
}

.summary-links {
  margin-top: 20px;
}

.close-summary {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* ================= SERVICES ================= */

.services-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.services-title {
  text-align: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 40px;
}

.services-slider {
  overflow: hidden;
  position: relative;
}

.services-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.service-card {
  min-width: calc(33.33% - 20px);
  margin-right: 20px;
  transition: 0.4s;
  opacity: 0.6;
  transform: scale(0.9);
}

.service-card.active-center {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.service-inner {
  width: 100%;
  max-width: 340px;
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.service-inner:hover {
  transform: translateY(-10px);
}

/* IMAGE */
.service-img {
  position: relative;
}

.service-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* TITLE ON IMAGE */
.service-title {
  position: absolute;
  bottom: 10px;
  left: 15px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* CONTENT */
.service-content {
  padding: 15px;
}

.service-subtitle {
  color: #ddd;
  font-size: 14px;
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13px;
  color: #aaa;
}

/* DOTS */
.services-dots {
  text-align: center;
  margin-top: 20px;
}

.services-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #555;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: 0.3s;
}

.services-dots span.active {
  background: #fff;
  transform: scale(1.3);
}

/* ======================== */

/* HIDE DEFAULT CURSOR */
body {
  cursor: none;
}

/* DOT */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* RING */
.cursor-ring {
  width: 35px;
  height: 35px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
}

/* HOVER EFFECT */
.cursor-ring.active {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

/* CLICK EFFECT */
.cursor-ring.click {
  transform: translate(-50%, -50%) scale(0.8);
}

/* OPTIONAL BLEND (premium feel) */
.cursor-dot,
.cursor-ring {
  mix-blend-mode: difference;
}

@media (max-width: 768px) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  body {
    cursor: auto;
  }
}