:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a8a8b3;
  --background-color: #1a1a1a;
  --card-background: #242424;
  --border-color: rgb(10, 192, 192);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", serif;
}

body {
  background-color: var(--background-color);
  color: white;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.logo img {
  height: 100px;
  object-fit: contain;
  margin-left: 100px;
}

.nav-buttons {
  margin-right: 100px;
  display: flex;
  gap: 1rem;
}

.dashboard-btn,
.join-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.dashboard-btn {
  color: white;
  background: transparent;
  border: 1px solid var(--secondary-color);
}

.join-btn {
  color: white;
  background: var(--primary-color);
  border: none;
}

/* Main Content Styles */
main {
  padding: 2rem 4rem;
  text-align: center;
}

.header-text {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  overflow: hidden;
}

.title h1 {
  position: relative;
}

.text-wrapper {
  position: relative;
  display: inline-block;
}

.line {
  opacity: 0;
  position: relative;
  display: block;
  margin: 0;
  line-height: 1.2;
  transform-origin: left;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 2px;
}

.moving-container {
  position: relative;
  height: 1.2em;
  overflow: hidden;
}

.rotating-y {
  display: inline-block;
  animation: rotateY 3s linear infinite;
  transform-origin: center;
  color: var(--primary-color);
  opacity: 0;
  animation: rotateY 3s linear infinite, fadeIn 0.3s forwards;
  animation-delay: 0.8s, 0.8s;
}

.line1 {
  animation: slideInLeft 0.8s ease forwards, glow 2s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}

.line2 {
  position: absolute;
  width: 100%;
  animation: slideInLeft 0.8s ease forwards, fadeUpOut 0.8s ease forwards;
  animation-delay: 2s, 7s;
  z-index: 2;
}

.line3 {
  position: absolute;
  width: 100%;
  animation: slideInLeft 0.8s ease forwards, glow 2s ease-in-out infinite alternate, stayBelow 0.1s forwards,
    moveToYourPosition 0.8s forwards;
  animation-delay: 3.5s, 3.5s, 3.5s, 7s;
  z-index: 1;
}

@keyframes rotateY {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stayBelow {
  0%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes moveToYourPosition {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeUpOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(108, 92, 231, 0.2), 0 0 20px rgba(108, 92, 231, 0.2), 0 0 30px rgba(108, 92, 231, 0.2);
  }
  to {
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.4), 0 0 30px rgba(108, 92, 231, 0.4), 0 0 40px rgba(108, 92, 231, 0.4);
  }
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.campaign-container {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stats-dashboard-container {
  flex: 1;
  background: var(--card-background);
  border-radius: 15px;
  padding: 2rem;
  height: fit-content;
}

/* Campaign Selection Styles */
.campaign-selection {
  margin-bottom: 0.5rem;
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 15px;
  height: 140px;
}

.campaign-selection h3 {
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}

.campaign-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
}

.campaign-btn {
  padding: 0.6rem 0.8rem;
  flex: 1;
  min-width: 70px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.campaign-btn.active {
  background: var(--primary-color);
}

.campaign-btn:hover {
  background: var(--primary-color);
  opacity: 0.9;
}

.campaign-btn.pro .star {
  position: absolute;
  right: 10px;
  top: 5px;
  color: #ffd700;
  font-size: 0.8rem;
}

/* Stats Cards Styles */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.stat-card h2 {
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

/* Features List Styles */
.features-list {
  text-align: left;
  margin-top: 0.5rem;
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 15px;
  height: calc(100% - 160px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  color: var(--secondary-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.feature-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-item .checkmark {
  color: #4cd137;
  font-size: 1rem;
  margin-top: 3px;
}

.feature-item.disabled {
  opacity: 0.5;
  margin-left: 1.8rem;
  border-bottom: none;
}

.feature-item .highlight {
  color: #3498db;
  font-weight: bold;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-arrow {
  font-size: 0.8em;
  margin-left: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-background);
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 8px 0;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Optional: Animation for dropdown */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

/* Dashboard Area Styles */
.dashboard-area {
  margin-top: 2rem;
}

.graph-container {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
}

.graph-container h4 {
  text-align: left;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

canvas#streamGraph {
  width: 100% !important;
  height: 300px !important;
  background: var(--card-background);
}

.campaign-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.campaign-name {
  color: var(--secondary-color);
}

.original-price {
  text-decoration: line-through;
  color: var(--secondary-color);
}

.current-price {
  color: var(--primary-color);
  font-weight: bold;
}

.start-now-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.start-now-btn:hover {
  background: #5849c4;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  .container {
    padding: 1rem;
    flex-direction: column;
  }

  .campaign-container {
    flex: none;
    width: 100%;
  }

  .stats-dashboard-container {
    width: 100%;
  }

  .stats-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media screen and (max-width: 768px) {
  main {
    padding: 1rem;
  }

  .stats-cards {
    grid-template-columns: repeat(1, 1fr);
  }

  .campaign-price {
    flex-direction: column;
    gap: 1rem;
  }

  .price-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Features List Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.circle {
  height: 24px;
  width: 24px;
  border-radius: 24px;
  background-color: black;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999999; /* so that it stays on top of all other elements */
}

/* Responsive Styles */
@media screen and (max-width: 1060px) {
  .logo img {
    margin-left: 50px;
  }

  .nav-buttons {
    margin-right: 50px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    display: none;
  }

  .nav-buttons {
    margin-right: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .dashboard-btn,
  .join-btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* Campaign Price Responsive */
  .campaign-price {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .price-info {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .price-details {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .start-now-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--card-background);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  border-radius: 15px;
  padding: 2rem;
  gap: 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brief {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: start;
}

.brief-text {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.law {
  margin-bottom: 1rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1rem;
}
.law .law-content a {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.3rem;
  text-decoration: none;
}

.services .services-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-top: 1.3rem;
}

.service-item {
  margin-bottom: 0.5rem;
}

.icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.icons img {
  width: 24px;
  height: 24px;
}

.copyright {
  font-size: 0.9rem;
}

.privacy-container,
.tos-container {
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 15px;
  background-color: var(--card-background);
}

li {
  margin-bottom: 1rem;
  text-align: start;
  text-decoration: none;
  list-style-type: none;
  margin: 0 2rem;
}

ul {
  list-style-type: none;
}

.tos-container p {
  margin: 0 2rem;
}
