/* Base Styles */
:root {
  /* Light theme - Morning */
  --background-morning: #ffffff;
  --text-morning: #1a1a1a;
  --text-muted-morning: #666666;
  --border-morning: #e5e5e5;
  
  /* Light theme - Evening (slightly warmer) */
  --background-evening: #fffaf5;
  --text-evening: #2a2a2a;
  --text-muted-evening: #767676;
  --border-evening: #e8e2dd;
  
  /* Dark theme - Evening */
  --background-dark-evening: #1a1a1a;
  --text-dark-evening: #ffffff;
  --text-muted-dark-evening: #b0b0b0;
  --border-dark-evening: #333333;
  
  /* Dark theme - Night (deeper blacks) */
  --background-dark-night: #141414;
  --text-dark-night: #f0f0f0;
  --text-muted-dark-night: #a0a0a0;
  --border-dark-night: #2a2a2a;
  
  /* Default values */
  --background: var(--background-morning);
  --text: var(--text-morning);
  --text-muted: var(--text-muted-morning);
  --border: var(--border-morning);
  --primary: var(--text);
  --hover: var(--text-muted);
  
  /* Smooth transitions */
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --background: var(--background-dark-evening);
  --text: var(--text-dark-evening);
  --text-muted: var(--text-muted-dark-evening);
  --border: var(--border-dark-evening);
  --primary: var(--text);
  --hover: var(--text-muted);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  transition: var(--transition);
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

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

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 4rem;
}

/* Components */
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  opacity: 0.5;
  transition: var(--transition);
}

.theme-toggle:hover {
  opacity: 1;
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.expertise-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

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

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

.skill-category li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--hover);
  color: var(--background);
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
      font-size: 2rem;
  }

  h2 {
      font-size: 1.5rem;
  }

  .expertise-grid {
      grid-template-columns: 1fr;
  }

  .skills-container {
      grid-template-columns: 1fr;
  }
}