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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
nav {
  background: #1a1d29;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

nav h1 {
  font-size: 1.5rem;
}

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

nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #1e2a3a 0%, #2d3e50 100%);
  color: white;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 30%, rgba(0, 209, 178, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

#hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

#hero p {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.tagline {
  font-style: italic;
  opacity: 0.9;
  color: #00d1b2;
}

/* Stats Section */
#stats {
  background: #f9f9f9;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #00d1b2;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 209, 178, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #00d1b2;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

#about {
  background: #f4f4f4;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00d1b2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.about-text {
  flex: 1;
}

#about p {
  font-size: 1.2rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

/* Monitoring Section */
#monitoring {
  background: #fff;
}

.dashboard-screenshot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  background: #1a1d29;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #00d1b2;
}

.dashboard-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.dashboard-caption {
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  text-align: center;
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid #00d1b2;
}

/* Homelab Section */
#homelab {
  background: #f9f9f9;
}

.github-button {
  display: inline-block;
  background: linear-gradient(135deg, #1a1d29 0%, #2d3e50 100%);
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border: 2px solid #00d1b2;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.github-button:hover {
  background: #00d1b2;
  color: #1a1d29;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 209, 178, 0.4);
}

.github-button span {
  margin-right: 0.5rem;
}

.homelab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.homelab-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.homelab-card h3 {
  color: #1a1d29;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-bottom: 2px solid #00d1b2;
  padding-bottom: 0.5rem;
}

.homelab-card ul {
  list-style: none;
}

.homelab-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.homelab-card li:last-child {
  border-bottom: none;
}

.focus-areas {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.focus-areas h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.focus-areas ul {
  list-style: none;
}

.focus-areas li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.focus-areas li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #00d1b2;
}

/* Skills Section */
#skills {
  background: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: #f4f4f4;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #00d1b2;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-category:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 209, 178, 0.2);
}

.skill-category h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.skill-category li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00d1b2;
  font-weight: bold;
}

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

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  margin-bottom: 1rem;
  color: #00d1b2;
  font-size: 1.4rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tech-tags span {
  background: linear-gradient(135deg, #00d1b2 0%, #00b399 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  color: #00d1b2;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.project-link:hover {
  color: #1a1d29;
  transform: translateX(5px);
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #1a1d29 0%, #2d3e50 100%);
  color: white;
  text-align: center;
}

.contact-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.contact-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid #00d1b2;
  border-radius: 5px;
  transition: all 0.3s;
  background: transparent;
}

.contact-links a:hover {
  background: #00d1b2;
  color: #1a1d29;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 209, 178, 0.3);
}

/* Footer */
footer {
  background: #0f1117;
  color: #888;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  #hero h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .headshot {
    width: 150px;
    height: 150px;
  }

  #about p {
    text-align: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}
