/* ==========================================================================
   The Geekest Link - Hacker Lab & Tech Engineering Portal
   Design System: Midnight Cyber Dark (#0d1117), Electric Cyan (#00f2fe),
   Matrix Emerald (#10b981), Cyber Violet (#8b5cf6)
   ========================================================================== */

:root {
  --bg-deep: #0a0d14;
  --bg-surface: #111726;
  --bg-card: #161f33;
  --bg-card-hover: #1e2a47;
  --bg-subtle: #0f1422;
  
  --cyan-glow: #00f2fe;
  --cyan-dim: #0ea5e9;
  --matrix-green: #10b981;
  --matrix-glow: #34d399;
  --neon-violet: #8b5cf6;
  --neon-amber: #f59e0b;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-accent: #38bdf8;
  
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-glow: rgba(0, 242, 254, 0.4);
  --border-green: rgba(16, 185, 129, 0.3);
  
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-cyber: 0 4px 20px rgba(0, 242, 254, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-terminal-bar {
  background: #06080d;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-terminal-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--cyan-glow);
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #00f2fe 100%);
  color: #050b14;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--cyan-glow);
  color: #ffffff;
}

/* Hero Section */
.hero-cyber {
  padding: 70px 0 80px 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
              var(--bg-deep);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: 99px;
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title span {
  background: linear-gradient(135deg, var(--cyan-glow) 0%, #38bdf8 50%, var(--matrix-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  position: relative;
}

.hero-image-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-tag {
  color: var(--matrix-glow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grid & Cards */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-glow);
  box-shadow: var(--shadow-cyber);
  background: var(--bg-card-hover);
}

.article-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.article-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(8px);
  color: var(--cyan-glow);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-glow);
  text-transform: uppercase;
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--matrix-glow);
  margin-bottom: 12px;
}

.article-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #ffffff;
  line-height: 1.35;
}

.article-card-title a:hover {
  color: var(--cyan-glow);
}

.article-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-card-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.article-card-link:hover {
  gap: 10px;
  color: #ffffff;
}

/* Single Article Body */
.single-article-header {
  background: var(--bg-surface);
  padding: 60px 0 50px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.single-article-body {
  padding: 60px 0 80px 0;
}

.article-content {
  background: var(--bg-card);
  padding: 48px 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.75rem;
  color: #ffffff;
  margin: 38px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-content p {
  margin-bottom: 22px;
  color: #cbd5e1;
}

.article-content ul, .article-content ol {
  margin: 0 0 26px 24px;
  color: #cbd5e1;
}

.article-content li {
  margin-bottom: 10px;
}

.tech-callout {
  background: rgba(0, 242, 254, 0.05);
  border-left: 4px solid var(--cyan-glow);
  padding: 22px 26px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}

.tech-callout h4 {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cyan-glow);
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: #06080d;
  color: var(--text-muted);
  padding: 70px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--cyan-glow);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-content { padding: 32px 24px; }
}

@media (max-width: 640px) {
  .nav-menu { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
