/* 🌍 Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0e0e0e;
  color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
 padding-bottom: 100px; /* To prevent overlap with footer */
}

/* 🔝 Header / Navbar */
header {
  position: sticky;
  top: 0;
  background: #121212;
  z-index: 1000;
  padding: 15px 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media(min-width: 600px) {
  .navbar { flex-direction: row; justify-content: space-between; }
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0ff;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.nav-links a:hover { color: #0ff; }

/* 🏠 Index Page (Hero + Glow) */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(145deg, #111, #1c1c1c);
}

 .hero img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid #0ff;
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
      margin-bottom: 10px;
    }

.glow {
  font-size: 2.5rem;
 color: #fff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #0ff;
  animation: glowFade 2s ease-in-out infinite alternate;
}
@media(min-width: 768px) { .glow { font-size: 3.2rem; } }

.subtitle { font-size: 1.1rem; color: #aaa; margin-top: 10px; }

@keyframes glowFade { from { text-shadow: 0 0 10px #0ff; } to { text-shadow: 0 0 30px #0ff; } }
#typewriter::after { content: '|'; animation: blink 1s infinite; margin-left: 5px; color: #0ff; }
@keyframes blink { 0%,100% {opacity:1;} 50% {opacity:0;} }


/* 📸 Projects Page */

.project {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 50px;
  border: 1px solid #333;

}

.project p { color: #ccc; line-height: 1.6; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.project-gallery img {
      width: 100%;
      height: 80px;
      object-fit: cover;
      border-radius: 6px;
      border: 1px solid #444;
      transition: transform 0.3s ease;
    }

    .project-gallery img:hover {
      transform: scale(1.05);
    }

.back {
      display: block;
      text-align: center;
      margin-top: 40px;
      text-decoration: none;
      color: #0ff;
      font-weight: bold;
    }

    .back:hover {
      text-decoration: underline;
    }


/* 📝 Blog Index (blogs/index.html) */
.blog h1 { font-size: 2rem; color: #0ff; margin-bottom: 20px; padding-top:50px}

 /* CATEGORIES */
    .categories { margin-bottom: 30px; }
    .categories ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    .categories a {
      background: #1c1c1c;
      padding: 8px 16px;
      border-radius: 20px;
      color: #ccc;
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 0.9rem;
    }
    .categories a:hover, .categories a.active { background: #0ff; color: #000; }

 /* BLOG GRID */
    .container { max-width: 1100px; margin: 0 auto; }
    .blog-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
      gap: 25px;
    }
    .blog-item {
      background: #1c1c1c;
      padding: 25px;

      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
      transition: 0.25s ease;
    }
    .blog-item:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,255,255,0.2); }
    .blog-item h2 { color: #0ff; margin-bottom: 12px; font-size: 1.2rem; }
    .blog-item p { color: #bbb; font-size: 0.95rem; line-height: 1.5; }
    .read-more { display: inline-block; margin-top: 12px; color: #0ff; font-weight: bold; text-decoration: none; }
    .read-more:hover { color: #fff; text-decoration: underline; }

/* 📖 Single Blog (blog1.html) */
main.blog-post {
  flex: 1;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #141414;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  text-align: left;
}
.blog-post h2 { margin-bottom: 20px; }
.blog-post p { margin-bottom: 16px; }
.ad-space {
  width: 100%; height: 120px; margin: 25px 0;
  background: #1c1c1c; border: 1px dashed #0ff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #888; font-size: 0.9rem;
}
.back-btn {
  display: inline-block; margin-top: 20px;
  padding: 10px 18px; border-radius: 6px;
  background: #0ff; color: #000; font-weight: bold;
  text-decoration: none; transition: 0.3s;
}
.back-btn:hover { background: #00cccc; }

/* 🔽 Pagination */
 /* PAGINATION */
     .pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px 0; /* Add extra space before footer */
    gap: 10px;
    flex-wrap: wrap;
  }

  .pagination button {
    background: #1c1c1c;
    border: 1px solid #0ff;
    color: #0ff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .pagination button:hover {
    background: #0ff;
    color: #000;
  }

  .pagination button.active {
    background: #0ff;
    color: #000;
    font-weight: bold;
  }


/* Responsive adjustments */
  @media (max-width: 600px) {
    .pagination {
      gap: 6px;
flex-wrap: wrap; 
justify-content: center; 

    }

    .pagination button {
      padding: 6px 10px;
      font-size: 0.85rem;
    }
  }
    footer .socials { margin: 5px 0; }
    footer .socials a { margin: 0 10px; display: inline-block; }
    footer .socials img {
      width: 40px; height: 40px;
      transition: transform 0.3s ease;
    }
    footer .socials img:hover { transform: scale(1.2); }
    footer p { color: #aaa; font-size: 0.9rem; }

/* MOBILE RESPONSIVE IMPROVEMENTS */
@media (max-width: 768px) {
  header {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  .nav-links {
    flex-direction: row;
    gap: 15px;
  }

  main {
    padding: 0 12px;
  }

  .blog h1 {
    font-size: 1.8rem;
padding-top:50px 
  }

  .categories ul {
    gap: 10px;
    
  }
  .categories a {
    padding: 6px 12px;
    font-size: 1rem;
  }

  .blog-list {
    grid-template-columns: 1fr; /* full width cards on mobile */
    gap: 18px;
  }

  .blog-item {
    padding: 18px;
  }

  .blog-item h2 {
    font-size: 1rem;
  }
  .blog-item p {
    font-size: 0.85rem;
  }

  .pagination {
    gap: 6px;
    margin-bottom: 80px; /* extra breathing space above footer */
  }

  .pagination button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  footer {
    padding: 15px;
    font-size: 0.8rem;
  }

  footer .socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  footer .socials img {
    width: 40px;
    height: 40px;
  }
}


/* 🔗 Footer */
 footer {
  background: #1c1c1c;
  padding: 3px;
  text-align: center;
  position: fixed;       /* Fixed at bottom */
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.5);
z-index:1
}

footer .socials { margin: 10px 0; }
footer .socials a { margin: 0 8px; display: inline-block; }
footer .socials img {
  width: 40px; height: 40px; object-fit: contain;
  transition: transform 0.3s ease;
}
footer .socials img:hover { transform: scale(1.2); }
footer p { color: #aaa; font-size: 0.9rem; }

/* 📱 Responsive */
@media (max-width: 768px) {
  .glow { font-size: 2rem; }
  .categories a { font-size: 0.85rem; padding: 6px 12px; }
  .blog-list { grid-template-columns: 1fr; gap: 18px; }
  .blog-item { padding: 16px; }
  .blog-item h2 { font-size: 1rem; }
  .blog-item p { font-size: 0.85rem; }
  .ad-space { height: 90px; font-size: 0.8rem; }
  footer { padding: 15px; font-size: 0.8rem; }
}
