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

/* Base layout */
body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(to right, #f0e6fa, #e6e6fa);
  color: #333333;
  padding: 1rem;
}

/* Main framed container */
main {
  max-width: 950px;
  width: 100%; /* Ensure it takes full width on smaller screens */
  margin: auto;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #c0b0d8;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  /* background-image: url('/assets/image/tech-bg.svg'); Optional SVG background */
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 160px;
}

/* Responsive Images */
main img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

/* Code Blocks Responsiveness */
pre,
code {
  word-wrap: break-word; /* Forcing long words to break */
  white-space: pre-wrap; /* Preserve whitespace but allow wrapping */
  overflow-x: auto; /* Enable horizontal scrolling for very long lines */
}

/* Headers */
h1, h2, h3 {
  color: #5d3f9b;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2.4rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* Paragraphs */
p {
  margin: 1rem 0;
}

/* Navigation Bar */
nav {
  display: flex;
  justify-content: center;
  background: #f7f0ff;
  padding: 1rem 0;
  border: 1px solid #d1bfff;
  border-radius: 12px;
  max-width: 950px;
  margin: 0 auto 2rem;
}

nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #7b4397;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #a87dd1;
  text-decoration: none;
}

/* Blog post list */
ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

li {
  background: #fcfcff;
  margin: 1rem 0;
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

li:hover {
  background: #f0f0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: #6a6a6a;
  margin-top: 3rem;
}

.hero-purple {
  background: linear-gradient(135deg, #6a40a8, #8a5fd8, #c0a0f0);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 30px rgba(106, 64, 168, 0.3);
}

@media (min-width: 768px) {
  .hero-purple {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: 2rem;
  }
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text h3 {
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: #f0e6fa;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.6;
}
