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

body {
  font-family: 'JetBrains Mono', monospace;
  background: #1e1e2e; /* Catppuccin Mocha Base */
  color: #cdd6f4;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Hero & Navigation --- */
.hero {
  background: linear-gradient(135deg, #89b4fa, #74c7ec);
  color: #1e1e2e;
  text-align: center;
  padding: 0 1rem 6rem 1rem; 
  position: relative;
  overflow: visible;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 0;
  background: rgba(30, 30, 46, 0.15); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4rem;
}

.nav-link {
  color: #1e1e2e;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
}

.tagline {
  font-size: 1.3rem;
  margin: 1rem 0 2rem;
}

/* --- Content Sections (General) --- */
.about, .projects, .contact {
  padding: 6rem 0;
  text-align: center;
}

/* --- About Section (Side-by-Side Flexbox) --- */
.about { background: #181825; }

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  text-align: left;
}

.about-image, 
.about-text {
  flex: 1;
  min-width: 0;
}

.about-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Projects & Contact --- */
.projects { background: #11111b; }

.contact { 
  background: linear-gradient(135deg, #89b4fa, #74c7ec); 
  color: #1e1e2e;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* --- Buttons / CTA --- */
.cta {
  display: inline-block;
  background: #cdd6f4;
  color: #1e1e2e;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta:hover {
  background: #a6e3a1; /* Catppuccin Green */
  transform: scale(1.05);
}

/* --- Blog Post Listing (Archive Page) --- */
.post-card {
  background: #181825;
  padding: 2.5rem;
  border-radius: 12px;
  border-left: 5px solid #89b4fa;
  text-align: left;
  margin: 2rem auto;
  max-width: 800px;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateX(10px);
}

.post-card h2 {
  margin-bottom: 1rem;
  color: #89b4fa;
}

/* --- Actual Blog Article (Single Post Page - Restored Wide Width) --- */
.blog-article {
  max-width: 1600px; /* Restored to the wider version */
  margin: -5rem auto 5rem;
  background: #181825;
  padding: 4rem 5rem;
  display: block; 
  position: relative; 
  z-index: 10; 
  border-radius: 16px; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  text-align: left;
}

.blog-article h1 { color: #89b4fa; font-size: 2.5rem; margin-bottom: 1.5rem; }
.blog-article h2 { color: #74c7ec; margin-top: 3rem; }
.blog-article p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #cdd6f4; }

.blog-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* --- Technical Elements --- */
pre {
  background: #11111b;
  border: 1px solid #45475a;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 2rem 0;
}

code {
  color: #a6e3a1; 
}

/* --- Footer --- */
footer {
  background: #11111b;
  color: #a6adc8;
  text-align: center;
  padding: 3rem 0;
  font-size: 0.9rem;
}

/* --- Responsive Layout --- */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column; 
    text-align: center;     
    gap: 2rem;
  }
  
  .blog-article {
    padding: 2rem;
    margin: -3rem 1rem 3rem 1rem;
    width: auto;
  }

  .logo {
    font-size: 2rem;
  }
}