:root {
  --primary-color: #282c34;
  --secondary-color: #61dafb;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-color);
  line-height: 1.6;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
  background-color: var(--light-gray);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.Page {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0;
  width: 100vw;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.Page.loaded {
  opacity: 1;
}

.Page > * {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  padding: 1.5em;
  display: inline;
  transition: all 0.3s ease;
}

.Page > *:hover {
  background-color: var(--light-gray);
}

h2, h3 {
  margin: 0;
  color: var(--primary-color);
}

header h3 {
  margin: 1em 0;
  color: white;
}

.Page a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.Page a:hover {
  color: var(--primary-color);
}

.Page ul, dl {
  margin: 0;
  padding-left: 1em;
}

.Page article {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--light-gray);
}

.Page article em {
  font-style: normal;
  max-width: 600px;
  margin: 0 auto;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

button:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

#print-button {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
}

.header {
  text-align: center;
  font-size: calc(10px + 2vmin);
  color: white;
  border: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  background-color: var(--primary-color);
  background-position: center;
  background-size: cover;
  background-image: url(./background.jpeg);
  padding: 2em 1em;
}

.header h2, .header h3 {
  color: white;
  margin: 0.5em 0;
  text-transform: uppercase;
}

@media all and (max-width: 768px) {
  h2 {
    font-size: 2em;
  }
  h3 {
    font-size: 1.1em;
  }
  .Page > * {
    padding: 1em;
  }
  .Page article {
    padding: 2em 1em;
  }
}

@media all and (min-width: 768px) {
  .Page {
    flex-direction: row;
    flex-wrap: wrap;
    width: unset;
    height: Calc(100vh - 40px);
    min-height: fit-content;
  }
  .Page article {
    width: 100%;
  }
  .Page aside {
    flex: 1 0 0;
  }
  .Page aside.skills {
    order: 1;
  }
  .Page aside.contact {
    order: 3;
  }
  .Page main {
    flex: 3 0 0;
    order: 2;
  }
  .Page button {
    order: 4;
  }
}

@media print {
  :root {
    --print-primary: #2c3e50;
    --print-secondary: #34495e;
    --print-accent: #3498db;
    --print-text: #2d2d2d;
    --print-muted: #7f8c8d;
    --print-border: #bdc3c7;
  }

  body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--print-text);
    line-height: 1.2;
  }

  .Page {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .Page > * {
    flex: none !important;
    border: none;
    padding: 0.1em 0.8em;
    background: none !important;
    width: auto !important;
  }

  .header {
    padding: 0.4em 2em !important;
    margin-bottom: 0.3em !important;
    border-bottom: none !important;
  }

  .header h2 {
    font-size: 1.5em !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--print-primary) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }

  .header h3 {
    font-size: 0.9em !important;
    margin: 0.1em 0 0 0 !important;
    padding: 0 !important;
    color: var(--print-secondary) !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .Page article {
    margin: 0.2em 0;
    padding: 0 2em;
    border-bottom: none;
  }

  .Page article em {
    font-size: 0.75em;
    line-height: 1.3;
    margin: 0.2em auto;
    color: var(--print-secondary);
    display: block;
    max-width: 90%;
  }

  .Page h3 {
    font-size: 0.85em;
    margin: 0.6em 0 0.2em;
    padding: 0 0 0.1em 0;
    color: var(--print-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-bottom: 1px solid var(--print-border);
    width: 100%;
  }

  .Page main {
    padding: 0 2em;
    margin-bottom: 0.4em;
  }

  .Page dl {
    margin: 0;
    padding: 0 0 0 1em;
  }

  .Page dt {
    margin: 0.2em 0 0;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--print-primary);
  }

  .Page dt small {
    margin-left: 0.3em;
    font-size: 0.9em;
    color: var(--print-muted);
    font-weight: normal;
  }

  .Page dd {
    margin: 0 0 0.2em 0.6em;
    font-size: 0.75em;
    line-height: 1.2;
    color: var(--print-secondary);
  }

  .Page aside {
    padding: 0 2em;
    margin-top: 0.4em;
    border-top: none;
  }

  .Page aside.skills {
    margin-top: 0.4em;
  }

  .Page aside.contact {
    margin-top: 0.4em;
  }

  .Page aside ul {
    margin: 0.2em 0;
    padding: 0 0 0 1em;
    list-style: none;
  }

  .Page aside.skills ul {
    padding-left: 0;
  }

  .Page aside.skills li {
    background: var(--print-border);
    padding: 0.2em 0.5em;
    border-radius: 3px;
    color: var(--print-primary);
    margin: 0.1em 0.3em 0.1em 0;
  }

  .Page aside.contact ul {
    padding-left: 1em;
  }

  .Page aside.contact li {
    display: block;
    margin-bottom: 0.3em;
    position: relative;
  }

  .Page aside.contact a {
    color: var(--print-accent);
    text-decoration: none;
  }

  @page {
    margin: 1.5cm 2cm;
    size: A4;
  }

  .no-print, .no-print * {
    display: none !important;
  }

  .Page > *:hover {
    background-color: transparent;
  }
}

.language-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.language-switch:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

@media print {
  .language-switch {
    display: none;
  }
} 