/*
 * Base styles for Katia Steinfeld’s personal website
 * Dark mode, executive style
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* Reset and default typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core palette */
  --bg: #061427;            /* very dark blue */
  --surface: #0a1c33;       /* card surfaces */
  --surface-2: #0d2440;     /* hover surfaces */
  --text: #ffffff;          /* primary text */
  --muted: #b7c1d1;         /* secondary text */
  --border: rgba(255, 255, 255, 0.10);
  --shadow: rgba(0, 0, 0, 0.35);

  /* Accents */
  --accent: #7fb2ff;
  --accent-2: #4a90ff;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header and nav */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(6, 20, 39, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

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

.hero .container {
  max-width: 1000px;
  margin: 0 auto;
}

.hero .motto {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero .motto span {
  display: block;
  margin-bottom: 0.5rem;
}

.intro-text {
  text-align: justify;
  text-justify: inter-word;
  margin-top: 1rem;
  color: var(--muted);
}

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

section h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 1.5rem;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  background-color: var(--surface-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.card-content {
  padding: 1.1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: var(--r-sm);
  background-color: rgba(127, 178, 255, 0.14);
  color: var(--text);
  border: 1px solid rgba(127, 178, 255, 0.25);
  margin-top: 0.5rem;
}

/* Map container */
.map-container {
  width: 100%;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: var(--surface);
}

/* Footer */
footer {
  background-color: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact form modal */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.contact-modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: var(--r-md);
  width: 90%;
  max-width: 520px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-content label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: rgba(127, 178, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(127, 178, 255, 0.18);
}

.modal-content button {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(127, 178, 255, 0.35);
  border-radius: var(--r-sm);
  background-color: rgba(127, 178, 255, 0.18);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.modal-content button:hover {
  background-color: rgba(127, 178, 255, 0.26);
  border-color: rgba(127, 178, 255, 0.55);
}

.modal-content button:active {
  transform: translateY(1px);
}

/* Responsive grid breakpoints */
@media (min-width: 576px) {
  .grid-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Category icons section */
.connect-icons {
  display: flex;
  justify-c
