/* Global Design Tokens & Reset */
:root {
  --bg-main: #060913;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-card-hover: rgba(255, 255, 255, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --blue-primary: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.35);
  
  --green-primary: #10b981;
  --green-glow: rgba(16, 185, 129, 0.35);
  
  --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Ambient Glow Pools */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background-color: #3b82f6;
  top: -15%;
  left: 15%;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background-color: #10b981;
  bottom: -15%;
  right: 15%;
  animation: floatOrb 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(40px) scale(1.08); }
}

/* Subtle Technical Grid Background Overlay */
.background-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* Main Container */
.portal-container {
  width: 100%;
  max-width: 1240px;
  padding: 60px 24px;
  z-index: 1;
  position: relative;
}

/* Header Section */
.portal-header {
  text-align: center;
  margin-bottom: 60px;
}

.brand-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-hub-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.brand-pill-badge span {
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 13px;
  color: #f1f5f9;
}

.portal-header h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.6;
}

/* Grid System */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 32px;
  margin-bottom: 50px;
}

/* Executive Cards */
.portal-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  padding: 44px 36px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}

.card-glow-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card-techtweakers .card-glow-overlay {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.card-nlv .card-glow-overlay {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.card-techtweakers:hover {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.25);
}

.card-nlv:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 24px 50px rgba(16, 185, 129, 0.25);
}

.portal-card:hover .card-glow-overlay {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card Header & Brand Frame */
.card-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.brand-logo-frame {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  padding: 0;
}

.brand-card-img {
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.badge-tech {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-agency {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.portal-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Growth & Scope Box */
.growth-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 30px;
  flex: 1;
}

.growth-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.text-blue { color: #60a5fa; }
.text-green { color: #34d399; }

/* Action CTA Buttons */
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.3s;
}

.cta-techtweakers {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.portal-card:hover .cta-techtweakers {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.cta-nlv {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.portal-card:hover .cta-nlv {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

/* Trust Metrics Bar */
.trust-metrics-bar {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 50px;
  backdrop-filter: blur(12px);
}

.metric-item {
  text-align: center;
}

.metric-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.portal-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-logo-row span {
  font-weight: 700;
  color: #f1f5f9;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-metrics-bar {
    flex-direction: column;
    gap: 20px;
  }

  .metric-divider {
    display: none;
  }

  .portal-header h1 {
    font-size: 34px;
  }
}

/* ==========================================
   BLOGS & NEWS UPDATES SECTION
   ========================================== */
.blogs-section {
  margin: 60px 0;
  text-align: left;
}

.blogs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
}

.blogs-header-row h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 8px;
}

.blogs-header-row p {
  color: var(--text-muted);
  font-size: 15px;
}

.btn-admin-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin-blog:hover {
  background: #2563eb;
  color: #ffffff;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
}

.blog-img-box {
  position: relative;
  height: 190px;
  overflow: hidden;
}

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

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

.blog-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-more {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-read-more:hover {
  color: #93c5fd;
}

/* ==========================================
   ADMIN BLOG PUBLISHER MODAL
   ========================================== */
.blog-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.blog-modal-overlay.active {
  display: flex;
}

.blog-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  padding: 36px;
  position: relative;
  color: #ffffff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.blog-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
}

.blog-modal-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.blog-modal-card p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
}

.form-group-blog {
  margin-bottom: 16px;
}

.form-group-blog label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-group-blog input, .form-group-blog select, .form-group-blog textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
}

.form-row-blog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-publish-blog {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-publish-blog:hover {
  background: #1d4ed8;
}
