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

/* General Styles */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  /* Background image instead of solid color */
  background: url("./images/homepicture.jpeg") no-repeat center center/cover;
  color: #ededed;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  position: relative; /* Needed for the overlay */
}

/* Dark overlay + blur */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.55); /* darkness */
  backdrop-filter: blur(6px); /* blur */
  z-index: -1; /* Keep behind all content */
}

/* Navigation Bar */
header {
  background: #122635;
  padding: 15px 10%;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between; /* Push title left, nav right */
  align-items: center;
  z-index: 1000; /* On top of everything */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Blog Title */
header .logo {
  font-size: 24px;
  color: #00abf0;
  font-weight: 600;
  text-decoration: none;
}

/* Navigation Styles */
nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #00abf0;
}

/* Blog Section */
#blog {
  max-width: 900px;
  margin: 30px auto 50px; /* reduced the top space */
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  color: #00abf0;
  margin-bottom: 20px;
}

/* Blog Styling */
.blog-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-post {
  background: #112e42;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow: hidden; /* prevents scaling content from overflowing */
}

.blog-post h2 {
  font-size: 1.5rem;
  color: #00abf0;
  transition: font-size 0.4s ease, text-align 0.4s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal; /* allows wrapping */
  line-height: 1.4;
}

.blog-post h2.animate-title {
  text-align: left;
  font-size: 2rem; /* instead of scale */
}

.post-date {
  font-size: 14px;
  color: #bbb;
}

.post-summary {
  margin: 10px 0;
}

.post-content {
  margin: 10px 0;
  opacity: 1;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Hide content initially */
.hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

/* Read More Button */
.read-more {
  background: #00abf0;
  color: #fff;
  border: none;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

.read-more:hover {
  background: #0085c5;
}

/* Image Reveal Animation */
.post-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  object-fit: contain; /* or use cover if you want it to fill the area */
  display: block;
}

.post-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-image.reveal {
  max-height: 500px;
  opacity: 1;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER SECTION */
.footer {
  background-color: #081b29;
  padding: 2rem 10%;
  text-align: center;
  color: #ededed;
  border-top: 0.1rem solid #00abf0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  color: #00abf0;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-logo:hover {
  color: #ededed;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #b0b0b0;
}
