@import url('./font.css');

:root {
    --primary-color: #E75025;
    --secondary-color: #F2F2EB;
    --black-bg: #101111;
    --light-bg: #ffffff;
    --header-bg: #1F2124;
  }
  html {
    scroll-behavior: smooth;
    font-family: 'helvetica';
    font-weight: normal;
  }
  body {
    margin: 0;
    padding: 0;

  }
  
  ::-webkit-scrollbar {
    display: none;
  }

  .header {
    background-color: var(--header-bg);
    color: white;
    padding: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2rem;
    position: fixed;
    top: 1.3rem;
    left: 50%;
    transform: translateX(-50%); 
    width: 35%;
    z-index: 800;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(100, 100, 100, 0.593) !important;
    transition: transform 0.5s ease-in-out;
}

.header.hidden {
    transform: translate(-50%, -180%); 
}

  
  .headerImg {
    padding-left: 0.5rem;
    width: 8rem;
  }
  
  .headerNav {
    display: flex;
    gap: 0.5rem;
  }
  
  .preBtn {
    width: 5.2rem;
    height: 2rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    border: none;
    border-radius: 1rem;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
  }
  
  .menuBtn {
    border: none;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    width: 2rem;
    height: 2rem;
  }
  
  /* menu section */
  
  .menu {
    opacity: 0;
    visibility: hidden;
    /* background-color: rgba(139, 139, 139, 0.505);
    backdrop-filter: blur(8px); */
    background-color: var(--header-bg);
    padding: 1rem;
    position: fixed;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 1.1rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .menu.show {
    opacity: 1;
    visibility: visible;
  }
  
  .menu-top,
  .menu-bottom {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 1rem;
  }
  
  .menu-top a {
    margin: 0;
    transition: transform 0.3s ease, scale 0.3s ease;
  }
  
  .menu-top a:hover {
    transform: scale(1) translateY(-5px);
    cursor: pointer;
  }
  
  .menu i {
    font-size: 1.2rem;
    color: #000;
    transition: transform 0.3s ease;
  }
  
  .menu i:hover {
    transform: translateY(-5px);
    cursor: pointer;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .menu {
      width: 90%;
      top: 4rem;
    }
  
    .menu-top {
      flex-direction: column;
      align-items: flex-start;
      padding-left: 2rem;
    }
  
    .menu-bottom {
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;
      gap: 0.5rem;
    }
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .header {
      background-color: var(--header-bg);
      color: white;
      padding: 0.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-radius: 2rem;
      position: fixed;
      top: 1rem;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
      z-index: 1000;
      box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    }
  }

    /* Demo - Hero */
/* ========== BASE STYLES (Desktop & Mobile) ========== */
.demo-hero {
  background: #0f0f0f;
  width: 100%;
  max-height: fit-content;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  align-items: center;
  padding: 1rem;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-top {
  font-size: 4rem;
  color: #b6b6b6;
  font-family: 'geist';
  font-weight: 900;
  white-space: nowrap;
  margin: 0;
}

.text-bottom {
  font-size: 4rem;
  color: white;
  font-family: 'geist';
  font-weight: 900;
  margin: 0;
  min-height: 5rem; /* prevents jumping */
}

.hero-text h1 + h1 {
  margin-top: 0.3rem;
}

.feature-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .demo-hero {
    min-height: 100vh; /* ✅ Allow content to expand naturally */
    padding: 2rem 1rem;
  }

  .hero-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1rem;
    height: auto; /* ✅ Remove hard 100% height that breaks stacking */
  }

  .hero-text {
    padding: 0;
  }

  .feature-video {
    width: 100%;
    min-height: 240px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
  }

  .text-top {
    font-size: 2.2rem;
    margin: 0;
  }

  .text-bottom {
    font-size: 2.5rem;
    min-height: 4rem;
    margin: 0;
  }

  .hero-text h1 + h1 {
    margin-top: 0.3rem;
  }
}

  


  /* Demo Video Section */
  
  #demo-video {
    width: 100%;
    min-height: 100vh; 
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0rem;
  }
  
  /* Container */
  #demo-video .demo-content {
    background-color: var(--secondary-color);
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 95%;
    padding: 1.5rem;
    border-radius: 1.5rem;
    overflow: hidden;
  }
  
  /* Video Items */
  #demo-video .demo-content .video {
    background-color: transparent;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
  }
  
  #demo-video .demo-content .video .video-thumbnail {
    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  #demo-video .demo-content .video .play-img {
    z-index: 10; 
    position: absolute;
    width: 15%; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; 
  }
  
  
  #demo-video .demo-content h3{
    font-family: 'geist' ;
    font-weight: bolder;
    color: var(--primary-color);
  }
  
  #demo-video .demo-content p{
    font-family: 'helvetica' ;
    font-weight: normal;
    font-size: 1.2rem;
    color: rgb(41, 41, 41);
  }
  
  

  /* Tablet View (768px and above) */
  @media (min-width: 768px) {
  
    #demo-video .demo-content {
        grid-template-columns: repeat(2, 1fr);
    }
  
    /* Make the first item (text-content) span two columns */
    #demo-video .demo-content .video.text-content {
        grid-column: span 2;
        text-align: center;
    }
  }
  
  /* Desktop View (1024px and above) */
  @media (min-width: 1024px) {
    #demo-video .demo-content {
        width: 65%;
        padding: 2rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two columns */
        grid-template-rows: repeat(2, auto);  /* Two rows */
    }
  
    #demo-video .demo-content .video:nth-child(1),
    #demo-video .demo-content .video:nth-child(2) {
        grid-row: 1;
    }
  
    #demo-video .demo-content .video:nth-child(3),
    #demo-video .demo-content .video:nth-child(4) {
        grid-row: 2;
    }
  }

  /* Demo - Gallery */

  .demo-gallery{
    width: 100%;
    max-height: fit-content;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
  }

  .demo-gallery .row{
     width: 95%;
     max-width: 1200px;
     padding: 2rem;
  }
  .demo-gallery .col,.row{
    border-radius: 1.5rem;
  }

  .demo-gallery img{
    border-radius: 1.5rem;
  }

  @media (max-width: 768px){
    .demo-gallery .row{
      width: 95%;
      max-width: 1200px;
      padding: 2rem 0rem;
   }
  }

  /* Slider section */

.carousel-container {
  width: 100%;
  margin: 0 auto;
  padding: 0; /* no extra padding */
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 0.5rem; /* 0.5rem side gap between images */
}

/* Each slide */
.carousel-slide {
  flex: 0 0 calc((100% - 1rem) / 3); /* 3 slides per view with total 1rem gap */
  border-radius: 0; /* no rounding */
  overflow: hidden;
}

/* Image styling */
.carousel-slide img {
  width: 100%;
  height: 100vh; /* full height */
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.213);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;

  cursor: pointer;
  z-index: 10;
}
.prev { left: 10px; }
.next { right: 10px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}
.dot.active {
  background: #333;
  transform: scale(1.3);
}

/* Tablet: 2 slides */
@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 0.25rem);
  }
}

/* Mobile: 1 slide, no gap */
@media (max-width: 480px) {
  .carousel-wrapper {
    gap: 0;
  }
  .carousel-slide {
    flex: 0 0 100%;
  }
}
