:root {
  --primary: #fb8500;
  --primary-dark: #219ebc;
  --secondary: #ffb703;
  --dark: #023047;
  --light: #f8f9fa;
  --transition: all 0.3s ease;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
  /* background: linear-gradient(135deg, #0f0f1a, #252942); */
  background: linear-gradient(135deg, #023047, #074b6e);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  background-color: #0230479a;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active {
  color: #fb8500;
  border-bottom: 2px solid #ffb703;
}

.items {
  display: flex;
  gap: 18rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 30px;
  cursor: pointer;
  position: relative;
}

.menu-bar {
  width: 100%;
  margin: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

/* Animation for Active State */
.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.menu-toggle {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a:hover:after {
  width: 100%;
}

.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 65, 232, 0.4);
}

/* body {
            background-color: var(--primary);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        } */

.title-section {
  padding-top: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.title-section h2 {
  font-size: 2rem;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 1rem;
}

.filter-btn {
  background-color: #194d68;
  color: var(--light);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--light);
}

.influencer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.influencer-card {
  background-color: #194d68;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeIn 0.6s forwards;
  transition: transform 0.3s ease;
}

.influencer-card:hover {
  transform: translateY(-5px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--secondary);
}

.category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

.tech {
  background-color: rgba(108, 99, 255, 0.2);
  color: var(--primary-dark);
}

.lifestyle {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--success);
}

.gaming {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--warning);
}

.beauty {
  background-color: rgba(244, 67, 54, 0.2);
  color: var(--danger);
}

.progressBar {
  height: 6px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

.engagement .progressFill {
  background-color: var(--primary-dark);
}

.growth .progressFill {
  background-color: var(--success);
}

.influence .progressFill {
  background-color: var(--warning);
}

.chart-section {
  background-color: #194d68;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chart-title {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.chart-container {
  height: 400px;
  position: relative;
}

.bar {
  position: absolute;
  bottom: 0;
  width: 40px;
  border-radius: 6px 6px 0 0;
  transition: height 1s ease-in-out;
  cursor: pointer;
}

.bar-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.bar-value {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bar:hover .bar-value {
  opacity: 1;
}

footer {
  background-color: #0021313e;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 240px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .items {
    display: none;
  }
  .items.show {
    display: flex;
    width: 100%;
    backdrop-filter: blur(8px);
    background-color: #0230479a;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    gap: 1rem;
    height: 280px;
    padding-top: 2rem;
  }
  .items .btn {
    margin: 0 auto;
    width: auto;
  }

  .menu-toggle {
    display: block;
  }
  .nav-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  nav ul {
    gap: 1rem;
  }

  .influencer-grid {
    grid-template-columns: 1fr;
  }

  .title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .chart-section {
    display: none;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}
