/* --- RESET --- */
* {
  box-sizing: border-box;
}

/* --- GLOBAL BODY --- */
body {
  background-color: #0d1117;
  /* Multi-layered background: Radial glows + Hex/Grid pattern */
  background-image: 
    radial-gradient(at 0% 0%, rgba(31, 111, 235, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(137, 87, 229, 0.12) 0px, transparent 50%),
    linear-gradient(#161b22 1.5px, transparent 1.5px), 
    linear-gradient(90deg, #161b22 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #c9d1d9;
  margin: 0;
  /* Offset for fixed navbar */
  padding: 140px 20px 100px 20px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* --- THE COOLER NAVBAR --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(240, 246, 252, 0.1);
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 40px;
}

/* Adding a subtle glowing line at the bottom of the nav */
nav::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #58a6ff, transparent);
  opacity: 0.3;
}

.nav-logo {
  color: #f0f6fc;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-logo:hover {
  color: #58a6ff;
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
  letter-spacing: 0.3em; /* Dynamic expansion effect */
}

/* --- ARTICLE DESIGN --- */
article {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 850px;
  margin: 0 auto;
  padding: 80px 100px;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 16px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: all 0.5s ease;
}

article:hover {
  border-color: rgba(88, 166, 255, 0.3);
  transform: translateY(-5px); /* Subtle lift */
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(88, 166, 255, 0.05);
}

/* --- TYPOGRAPHY & ELEMENTS --- */
h1 {
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 3.5rem;
  line-height: 1.1;
  color: #f0f6fc;
  margin: 15px 0 30px 0;
  text-shadow: 0 0 40px rgba(240, 246, 252, 0.08);
}

h2 {
  font-weight: 600;
  font-size: 1.8rem;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #f0f6fc;
  display: flex;
  align-items: center;
}

h2::before {
  content: "»";
  margin-right: 15px;
  color: #58a6ff;
  font-weight: 300;
}

h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(48, 54, 61, 1), transparent);
  margin-left: 20px;
}

.byline {
  color: #8b949e;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  opacity: 0.8;
}

p {
  font-weight: 400;
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: #b1bac4;
}

p.intro {
  font-size: 1.35rem;
  color: #f0f6fc;
  line-height: 1.5;
  font-weight: 300;
  border-left: 3px solid #58a6ff;
  padding-left: 25px;
  margin-bottom: 40px;
}

/* Lists Styles */
ul, ol {
  margin-bottom: 30px;
  padding-left: 20px;
}

li {
  margin-bottom: 12px;
  color: #b1bac4;
}

b, strong {
  color: #f0f6fc;
  font-weight: 600;
}

i, em {
  color: #89d1fa;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
  article {
    padding: 40px 25px;
    margin: 0 10px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  nav {
    padding: 0 20px;
  }
}
