/* Complete CSS for Hikaru API Dashboard */
:root {
  --primary: #6C63FF;
  --primary-dark: #564FD9;
  --secondary: #00D1FF;
  --accent: #FF6584;
  --dark: #1A1A2E;
  --darker: #0F0F1A;
  --light: #F8F9FA;
  --lighter: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --glass: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass Navbar */
.navbar {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-brand i {
  margin-right: 12px;
  font-size: 1.8rem;
}

.navbar-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--dark);
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 50px;
}

.navbar-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.navbar-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.navbar-links a:hover {
  color: var(--primary);
}

.navbar-links a i {
  font-size: 0.9rem;
}

.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--lighter) !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* Status Toggle Button */
.status-toggle {
  position: fixed;
  right: 30px;
  top: 85px;
  z-index: 1001;
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1002;
}

.status-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.status-toggle i {
  transition: transform 0.3s ease;
}

/* Interactive Status Bar */
.status-bar {
  background: var(--lighter);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  position: relative;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}
  max-height: 1000px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: max-height 0.4s ease, opacity 0.4s ease;

.status-bar.hidden {
  transform: scaleY(0);
  opacity: 0;
  height: 0;
  max-height: 0;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.status-bar.hidden + .status-toggle i {
  transform: rotate(180deg);
}

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

.status-card {
  background: var(--lighter);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.status-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.1);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}

.status-header i {
  font-size: 1.3rem;
  color: var(--primary);
}

.status-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--dark);
}

.status-badge {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--success);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.enterprise {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.status-badge.stable {
  background: var(--info);
}

.status-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.status-indicator.online {
  color: var(--success);
}

.status-indicator.offline {
  color: var(--danger);
}

.status-indicator.degraded {
  color: var(--warning);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}

.pulse-ring {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-animation 1.5s infinite;
  opacity: 0.7;
}

.status-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.metric strong {
  font-size: 1rem;
  font-weight: 700;
}

.security-visual {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shield {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
}

.security-level {
  flex: 1;
}

.security-level span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.encryption-bar {
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.encryption-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--info));
  border-radius: 3px;
  width: 100%;
}

.threats-blocked {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.threats-blocked i {
  color: var(--accent);
}

.health-metrics {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.progress-bar {
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: width 0.5s ease;
}

.progress-fill.cpu {
  background: linear-gradient(90deg, var(--info), var(--primary));
}

.progress-fill.memory {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.progress-bar span {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  font-weight: 600;
  color: white;
}

.network-status {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.network-status i {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 200px 0 100px;
  background: linear-gradient(135deg, #F8F9FA, #E9F5FF);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: var(--lighter);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  min-width: 140px;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 1.2rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn i {
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--lighter);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--lighter);
  transform: translateY(-3px);
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.api-visualization {
  width: 400px;
  height: 400px;
  position: relative;
}

.server-node {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.server-node.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.server-node.secondary {
  background: linear-gradient(135deg, var(--secondary), #00B4D8);
  top: 20%;
  right: 10%;
  z-index: 2;
}

.server-node.tertiary {
  background: linear-gradient(135deg, var(--accent), #FF477E);
  bottom: 20%;
  left: 10%;
  z-index: 2;
}

.connection-line {
  position: absolute;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 8px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 1;
  border-radius: 10px;
}

.data-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-move 3s infinite;
}

.particle:nth-child(1) {
  --tx: 50px;
  --ty: -30px;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  --tx: -40px;
  --ty: 20px;
  animation-delay: 0.5s;
}

.particle:nth-child(3) {
  --tx: 30px;
  --ty: 40px;
  animation-delay: 1s;
}

/* Features Section */
.features {
  padding: 100px 0;
  background: white;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--lighter);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5rem;
}

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

.feature-card p {
  color: var(--text-light);
}

.feature-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Animations */
@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(108, 99, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes particle-move {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero .container {
    gap: 40px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 40px;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: var(--lighter);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-links.active {
    display: flex;
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .hero {
    padding: 180px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .status-bar {
    top: 70px;
  }
  
  .status-toggle {
    top: 75px;
    right: 20px;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .api-visualization {
    width: 300px;
    height: 300px;
  }
  
  .server-node {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
/* Enhanced Features Section */
.features {
  padding: 100px 0;
  background: linear-gradient(to bottom, #f8f9fa, #e9f5ff);
}

.feature-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-tab {
  padding: 12px 24px;
  background: white;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.feature-tab:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

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

.feature-card-enhanced {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(108, 99, 255, 0.1);
}

.feature-icon-enhanced {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.feature-card-enhanced h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.feature-card-enhanced p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.feature-badge-enhanced {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
}

.feature-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-stat {
  text-align: center;
}

.feature-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

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

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