@font-face {
  font-family: 'Red Hat Display';
  src: url(RedHatDisplay.ttf);
}

:root {
  --primary-color: #3498db;
  --primary-color-darker: #2980b9;
  --secondary-color: #f1c40f;
  --text-color: #333;
  --text-color-light: #555;
  --border-color: #e0e0e0;
  --background-light: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.05);
  --base-font-size: 16px;
  --header-height: 75px;
  --font-main: 'Bahnschrift Light', 'Red Hat Display', sans-serif;
}

html {
  background-color: var(--background-light);
}

body[data-theme='dark'] {
  --primary-color: #92d1ff;
  --primary-color-darker: #6cb3e0;
  --secondary-color: #f1c40f;
  --text-color: #e0e0e0;
  --text-color-light: #b0b0b0;
  --border-color: #444;
  --background-light: #2c2c2c;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--font-main);
  font-size: var(--base-font-size);
  color: var(--text-color);
  background-color: var(--background-light);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.header-buttons-group button {
  margin-left: 20px;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  padding: 0;
  color: var(--text-color);
  transition: transform 0.2s ease, color 0.2s ease;
}

.header-buttons-group button:hover {
  transform: scale(1.1);
  color: var(--primary-color);
}

.main-header {
  background-color: var(--background-light);
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px var(--shadow-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-center .nav-home-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav-center .nav-home-center img {
  height: 35px;
  display: block;
  transition: transform 0.3s ease;
}

.nav-center .nav-home-center:hover img {
  transform: scale(1.1);
}

.nav-left .nav-logo img {
  height: 30px;
  display: block;
  transition: transform 0.3s ease;
}

.nav-left .nav-logo:hover img {
  transform: scale(1.05);
}

.container {
  width: 95%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.main-content {
  padding-top: 40px;
  padding-bottom: 40px;
}

.info-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.info-box {
  flex: 1;
  min-width: 300px;
  background-color: var(--background-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.info-box h2 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8em;
}

.info-box ul {
  list-style-type: disc;
  margin-left: 20px;
}

.info-box li {
  margin-bottom: 8px;
}

.works-section {
  text-align: center;
  margin-bottom: 40px;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  justify-content: center;
}

.work-box {
  background-color: var(--background-light);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-color);
  border: 1px solid var(--border-color);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  
  height: 250px;
  max-width: calc(1000px - 30px);
  width: 100%;
  margin: 0 auto;
}

.work-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.work-box-image {
  flex: 0 0 50%;
  overflow: hidden;
  background-color: var(--background-light);
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--border-color);
}

.work-box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-box-details {
  flex: 1;
  padding: 20px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.work-box-details h3,
.work-box-details .dates,
.work-box-details .quote {
  margin: 0;
}

.work-box-details h3 {
  color: var(--text-color);
  font-size: 1.6em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.work-box-details .dates {
  color: var(--primary-color-darker);
  font-size: 1.2em;
  margin-bottom: 8px;
}

.work-box-details .quote {
  font-style: italic;
  color: var(--text-color-light);
  font-size: 1em;
}

@media (max-width: 768px) {
  .info-sections {
    flex-direction: column;
  }

  .info-box {
    min-width: unset;
  }

  .main-nav {
    justify-content: center;
  }

  .nav-left, .nav-right {
    display: none;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-box {
    flex-direction: column;
    height: auto;
    max-width: unset;
  }

  .work-box-image {
    flex: none;
    width: 100%;
    height: 150px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .work-box-details {
    padding: 15px;
    align-items: center;
    text-align: center;
  }

  .work-box-details h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 480px) {
  .work-box-details h3 {
    font-size: 1.2em;
  }
  .work-box-details .quote {
    font-size: 0.9em;
  }
}