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

:root {
  --bg: #05070b;
  --panel: #0b0f15;
  --panel-2: #111823;
  --line: #1b2735;
  --cyan: #00d9ff;
  --cyan-soft: #00b7ff;
  --text: #eef3ff;
  --muted: #8b98ad;
  --glow: 0 0 15px rgba(0, 217, 255, 0.35);
}

body {
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 140, 255, 0.15),
      transparent 30%
    ),
    linear-gradient(180deg, #05070b, #040506);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  height: 100vh;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.3;
}

.app {
  display: flex;
  height: 100vh;
  width: 100%;
  padding: 14px;
  gap: 14px;
}

/* =========================
       SIDEBAR
    ==========================*/

.sidebar {
  width: 250px;
  background: linear-gradient(180deg, #0a0d12, #06080c);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
}

.logo {
  padding: 30px 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.logo h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 52px;
  line-height: 0.9;
  color: white;
  text-shadow: var(--glow);
}

.logo span {
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 10px;
  display: block;
}

.nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #0f141d, #0b1017);
  border: 1px solid #17212d;
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.25s;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: 0.25s;
}

.nav a:hover {
  transform: translateX(6px);
  border-color: var(--cyan);
  box-shadow: var(--glow);
  color: white;
}

.nav a:hover::before {
  transform: scaleY(1);
}

.nav a span {
  color: var(--cyan);
  font-size: 20px;
}

.side-bottom {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.scanner {
  height: 140px;
  border: 1px solid #173040;
  background: #050b12;
  position: relative;
  overflow: hidden;
}

.scanner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 4px,
    rgba(255, 255, 255, 0.02) 5px
  );
}

.scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 28px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 217, 255, 0.4),
    transparent
  );
  animation: scan 3s linear infinite;
}

@keyframes scan {
  from {
    top: -20%;
  }
  to {
    top: 120%;
  }
}

/* =========================
       CONTENT
    ==========================*/

.content {
  flex: 1;
  overflow: hidden;
}

.window {
  height: 100%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #090d14, #070a10);
  padding: 22px;
  overflow-y: auto;
  position: relative;
}

.window::-webkit-scrollbar {
  width: 8px;
}

.window::-webkit-scrollbar-thumb {
  background: var(--cyan);
}

.window::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.panel {
  background: linear-gradient(180deg, #0e141d, #0a0f16);
  border: 1px solid #182534;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-left {
  padding: 50px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  color: var(--cyan);
  font-family: 'Orbitron';
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-size: 14px;
}

.hero h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 72px;
  line-height: 0.9;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.08);
}

.hero p {
  color: var(--muted);
  max-width: 500px;
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 34px;
}

.btn {
  width: max-content;
  padding: 16px 28px;
  border: 1px solid var(--cyan);
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: 0.25s;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-100%);
  transition: 0.25s;
  z-index: 0;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  color: black;
  box-shadow: var(--glow);
}

.hero-right {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) contrast(1.1);
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)),
    radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.7));
}

/* =========================
       GRID
    ==========================*/

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.card {
  padding: 28px;
  min-height: 260px;
}

.card h3 {
  color: var(--cyan);
  font-family: 'Orbitron';
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-size: 16px;
}

.card h4 {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 20px;
}

.card p {
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid #182534;
  background: #091018;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
  opacity: 0.9;
}

.project:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.project-info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.95));
}

.project-info h5 {
  color: var(--cyan);
  font-size: 24px;
  margin-bottom: 6px;
}

.project-info span {
  color: #cfd8e6;
  font-size: 18px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-box {
  padding: 28px;
  min-height: 240px;
}

.contact-item {
  margin-bottom: 18px;
  font-size: 22px;
  color: #d8e4f5;
}

footer {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #182534;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8f9bb0;
  font-size: 18px;
  background: #090d14;
}

footer .socials {
  display: flex;
  gap: 24px;
}

footer .socials a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

/* =========================
       RESPONSIVE
    ==========================*/

@media (max-width: 1200px) {
  body {
    overflow: auto;
  }

  .app {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 48px;
  }
}
