@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #2563EB;
  --secondary-color: #7C3AED;
  --dark-color: #0F172A;
  
  --bg-color: #F8FAFC;
  --text-color: #0F172A;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(15, 23, 42, 0.08);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(15, 23, 42, 0.10);
  --text-muted: #475569;
  
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

html.dark {
  --bg-color: #0B0F19;
  --text-color: #F8FAFC;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.05);
  --panel-bg: rgba(15, 23, 42, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-muted: #94A3B8;
}

/* Base resets & typography */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Glassmorphism effects */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  transition: background-color 0.3s, border-color 0.3s;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: var(--card-bg);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05), 
              0 0 20px rgba(124, 58, 237, 0.05);
}

html.dark .glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 
              0 0 20px rgba(124, 58, 237, 0.1);
}

/* Glowing background blobs */
.bg-glow-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-color);
  transition: background-color 0.3s;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation-duration: 30s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
  top: 40%;
  left: 30%;
  opacity: 0.2;
  animation-duration: 22s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
  100% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Interactive Hero canvas */
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* Custom transitions and hover states */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-family: var(--font-heading);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
}

html.dark .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

html.dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Main header */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
  transition: background-color 0.3s, border-color 0.3s;
}

/* Rich post content styling */
.post-rich-content {
  line-height: 1.8;
  font-size: 1.125rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.post-rich-content p {
  margin-bottom: 1.5rem;
}

.post-rich-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.post-rich-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.post-rich-content a {
  color: #60A5FA;
  text-decoration: underline;
  transition: color 0.15s ease-in-out;
}

.post-rich-content a:hover {
  color: #93C5FD;
}

.post-rich-content ul, .post-rich-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-position: outside;
}

.post-rich-content ul {
  list-style-type: disc;
}

.post-rich-content ol {
  list-style-type: decimal;
}

.post-rich-content li {
  margin-bottom: 0.5rem;
}

.post-rich-content blockquote {
  border-left: 4px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
  transition: color 0.3s;
}

/* Table of Contents */
.toc-container {
  padding: 1.25rem;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: background-color 0.3s, border-color 0.3s;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-item-h2 {
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
}

.toc-item-h3 {
  padding-left: 1rem;
  font-size: 0.9em;
  color: var(--text-muted);
  transition: color 0.3s;
}

/* Ad Placement Shells */
.ad-slot-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  min-height: 90px;
}

.ad-label {
  font-size: 0.75rem;
  color: #475569;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Dashboard statistics cards */
.dashboard-stat-card {
  transition: border-color 0.2s ease-in-out;
}
.dashboard-stat-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

/* Services tab system */
.service-panel {
  display: none;
}
.service-panel.active {
  display: block;
  animation: fadeInPanel 0.4s ease-in-out;
}

.service-tab-btn.active {
  border-color: var(--secondary-color) !important;
  background: rgba(124, 58, 237, 0.08) !important;
}

html.dark .service-tab-btn.active {
  border-color: var(--secondary-color) !important;
  background: rgba(124, 58, 237, 0.15) !important;
}

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

/* Tech filter buttons active state */
.filter-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

