@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap');

:root {
	--white: #fff;
	--black: #000000;
	--red: #F9023E;
	--blue: #04137B;
	--navy: #020221;
	--yellow: #DFF91C;
	--shadow-yellow: rgba(223, 249, 28, 1);
}

header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 6vh;
        z-index: 999;
		display: inline-flex;
        background-color: rgba(0, 0, 0, 0.3);
}
#logo {
  position: relative;
  left: auto;
}
#diogonos-logo {
  height: 6vh;
}
body {
		font-family: 'Lato', sans-serif;
        margin: 0;
        padding: 0;
        font-weight: 300;
		font-size: 14px;
		scroll-behavior: smooth;
		overflow-x: hidden;
}
.nav {
	margin-left: auto;
	margin-right: 2vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	z-index: 999;
}
.hamburger-menu {
    display: flex;
	flex-direction: column;
	justify-content: space-between;
    cursor: pointer;
	width: 3.6vh;
	height: 2.5vh;
}

.hamburger-line {
    width: 3.6vh;
    height: 0.2vh;
    background-color: white;
}

.hamburger-menu.active {
    display: none;
	transition: 0.5s ease;
}

.nav-list {
	display: none;
	background-color: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: -1rem;
	right: 0;
    width: 100%;
    height: 110vh;
    z-index: 1000;
    transition: opacity 0.5s ease;
}
      nav ul {
        list-style: none;
        display: flex;
        justify-items: center;
}
      nav li {
        margin-right: 1.5rem;
		margin-top: 2rem;
      }
      nav a {
        font-size: 3rem;
		font-weight: bold;
        color: var(--navy);
        text-decoration: none;
        position: relative;
      }
      nav a::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 0.15em;
        top: -0.05em;
        background: var(--red);
        opacity: 0;
        transform: scaleX(-1);
        transform-origin: left;
        transition: transform 0.25s ease-out, opacity 0.25s ease-out;
        filter: drop-shadow(10% 0 20% var(--red) 0.5);
      }
      nav a:hover::after {
        opacity: 1;
        transform: scaleX(-1);
        filter: none;
      }

.nav-list.active {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.language-selector {
        display: flex;
        margin-right: 1.5rem;
		margin-top: 2rem;
}
.language-selector a {
        font-size: 1rem;
		font-weight: 500;
		margin-left: 0.5em;
        color: var(--navy);
        opacity: 0.6;
        text-decoration: none;
        position: relative;
}
.language-selector a:hover {
        opacity: 1;
}
section {
  display: flex;
  flex-direction: column;
  margin-bottom: 0px;
  margin-top: 0px;
  background-size: cover;
  background-position: center;
  height: 100vh;
}
section .content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
section h2 {
  font-size: calc(1.618 * 1.618 * 1em);
  text-transform: uppercase;
  font-weight: 700;
  text-align: left;
  margin-bottom: 0.6em;
  margin-top: 0.6em;
}
section h3 {
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  margin: 0px;
}
section p {
  font-size: 1.15em;
  font-weight: 300;
  text-align: left;
  line-height: 1.4;
  opacity: 0.85;
}

#baseline {
  position: relative;
}
#video-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
#baseline-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
#baseline .content {
  position: absolute;
  width: 80vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: var(--white);
  z-index: 3;
}
#presentation {
	height: 70vh;
}
.spacer {
  position: relative;
}
.spacercontent {
  width: 80vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--navy);
  z-index: 3;
}
.spacercontent .spacer-h2{
  text-align: left;
}
.spacercontent .spacer-p{
  text-align: left;
}
#realisations {
	height: 30vh;
}
#projects {
	height: 120vh;
}
.grid {
      display: grid;
      grid-template-areas:
        "one    one    one   two    two"
        "one    one    one   three  three"
        "one    one    one   three  three"
        "four   four   five  five   five"
        "four   four   five  five   five";
      grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
      grid-template-rows: repeat(5, minmax(0, 1fr));
      width: 100%;
      height: 100%;
    }
    #project001 {
      grid-area: one;
    }
    #project002 {
      grid-area: two;
    }
    #project003 {
      grid-area: three;
    }
    #project004 {
      grid-area: four;
    }
    #project005 {
      grid-area: five;
    }
    .project-tile {
      position: relative;
      object-fit: cover;
    }
    .project-tile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(70%);
      transition: filter 0.3s ease-out;
    }
    .project-tile:hover img {
      filter: brightness(100%);
    }
    .project-info {
      color: var(--white);
      position: absolute;
      bottom: 0px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin: 20px;
      z-index: 6;
    }
    .project-title {
      bottom: 10px;
    }
    .project-subtitle {
      font-size: 10px;
    }
    


.popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 999;
    }


.swiper-container {
  width: 90%; /* Adjust the width as needed */
  height: 70%;
  margin: auto; /* Center the swiper container */
}

.swiper-slide {
  width: 100%; /* Make each slide take up 100% of the container width */
  height: 100%;
  overflow: hidden; /* Hide overflow to achieve the effect */
}

.swiper-slide img {
  display: block;
  width: 95%; /* Make the image slightly smaller than the container */
  height: 100%;
  margin: auto;
  object-fit: cover; /* Maintain aspect ratio and cover the slide */
}
.swiper-slide video {
  display: flex;
  align-content: center;
  width: 95%; /* Make the image slightly smaller than the container */
  height: 100%;
  margin: auto;
  object-fit: cover; /* Maintain aspect ratio and cover the slide */
}

    .popup-text {
      flex-basis: 27%;
	  margin-top: 3%;
	  width: 85%;
	  overflow-y: auto; /* Add scroll bar if content exceeds height */
    }
	.popup-text h2 {
	  font-size: 1.4em;
	  margin-top: 1.5em;
	}

    /* Show the popup when the project-tile is clicked */
    .project-tile {
      cursor: pointer;
    }
    .popup-container {
      display: none;
      position: relative;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(255, 255, 255, 0.9);
      z-index: 999;
      overflow: hidden;
    }
    .popup-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 97vw;
    height: 92vh;
    margin-left: 1.5vw;
    margin-right: 1.5vw;
	margin-bottom: 3vh;
	margin-top: 5vh;
    background-color: rgba(255, 255, 255, 0);
    }
.popup-close {
  position: fixed;
  top: 1.2em;
  right: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1.8em;
  width: 1.8em;
  cursor: pointer;
  font-size: 1.5em;
  font-weight: normal;
  z-index: 800;
}
.popup-close::before {
  content: ''; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3); /* Black color with 30% opacity */
  border-radius: 50%; /* Create a round shape */
  z-index: -1; /* Place the background behind the text */
}
#expertise {
	height: 35vh;
	margin-top: 15vh;
}
#services {
  height: 70vh;
  position: relative;
}
.services-section {
  color: var(--white);
}
#services-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 100%;
  margin-right: 3px;
  margin-left: 3px;
}

.card {
  flex: 1;
  transition: all 0.35s ease-in-out;
  height: 100%;
  position: relative;
  margin: 3px;
  overflow: hidden; /* Ensure description is contained within the card */
  display: flex; /* Use flexbox to position elements in the card */
}

.card:hover {
  flex-grow: 10;
}

.card__head {
  text-transform: uppercase;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0);
  padding: 0;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.35s ease-in-out;
  min-width: 100%;
  text-align: left;
  position: absolute;
  bottom: -1em;
  left: 0;
  font-size: 2.5em;
  white-space: nowrap;
  z-index: 6;
  opacity: 1;
}

.card:hover .card__head{
	opacity: 0;
}

.card .video-overlay {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: rgba(0, 0, 0, 0);
  z-index: 2; /* Place the overlay above the video */
  position: absolute;
  transition: all 0.35s ease-in-out;
}

.card:hover .video-overlay {
	background-color: rgba(0, 0, 0, 0.6);
}

.card .card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease-in-out, filter 0.3s ease-in-out;
  z-index: 1;
  position: relative;
}

.card-description {
  position: absolute;
  width: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: start;
  font-size: 1.2em;
  padding: 5px; /* Add padding for better visibility */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.1s ease-in-out; /* Smooth fade effect */
  z-index: 3;
}

.card:hover .card-description {
  opacity: 1; /* Show description on hover */
  transition: opacity 1s ease-in-out;
}

#contact-trigger {
	height: 45vh;
}
.contact-section {
  height: 60vh;
  color: var(--white);
}
#contact {
  position: relative;
}
#contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#contact-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#contact .content {
  position: absolute;
  top: 50%; /* Adjust vertical position */
  left: 15vw;
  transform: translateY(-50%); /* Vertically center the content */
  z-index: 3;
}
.contact-line a {
  color: var(--white);
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.contact-line img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.contact-line p {
  margin: 0;
}
footer {
        position: relative;
        bottom: 1.5vh;
        height: 0;
        display: flex;
        text-align: right;
        align-items: center;
        justify-content: right;
        background-color: rgba(255, 255, 255, 0);
        z-index: 999;
      }
.credits {
        font-size: 8px;
        color: var(--white);
        margin-right: 10px;
        z-index: 999;
      }

@media only screen and (max-width: 1024px) {
	body {
		font-size: 12px;
}
	.image_desktop{
		display: none !important;
	}
	.card:active, .card:focus {
  		flex-grow: 10;
	}
}
@media only screen and (min-width: 1025px) {

	.image_mobile{
		display: none !important;
	}
}