/* Color Palette Variables */
:root {
  --bg-color: #1a1d1a;
  --card-bg: rgba(255, 255, 255, 0.05);
  --accent-color: #a3b18a;
  --hover-color: rgba(88, 129, 87, 0.15);
  --text-main: #e0e0e0;
  --text-dim: #a0a0a0;
  --text-title: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
  --bg-color: #f4f4f2;
  --card-bg: rgba(0, 0, 0, 0.03);
  --accent-color: #588157;
  --hover-color: rgba(94, 94, 94, 0.15);
  --text-main: #1a1d1a;
  --text-dim: #4a4a4a;
  --text-title: #1a1d1a;
  --glass-border: rgba(0, 0, 0, 0.1);
}

body.light-mode .title::after {
  background: #ddd;
  color: #333;
}

/* Toggle Button Styling */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  fill: var(--accent-color);
  width: 20px;
  height: 20px;
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  margin: 0;
  line-height: 1.6;
  overflow-x: hidden;
}


/* Hover state for links/cards */
body.cursor-hover .cursor-outline {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: var(--accent-color);
  opacity: 0.1;
}

/* Header & Hero */
header {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

#name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-color);
  text-transform: uppercase;
}

.hero {
  margin-top: 4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent-color);
  border-bottom: 4px solid var(--accent-color);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
}

/* Projects Grid */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-bottom: 2rem;
}

#projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Project Card */
.project {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
}

#projects.description>.project::after {
  opacity: 1;
}

.project:hover::before {
  opacity: 1;
}

.project::before,
.project::after {
  border-radius: inherit;
  content: "";
  height: 100%;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  transition: opacity 500ms;
  width: 100%;
}

.project::before {
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
      var(--hover-color),
      transparent 40%);
  z-index: 3;
}

.project::after {
  background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y),
      var(--hover-color),
      transparent 40%);
  z-index: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  position: relative;
  z-index: 5;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-title);
}

.title::after {
  content: "v" attr(version);
  font-size: 0.7rem;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0.6;
  background: #333;
  padding: 2px 6px;
  border-radius: 4px;
}

.web svg {
  fill: var(--text-dim);
}

.web:hover svg {
  fill: var(--accent-color);
}

/* Badges */
.languages {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.language {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(163, 177, 138, 0.2);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 20px;
}

.description {
  font-size: 0.95rem;
  color: var(--text-dim);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.last_updated {
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.last_updated::before {
  content: "Updated ";
}

/* Responsive tweak */
@media (max-width: 600px) {
  header {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}