:root {
  /* Dark Base Colors */
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --tertiary-dark: #0d1117;

  /* Neon/Vibrant Colors */
  --neon-red: #ff0040;
  --neon-yellow: #ffff00;
  --neon-green: #00ff41;
  --neon-cyan: #00ffff;
  --neon-turquoise: #00e5cc;
  --neon-orange: #ff6600;

  /* Accent Colors */
  --accent-primary: #00ff41;
  --accent-secondary: #00ffff;
  --accent-tertiary: #ff0040;

  /* Text Colors */
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --text-dim: #707070;

  /* Border & Effects */
  --border-gray: #2d2d2d;
  --glow-green: rgba(0, 255, 65, 0.5);
  --glow-cyan: rgba(0, 255, 255, 0.5);
  --glow-red: rgba(255, 0, 64, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background-color: #000000;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

html {
  min-height: 100vh;
}

/* TRON Background Canvas */
#tron-canvas,
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", "Arial Black", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 2rem;
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--glow-green);
}

h2 {
  font-size: 1.6rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 3px var(--glow-cyan);
}

h3 {
  font-size: 1.3rem;
  color: var(--text-light);
}

code,
pre {
  font-family: "Fira Code", "Courier New", monospace;
  background-color: var(--tertiary-dark);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  border: 1px solid var(--border-gray);
}

.mono {
  font-family: "Share Tech Mono", monospace;
}

a {
  text-decoration: none;
  color: var(--accent-primary);
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--glow-cyan);
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(10, 10, 10, 0.9) 100%
  ) !important;
  border-bottom: 2px solid var(--neon-green);
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.3);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-expand-lg {
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(10, 10, 10, 0.9) 100%
  ) !important;
}

.navbar-toggler {
  background-color: transparent !important;
  border: 2px solid var(--neon-green) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 20px var(--glow-green) !important;
  outline: none !important;
}

.navbar-nav {
  gap: 0.25rem;
  margin-left: 1rem !important;
}

.nav-item {
  display: flex;
  align-items: center;
}

.navbar-brand {
  color: var(--neon-green) !important;
  font-family: "Orbitron", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  text-shadow: 0 0 10px var(--glow-green);
  letter-spacing: 2px;
}

.navbar-brand i {
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.nav-link {
  color: var(--text-light) !important;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0.75rem !important;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link:hover {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px var(--glow-cyan);
}

.nav-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  opacity: 1;
  display: inline-block;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  border: 2px solid var(--neon-green);
  color: var(--primary-dark);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--glow-green);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
  border-color: var(--neon-cyan);
  color: var(--primary-dark);
  box-shadow: 0 0 30px var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--neon-cyan);
  color: var(--primary-dark);
  box-shadow: 0 0 30px var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--neon-red), #ff3366);
  border: 2px solid var(--neon-red);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  box-shadow: 0 0 20px var(--glow-red);
}

.btn-danger:hover {
  box-shadow: 0 0 30px var(--glow-red);
  transform: translateY(-2px);
}

.btn-dark {
  background: linear-gradient(135deg, #1a1a1a, #0d1117);
  border: 2px solid var(--border-gray);
  color: var(--text-light);
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px var(--glow-green);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Tech Card Styles */
.tech-card {
  background: linear-gradient(
    145deg,
    rgba(26, 26, 26, 0.9),
    rgba(13, 17, 23, 0.9)
  );
  border: 2px solid var(--border-gray);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(5px);
}

.tech-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 8px 40px rgba(0, 255, 65, 0.3);
  transform: translateY(-3px);
}

/* Card Styles */
.card {
  background: linear-gradient(
    145deg,
    rgba(26, 26, 26, 0.9),
    rgba(13, 17, 23, 0.9)
  );
  border: 2px solid var(--border-gray);
  color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  backdrop-filter: blur(5px);
}

.card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 8px 30px var(--glow-green);
}

.card-body {
  padding: 1.5rem;
  border-top: 3px solid var(--neon-green);
  box-shadow: 0 -2px 10px rgba(0, 255, 65, 0.3);
}

.card-title {
  color: var(--neon-cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.h-100 {
  height: 100%;
}

/* Form Styles */
.form-control {
  background-color: var(--tertiary-dark);
  border: 2px solid var(--border-gray);
  color: var(--text-light);
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: var(--secondary-dark);
  border-color: var(--neon-green);
  color: var(--text-light);
  box-shadow: 0 0 20px var(--glow-green);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-control.is-invalid {
  border-color: var(--neon-red);
  background-color: rgba(255, 0, 64, 0.05);
}

.form-label {
  color: var(--text-light);
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.invalid-feedback {
  color: var(--neon-red);
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: block;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease-out;
  margin-top: 1rem;
  border: 2px solid;
}

.alert-success {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.alert-danger {
  background: rgba(255, 0, 64, 0.1);
  border-color: var(--neon-red);
  color: var(--neon-red);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.2);
}

/* Badge Styles */
.badge {
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.3s ease;
  display: inline-block;
}

.badge-primary {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-turquoise));
  color: var(--primary-dark);
  border-color: var(--neon-green);
}

.badge-secondary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-turquoise));
  color: var(--primary-dark);
  border-color: var(--neon-cyan);
}

.text-muted {
  color: var(--text-gray) !important;
}

.text-danger {
  color: var(--neon-red) !important;
}

/* Main Content Area */
main.container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.gap-3 {
  gap: 1rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.me-3 {
  margin-right: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 0.5rem;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.5rem;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Icon Styles */
.display-1 {
  font-size: 5rem;
}

.display-4 {
  font-size: 3rem;
}

/* Tech Button Styles - Beautiful Neon Buttons */
.tech-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border: 3px solid;
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    var(--tertiary-dark),
    var(--secondary-dark)
  );
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tech-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.tech-btn:hover::before {
  width: 300px;
  height: 300px;
}

.tech-btn:hover {
  transform: translateY(-5px) scale(1.05);
  text-decoration: none;
}

.tech-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.tech-btn i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.tech-btn:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px currentColor);
}

/* Red Neon Button */
.btn-neon-red {
  color: var(--neon-red);
  border-color: var(--neon-red);
  box-shadow:
    0 0 20px rgba(255, 0, 64, 0.4),
    inset 0 0 20px rgba(255, 0, 64, 0.1);
  text-shadow: 0 0 10px rgba(255, 0, 64, 0.8);
}

.btn-neon-red:hover {
  color: var(--text-light);
  border-color: var(--neon-red);
  background: radial-gradient(
    circle,
    rgba(255, 0, 64, 0.3),
    var(--secondary-dark)
  );
  box-shadow:
    0 0 40px rgba(255, 0, 64, 0.8),
    0 0 60px rgba(255, 0, 64, 0.6),
    inset 0 0 30px rgba(255, 0, 64, 0.2);
  text-shadow:
    0 0 15px rgba(255, 0, 64, 1),
    0 0 25px rgba(255, 0, 64, 0.8);
}

/* Cyan Neon Button */
.btn-neon-cyan {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.4),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.btn-neon-cyan:hover {
  color: var(--text-light);
  border-color: var(--neon-cyan);
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.3),
    var(--secondary-dark)
  );
  box-shadow:
    0 0 40px rgba(0, 255, 255, 0.8),
    0 0 60px rgba(0, 255, 255, 0.6),
    inset 0 0 30px rgba(0, 255, 255, 0.2);
  text-shadow:
    0 0 15px rgba(0, 255, 255, 1),
    0 0 25px rgba(0, 255, 255, 0.8);
}

/* Green Neon Button */
.btn-neon-green {
  color: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow:
    0 0 20px rgba(0, 255, 65, 0.4),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.btn-neon-green:hover {
  color: var(--text-light);
  border-color: var(--neon-green);
  background: radial-gradient(
    circle,
    rgba(0, 255, 65, 0.3),
    var(--secondary-dark)
  );
  box-shadow:
    0 0 40px rgba(0, 255, 65, 0.8),
    0 0 60px rgba(0, 255, 65, 0.6),
    inset 0 0 30px rgba(0, 255, 65, 0.2);
  text-shadow:
    0 0 15px rgba(0, 255, 65, 1),
    0 0 25px rgba(0, 255, 65, 0.8);
}

/* Navigation Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-link.active {
  color: var(--neon-green) !important;
  text-shadow: 0 0 10px var(--glow-green);
}

.nav-link.active::before {
  width: 80%;
}

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes tron-scan {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}

/* Tron Name Effect Animation - Flicker */
@keyframes tron-flicker {
  0%,
  100% {
    opacity: 1;
  }
  48% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.85;
  }
  52% {
    opacity: 1;
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.95),
    rgba(26, 26, 26, 0.95)
  );
  border-top: 2px solid var(--neon-green);
  padding: 2rem 0;
  margin-top: auto;
  box-shadow: 0 -4px 20px rgba(0, 255, 65, 0.2);
  position: relative;
  z-index: 10;
}

/* Navbar Responsive Behavior */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    justify-content: flex-end;
  }

  .navbar-toggler {
    display: none !important;
  }

  .navbar-nav {
    flex-direction: row !important;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(
      180deg,
      rgba(26, 26, 26, 0.98),
      rgba(10, 10, 10, 0.98)
    );
    border-top: 1px solid var(--border-gray);
    margin-top: 1rem;
    padding: 1rem 0;
  }
}

/* Additional Responsive Adjustments */
@media (max-width: 991px) {
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }

  .navbar-brand {
    font-size: 1.4rem;
  }
  .nav-link {
    font-size: 1rem;
  }

  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .display-1 {
    font-size: 3rem;
  }

  .display-4 {
    font-size: 2rem;
  }
}
