/* ==========================================================================
   The Tech Spirit - Emerging Technologies & Digital Intelligence Review
   Design Aesthetic: LemonTree Architectural Layout adapted for Future Tech
   Colors: Deep Obsidian (#090d16), Royal Indigo (#2563eb), Cyan Glow (#06b6d4),
   Subtle Slate (#f8fafc), Dark Slate Text (#0f172a)
   ========================================================================== */

:root {
  /* Color Palette - Future Tech Intelligence */
  --primary: #2563eb;         /* Royal Electric Blue */
  --primary-light: #3b82f6;   /* Bright Indigo */
  --primary-dark: #1e3a8a;    /* Deep Navy */
  --secondary: #06b6d4;       /* Neon Cyan */
  --accent: #f59e0b;          /* Quantum Amber */
  --accent-purple: #8b5cf6;   /* Neural Violet */

  --bg-body: #f8fafc;         /* Crisp Tech Light */
  --bg-surface: #ffffff;      /* Pure Card White */
  --bg-alt: #f1f5f9;          /* Subtle Section Slate */
  --bg-dark-section: #090d16;  /* Deep Obsidian */

  --text-main: #0f172a;       /* Deep Slate */
  --text-muted: #475569;      /* Muted Tech Charcoal */
  --text-subtle: #94a3b8;     /* Light Muted */

  --border-light: #e2e8f0;
  --border-blue: #dbeafe;
  --border-glow: rgba(37, 99, 235, 0.2);

  /* Typography inspired by LemonTree Grocer */
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-tech: 0 12px 30px rgba(37, 99, 235, 0.12);
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

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

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

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

/* Background grid pattern inspired by LemonTree leaf-pattern */
.tech-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--primary-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

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

/* Top bar */
.top-notice-bar {
  background: var(--bg-dark-section);
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary);
}

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

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

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full);
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
}

.nav-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0 90px 0;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--border-blue);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.hero-image-wrap {
  position: relative;
}

.hero-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-tech);
  border: 1px solid var(--border-light);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Floating Glass Cards */
.floating-glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Section styling */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 12px;
}

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

.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-tech);
  border-color: var(--border-blue);
}

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

.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-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

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

.article-meta {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--primary-dark);
}

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

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

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

.article-card-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* Single Article Body */
.single-article-header {
  background: #ffffff;
  padding: 70px 0 60px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.article-content {
  background: #ffffff;
  padding: 48px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  font-size: 1.1rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.85rem;
  margin: 40px 0 16px 0;
  color: var(--primary-dark);
}

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

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

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

.tech-insight-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 36px 0;
}

/* Footer */
.site-footer {
  background: var(--bg-dark-section);
  color: #94a3b8;
  padding: 80px 0 36px 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: 56px;
}

.footer-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.15rem;
  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: #ffffff;
  padding-left: 4px;
}

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

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

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