/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* VS Code Dark Theme Colors */
  --color-bg: #1e1e1e;
  --color-bg-secondary: #252526;
  --color-text: #d4d4d4;
  --color-text-secondary: #858585;
  --color-blue: #569cd6; /* VS Code blue - for links */
  --color-green: #9cd656; /* Green - for accents */
  --color-yellow: #dcdcaa; /* VS Code yellow - for titles */
  --color-border: #3e3e42;
  --spacing-unit: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Fira Code", "Consolas", "Monaco", "Courier New", monospace;
  font-optical-sizing: auto;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-yellow);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue);
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
}

#home {
  padding-top: 8rem;
}

/* Typography */
.title {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: var(--color-yellow);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--color-green);
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--color-yellow);
}

.intro {
  margin-top: 3rem;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
}

/* Content */
.content {
  max-width: 650px;
}

.content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  padding: 2rem;
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  border-color: var(--color-blue);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-blue);
}

.product-description {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.product-meta {
  font-size: 0.85rem;
  color: var(--color-green);
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Footer */
.footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 1rem 0;
  text-align: center;
}

.footer p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.contact-link,
.contact-link:visited,
.contact-link:active,
.contact-link:hover {
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .title {
    font-size: 2.25rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

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

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }
}
