/* Reset + Base */
* {
  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;
}

/* === Blog Post Page (Single Post with Glossy Effect) === */
.blog-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
}

.blog-post {
  background: rgba(20, 20, 30, 0.6);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 255, 218, 0.2);
}

.blog-title {
  font-size: 32px;
  background: linear-gradient(90deg, #64ffda, #00aeff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

.blog-meta {
  font-size: 14px;
  color: #64ffda;
  margin-bottom: 25px;
  display: flex;
  gap: 15px;
}

.blog-image-box {
  text-align: center;
  margin-bottom: 25px;
}

.blog-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 174, 255, 0.2);
  border: 1px solid rgba(100, 255, 218, 0.3);
}

/* Headings inside blog */
.blog-post h2 {
  font-size: 24px;
  color: #00aeff;
  margin: 25px 0 15px;
  border-left: 4px solid #64ffda;
  padding-left: 12px;
}

/* Paragraphs */
.blog-post p {
  font-size: 16px;
  line-height: 1.8;
  color: #ccd6f6;
  margin-bottom: 20px;
}

/* Code Box */
.code-box {
  position: relative;
  margin: 20px 0;
}

.code-box pre {
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
}

.code-box pre code {
  font-family: "Fira Code", monospace;
  font-size: 14px;
  color: #64ffda;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 174, 255, 0.15);
  color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.5);
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

/* 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;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px;
  }

  header .logo {
    font-size: 28px;
    margin-right: 0;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .blog-post {
    padding: 20px;
  }

  .blog-title {
    font-size: 26px;
  }

  .blog-post p {
    font-size: 15px;
  }
}
