:root {
  --bg: #050505;
  --text: #e0e0e0;
  --muted: #8892b0;
  --accent: #ffbf00;
  /* Neon Amber / Gold */
  --accent-glow: #b36b00;
  --cyan: #00ffff;
  /* Keeps the cyan contrast */
  --card-bg: rgba(12, 10, 8, 0.9);
  /* Slightly warmer dark bg */
  --card-border: rgba(255, 191, 0, 0.3);
  --grid-color: rgba(255, 191, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  /* Sci-Fi Grid Background */
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center top;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  /* Terminal font */
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* cursor: crosshair; */
  cursor: none;
}

/* CRT Scanline Effect */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2000;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

/* Interactive Elements Cursor Override */
a,
button,
.btn-primary,
.card,
input,
textarea,
.logo-item {
  cursor: none;
}

/* Custom Sci-Fi Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-glow);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.cursor-follower.active {
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

.cursor-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
}

/* Mobile: Disable custom cursor */
@media (max-width: 768px) {

  .cursor-dot,
  .cursor-follower {
    display: none;
  }

  body,
  a,
  button,
  .btn-primary,
  .card,
  input,
  textarea,
  .logo-item {
    cursor: auto;
  }
}

h1,
h2,
h3,
.logo-main {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 3rem;
  /* Increased padding to push content away from edges */
}

.container.narrow {
  max-width: 800px;
}

.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
  text-shadow: 0 0 5px var(--accent);
}

.logo-main .accent {
  color: var(--accent);
}

.logo-sub {
  font-size: .7rem;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-links a::before {
  content: '[';
  margin-right: 5px;
  color: transparent;
  transition: color 0.3s;
}

.nav-links a::after {
  content: ']';
  margin-left: 5px;
  color: transparent;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  padding: 10rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  display: block;
}

/* Logos / Experience Section */
.section-logos {
  padding: 2rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--grid-color);
  background: rgba(0, 255, 65, 0.02);
}

.logo-title {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.logo-title::before,
.logo-title::after {
  content: '-';
  color: var(--accent);
  margin: 0 10px;
}

.logo-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.logo-item {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.7;
  transition: all 0.3s ease;
  cursor: default;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo-item:hover {
  opacity: 1;
  color: var(--accent);
  text-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.05);
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 1.5rem auto 3rem;
  max-width: 700px;
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  text-align: left;
  background: linear-gradient(90deg, rgba(0, 255, 255, 0.05), transparent);
}

.section {
  padding: 6rem 0;
}

.bg-light {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.2rem;
  color: var(--text);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  margin-top: 10px;
}

.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Sci-Fi Cards */
.card {
  background: var(--card-bg);
  padding: 2rem;
  border: 1px solid var(--card-border);
  position: relative;
  transition: all 0.3s ease;
  /* Clip-path for angular corners */
  clip-path: polygon(20px 0, 100% 0,
      100% calc(100% - 20px), calc(100% - 20px) 100%,
      0 100%, 0 20px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 65, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--cyan);
}

.card p {
  color: #ccc;
  font-size: 0.95rem;
}

/* Process Section */
#process {
  counter-reset: process-counter;
}

#process .card::after {
  counter-increment: process-counter;
  content: "0" counter(process-counter);
  position: absolute;
  top: 10px;
  right: 15px;
  font-family: 'Orbitron';
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 255, 65, 0.1);
  z-index: 0;
}

/* About Section */
.about-content h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  border-bottom: 1px dashed var(--muted);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.about-content p {
  color: #ccc;
}

/* Stats Grid */
.stats-grid {
  display: flex;
  justify-content: space-around;
  margin: 3rem 0;
  gap: 2rem;
  flex-wrap: wrap;
  text-align: center;
  background: rgba(0, 255, 65, 0.05);
  /* Slight green tint background */
  padding: 2rem;
  border: 1px solid var(--accent);
  position: relative;
}

.stats-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.stats-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Buttons */
.btn-primary {
  background: transparent;
  color: var(--accent);
  padding: 1rem 2.5rem;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-family: 'Orbitron';
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-primary:hover {
  color: black;
  box-shadow: 0 0 20px var(--accent);
}

.btn-primary:hover::before {
  left: 0;
}

.cta {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 65, 0.05) 100%);
  border-top: 1px solid var(--card-border);
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 2.5rem;
  border: 1px solid var(--accent);
}

.form input,
.form textarea {
  padding: 1rem;
  border: 1px solid var(--muted);
  background: #050505;
  color: var(--accent);
  font-family: 'Share Tech Mono';
  font-size: 1.1rem;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--card-border);
}

/* Lists */
.checklist li::before {
  content: ">>";
  color: var(--accent);
  margin-right: 12px;
  font-weight: bold;
  text-shadow: 0 0 5px var(--accent-glow);
}

.bullets li::before {
  content: ">>";
  color: var(--cyan);
  margin-right: 12px;
  font-weight: bold;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent);
    margin: 6px auto;
    box-shadow: 0 0 5px var(--accent);
    transition: 0.3s;
  }

  /* Hamburger Animation */
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    border-right: 2px solid var(--accent);
    transition: 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}