/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

:root {
  --background-color: #efefea;
  --text-color: #3f3f3f;
  --logo-color: #3f3f3f;
  --footer-text-color: #888888;
  --footer-background-color: #e8e8e8;
  --container-padding: 36px 40px 46px 40px;
  --overlay-bg-color: var(--background-color);
}

body {
  font-family: "Univers", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  letter-spacing: 0.06em;
}

body.dark-theme {
  --background-color: #111;
  --text-color: #ccc;
  --logo-color: #ccc;
  --footer-text-color: #888888;
  --footer-background-color: #000;
  --container-padding: 36px 40px 46px 40px;
  --overlay-bg-color: var(--background-color);
}

body.dark-theme .site-footer {
  background-color: #000;
}

body.dark-theme .footer-logo,
body.dark-theme .footer-name,
body.dark-theme .footer-tagline,
body.dark-theme .clock-row .city,
body.dark-theme .clock-row .time,
body.dark-theme .footer-email a {
  color: #797979;
}

.container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 30px;
  row-gap: 5px;
  min-height: 100vh;
  width: 100%;
  transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

.container.blur {
  filter: blur(10px);
  opacity: 0;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out;
  height: 100%;
  position: relative;
}

.content.fade-in {
  opacity: 1;
  filter: blur(0);
}

.content h1 {
  font-size: 24px;
  font-weight: 300;
  text-align: center;
  letter-spacing: -0.01em;
  margin: 0;
  transform: translateY(-20%);
}

/* Page transition animations */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

.logo {
  width: 50px;
  height: 50px;
  display: block;
}

.translation {
  font-size: 80px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  text-align: center;
  line-height: 110%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
  max-width: none;
  padding: 0 20px 20px 20px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

.translation:hover {
  text-decoration: none;
  color: inherit;
}

.gdp-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out;
  position: absolute;
  bottom: 0;
  left: 0;
}

.gdp-container.fade-in {
  opacity: 1;
  filter: blur(0);
}

#gdp-counter {
  width: 100%;
  text-align: center;
  font-size: 14px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding-bottom: 60px;
}

.top-nav {
  width: 100%;
  padding: 32px 0;
  background-color: transparent;
  position: absolute;
  top: 0;
  z-index: 10000;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  height: 30px;
  width: 30px;
  position: relative;
}

.nav-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: none;
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  fill: var(--logo-color);
  transition: all 0.5s ease;
}

.nav-logo.is-hovered svg {
  fill: blue;
  filter: blur(10px);
  transition: all ease 0.5s;
}

.nav-logo.is-active svg {
  fill: orange;
  transition: all ease 0.5s;
}

[data-bg-color="dark"] .nav-logo svg {
  fill:var(--logo-color);
  transition: all ease 0.5s;
}

/* Light theme hover */
.nav-logo:hover svg {
  fill: blue;
  filter: blur(10px);
  transition: all ease-in-out 0.5s;
}

/* Dark theme hover */
[data-bg-color="dark"] .nav-logo:hover svg {
  fill: blue;
  filter: blur(10px);
  transition: all ease-in-out 0.5s;
}

/* Light theme active */
.nav-logo:active svg {
  fill: orange;
}

/* Dark theme active */
[data-bg-color="dark"] .nav-logo:active svg {
  fill: orange;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  position: relative;
  letter-spacing: 0.04em;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--text-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(0.75);
}

#transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg-color);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: background-color 0.5s ease, opacity 0.5s ease;
}

.page-bottom {
  position: absolute;
  padding: 60px;
  bottom: 0px;
  left: 0;
  right: 0;
  text-align: center;
}

.page-bottom h2 {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 800px;
  letter-spacing: -0.005em;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out;
}

.page-bottom h2.typing {
  opacity: 1;
  filter: blur(0);
}

p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  max-width: 800px;
  letter-spacing: -0.005em;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

h4 {
  font-size: 16px;
  font-weight: 300;
  max-width: 800px;
  letter-spacing: -0.005em;
  padding-bottom: 10px;
}

@media (max-width: 768px) {
  .translation {
    font-size: 40px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-logo {
    height: 35px;
    width: 35px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 20px;
  }

  .container {
    padding: 0px 24px;
  }

  .page-bottom {
    padding: 60px 0;
  }

  .page-bottom h2 {
    font-size: 12px;
    letter-spacing: 0;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 100px 40px;
  position: relative;
  opacity: 1;
  filter: none;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member .image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid var(--text-color);
  position: relative;
  margin-bottom: 20px;
}

.team-member .image-placeholder::before,
.team-member .image-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.team-member .image-placeholder::before {
  background: linear-gradient(45deg, transparent calc(50% - 1px), var(--text-color) calc(50% - 1px), var(--text-color) calc(50% + 1px), transparent calc(50% + 1px));
}

.team-member .image-placeholder::after {
  background: linear-gradient(-45deg, transparent calc(50% - 1px), var(--text-color) calc(50% - 1px), var(--text-color) calc(50% + 1px), transparent calc(50% + 1px));
}

.arrow-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  will-change: opacity;
}

.arrow-container.visible {
  opacity: 1;
}

.arrow-container .icon {
  width: 10px;
  color: var(--text-color);
  animation: float 2s ease-in-out 0.5s infinite;
  display: block;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.site-footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 0;
  color: var(--footer-text-color);
  background-color: var(--footer-background-color);
  opacity: 0;
  transition: opacity 0.5s ease-out, background-color 0.5s ease-out, border-color 0.5s ease-out;
  margin-top: auto;
}

.site-footer.visible {
  opacity: 1;
}

.footer-content {
  min-height: 300px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
}

.footer-logo {
  font-size: 24px;
  color: var(--footer-text-color);
  line-height: 100%;
  letter-spacing: -0.005em;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.footer-name {
  font-size: 14px;
  font-weight: 300;
  color: var(--footer-text-color);
  line-height: 100%;
  letter-spacing: 0.03em;
  padding-bottom: 1px;
}

.footer-tagline {
  font-size: 8px;
  font-weight: 300;
  color: var(--footer-text-color);
  line-height: 100%;
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
  align-items: flex-end;
}

.world-clock {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0px 80px;
  align-items: baseline;
}

.footer-email {
  margin-top: auto;
}

.footer-email a {
  font-size: 10px;
  font-weight: 300;
  color: var(--footer-text-color);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-email a:hover {
  opacity: 0.7;
}

.clock-row {
  display: contents;
  letter-spacing: 0.05em;
}

.clock-row .city {
  font-size: 10px;
  font-weight: 300;
  color: var(--footer-text-color);
  text-align: left;
  letter-spacing: 0.05em;
}

.clock-row .time {
  font-size: 10px;
  font-weight: 300;
  color: var(--footer-text-color);
  text-align: left;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
    padding: 0 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  .footer-left {
    height: auto;
    gap: 20px;
    align-items: center;
    width: 100%;
  }

  .footer-right {
    height: auto;
    width: 100%;
    align-items: center;
  }

  .world-clock {
    width: 100%;
    gap: 0px 40px;
    max-width: 300px;
    margin: 0 auto;
  }

  .clock-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-align: left;
  }

  .clock-row .city,
  .clock-row .time {
    font-size: 10px;
  }

  .footer-email {
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }

  .site-footer {
    padding: 40px 0;
    width: 100%;
  }

  .footer-logo,
  .footer-name,
  .footer-tagline {
    text-align: center;
    width: 100%;
  }
}




