/* ------------------- Variables Colors -------------- */

:root {
  --primary: #3498db;
  --secondary: #2980b9;
  --accent: #9b59b6;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --text: #333;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --transition: all 0.3s ease;

  /* Primary Colors */
  --color-primary: #6366f1;
  --color-secondary: #8b5cf6;
  --color-accent: #06b6d4;

  /* Background Colors */
  --color-bg-dark: #0f172a;
  --color-bg-medium: #1e293b;
  --color-bg-light: rgba(15, 23, 42, 0.8);

  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;

  /* Border Colors */
  --color-border-primary: rgba(99, 102, 241, 0.3);
  --color-border-secondary: rgba(99, 102, 241, 0.2);
  --color-border-light: rgba(99, 102, 241, 0.1);

  /* Social Icon Colors */
  --color-social-bg: rgba(99, 102, 241, 0.1);
  --color-social-border: rgba(99, 102, 241, 0.3);
  --color-social-hover: #6366f1;

  /* Gradient Colors */
  --gradient-primary: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-accent)
  );
  --gradient-bg: linear-gradient(
    135deg,
    var(--color-bg-dark) 0%,
    var(--color-bg-medium) 100%
  );
  --gradient-underline: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  --gradient-cube: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*user-select: none;*/
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
   font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--color-text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap:50px;
  overflow-x: hidden;
  list-style-type: none;
  text-decoration: none;
}

/* -------------------------------------------- Background Animation -------------------------------------- */

/* AI Background Elements */
.ai-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -111;
  background: var(--gradient-bg);
}

/* Neural Nodes */
.neural-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px var(--color-primary);
  animation: pulse 3s infinite;
}

/* Neural Connections */
.neural-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  transform-origin: left center;
}

/* Light Beams */
.light-beam {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle,
    var(--color-border-primary) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  animation: float 15s infinite linear;
}

/* Floating Particles */
.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
  filter: blur(1px);
  animation: floatParticle 8s infinite ease-in-out;
}

/* Grid Lines */
.grid-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-border-light),
    transparent
  );
  animation: gridPulse 4s infinite ease-in-out;
}

.grid-line.horizontal {
  width: 100%;
  height: 1px;
  left: 0;
}

.grid-line.vertical {
  width: 1px;
  height: 100%;
  top: 0;
}

/* Data Streams */
.data-stream {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-accent),
    transparent
  );
  animation: dataFlow 4s infinite linear;
  opacity: 0.7;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(100px, -50px) rotate(90deg);
  }

  50% {
    transform: translate(50px, 100px) rotate(180deg);
  }

  75% {
    transform: translate(-100px, 50px) rotate(270deg);
  }
}

@keyframes floatParticle {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }

  25% {
    transform: translate(50px, -30px);
    opacity: 0.7;
  }

  50% {
    transform: translate(30px, 50px);
    opacity: 0.3;
  }

  75% {
    transform: translate(-50px, 30px);
    opacity: 0.7;
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes dataFlow {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}



/* ===================================== Header Section ======================================= */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* ----------------------------------------  Header Styles ---------------------------------  */
.ai-header {
  background: linear-gradient(
    135deg,
    rgba(16, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  /* z-index: 999; */
  /* overflow: hidden; */
 
}

.header-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  list-style-type:none;
  text-decoration: none;
  z-index: 2;
}

/* ---------- logo Style ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shine 3s infinite linear;
}

.logo-icon i {
  font-size: 24px;
  color: white;
  z-index: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 1px;
}

/* ---------- nav bar Style ---------- */

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: #38bdf8;
}

.nav-item.active {
  color: #38bdf8;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.search-box i {
  color: #64748b;
  margin-right: 8px;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 180px;
}

.search-box input::placeholder {
  color: #64748b;
}

.action-btn {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 24px;
  cursor: pointer;
}

/* ---------------------------------------- Sidebar Style -------------------------------------- */
.sidebar {
  width: 280px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
  height: 100vh;
  padding-top: 90px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.sidebar-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  padding: 0 25px 10px;
  letter-spacing: 1px;
}

.sidebar-menu {
  list-style: none;
}

.menu-item {
  padding: 12px 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #e2e8f0;
}

.menu-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-right: 3px solid #38bdf8;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*  ------------------------------------------- background Animation  --------------------------------------  */
.neural-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #38bdf8;
  animation: pulse 2s infinite;
}

.neural-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  transform-origin: left center;
}

Hero Section .hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #38bdf8, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.1);
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 15px;
  padding: 25px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #94a3b8;
}

.trend {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #10b981;
}

.trend.down {
  color: #ef4444;
}

/*  ----------------------------------------------  Animations --------------------------------------  */
@keyframes shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ----------------------------------------------- Responsive Design ------------------------------------ */

@media (max-width: 1024px) {

  .nav-menu {
    gap: 20px;
  }

  .search-box input {
    width: 140px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}



@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(56, 189, 248, 0.2);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    font-size: 18px;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .search-box {
    display: none;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 100px 20px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 800;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}




