* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #000;
  color: #e6f1ff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background elements */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 255, 0.1) 0%, transparent 70%);
  animation: float 15s infinite linear;
}

.bg-square {
  position: absolute;
  background: rgba(100, 255, 218, 0.05);
  animation: float 12s infinite linear reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
  }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

header img {
  height: 60px;
  display: block;
}

header .logo {
  font-size: 35px;
  font-weight: 700;
  background: linear-gradient(45deg, #64ffda, #00aeff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
  margin-right: 750px
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.desktop-nav a {
  margin-left: 25px;
  color: #ccd6f6;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.desktop-nav a:hover {
  color: #64ffda;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #64ffda;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 80px 30px 30px;
  z-index: 99;
  transition: right 0.3s ease;
  border-left: 1px solid rgba(100, 255, 218, 0.2);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  display: block;
  color: #ccd6f6;
  text-decoration: none;
  padding: 15px 0;
  font-size: 18px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.1);
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #64ffda;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #64ffda;
  font-size: 24px;
  cursor: pointer;
}

/* Search Bar */
.search-container {
  display: flex;
  justify-content: center;
  margin: 30px 0;
  padding: 0 20px;
}

.search-box {
  display: flex;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.search-box input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 4px 0 0 4px;
  background: rgba(23, 42, 69, 0.8);
  color: #e6f1ff;
  font-size: 16px;
  outline: none;
}

.search-box input::placeholder {
  color: #8892b0;
}

.search-box button {
  padding: 15px 25px;
  background: linear-gradient(45deg, #64ffda, #00aeff);
  color: #000;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.search-box button:hover {
  background: linear-gradient(45deg, #00aeff, #64ffda);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

/* Blog Layout */
#blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 5%;
  margin-bottom: 40px;
}

.blog-card {
  background: rgba(20, 20, 30, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(100, 255, 218, 0.2);
}

.blog-card .image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 3px solid #64ffda;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.blog-card .content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  margin: 0 0 15px 0;
  font-size: 20px;
  color: #ccd6f6;
}

.blog-card p {
  font-size: 15px;
  margin: 0 0 20px 0;
  color: #8892b0;
  line-height: 1.6;
  flex-grow: 1;
}

.blog-card .date {
  font-size: 13px;
  color: #64ffda;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.blog-card .date i {
  margin-right: 8px;
}

.read-more {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: #64ffda;
  border: 1px solid #64ffda;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
}

.read-more:hover {
  background: rgba(100, 255, 218, 0.1);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding: 0 20px;
  gap: 15px;
}

.pagination-btn {
  background: rgba(23, 42, 69, 0.8);
  color: #64ffda;
  border: 1px solid #64ffda;
  padding: 12px 25px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  font-weight: 600;
  text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
  background: rgba(100, 255, 218, 0.1);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: #8892b0;
  font-size: 14px;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.9);
  border-top: 1px solid rgba(100, 255, 218, 0.2);
  margin-top: 40px;
}

footer p {
  font-size: 15px;
  color: #8892b0;
}

footer p i {
  color: #ff2e63;
  margin: 0 5px;
}

/* Error message */
.error {
  text-align: center;
  padding: 40px;
  color: #ff2e63;
  font-size: 18px;
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  header .logo {
    font-size: 28px;
    margin-right: 0; /* ✅ mobile me margin remove */
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .search-box {
    width: 95%;
  }
  
  #blog-container {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 20px;
  }
  
  .blog-card .image-container {
    height: 180px;
  }
  
  .blog-card .content {
    padding: 20px;
  }
  
  .blog-card h3 {
    font-size: 18px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 10px;
  }
  
  .page-info {
    order: -1;
    margin-bottom: 10px;
  }
}
