:root {
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --accent: #111827;
  --accent-hover: #000000;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

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

header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#services {
  scroll-margin-top: 80px;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#services .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-me {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-alt) 100%);
}

.about-me-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 750px;
  line-height: 1.8;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 0;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 2rem;
}

.grid>div {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.grid>div:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.grid h3 {
  margin-top: 0;
}

.grid p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service {
  padding: 2rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.service:hover {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.service h3 {
  margin-top: 0;
}

.service p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.pricing-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
  letter-spacing: -0.02em;
}

ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.contact-form {
  max-width: 650px;
  margin-top: 2.5rem;
}

.thank-you-message {
  max-width: 650px;
  margin-top: 2.5rem;
  padding: 3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.thank-you-message p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.footer {
  margin-top: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg-alt);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .about-me {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

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

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

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