:root {
  --primary: #fb8500;
  --primary-dark: #219ebc;
  --secondary: #ffb703;
  --dark: #023047;
  --light: #f8f9fa;
  --transition: all 0.3s ease;
}

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

body {
  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;
}
.hero-con {
  margin-left: 2rem;
}

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;
}

.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;
  align-items: center;
  justify-content: center;
  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%;
}

.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;
}

.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);
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
  animation: fadeIn 1s ease-out;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.highlight {
  color: var(--secondary);
  font-weight: 700;
}

.dashboard-preview {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  animation: slideIn 1s ease-out 0.5s forwards;
}

.dashboard-content {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-title {
  font-size: 22px;
  font-weight: 600;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
}

.dashboard-actions button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.dashboard-actions button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ranking-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  height: 100%;
}

.ranking-title {
  font-size: 16px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
}

.ranking-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ranking-number {
  width: 30px;
  height: 30px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 10px;
}

.ranking-info {
  flex: 1;
}

.ranking-name {
  font-weight: 600;
}

.ranking-score {
  font-size: 14px;
  opacity: 0.7;
}

.ranking-trend {
  color: #4caf50;
  font-size: 14px;
  font-weight: 600;
}

.ranking-trend.down {
  color: #f44336;
}

.chart-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chart-title {
  font-size: 16px;
  margin-bottom: 15px;
}

.chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 20px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 20px;
  transition: height 1s ease;
}

.chart-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  white-space: nowrap;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, #0f0f1a, #252942); */
  background: linear-gradient(135deg, #023047, #074b6e);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 100px;
  height: 100px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loader-text {
  font-size: 18px;
  animation: pulse 1.5s infinite;
}

.progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 15px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  opacity: 0.8;
}

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;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(100px, -50%);
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
  .dashboard-preview {
    right: -200px;
    width: 650px;
  }
}

@media (max-width: 992px) {
  .hero {
    height: auto;
    padding: 150px 0 80px;
  }
  .hero-con {
    margin-left: 0;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .dashboard-preview {
    position: relative;
    right: auto;
    top: 10%;
    transform: none;
    width: 100%;
    max-width: 700px;
    margin: 12rem auto 0;
    height: 350px;
  }

  .dashboard-main {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  .hero h1 {
    font-size: 36px;
  }
}
