.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 40px 10px;
  z-index: 1;
  background: #0f0f23; /* fallback color if image fails */
}

/*move to current page*/

.container { position: relative; z-index: 10; padding: 0 20px; }

h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(125deg, #ffffff, #8b5cf6, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 4px 20px rgba(59,130,246,0.2);
}

.subtitle {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
}

/* BLOG LIST SECTION */
.blog-list {
  padding: 100px 20px;
  background: rgba(15, 15, 35, 0.5);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
}

.blog-post {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  transform: translateZ(0);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(139,92,246,0.05);
  backdrop-filter: blur(16px);
  position: relative;
}

.blog-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.05), transparent);
  border-radius: 28px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.blog-post:hover {
  transform: translateY(-6px) scale(1.015) rotateX(1.5deg);
  background: rgba(255,255,255,0.08);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 10px 25px rgba(139,92,246,0.175), 0 5px 15px rgba(59,130,246,0.1);
}

.blog-post:hover::before { opacity: 1; }

.post-image { width: 100%; height: 220px; object-fit: cover; border-radius: 28px 28px 0 0; transition: transform 0.5s ease; }
.blog-post:hover .post-image { transform: scale(1.06); }

.post-content { padding: 2rem; position: relative; z-index: 1; }
.date { font-size: 0.85rem; opacity: 0.7; display:block; margin-bottom:0.8rem; }
.post-content h3 { font-size:1.5rem; font-weight:700; margin-bottom:1rem; line-height:1.3; }
.post-content h3 a { color:white; text-decoration:none; background:linear-gradient(to right,#fff,#8b5cf6); -webkit-background-clip:text; -webkit-text-fill-color:transparent; transition:transform 0.3s ease; }
.blog-post:hover .post-content h3 a { transform: translateX(4px); }
.post-content p { font-size:1rem; line-height:1.6; opacity:0.85; margin-bottom:1.5rem; }
.blog-post:hover .post-content p { opacity:1; transform: translateZ(2px); }
.read-more { color:#8b5cf6; text-decoration:none; font-weight:600; font-size:0.95rem; letter-spacing:0.5px; padding-right:1.5rem; position:relative; display:inline-block; transition:all 0.3s ease; }
.read-more::after { content:'→'; position:absolute; right:0; opacity:0; transform:translateX(-5px); transition:all 0.3s ease; }
.read-more:hover { padding-right:2rem; color:#3b82f6; }
.read-more:hover::after { opacity:1; transform:translateX(0); }
.no-data { text-align:center; font-size:1.5rem; opacity:0.7; padding:5rem 2rem; color:rgba(255,255,255,0.7); grid-column:1 / -1; }

/* Glow Animation */
@keyframes titleGlow {
  0% { text-shadow:0 0 10px rgba(139,92,246,0.3),0 0 20px rgba(59,130,246,0.2); }
  100% { text-shadow:0 0 30px rgba(59,130,246,0.5),0 0 50px rgba(139,92,246,0.4),0 0 70px rgba(6,182,212,0.3); }
}

/* Responsive */
@media(max-width:768px){
  h1{font-size:3rem;}
  .subtitle{font-size:1.25rem;}
  .posts-grid{grid-template-columns:1fr; gap:2rem;}
  .post-image{height:200px;}
  .post-content{padding:1.5rem;}
  .post-content h3{font-size:1.3rem;}
  .read-more{font-size:0.9rem;}
}
@media(max-width:480px){
  h1{font-size:2.2rem;}
  .subtitle{font-size:1rem;}
}
