:root {
  --bg-color: #0d1117;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: #7c3aed;
  --card-bg: #1e293b;
}

body {
  background-color: var(--bg-color);
  font-family: sans-serif;
  color: var(--text-primary);
}

nav {
  margin: 0;
  display: flex;
  gap: 0;
  padding: 0;
  justify-content: flex-end;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 1rem;
}

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

#hero {
  padding: 6rem 2rem 4rem;
  max-width: 700px;
}

#hero h1 {
  font-size: 3.5rem;
  margin: 0 0 3.5rem;
  line-height: 1.1;
}

#hero p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

#services {
  padding: 4rem 2rem;
}

#services h2 {
  margin: 0 0 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

#services article {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

#work {
  padding: 4rem 2rem;
}

#work h2 {
  margin: 0 0 2rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.work-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
}

.work-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
}

.work-card a:hover {
  text-decoration: underline;
}

#contact {
  padding: 4rem 2rem;
}

#contact h2 {
  margin: 0 0 1rem;
}

#contact p {
  color: var(--text-secondary);
}

#contact strong {
  color: var(--text-primary);
}

footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--card-bg);
}

/* smoother font */
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

/* nav blur bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(13, 17, 23, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* smooth nav link transition */
nav a {
  transition: color 0.2s ease;
}

/* hero accent underline on h1 */
#hero h1 {
  background: linear-gradient(90deg, #f8fafc, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* card hover lift */
#services article,
.work-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#services article:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

/* subtle accent line on card top */
#services article:hover,
.work-card:hover {
  border-top: 1px solid var(--accent);
}

/* accent glow on work links */
.work-card a {
  transition: color 0.2s ease;
}

/* soft page max-width centering */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#audio-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1rem;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

#audio-toggle:hover {
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

#webcam {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 200;
  width: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#webcam img {
  width: 100%;
  display: block;
}
@media (max-width: 600px) {
  #hero h1 {
    font-size: 2.2rem;
  }

  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  #webcam {
    width: 120px;
    top: 5rem;
  }

  nav {
    justify-content: center;
  }

  main {
    padding: 0;
  }
}
