:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #000000;
  --color-muted: #9d9d9d;
  --color-border: #cecece;
  --color-white: #ffffff;

  --header-overlay-end: rgba(255, 255, 255, 0.45);

  --font-main: Arial, Helvetica, sans-serif;

  --container-padding: 6%;
  --section-spacing: 5%;

  --project-image-height: 420px;
  --carousel-height: 620px;

  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
.header{
  display: flex;
  width: 100%;
  /* justify-content: space-between; */
  gap: 5%;
}

.header-content {
  color: var(--color-text);
  width: 100%;

}
.logo-container{
  display: flex;

}
.hero-logo {
  fill: var(--color-text);
  width: 200px;
  flex-shrink: 0;
}

.site-header {
  min-height: 520px;
  background:
    linear-gradient(90deg,
      var(--color-surface) 0%,
      var(--color-surface) 22%,
      var(--header-overlay-end) 100%),
    url("images/BackgroundSite.jpg") right center / cover no-repeat;
  padding: 130px var(--container-padding) 28px;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px var(--container-padding);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-speed);
}



.navbar.simple {
  background: var(--color-surface);
}

.logo {
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--color-text);
}

.nav-links a {
  font-size: 14px;
}

.language-switch {
  display: flex;
  gap: 8px;
}

.language-switch button,
.filters button {
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-speed);
}

.language-switch button {
  padding: 6px 10px;
}

.filters button {
  padding: 10px 18px;
}

.language-switch button.active,
.filters button.active {
  background: var(--color-text);
  color: var(--color-white);
}

.header-content {
  margin-top: auto;
  margin-bottom: 80px;
  max-width: 780px;
}

.header-content p {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 20px;
}

.header-content h1 {
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1;
  font-weight: 400;
}

.intro,
.portfolio,
.contact {
  padding: var(--section-spacing) var(--container-padding);
}

h2 {
  font-size: 38px;
  font-weight: 400;
  margin-bottom: 36px;
}

.intro p {
  max-width: 850px;
  font-size: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.project-card {
  display: block;
}

.project-card img {
  width: 100%;
  height: var(--project-image-height);
  object-fit: cover;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.02);
}

.project-card h3 {
  font-size: 22px;
  font-weight: 400;
}

.project-card p,
footer,
.back-link {
  color: var(--color-muted);
}

.contact a {
  font-size: 22px;
  border-bottom: 1px solid var(--color-text);
}

footer {
  padding: 40px var(--container-padding);
}

.project-page {
  padding: 150px var(--container-padding) 110px;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
}

.project-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.carousel {
  position: relative;
  background: var(--color-border);
}

.carousel img {
  width: 100%;
  height: var(--carousel-height);
  object-fit: contain;
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.75);
  font-size: 46px;
  width: 54px;
  height: 70px;
  cursor: pointer;
}

#prev {
  left: 18px;
}

#next {
  right: 18px;
}

.project-info h1 {
  font-size: 46px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.project-info p {
  font-size: 19px;
  margin-bottom: 40px;
}

dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
}

dt {
  color: var(--color-muted);
}

dd {
  font-weight: 500;
}
.carousel img {
  cursor: zoom-in;
}

.fullscreen-carousel {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.92);
}

.fullscreen-carousel.active {
  display: flex;
}

.fullscreen-carousel img {
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fullscreen-close,
.fullscreen-prev,
.fullscreen-next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  cursor: pointer;
  z-index: 10000;
}

.fullscreen-close {
  top: 20px;
  right: 20px;
  font-size: 42px;
  width: 56px;
  height: 56px;
}

.fullscreen-prev,
.fullscreen-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  width: 64px;
  height: 84px;
}

.fullscreen-prev {
  left: 20px;
}

.fullscreen-next {
  right: 20px;
}

.project-extra {
  margin-top: 40px;
}

.project-video {
  display: none;
  margin-bottom: 24px;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
}

.project-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.download-button {
  display: none;
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  transition: all var(--transition-speed);
}

.download-button:hover {
  background: var(--color-text);
  color: var(--color-white);
}

@media (max-width: 900px) {
  .fullscreen-carousel img {
    max-width: 100vw;
    max-height: 85vh;
  }

  .fullscreen-prev,
  .fullscreen-next {
    width: 48px;
    height: 70px;
    font-size: 42px;
  }

  .fullscreen-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 900px) {
  
  .header{
  flex-direction: column;
  align-items: center;
  text-align: center;
  }
  .hero-logo{
    margin-bottom: 15%;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .language-switch {
    order: 2;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
  }

  .projects-grid,
  .project-detail {
    grid-template-columns: 1fr;
  }

  .project-card img,
  .carousel img {
    height: 360px;
  }
}