:root {
  --primary-color: #00f3ff;
  --secondary-color: #bc13fe;
  --bg-color: #050510;
  --card-bg: rgba(20, 20, 35, 0.7);
  --text-color: #e0e6ed;
  --header-font: "Orbitron", sans-serif;
  --body-font: "Rajdhani", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--body-font);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Scanlines Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.1)
  );
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.3;
}

/* Header */
header {
  text-align: center;
  padding: 60px 20px;
  position: relative;
}

.logo-container {
  margin-bottom: 20px;
}

.logo {
  max-width: 150px;
  filter: drop-shadow(0 0 10px var(--primary-color));
  animation: float 6s ease-in-out infinite;
}

.main-title {
  font-family: var(--header-font);
  font-size: 3.5rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-shadow:
    0 0 10px var(--primary-color),
    0 0 20px var(--primary-color);
  position: relative;
  display: inline-block;
}

.subtitle {
  color: var(--secondary-color);
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.card-header i {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-right: 15px;
  text-shadow: 0 0 10px var(--secondary-color);
}

.card-header h2 {
  font-family: var(--header-font);
  font-size: 1.5rem;
  color: #fff;
}

.card-content h3 {
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.card-content h3 i {
  margin-right: 8px;
  font-size: 0.9em;
}

.card-content ul {
  list-style: none;
  margin-left: 5px;
}

.card-content ul li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.4;
}

.card-content ul li::before {
  content: ">";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

.blink {
  animation: blink 1s infinite;
  color: var(--primary-color);
  font-family: var(--header-font);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scroll Animation Class */
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  .main-title {
    font-size: 2.5rem;
  }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-logo img {
  height: 40px;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.nav-logo span {
  font-family: var(--header-font);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--header-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 25, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 243, 255, 0.2);
  list-style: none;
  min-width: 150px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-color);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
  background: rgba(0, 243, 255, 0.1);
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: rgba(5, 5, 16, 0.95);
    width: 100%;
    padding: 20px 0;
    transition: 0.3s;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 20px;
    display: none;
  }

  .nav-item.dropdown:hover .dropdown-menu {
      display: block;
  }
}
