/* Base theme variables */
:root {
  --bg: #0a0e14; /* deeper coal */
  --bg-secondary: #0d1117;
  --panel: #0e1218;
  --panel-2: #121721;
  --panel-hover: #1a1f2e;
  --muted: #8b92a0;
  --text: #e6edf3;
  --text-secondary: #c9d1d9;
  --accent: #4fc1ff;
  --accent-strong: #00a3ff;
  --accent-light: #7dd3fc;
  --border: #21262d;
  --border-light: #30363d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
}

/* Optional fonts (Inter for UI, Fira Code for code) */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap");

/* Global reset-ish */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(ellipse 1400px 900px at 20% -10%, rgba(79, 193, 255, 0.06), transparent),
              radial-gradient(ellipse 1200px 800px at 80% 100%, rgba(0, 163, 255, 0.04), transparent),
              var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3 {
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 0 0 16px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  margin: 0 0 12px;
}

/* Code blocks (Prism will handle colors; we handle framing) */
pre {
  background: #11161f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

code {
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
}

/* Small badges (inline code) */
p code, li code {
  background: rgba(79, 193, 255, 0.08);
  color: #d9f3ff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(79, 193, 255, 0.18);
}

/* Nice scrollbars */
*::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #2b3340;
  border: 3px solid transparent;
  border-radius: 12px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #384152;
  border: 2px solid transparent;
}

/* Navigation */
.top-nav {
  position: sticky;
  top: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 20px auto;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.85), rgba(18, 23, 33, 0.85));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: slideDown 0.5s ease-out;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand i {
  font-size: 24px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(79, 193, 255, 0.1);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(79, 193, 255, 0.12);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.gradient-text {
  background: linear-gradient(90deg, #f8934b, #fa6d08, #cb6923);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: linear-gradient(180deg, rgba(20,24,32,0.75), rgba(26,31,41,0.75));
  backdrop-filter: blur(10px);
}

.surface-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 0%, rgba(0,0,0,0.8), rgba(0,0,0,0) 60%);
    /* linear-gradient(rgba(79, 193, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 193, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px; */
  z-index: 0;
  opacity: 0.6;
}

/* Hero Section */
.hero {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 80px 32px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(79, 193, 255, 0.15), rgba(0, 163, 255, 0.1));
  border: 1px solid rgba(79, 193, 255, 0.3);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease-out;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  font-size: 16px;
}

.hero h1 {
  animation: fadeUp 0.7s ease-out;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto 40px;
  max-width: 720px;
  animation: fadeUp 0.8s ease-out;
}

/* Search Container */
.search-container {
  max-width: 700px;
  margin: 0 auto 50px;
  animation: fadeUp 0.9s ease-out;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 10px 40px rgba(79, 193, 255, 0.2), 0 0 0 4px rgba(79, 193, 255, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 24px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  padding: 16px 20px 16px 52px;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: none;
  color: #0a0e14;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(79, 193, 255, 0.3);
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 193, 255, 0.4);
}

.search-btn:active {
  transform: translateY(0);
}

/* Stats Container */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeUp 1s ease-out;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(14, 18, 24, 0.6), rgba(18, 23, 33, 0.6));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(79, 193, 255, 0.15);
}

.stat-item i {
  font-size: 32px;
  color: var(--accent);
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #0b1320;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 163, 255, 0.15);
  transition: transform 80ms ease, filter 160ms ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: rgba(79, 193, 255, 0.08);
}

/* Articles Section */
.content-section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 32px;
}

.article-container {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  min-height: 400px;
  animation: fadeUp 0.6s ease-out;
}

.articles-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.section-header i {
  color: var(--accent);
}

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(79, 193, 255, 0.2);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.article-number {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(79, 193, 255, 0.15);
  border: 1px solid rgba(79, 193, 255, 0.3);
  border-radius: 20px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-arrow {
  color: var(--muted);
  font-size: 20px;
  transition: all 0.3s ease;
}

.article-card:hover .article-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.3;
}

.article-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(79, 193, 255, 0.08);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

/* Article Content Styles */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.article-tag,
.article-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(79, 193, 255, 0.1);
  border: 1px solid rgba(79, 193, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 24px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.3;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.article-content h2 {
  font-size: clamp(22px, 3vw, 28px);
}

.article-content h3 {
  font-size: clamp(18px, 2.5vw, 22px);
}

.article-content p {
  margin: 20px 0;
  max-width: 75ch;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.article-content a:hover {
  border-bottom-color: var(--accent);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin: 16px 0;
}

.article-content li {
  margin: 8px 0;
}

.article-content code {
  background: rgba(79, 193, 255, 0.1);
  color: var(--accent-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid rgba(79, 193, 255, 0.2);
}

.article-content pre code {
  background: transparent;
  border: none;
  padding: 0;
}

/* Empty States */
.empty-state,
.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 300px;
}

.empty-state i,
.loading-state i,
.error-state i {
  font-size: 64px;
  color: var(--muted);
  margin-bottom: 20px;
}

.loading-state i {
  color: var(--accent);
}

.error-state i {
  color: #ef4444;
}

.empty-state h3,
.error-state h3 {
  color: var(--text);
  margin: 0 0 12px;
}

.empty-state p,
.loading-state p,
.error-state p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.loading-spinner i {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Features Section */
.features-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 32px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: clamp(28px, 4vw, 40px);
}

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

.feature-card {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(79, 193, 255, 0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 193, 255, 0.15), rgba(0, 163, 255, 0.1));
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.feature-icon i {
  font-size: 32px;
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 48px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .top-nav {
    margin: 16px;
    padding: 14px 20px;
  }

  .hero {
    padding: 60px 24px;
    margin: 20px auto 40px;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    top: 12px;
    margin: 12px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero {
    padding: 40px 20px;
    margin: 12px auto 32px;
  }

  .hero-badge {
    font-size: 13px;
    padding: 6px 16px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .search-wrapper {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .search-icon {
    display: none;
  }

  .search-input {
    padding: 14px 16px;
    text-align: center;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .stats-container {
    gap: 16px;
  }

  .stat-item {
    padding: 16px 24px;
  }

  .stat-item i {
    font-size: 28px;
  }

  .stat-number {
    font-size: 24px;
  }

  .content-section,
  .articles-section,
  .features-section {
    padding: 0 20px;
  }

  .article-container {
    padding: 32px 24px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header h2 {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .top-nav {
    margin: 8px;
    padding: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .brand i {
    font-size: 20px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero {
    padding: 32px 16px;
  }

  .stats-container {
    flex-direction: column;
    gap: 12px;
  }

  .stat-item {
    width: 100%;
    justify-content: center;
  }

  .article-container {
    padding: 24px 16px;
  }

  .article-card {
    padding: 20px;
  }

  .feature-card {
    padding: 24px;
  }

  .site-footer {
    padding: 32px 16px;
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blobDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Hero decorative blobs */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 193, 255, 0.15), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
}

.hero::before {
  top: -200px;
  left: -100px;
  animation: blobDrift 20s ease-in-out infinite;
}

.hero::after {
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.12), transparent 70%);
  animation: blobDrift 25s ease-in-out infinite reverse;
}

/* Button shine effect */
.search-btn {
  position: relative;
  overflow: hidden;
}

.search-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.search-btn:hover::after {
  left: 100%;
}

/* Loading animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* About Page Styles */
.about-hero {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 32px;
}

.about-container {
  animation: fadeUp 0.6s ease-out;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 60px;
  padding: 48px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.profile-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-image {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 193, 255, 0.2), rgba(0, 163, 255, 0.15));
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(79, 193, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.profile-image::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--accent),
    transparent 30%
  );
  animation: rotate 4s linear infinite;
}

.profile-image i {
  font-size: 120px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #4ade80;
  font-weight: 600;
}

.status-badge i {
  font-size: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.profile-content {
  flex: 1;
}

.profile-content h1 {
  font-size: clamp(36px, 5vw, 48px);
  margin: 0 0 12px;
}

.role {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 24px;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a0e14;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(79, 193, 255, 0.3);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(79, 193, 255, 0.4);
}

.social-btn i {
  font-size: 18px;
}

/* About Content Grid */
.about-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.about-card {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(79, 193, 255, 0.15);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 193, 255, 0.15), rgba(0, 163, 255, 0.1));
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.card-icon i {
  font-size: 28px;
  color: var(--accent);
}

.about-card h2 {
  font-size: 24px;
  margin: 0 0 16px;
  color: var(--text);
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card strong {
  color: var(--accent-light);
  font-weight: 600;
}

/* Interests List */
.interests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.interest-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(79, 193, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 193, 255, 0.1);
}

.interest-item i {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.interest-item h3 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--text);
}

.interest-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Education */
.education-item {
  padding: 20px;
  background: rgba(79, 193, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(79, 193, 255, 0.1);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.edu-header h3 {
  font-size: 18px;
  margin: 0;
  color: var(--text);
}

.year-badge {
  padding: 6px 12px;
  background: rgba(79, 193, 255, 0.15);
  border: 1px solid rgba(79, 193, 255, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
  white-space: nowrap;
}

.institution {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

.edu-description {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Featured Project */
.featured-project {
  grid-column: span 2;
}

.project-showcase {
  margin-top: 20px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.project-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  margin: 0;
  color: var(--text);
}

.project-header h3 i {
  color: var(--accent);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: var(--accent-light);
  gap: 12px;
}

.project-description {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(79, 193, 255, 0.1);
  border: 1px solid rgba(79, 193, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--accent-light);
  font-weight: 600;
}

.feature-tag i {
  color: #4ade80;
}

.project-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a0e14;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(79, 193, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(79, 193, 255, 0.4);
}

.cta-button i {
  font-size: 20px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.skill-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(79, 193, 255, 0.08);
  border: 1px solid rgba(79, 193, 255, 0.15);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background: rgba(79, 193, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.skill-badge i {
  font-size: 32px;
  color: var(--accent);
}

.skill-badge span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Contact Buttons */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0a0e14;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(79, 193, 255, 0.3);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 193, 255, 0.4);
}

.contact-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.contact-btn.secondary:hover {
  background: rgba(79, 193, 255, 0.1);
}

/* Article Page Styles */
.article-page {
  max-width: 1400px;
  margin: 20px auto 40px;
  padding: 0 32px;
}

.article-page-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.article-nav {
  margin-bottom: 24px;
  grid-column: 1 / -1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  border-color: var(--accent);
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(79, 193, 255, 0.15);
}

.back-btn i {
  font-size: 16px;
}

.article-wrapper {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  min-height: 600px;
}

/* AI Sidebar */
.ai-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-widget,
.toc-widget {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.widget-header i {
  font-size: 24px;
  color: var(--accent);
}

.widget-header h3 {
  font-size: 18px;
  margin: 0;
  flex: 1;
}

.coming-soon-badge {
  padding: 4px 12px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.ai-features-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(79, 193, 255, 0.05);
  border: 1px solid rgba(79, 193, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.feature-preview-item i {
  font-size: 18px;
  color: var(--accent);
}

/* Table of Contents */
.toc-widget nav {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}

.toc-widget nav::-webkit-scrollbar {
  width: 6px;
}

.toc-widget nav::-webkit-scrollbar-track {
  background: transparent;
}

.toc-widget nav::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.toc-widget nav::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin: 0;
}

.toc-item a {
  display: block;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.5;
}

.toc-item a:hover {
  color: var(--accent);
  background: rgba(79, 193, 255, 0.05);
  border-left-color: var(--accent);
}

.toc-h2 {
  padding-left: 0;
}

.toc-h3 {
  padding-left: 16px;
}

.toc-h3 a {
  font-size: 13px;
}

/* Responsive Article Page */
@media (max-width: 1024px) {
  .article-page-container {
    grid-template-columns: 1fr;
  }

  .article-nav {
    order: 1;
  }

  .article-wrapper {
    order: 2;
    padding: 32px;
  }

  .ai-sidebar {
    position: static;
    order: 3;
  }
}

@media (max-width: 768px) {
  .article-page {
    padding: 0 20px;
  }

  .article-page-container {
    display: flex;
    flex-direction: column;
  }

  .article-nav {
    order: 1;
    margin-bottom: 16px;
  }

  .article-wrapper {
    order: 2;
    padding: 24px 20px;
    margin-bottom: 24px;
  }

  .ai-sidebar {
    order: 3;
    gap: 16px;
  }

  .ai-widget,
  .toc-widget {
    padding: 20px;
  }

  .ai-widget {
    order: 1;
  }

  .toc-widget {
    order: 2;
  }

  /* Collapse AI widget on mobile for better UX */
  .ai-widget {
    cursor: pointer;
  }

  .ai-features-preview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .ai-widget.expanded .ai-features-preview {
    max-height: 300px;
  }

  .widget-header {
    cursor: pointer;
    user-select: none;
  }

  .widget-header::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .ai-widget.expanded .widget-header::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  .article-page {
    width: 100%;
    padding: 0 10px;
    margin: 12px auto 24px;
  }

  .article-wrapper {
    padding: 16px;
    border-radius: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .back-btn {
    padding: 10px 14px;
    font-size: 14px;
  }

  .ai-widget,
  .toc-widget {
    padding: 14px;
  }

  .widget-header h3 {
    font-size: 16px;
  }

  .toc-widget nav {
    max-height: 250px;
  }

  .article-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}


/* Responsive About Page */
@media (max-width: 1024px) {
  .featured-project {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .profile-content h1 {
    font-size: 32px;
  }

  .role {
    font-size: 18px;
  }

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

  .about-content-grid {
    grid-template-columns: 1fr;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 140px;
    height: 140px;
  }

  .profile-image i {
    font-size: 90px;
  }

  .about-card {
    padding: 24px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

