/* --- CSS VARIABLES & RESET --- */
:root {
  --bg-color: #0a0a0a;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --accent-primary: #5d3fd3; /* Deep Indigo */
  --accent-secondary: #00ff9d; /* Matrix Green */
  --accent-alert: #ff0055; /* Radical Red */
  --card-bg: #111111;
  --border-color: #333333;

  --font-main: "Space Grotesk", sans-serif;
  --font-code: "Space Mono", monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-code);
  font-size: 1.2rem;
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  display: inline-block;
  border-bottom: 1px solid var(--accent-secondary);
  padding-bottom: 5px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-code);
  font-weight: 700;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent-secondary);
  color: var(--bg-color);
  box-shadow: 4px 4px 0px var(--text-main);
  transform: translate(-2px, -2px);
}

/* --- BACKGROUND CANVAS --- */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  pointer-events: none;
}

/* --- HEADER --- */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent-secondary);
}

/* --- HERO SECTION --- */
#about {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: left;
  padding-top: 60px;
}

.about-content {
  width: 100%;
}

.pre-title {
  font-family: var(--font-code);
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: block;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-main);
}

.about-subtitle {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- SKILLS / TECH STACK --- */
#stack {
  padding: 100px 0;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  transition: 0.3s;
  position: relative;
}

.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.card h3 {
  font-family: var(--font-code);
  margin-bottom: 15px;
  color: var(--text-main);
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.8rem;
  font-family: var(--font-code);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-secondary);
}

/* --- WORK / PROJECTS --- */
#projects {
  padding: 100px 0;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 40px;
  overflow: hidden;
}

.project-img {
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: var(--font-code);
  font-size: 4rem;
}

.project-img img {
  width: 100%;
}

.project-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-info h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-role {
  font-family: var(--font-code);
  color: var(--accent-alert);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* --- RESUME --- */
#resume {
  padding: 100px 0;
  background: #0d0d0d;
}

.resume-entry {
  border-left: 2px solid var(--border-color);
  padding-left: 30px;
  margin-bottom: 40px;
  position: relative;
}

.resume-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
}

.resume-date {
  font-family: var(--font-code);
  color: var(--accent-primary);
  font-size: 0.9rem;
  margin-bottom: 5px;
  display: block;
}

.resume-entry h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.resume-entry h4 {
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 15px;
}

/* --- CONTACT --- */
#contact {
  padding: 100px 0;
  text-align: center;
}

.contact-box {
  border: 1px solid var(--border-color);
  padding: 60px;
  display: inline-block;
  width: 100%;
  max-width: 600px;
  background: var(--card-bg);
}

.email-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin: 20px 0;
}

.email-link:hover {
  color: var(--accent-secondary);
}

footer {
  padding: 40px 0;
  text-align: center;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-img {
    height: 200px;
  }
  h1 {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  } /* Simplified for demo */
}
