@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #4CAF50;
  --secondary-color: #6c757d;
  --background-color: #121212;
  --text-color: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #000;
  color: var(--text-color);
  line-height: 1.6;
}
#canvas {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.media-section {
  min-height: auto;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.media-hero{
  padding: 120px 0;
}
.media-Image{
  background-image: url('../img/news5.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-size: cover;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.overlay-header{
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 15px;
}

.main-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.icon-links {
  margin-top: 2rem;
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-link:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

.icon-link i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.icon-link span {
  font-size: 0.9rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.section-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.flip-container {
    perspective: 1000px; /* Ensure this value is large enough to see the 3D effect */
    width: 100%;
    height: 300px;
}


.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-container:hover .flipper {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.back {
  transform: rotateY(180deg);
  background-color: var(--text-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.swiper-container {
  width: 100%;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--text-color);
}

.space{
  padding-left: 30px;
}
.model-art{
    width: 100%;
    max-height: 400px;
}
#ekona-sapiens-video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar {
  transition: background-color 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

.menu-items {
  display: flex;
  gap: 20px;
}

.menu-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.menu-link:hover {
  opacity: 0.8;
}

@media (max-width: 576px) {
  .main-title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .section-description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 2.5rem;
    text-align: center;
  }
  .media-section{
    padding: 50px 0;
  }
  .section-description {
    font-size: 1.2rem;
    text-align: center;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .flip-container {
    height: 300px;
  }
}
.swiper-slides {
    width: 400px;
    height: 450px;
  }
@media (max-width: 992px) {
  .icon-link i {
    font-size: 2.5rem;
  }

  .icon-link span {
    font-size: 1rem;
  }

  .swiper-slide {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 1200px) {

}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.ex-video-controls {
    position: absolute;
    bottom: 47%;
    left: 5%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}
.ex-video-controls-next {
    position: absolute;
    bottom: 47%;
    right: 0%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}
.ex-video-nav, .audio-control {
    background: rgba(255, 255, 255, 0.4);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ex-video-nav:hover, .audio-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}