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

:root {
  --bg: #0c1a2e;
  --bg-subtle: #112240;
  --card: #f4f1ec;
  --card-border: #e8e4dc;
  --text: #1a2332;
  --text-muted: #4a5568;
  --text-on-dark: #e8edf5;
  --text-muted-on-dark: #94a3b8;
  --accent: #005577;
  --accent-hover: #004460;
  --accent-light: #e6f2f7;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  --max-width: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text-on-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero .summary {
  font-size: 1.05rem;
  color: var(--text-muted-on-dark);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* Cards */

.section {
  padding: 1.5rem 0;
}

.card {
  background-color: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
}

.card + .card {
  margin-top: 1.25rem;
}

.card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p.about-highlight {
  color: var(--text);
  font-weight: 600;
}

/* Lists */

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

.card ul li:last-child {
  margin-bottom: 0;
}

/* Projects */

.project-list {
  list-style: none;
  padding: 0;
}

.project-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--card-border);
}

.project-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-list li:first-child {
  padding-top: 0;
}

.project-name {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Contact */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-links a {
  font-weight: 600;
}

.contact-placeholder {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Contact form */

.hero-compact {
  padding: 2.5rem 0 1.5rem;
}

.hero-link {
  color: var(--text-on-dark);
  text-decoration: none;
}

.hero-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.contact-form {
  margin-top: 1.25rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-light);
  border-color: var(--accent);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.btn-block {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
}

.form-success {
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
}

.form-error {
  color: #b42318;
  font-weight: 600;
  margin-top: 1rem;
}

.form-alt {
  margin-top: 1.25rem;
  font-size: 0.92rem;
}

/* Footer */

footer {
  text-align: center;
  padding: 2.5rem 0 3rem;
  color: var(--text-muted-on-dark);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }
}
