:root {
  --primary-color: #3498db;
  --secondary-color: #8e44ad;
  --bg-color: #f8f9fa;
  --text-color: #2c3e50;
  --light-gray: #ecf0f1;
  --shadow: 0 4px 6px rgba(44, 62, 80, 0.15);
}

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

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  font-size: 18px;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

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

/* Gradient header */
header {
  background: linear-gradient(135deg, #2c3e50, #4a235a);
  color: white;
  padding: 80px 0; /* Increased padding for more height */
  min-height: 300px; /* Ensure minimum height for the neural network */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.2);
  display: inline-block;
  padding: 30px 50px;
  border-radius: 8px;
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

header h1 {
  color: white;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  background: linear-gradient(to right, #fff, #ecf0f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
  font-weight: 400;
}

h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

h3 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--secondary-color);
}

p {
  margin-bottom: 20px;
}

ul {
  list-style-type: none;
  margin-left: 20px;
  margin-bottom: 30px;
}

li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

li:before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #8e44ad;
  text-decoration: underline;
}

.project-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-top: 0;
}

.products-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

code {
  background: var(--light-gray);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9em;
}

footer {
  background: linear-gradient(135deg, #2c3e50, #4a235a);
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

footer p {
  margin-bottom: 10px;
}

.claude-credit {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 15px;
  font-style: italic;
}

.heart {
  color: #e74c3c;
  font-size: 1.2rem;
  display: inline-block;
  animation: heartbeat 1.5s infinite;
  transform-origin: center;
  position: relative;
  top: 2px;
}

footer a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}

footer a:hover {
  color: #1abc9c;
  border-bottom-color: #1abc9c;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

#neural-network-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.7;
  min-height: 300px; /* Match header's minimum height */
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  header h1 {
    font-size: 2.8rem;
  }
  
  .header-content {
    padding: 20px 25px;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .products-section {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 30px 15px;
  }
}
