:root {
  --bg-main: #050505;
  --bg-alt: #141414;
  --bg-card: #1f1f1f;
  --bg-card-soft: #262626;
  --accent: #ffffff;
  --accent-subtle: #00c3ff;
  --text-main: #f5f5f5;
  --text-muted: #b0b0b0;
  --border-soft: rgba(255, 255, 255, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
  --container-width: 1120px;
}

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

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ========== HEADER ========== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.0em;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav a:hover {
  color: var(--accent);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0e1a;
  color: #e4e6eb;
  line-height: 1.6;
}

/* ========== SECTION STYLES ========== */
.section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #0a0e1a 0%, #0f1420 100%);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BLOG SECTION ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(15, 20, 30, 0.9) 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 195, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.3), rgba(0, 128, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 195, 255, 0.2);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 195, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #021018;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-date::after {
  content: '•';
  margin-left: 1rem;
}

.blog-read-time {
  color: var(--accent-subtle);
}

.blog-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--accent-subtle);
}

.blog-description {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 24px;
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.1) 0%, rgba(0, 128, 255, 0.1) 100%);
  border: 2px solid rgba(0, 195, 255, 0.3);
  border-radius: 10px;
  color: var(--accent-subtle);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.blog-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 195, 255, 0.2) 0%, rgba(0, 128, 255, 0.2) 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.blog-link:hover {
  border-color: rgba(0, 195, 255, 0.6);
  box-shadow: 0 4px 20px rgba(0, 195, 255, 0.3);
  transform: translateX(4px);
}

.blog-link:hover::before {
  transform: translateX(0);
}

.blog-link span {
  position: relative;
  z-index: 1;
}

.blog-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.blog-link:hover svg {
  transform: translateX(4px);
}

/* ========== ARTICLE DETAIL VIEW ========== */
/* Make article section more compact */
.article-section {
  padding: 56px 20px 72px;      /* was 80px 20px; */
}

/* Narrower article container inside the article section */
.article-section .container {
  max-width: 900px;             /* smaller than the 1400px global container */
}


.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid rgba(0, 195, 255, 0.3);
  border-radius: 10px;
  color: var(--accent-subtle);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 3rem;
}

.back-button:hover {
  background: rgba(0, 195, 255, 0.1);
  border-color: rgba(0, 195, 255, 0.6);
  transform: translateX(-4px);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-4px);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  text-align: center;
  margin-bottom: 3rem;
}

.article-category {
  display: inline-block;
  background: rgba(0, 195, 255, 0.9);
  color: #021018;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.article-title {
  font-size: 2rem;             
  font-weight: 800;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;          
  color: var(--text-muted);
}


.article-date::after {
  content: '•';
  margin-left: 1rem;
}

.article-read-time {
  color: var(--accent-subtle);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00d9ff 0%, #0080ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-body strong {
  color: var(--accent-subtle);
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
