:root {
  --bg-color:rgb(6, 6, 6);
  --text-color: #f5f5f5;
  --accent-color: #ffcc00;
  --button-bg: linear-gradient(45deg, #ffd700, #ff6a00, #ff007f);
  --button-text: #000;
  --card-bg: rgba(40, 40, 40, 0.9);
  --hover-color: #00ffd5;
  --input-bg: rgba(60, 60, 60, 0.85);
  --input-text: #ffffff;
}

/* Reset & Base */
body {
  background: url('bg.png') no-repeat center center fixed;
  background-size: cover;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  scroll-behavior: smooth;
  box-sizing: border-box;
  position: relative;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('Gif.gif') center/cover;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
nav, .navbar {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 30px;
}
nav h1 {
  font-size: 24px;
  background: linear-gradient(45deg, #ffcc00, #ff6b6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 10px 0 0 0;
  flex-wrap: wrap;
}
nav ul li a {
  position: relative;
  padding: 8px 15px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: gold;
  transition: width 0.3s ease;
}
nav ul li a:hover {
  color: var(--hover-color);
}
nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(17,17,17,0.8) 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('path-to-your-hero-image.jpg') center/cover;
  opacity: 0.3;
  z-index: -1;
  animation: zoomInOut 20s infinite alternate;
}
@keyframes zoomInOut {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.hero h2 {
  font-size: 2.5em;
  color: var(--accent-color);
}
.hero p {
  font-size: 1.1em;
  color: #ccc;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.hero-banner {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 20px;
}

/* Buttons */
.btn {
  position: relative;
  background: var(--button-bg);
  color: var(--button-text);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
  transition: 0.3s;
  min-width: 120px;
  text-align: center;
}
.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 213, 0.8);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(270deg, #ffcc00, #00ffd5, #ff007f);
  background-size: 600% 600%;
  filter: blur(6px);
  z-index: -1;
  animation: animateGlow 6s ease infinite;
}
@keyframes animateGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Search bar */
.search-bar {
  text-align: center;
  margin: 40px 0 30px;
}
.search-bar input {
  width: 100%;
  max-width: 600px;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid var(--accent-color);
  background-color: var(--input-bg);
  color: var(--input-text);
  outline: none;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}
.search-bar input:focus {
  border-color: var(--hover-color);
  box-shadow: 0 0 25px rgba(0, 255, 213, 0.6);
}

/* Manga Cards */
.anime-card {
  background: var(--card-bg);
  border: 1px solid var(--accent-color);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  max-width: 260px;
  margin: 20px auto;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s;
}
.anime-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}
.anime-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}
.anime-card h3 {
  font-size: 18px;
  color: var(--accent-color);
  margin-top: 10px;
}

/* PDF Viewer */
iframe {
  width: 100%;
  border-radius: 12px;
  margin-top: 20px;
  border: 2px solid var(--accent-color);
}

/* Floating Button */
#buddyButton {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  box-shadow: 0 0 18px var(--accent-color);
  z-index: 999;
  transition: transform 0.3s ease;
}
#buddyButton:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px var(--hover-color);
}

/* Misc */
.highlight {
  background-color: #333;
  color: var(--hover-color);
}
#overlay-blocker {
  display: none;
}

/* Section Titles */
.section-title {
  font-size: 2em;
  color: gold;
  text-align: center;
  margin: 40px 0;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, gold, transparent);
}

/* Mobile Responsive Fixes */
@media screen and (max-width: 768px) {
  nav, .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  .hero h2 {
    font-size: 2em;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .search-bar input {
    width: 90%;
  }
}
.featured-series {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
main h2 {
  font-size: 2em;
  margin-top: 40px;
  color: var(--accent-color);
}

.search-bar {
  margin-bottom: 20px;
}
/* Search results */
.search-results {
  margin-top: 10px;
  text-align: center;
}
.search-result-item {
  display: block;
  background: var(--card-bg);
  margin: 5px auto;
  padding: 10px 15px;
  width: 80%;
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
.search-result-item:hover {
  background: #444;
  color: var(--hover-color);
}

/* New Card Styles */
.card {
  background: rgba(17, 17, 17, 0.95);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.2);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-meta {
  padding: 15px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(17,17,17,0.8) 100%);
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.carousel-slide {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s ease;
}

.carousel-dot.active {
  background: gold;
  transform: scale(1.2);
}
