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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

/* Header / Nav */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: rgba(0, 0, 0, 0.85);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 99;
}

header nav img {
  height: 48px;
}

header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

header nav ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

header nav ul li a:hover,
header nav ul li .active {
  color: #fff;
}

header nav .search {
  background: #1c1c1c;
  padding: 6px 12px;
  border-radius: 6px;
}

header nav .search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
}

/* Hero */
.hero {
  background: url('./Background.png') no-repeat right center;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 20px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: #ccc;
}

/* Blog Cards */
.blog-container {
  background: url('https://giffiles.alphacoders.com/174/1744.gif') no-repeat center center;
  background-size: cover;
  padding: 80px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.blog-card p {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 16px;
}

.blog-card a {
  align-self: flex-start;
  padding: 10px 16px;
  background-color: #ff6f00;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.blog-card a:hover {
  background-color: #e65c00;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.6);
}

/* Footer */
footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 16px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .blog-container {
    padding: 40px 10px;
    grid-template-columns: 1fr;
  }
}
