:root {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent-color: #4ade80;
  --accent-hover: #22c55e;
  --font-main: "Roboto", sans-serif;
  --font-mono: "Roboto Mono", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1, h2, h3, .logo, .nav-links a, .btn {
  font-family: var(--font-mono);
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3rem); 
  color: var(--text-primary);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.25rem, 3vw + 1rem, 1.75rem);
  color: var(--text-secondary);
  margin-bottom: 1em;
}

h3 {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 1.5em; 
}

p {
  font-size: 1rem;
  margin-bottom: 1.5em;
  color: var(--text-secondary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Navigation - Updated for Mobile */
.navbar {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid #333;
  gap: 15px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  flex-wrap: wrap; 
  list-style: none;
  gap: 20px;
}

.nav-links a {
  font-size: 1.1rem;
}

.nav-links a.active {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-color);
}

/* Hero Section */
.hero {
  margin: 60px 0;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project-card {
  background: var(--surface-color);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  color: var(--accent-color);
  margin-bottom: 0.5em;
}

.project-card p {
  flex-grow: 1;
}

/* Iframe and Utils */
.iframe-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

iframe {
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  width: 100%;
  max-width: 640px;
  height: 500px;
}