@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

:root {
  --bg-dark: #030e24;
  --light: #f2f2f2;
  --accent: #00ffae;
  --font-main: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--light);
  font-family: var(--font-main);
  min-height: 100vh;
  position: relative;
}

/* Background image */
.bg-overlay {
  background: url('servicebg.png') no-repeat center/cover;
  opacity: 0.12;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
  font-weight: 600;
}

.logo {
  width: 70px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Taglines */
.intro {
  text-align: center;
  margin: 2rem 0 1rem;
}

.main-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.second-tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 0.5rem;
}

/* Blog grid */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 5%;
}

.blog-box {
  width: 320px;
  background: #11141a;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: var(--light);
  box-shadow: 0 0 10px #00ffae30;
  transition: all 0.3s ease;
}

.blog-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px #00ffae88;
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-content {
  padding: 1rem;
}

.blog-content h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.blog-content p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

/* Footer */
footer {
  text-align: center;
  padding: 0.8rem 0;
  font-size: 0.85rem;
  color: #777;
  background: #0a0d12;
  border-top: 1px solid #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-box {
    width: 90%;
  }
}
