/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'TITLE';
    src: url('font/Gretaros-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'NT';
    src: url('font/ElaineKinandhita.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  scroll-behavior: smooth;
}













#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-logo {
  width: 400px; /* Adjust as needed */
  animation: pulse 1.5s infinite ease-in-out;
}

/* Optional pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
















.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
body {
    font-family: 'NT';
    font-size: 20px;
    line-height: 1.6;
    background-color: #000000;

    background-size: cover;                 /* Remplit toute la section */
    background-position: center;           /* Centré */
    background-repeat: no-repeat;          /* Pas de répétition */
    color: white;                          /* Texte lisible sur image */
    padding: 100px 20px;
    padding: 0 20px;
}
.navbar {
    background-color: transparent;
    position: fixed;
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 15px 0;
}
.nav-links {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(255, 255, 255, 0.5);
}
.nav-links a {
    font-family: 'TITLE';
    font-size: 15px;
    color: rgb(255, 255, 255);
    filter: blur(0.6px);
    text-decoration: none;
    font-weight: bold;
    opacity: 0.4;
    text-align: center;
    justify-content: center;
    padding:16px 0px;
    display: inline-block;
    transition: 0.3s;
}
.nav-links a:hover {
    opacity: 1;
    filter: blur(0px);
    font-size: 18px;
}
.logo{
    background-color: transparent;
    position: fixed;
    z-index: 1000;
    display: flex;
    width: 100%;
    padding: 15px 0;
}

.logo img{
    margin-left: 40px;
    margin-top: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

section {
    padding: 60px 0;
}
section h1,
section h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'TITLE';
    font-size: 30px;
}
section p,
section li {
    max-width: 800px;
    margin-bottom: 10px;
}
.home{

    width: auto;
    height: 700px;
}
.home .content{
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 20px 30px;
    width: 600px;
    display: grid;
    justify-content: center;
    align-items: center;
    margin-top: 370px;
    margin-left: 30px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(255, 255, 255, 0.5);
}
.content p{
    line-height: 1.3;
}












.services{
    width: auto;
    height: 700px;
}
.services h2{
    display: grid;
    justify-content: center;
    align-items: center;
    font-size: 70px;
}
.services_content{
    justify-content: center;
    display: flex;
    gap: 10px;
}
.services ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.merge{
  display: flex;
}
.mascot{
    background-color: rgba(0, 149, 255, 0.1);
    border-radius: 30px;
    padding: 20px 20px;
    width: 600px;
    height: auto;
    display: grid;

    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(0, 179, 255, 0.5);

}
.model3D {
  min-width: 200px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0);
  bottom: 20px;
}
.services ul li h2{
    color: #ffffff;
    font-family: 'TITLE';
    font-size: 25px;
}

.mascot h2{
    color: #ffffff;
    font-family: 'TITLE';
    font-size: 25px;
    margin-top: 23px;
}
.services ul li p{
  font-size: 22px;
}

.merge p{
  margin-top: 40px;
  font-size: 22px;
}
.services ul li{
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 20px 20px;
    width: 300px;
    height: auto;
    display: grid;
    
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(255, 255, 255, 0.5);

}







.portfolio h2{
    display: grid;
    justify-content: center;
    align-items: center;
    font-size: 70px;
}

.portfolio-panel {

  overflow: hidden;
  white-space: nowrap;
  border-radius: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.2); 
  overflow-x: scroll;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;
  backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(255, 255, 255, 0.5);
}

.portfolio-panel::-webkit-scrollbar {
  display: none;             /* Chrome, Safari and Opera */
}

.portfolio-list {
  display: flex;
  gap: 40px;
  list-style: none;
}

.video-card {
  min-width: 240px;
  min-height: 400px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card p {
  position: absolute;
  font-family: 'TITLE';
  bottom: 0px;
  left: 0px;
  color: white;
  font-size: 25px;
  padding: 0px 10px;
  line-height: 1;
}

.portfolio h3{
    margin-top: 50px;
    font-family: 'TITLE';
    display: grid;
    justify-content: center;
    text-align: center;
    font-size: 30px;
}


















.references {
  padding: 40px 0;
}

.references-panel {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.references-list {
  display: flex;
  gap: 0px;
  animation: scrollRefs 30s linear infinite;
}

.references-list li {
  list-style: none;
  flex-shrink: 0;
}

.references-list img {
  height: 200px;
  object-fit: contain;
  opacity: 1;
  transition: transform 0.3s ease;
}

.references-list img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Keyframes for auto scroll */
@keyframes scrollRefs {
  0% { transform: translateX(0); }
  100% { transform: translateX(-220%); }
}





















.contact {
    width: auto;
    height: 600px;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact .content h2 {
    font-size: 80px;
    margin-top: -30px;
    text-align: center;
}
.contact .subtitle {
    font-size: 37px;
    margin-top: -50px;
    margin-bottom: 30px;
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.btn {
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s;
    filter: blur(0.6px);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(255, 255, 255, 0.5);
}
.btn:hover {
    filter: blur(0px);
    transform: scale(1.05);
    background-color: rgba(95, 95, 95, 0.1);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0px 5px rgba(255, 255, 255, 0.5);
}
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.profile p {
    font-size: 16px;
    color: white;
    line-height: 1.4;
}





@media (max-width: 768px) {


  .loading-logo {
  width: 200px; /* Adjust as needed */
  animation: pulse 1.5s infinite ease-in-out;
}
  body {
    font-size: 16px;
    padding: 0 10px;
    overflow-x: hidden;
    width: 100%;
  }

  .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    z-index: -1;
}

  .navbar {
    padding: 10px 0;
  }

  .nav-links {
    margin-bottom: 0px;
    width: 80%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 10px;
    padding: 8px 0px;
  }

  .logo img {
    width: 90px;
    height: auto;
    justify-content: center;
    align-items: center;
    margin:-10000px auto 0 auto;
  }

  .home {
    height: auto;
  }

  .home .content {
    width: 90%;
    margin: 400px auto 0 auto;
    padding: 15px 20px;
  }

  .services {
    height: auto;
    padding: 40px 0;
  }

  .services h2 {
    font-size: 30px;
    text-align: center;
    margin-top : -60px;
  }
  .services_content h2 {
    font-size: 30px;
    text-align: center;
    margin-top : 0px;
  }

  .services_content,
  .services ul {
    flex-direction: column;
    align-items: center;
  }

  .services ul li,
  .mascot {
    width: 90%;
    height: auto;
  }

  .mascot {
    padding-bottom: 30px;
  }

  .merge {
    flex-direction: column;
    align-items: center;
  }

  .portfolio h2 {
    font-size: 30px;
    margin-top : -60px;
  }

  .portfolio-panel {
    padding: 30px;
  }

  .video-card {
    min-width: 138px;
    min-height: 230px;
  }

  .video-card p {
    font-size: 15px;
  }
  .portfolio h3{
    font-size: 20px;
    padding :0px 50px;
  }

  .contact {
    display: grid;
    flex-direction: column;
    height: auto;
    padding: 50px 10px;
  }

  .contact .content h2 {
    font-size: 30px;
  }

  .contact .subtitle {
    padding : 30px;
    font-size: 18px;
  }

  .buttons {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 80%;
    text-align: center;
  }

  .profile img {
    width: 80px;
    height: 80px;
  }

  .profile p {
    font-size: 14px;
  }

}







