* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #06080f;
  color: white;
  overflow-x: hidden;
}

.background {
  position: fixed;

  inset: 0;

  background:
    radial-gradient(circle at top, #2848ff33, transparent 40%),
    radial-gradient(circle at bottom, #8c3fff22, transparent 40%), #06080f;

  z-index: -2;
}

nav {
  position: fixed;

  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 25px 10%;

  backdrop-filter: blur(15px);

  background: rgba(0, 0, 0, 0.2);

  z-index: 999;
}

.logo {
  font-size: 28px;

  font-weight: 900;

  font-family: "Space Grotesk";
}

.logo span {
  color: #5ea0ff;
}

nav ul {
  display: flex;

  list-style: none;

  gap: 40px;
}

nav a {
  color: white;

  text-decoration: none;

  transition: 0.3s;
}

nav a:hover {
  color: #5ea0ff;
}

.hero {
  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 80px;

  padding: 0 10%;
}

.hero-content {
  max-width: 700px;

  flex: 1;
}

.hero-featured {
  flex: 0 0 auto;

  display: flex;

  align-items: center;

  justify-content: center;
}

.intro {
  color: #5ea0ff;

  letter-spacing: 5px;

  margin-bottom: 15px;
}

h1 {
  font-size: 90px;

  font-family: "Space Grotesk";

  line-height: 1;
}

h2 {
  margin-top: 15px;

  color: #8cb9ff;

  font-size: 38px;

  height: 50px;
}

.description {
  margin-top: 35px;

  color: #c4c4c4;

  line-height: 1.8;

  font-size: 18px;
}

.buttons {
  display: flex;

  gap: 20px;

  margin-top: 45px;
}

.buttons a {
  text-decoration: none;

  padding: 15px 34px;

  border-radius: 50px;

  transition: 0.3s;
}

.primary {
  background: #4c83ff;

  color: white;
}

.primary:hover {
  transform: translateY(-5px);

  box-shadow: 0 0 30px #4c83ff;
}

.secondary {
  border: 1px solid #4c83ff;

  color: white;
}

.secondary:hover {
  background: #4c83ff;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#cursor-glow {
  position: fixed;

  width: 350px;
  height: 350px;

  border-radius: 50%;

  pointer-events: none;

  background: radial-gradient(circle, #4f8cff33, transparent 70%);

  transform: translate(-50%, -50%);

  transition: transform 0.05s linear;

  z-index: -1;
}

.projects {
  padding: 120px 10%;
}

.section-title {
  font-size: 50px;

  margin-bottom: 70px;

  font-family: "Space Grotesk";
}

.project-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 35px;
}

.project-card {
  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 25px;

  padding: 25px;

  backdrop-filter: blur(20px);

  transition: 0.4s;

  transform-style: preserve-3d;
}

.project-card:hover {
  transform: perspective(1000px) rotateX(6deg) rotateY(-6deg) translateY(-12px);

  box-shadow: 0 0 50px rgba(80, 130, 255, 0.35);
}

.project-image {
  height: 190px;

  border-radius: 18px;

  margin-bottom: 25px;

  background: linear-gradient(135deg, #3d6fff, #8a5dff);
}

.project-card h3 {
  margin-bottom: 15px;
}

.project-card p {
  color: #bbb;

  line-height: 1.7;
}

.tags {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 25px;
}

.tags span {
  padding: 8px 16px;

  border-radius: 30px;

  background: #121a2b;

  color: #6ea6ff;
}

section,
.project-card {
  opacity: 0;

  transform: translateY(60px);

  transition: 1s;
}

.visible {
  opacity: 1;

  transform: none;
}

/* BOOT SCREEN */

#boot-screen {
  position: fixed;

  inset: 0;

  background: #05070c;

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 9999;

  animation: bootFade 1s ease forwards;

  animation-delay: 2.8s;
}

.terminal {
  width: 500px;

  padding: 30px;

  background: #080d18;

  border: 1px solid #24334d;

  border-radius: 15px;

  font-family: monospace;

  color: #5ea0ff;
}

#boot-text {
  font-size: 18px;

  line-height: 2;
}

@keyframes bootFade {
  to {
    opacity: 0;

    pointer-events: none;
  }
}

/* STATS */

.stats {
  padding: 100px 10%;

  display: flex;

  justify-content: center;

  gap: 40px;

  flex-wrap: wrap;
}

.stat-card {

    width:260px;

    min-height:220px;

    padding:40px;

    text-align:center;

    background:rgba(255,255,255,.04);

    border-radius:25px;

    border:1px solid rgba(255,255,255,.1);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.stat-card h3 {

    font-size:55px;

    line-height:1;

    color:#5ea0ff;

    font-family:'Space Grotesk';

    margin:0;

}

.stat-card p {

    color:#aaa;

    margin-top:15px;

}

.about {
  padding: 120px 10%;
}

.about-container {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;
}

.profile-card {
  padding: 35px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(20px);
}

.profile-card h3 {
  color: #5ea0ff;

  margin-bottom: 30px;
}

.profile-line {
  display: flex;

  justify-content: space-between;

  padding: 15px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  color: #ddd;
}

.profile-line span {
  color: #777;
}

.online {
  color: #55ff9a;
}

.about-text {
  color: #bbb;

  line-height: 1.8;

  font-size: 18px;
}

.timeline {
  margin-top: 40px;

  border-left: 2px solid #4c83ff;

  padding-left: 30px;
}

.timeline div {
  margin-bottom: 35px;
}

.timeline span {
  display: block;

  color: #5ea0ff;

  font-weight: bold;

  margin-bottom: 8px;
}

.terminal-section {
  padding: 120px 10%;
}

.terminal-window {
  background: #05070c;

  border-radius: 20px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  overflow: hidden;

  box-shadow: 0 0 50px rgba(80, 130, 255, 0.15);
}

.terminal-header {
  height: 45px;

  background: #111827;

  display: flex;

  align-items: center;

  gap: 10px;

  padding: 0 20px;
}

.terminal-header span {
  width: 12px;

  height: 12px;

  border-radius: 50%;

  background: #555;
}

.terminal-header p {
  margin-left: 15px;

  color: #888;

  font-family: monospace;
}

#terminal-output {
  min-height: 300px;

  padding: 25px;

  font-family: monospace;

  color: #7fb0ff;

  line-height: 1.8;
}

.terminal-input {
  display: flex;

  gap: 10px;

  padding: 20px;

  font-family: monospace;

  color: #5ea0ff;
}

#command-input {
  background: none;

  border: none;

  outline: none;

  color: white;

  font-family: monospace;

  font-size: 16px;

  width: 100%;
}

.skills {
  padding: 120px 10%;
}

.skill-orbit {
  height: 550px;

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;
}

.core {
  width: 170px;

  height: 170px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: radial-gradient(circle, #4f8cff, #172554);

  font-family: "Space Grotesk";

  font-weight: bold;

  box-shadow: 0 0 50px #4f8cff;

  animation: pulse 3s infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.08);
  }
}

.skill-node {
  position: absolute;

  padding: 15px 25px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 50px;

  backdrop-filter: blur(15px);

  color: #ddd;

  cursor: pointer;

  transition: 0.4s;

  animation: float 5s infinite ease-in-out;
}

.skill-node:hover {
  color: white;

  background: #4f8cff;

  box-shadow: 0 0 35px #4f8cff;

  transform: scale(1.2);
}

@keyframes float {
  50% {
    transform: translateY(-20px);
  }
}

.node1 {
  top: 60px;

  left: 25%;
}

.node2 {
  top: 180px;

  left: 10%;
}

.node3 {
  bottom: 100px;

  left: 20%;
}

.node4 {
  top: 80px;

  right: 25%;
}

.node5 {
  top: 230px;

  right: 10%;
}

.node6 {
  bottom: 120px;

  right: 20%;
}

.node7 {
  bottom: 40px;

  left: 45%;
}

.node8 {
  top: 40px;

  left: 48%;
}

#project-modal {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.75);

  backdrop-filter: blur(15px);

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  pointer-events: none;

  transition: 0.4s;

  z-index: 5000;
}

#project-modal.active {
  opacity: 1;

  pointer-events: auto;
}

.modal-content {
  width: min(700px, 90%);

  background: #0b1020;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 30px;

  padding: 45px;

  animation: modalIn 0.4s;
}

@keyframes modalIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}

.modal-content button {
  float: right;

  background: none;

  border: none;

  color: white;

  font-size: 30px;

  cursor: pointer;
}

.modal-content h2 {
  color: white;
}

.modal-content p {
  margin-top: 25px;

  color: #bbb;

  line-height: 1.8;
}

#modal-tech {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  margin-top: 20px;
}

#modal-tech span {
  background: #172554;

  padding: 10px 18px;

  border-radius: 30px;
}

.modal-buttons {
  display: flex;

  gap: 20px;

  margin-top: 35px;
}

.modal-buttons a {
  padding: 12px 25px;

  border-radius: 30px;

  background: #4f8cff;

  color: white;

  text-decoration: none;
}

.contact {
  padding: 120px 10%;

  padding-bottom: 180px;
}

.contact-card {
  max-width: 800px;

  margin: auto;

  padding: 60px;

  text-align: center;

  border-radius: 35px;

  background: linear-gradient(
    145deg,
    rgba(79, 140, 255, 0.15),
    rgba(255, 255, 255, 0.04)
  );

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(25px);

  box-shadow: 0 0 80px rgba(79, 140, 255, 0.15);
}

.status {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 10px 20px;

  border-radius: 30px;

  background: #071a12;

  color: #55ff9a;

  margin-bottom: 30px;
}

.status span {
  width: 10px;

  height: 10px;

  background: #55ff9a;

  border-radius: 50%;

  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  50% {
    opacity: 0.3;

    transform: scale(1.5);
  }
}

.contact-card h3 {
  font-size: 45px;

  font-family: "Space Grotesk";

  margin-bottom: 25px;
}

.contact-card p {
  color: #aaa;

  font-size: 18px;

  line-height: 1.8;
}

.contact-links {
  margin-top: 40px;

  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;
}

.contact-links a {
  padding: 15px 35px;

  border-radius: 40px;

  text-decoration: none;

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.15);

  transition: 0.3s;
}

.contact-links a:hover {
  background: #4f8cff;

  box-shadow: 0 0 30px #4f8cff;

  transform: translateY(-5px);
}

#command-palette {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(20px);

  display: flex;

  justify-content: center;

  align-items: flex-start;

  padding-top: 120px;

  opacity: 0;

  pointer-events: none;

  transition: 0.3s;

  z-index: 9999;
}

#command-palette.active {
  opacity: 1;

  pointer-events: auto;
}

.command-box {
  width: 500px;

  background: #0b1020;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 20px;

  padding: 25px;
}

#command-search {
  width: 100%;

  padding: 15px;

  background: #05070c;

  border: none;

  outline: none;

  color: white;

  font-size: 18px;

  border-radius: 12px;
}

.command-results {
  margin-top: 20px;

  color: #aaa;

  font-family: monospace;
}

#theme-toggle {
  background: none;

  border: none;

  color: white;

  font-size: 22px;

  cursor: pointer;
}

body.light {
  background: #f5f7ff;

  color: #111;
}

body.light .project-card,
body.light .profile-card,
body.light .terminal-window {
  background: white;

  color: #111;
}

body.light p {
  color: #444;
}

#page-loader {
  position: fixed;

  inset: 0;

  background: #06080f;

  z-index: 10000;

  animation: pageLoad 1.2s forwards;
}

@keyframes pageLoad {
  to {
    opacity: 0;

    pointer-events: none;
  }
}

.featured-project {
  margin-top: 55px;

  width: 420px;

  padding: 30px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(20px);

  box-shadow: 0 0 50px rgba(79, 140, 255, 0.12);

  animation: floatCard 6s infinite ease-in-out;
}

@keyframes floatCard {
  50% {
    transform: translateY(-10px);
  }
}

.featured-header {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #55ff9a;

  font-size: 12px;

  letter-spacing: 2px;
}

.featured-header span {
  width: 8px;

  height: 8px;

  background: #55ff9a;

  border-radius: 50%;

  animation: pulseDot 2s infinite;
}

.featured-project h3 {
  font-size: 32px;

  margin-top: 20px;

  font-family: "Space Grotesk";
}

.featured-project p {
  color: #aaa;

  line-height: 1.7;

  margin-top: 15px;
}

.featured-tags {
  display: flex;

  gap: 10px;

  margin: 25px 0;

  flex-wrap: wrap;
}

.featured-tags span {
  padding: 8px 15px;

  border-radius: 30px;

  background: #111b33;

  color: #7fb0ff;

  font-size: 14px;
}

.featured-project a {
  color: white;

  text-decoration: none;

  display: inline-block;

  margin-top: 10px;

  transition: 0.3s;
}

.featured-project a:hover {
  color: #5ea0ff;

  transform: translateX(5px);
}

.system-status {
  margin-top: 25px;

  display: flex;

  align-items: center;

  gap: 10px;

  font-family: monospace;

  color: #777;
}

.system-status span {
  width: 9px;

  height: 9px;

  background: #55ff9a;

  border-radius: 50%;

  box-shadow: 0 0 15px #55ff9a;
}

@media (max-width: 900px) {
  nav {
    padding: 20px 5%;
  }

  nav ul {
    display: none;
  }

  .hero {
    flex-direction: column;

    justify-content: center;

    gap: 50px;

    padding-top: 120px;
  }

  .hero-featured {
    width: 100%;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 30px;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .skill-orbit {
    height: 450px;
  }

  .contact-card {
    padding: 35px;
  }

  .contact-card h3 {
    font-size: 32px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .featured-project {
    width: 100%;

    max-width: 380px;
  }
}
