/* ===== TECH SECTION — vibrant, matching nandishdave.world ===== */

/* ===== NAV ===== */
.tech-nav {
  background: linear-gradient(135deg, #6C63FF, #5A4CC4);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-nav.nav-scrolled {
  box-shadow: 0 4px 30px rgba(108, 99, 255, 0.3);
}

.tech-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.3s ease;
}

.tech-nav__brand:hover {
  transform: scale(1.03);
}

.tech-nav__links {
  display: flex;
  gap: 0.5rem;
}

.tech-nav__links a {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.tech-nav__links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tech-nav__links a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ===== HERO ===== */
.tech-hero {
  background: linear-gradient(135deg, #f0eeff 0%, #e8f8f7 50%, #F7F8FC 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tech-hero__icon {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, #6C63FF, #4ECDC4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 30px rgba(108, 99, 255, 0.3);
  animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tech-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #1A1A2E;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
}

.tech-hero p {
  font-size: 1.15rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== LIST ===== */
.tech-list {
  padding: 3.5rem 0 5rem;
  background: #fff;
}

/* ===== TECH CARD ===== */
.tech-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tech-card__glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.06), transparent 70%);
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card:hover .tech-card__glow { opacity: 1; }

.tech-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.12);
  border-color: rgba(108, 99, 255, 0.25);
}

.tech-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #999;
}

.tech-card__meta i { margin-right: 0.3rem; color: #4ECDC4; }

.tech-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.tech-card__title a { color: inherit; transition: color 0.3s ease; }
.tech-card__title a:hover { color: #6C63FF; }

.tech-card__excerpt {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tech-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(78, 205, 196, 0.08));
  color: #6C63FF;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(78, 205, 196, 0.15));
  transform: translateY(-1px);
}

.tech-card__link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #FF6B6B;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.tech-card__link:hover { gap: 0.85rem; color: #ff5252; }

/* ===== SINGLE ARTICLE ===== */
.tech-article__header {
  background: linear-gradient(135deg, #f0eeff 0%, #e8f8f7 50%, #F7F8FC 100%);
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.tech-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6C63FF;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.tech-article__back:hover { gap: 0.75rem; background: rgba(108, 99, 255, 0.12); }

.tech-article__title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: #1A1A2E;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.tech-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #6B7280;
  margin-bottom: 1.25rem;
}

.tech-article__meta i { margin-right: 0.4rem; color: #4ECDC4; }

.tech-article__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tech-article__body { padding: 3.5rem 0 5rem; }

.tech-article__body h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #1A1A2E;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid rgba(108, 99, 255, 0.1);
}

.tech-article__body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 2rem 0 0.75rem;
}

.tech-article__body p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.25rem;
}

.tech-article__body ul, .tech-article__body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.9;
  color: #444;
}

.tech-article__body li { margin-bottom: 0.5rem; }
.tech-article__body strong { color: #1A1A2E; }

.tech-article__body code {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06), rgba(78, 205, 196, 0.06));
  color: #6C63FF;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 500;
}

.tech-article__body pre {
  background: linear-gradient(135deg, #1e1e2e, #252540);
  color: #cdd6f4;
  padding: 1.75rem;
  border-radius: 16px;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  line-height: 1.65;
  border: 1px solid rgba(108, 99, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tech-article__body pre code { background: none; color: inherit; padding: 0; }

.tech-article__body blockquote {
  border-left: 4px solid;
  border-image: linear-gradient(to bottom, #6C63FF, #4ECDC4) 1;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.04), rgba(78, 205, 196, 0.04));
  border-radius: 0 16px 16px 0;
  font-style: italic;
  color: #555;
}

.tech-article__body a {
  color: #6C63FF;
  font-weight: 600;
  border-bottom: 2px solid rgba(108, 99, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-article__body a:hover { border-bottom-color: #6C63FF; color: #5A4CC4; }

/* ===== DARK MODE ===== */
[data-theme="dark"] .tech-nav {
  background: linear-gradient(135deg, #3a2f8a, #2d2370);
}

[data-theme="dark"] .tech-hero {
  background: linear-gradient(135deg, #0f0f1a 0%, #141428 50%, #0f0f1a 100%);
}

[data-theme="dark"] .tech-hero h1 { color: #e0e0e0; }
[data-theme="dark"] .tech-hero p { color: #999; }

[data-theme="dark"] .tech-list { background: #0f0f1a; }

[data-theme="dark"] .tech-card {
  background: #1a1a2e;
  border-color: #2a2a40;
}

[data-theme="dark"] .tech-card:hover {
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.4);
}

[data-theme="dark"] .tech-card__title { color: #e0e0e0; }
[data-theme="dark"] .tech-card__title a:hover { color: #8b80ff; }
[data-theme="dark"] .tech-card__excerpt { color: #999; }
[data-theme="dark"] .tech-card__meta { color: #777; }

[data-theme="dark"] .tech-tag {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(78, 205, 196, 0.12));
  color: #8b80ff;
}

[data-theme="dark"] .tech-article__header {
  background: linear-gradient(135deg, #0f0f1a 0%, #141428 50%, #0f0f1a 100%);
}

[data-theme="dark"] .tech-article__title { color: #e0e0e0; }
[data-theme="dark"] .tech-article__meta { color: #999; }

[data-theme="dark"] .tech-article__back {
  color: #a8d8ff;
  background: rgba(108, 180, 255, 0.12);
}

[data-theme="dark"] .tech-article__back:hover { background: rgba(108, 180, 255, 0.25); color: #c4e6ff; }

[data-theme="dark"] .tech-article__body { background: #0f0f1a; }
[data-theme="dark"] .tech-article__body h2 {
  color: #e0e0e0;
  border-bottom-color: rgba(108, 99, 255, 0.15);
}

[data-theme="dark"] .tech-article__body h3 { color: #e0e0e0; }
[data-theme="dark"] .tech-article__body p { color: #ccc; }
[data-theme="dark"] .tech-article__body ul,
[data-theme="dark"] .tech-article__body ol { color: #ccc; }
[data-theme="dark"] .tech-article__body strong { color: #e0e0e0; }

[data-theme="dark"] .tech-article__body code {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(78, 205, 196, 0.1));
  color: #8b80ff;
}

[data-theme="dark"] .tech-article__body blockquote {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(78, 205, 196, 0.06));
  color: #bbb;
}

[data-theme="dark"] .tech-article__body a { color: #8b80ff; border-bottom-color: rgba(108, 99, 255, 0.3); }
[data-theme="dark"] .tech-article__body a:hover { color: #a499ff; border-bottom-color: #8b80ff; }

@media (max-width: 768px) {
  .tech-hero h1 { font-size: 2.2rem; }
  .tech-article__title { font-size: 1.9rem; }
  .tech-nav__links { gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
  .tech-nav__links a { font-size: 0.8rem; padding: 0.3rem 0.6rem; }
  .tech-article__body { padding: 2rem 0 3rem; }
  .tech-article__header { padding: 2rem 0 2.5rem; }
}

@media (max-width: 480px) {
  .tech-hero h1 { font-size: 1.8rem; }
  .tech-article__title { font-size: 1.6rem; }
  .tech-nav__links a { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .tech-nav__links a i { display: none; }
  .tech-article__meta { gap: 0.75rem; font-size: 0.82rem; }
  .tech-article__body pre {
    padding: 1rem;
    font-size: 0.8rem;
    border-radius: 12px;
    margin: 1rem -0.5rem;
  }
  .tech-article__body blockquote {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
  }
}
