@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(
    to right,
    #bb6ffb 0%,
    #fc5f67 52%,
    #ffb054 100%
  );
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --shadow-light: 0 8px 32px rgba(187, 111, 251, 0.2);
  --shadow-medium: 0 12px 40px rgba(252, 95, 103, 0.25);
  --shadow-heavy: 0 20px 60px rgba(255, 176, 84, 0.3);
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #0f0c29 0%, #24243e 50%, #302b63 100%);
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  z-index: -1;
}
.active {
  border-bottom: 2px solid#fc5f67;
}
/* Floating Particles Animation */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 50%;
  animation: float 20s infinite linear;
  opacity: 0.6;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Modern Navbar */
.navbar {
 
  z-index: 1000;
  background: rgba(15, 12, 41, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 1.5rem 2rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(187, 111, 251, 0.5);
}

.nav-stats {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-heading {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Header */
.hero-header {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 0 60px rgba(187, 111, 251, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* Enhanced Background Animations */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShapes 20s infinite linear;
}

.shape:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.shape:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
}
.shape:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
}
.shape:nth-child(4) {
  left: 40%;
  animation-delay: 6s;
}
.shape:nth-child(5) {
  left: 50%;
  animation-delay: 8s;
}
.shape:nth-child(6) {
  left: 60%;
  animation-delay: 10s;
}
.shape:nth-child(7) {
  left: 70%;
  animation-delay: 12s;
}
.shape:nth-child(8) {
  left: 80%;
  animation-delay: 14s;
}
.shape:nth-child(9) {
  left: 90%;
  animation-delay: 16s;
}

@keyframes floatShapes {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Glowing Orbs */
.glowing-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: glowOrbs 15s infinite ease-in-out;
}

.orb:nth-child(1) {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.orb:nth-child(2) {
  width: 60px;
  height: 60px;
  background: var(--secondary-gradient);
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.orb:nth-child(3) {
  width: 100px;
  height: 100px;
  background: var(--accent-gradient);
  bottom: 30%;
  left: 60%;
  animation-delay: 10s;
}

@keyframes glowOrbs {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50px) scale(1.2);
    opacity: 0.6;
  }
}
/* Initial styles for the search section */
.search-section {
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  padding: 2.5rem;
  margin: 0 auto 3rem;
  max-width: 1000px;
  box-shadow: var(--shadow-medium);
  position: relative; /* Initially, it’s relative */
  overflow: hidden;
  transition: all 0.3s ease;
}

.search-section.fixed {
  position: fixed;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 800px;
  background-color: rgb(30, 16, 16);
  margin-top: 0;
  box-shadow: var(--shadow-light);
  padding: 1.5rem !important; /* smaller padding */
}

.search-section.fixed .search-input {
  padding: 12px 20px !important; /* smaller input padding */
  font-size: 1rem;
  min-width: 150px !important;
}

.search-section.fixed .action-btn {
  padding: 10px 20px; /* smaller button */
  font-size: 0.9rem;
}


.search-container {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.search-input {
  flex: 1;
  min-width: 400px;
  padding: 20px 30px;
  border: none;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 500;
  outline: none;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.search-input:focus {
  border: 2px solid rgba(187, 111, 251, 0.6);
  box-shadow: 0 0 30px rgba(187, 111, 251, 0.3);
  transform: translateY(-2px);
}

.search-input::placeholder {
  color: var(--text-secondary);
}

.action-btn {
  padding: 18px 35px;
  border: none;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-copy {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-light);
}

.btn-copy:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.btn-reset {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  padding: 2rem;
  height: fit-content;
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 120px;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.card-tags {
  text-decoration: none !important;
}
.category-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(187, 111, 251, 0.2);
}

.category-item.active {
  background: var(--primary-gradient);
  color: white;
  transform: translateX(12px);
  box-shadow: var(--shadow-medium);
}

.category-icon {
  font-size: 1.3rem;
}

.category-count {
  margin-left: auto;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

/* Content Area */
.content-area {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: var(--shadow-light);
  min-height: 600px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Symbols Grid */
.symbols-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.symbol-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1rem;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.symbol-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: all 0.4s ease;
}

.symbol-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(187, 111, 251, 0.5);
}

.symbol-card:hover::before {
  left: 0;
  opacity: 0.1;
}

.symbol-card:active {
  transform: translateY(-4px) scale(1.02);
}

/* Loading Animation */
.loading-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #bb6ffb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 30px;
  right: 10px;
  background: var(--primary-gradient);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-heavy);
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.toast.info {
  background: linear-gradient(45deg, #74b9ff, #0984e3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    position: static;
  }

  .nav-stats {
    display: none;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .search-input {
    min-width: 100%;
  }

  .search-container {
    flex-direction: column;
  }

  .symbols-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 1rem;
  }

  .symbol-card {
    font-size: 2rem;
    padding: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to right, #bb6ffb 0%, #fc5f67 100%);
}
