/* Home Page */

.hero {
    position: relative;       /* Allows absolute positioning for the video */
    height: 915px;            /* Same as before */
    display: flex;
    align-items: center;
    margin-top: 96px;          /* Same as before */
    overflow: hidden;          /* Ensures that the video doesn't spill out */
  }
  
  /* Remove the background image properties since we're using a video now */
  /* .hero {
      background-image: none;
      background-repeat: no-repeat;
      background-position: top center;
      background-size: auto 100%;
  } */
  
  .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1; /* Place behind text */
  }
  
  .hero .container {
    position: relative;
    z-index: 1;  /* Bring text above video */
    color: black; /* Ensure readability against the video background */
  }
  


.hero h1 {
    font-size: 72px;
    color: black;
}
.hero p {
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    color: black;
    padding-right: 40%;
    margin-bottom: 80px;
}
.numbers {
    background-image: url("/assets/img/bg-numbers.png");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto 100%;
    height: auto;
    text-align: center;
    padding: 100px 0;
}
.circle {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #CA2525;
    border-radius: 50%;
    width: 200px;
    height: 200px;
}
.circle-text h2 {
    font-size: 42px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 0;
}
.circle-text p {
    font-size: 20px;
    text-transform: uppercase;
    color: #ffffff;
}
.numbers .row {
    padding: 80px 0;
}
.numbers-text p {
    margin-bottom: 32px;
}
.numbers-text p:nth-child(2) {
    color: #CA2525;
}
.numbers-text h2 {
    font-size: 28px;
}
.mathematics {
    margin-top: 120px;
}
.mathematics .row {
    align-items: center;
}
.mathematics h2 {
    padding-right: 5%;
}
.home-over-image {
    z-index: 2;
}
.home-behind-image {
    z-index: 0;
}
.home-main-image {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.primary-btn::after {
    height: 37px;
    bottom: 0;
}
@keyframes slideMainImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes slideOtherImages {
    0% { transform: translateY(0); }
    50% { transform: translateY(20px); }
    100% { transform: translateY(0);}
}
@keyframes slideOtherImagesLess {
    0% { transform: translateY(0); }
    50% { transform: translateY(4px); }
    100% { transform: translateY(0);}
}
.home-main-image {
    animation: slideMainImage 6s infinite;
}
.home-over-image {
    animation: slideOtherImages 6s infinite;
}
.home-behind-image {
    animation: slideOtherImagesLess 6s infinite;
}

/* Section How We Work */

.how-we-work {
    text-align: center;
    background-color: black;
    padding: 60px 0;
}
.how-we-work h2 {
    font-style: italic;
    color: #ffffff;
}
.home-slider-how-we-work h2:nth-child(3) {
    font-size: 28px;
    font-weight: 400;
}
.home-slider-how-we-work p {
    color: #ffffff;
    padding: 0 25%;
    margin-bottom: 60px;
}
.home-slider-how-we-work img {
    display: block;
    margin: 0 auto;
    padding: 24px 0;
}
.slick-next {
    right: 0;
}
.slick-next::before {
    content: url("/assets/img/carousel-arrow-right.svg");
}
.slick-prev::before {
    content: url("/assets/img/carousel-arrow-left.svg");
}
.slick-slider .slick-dots li.slick-active button:before {
    opacity: 1;
    background: #ffffff;
    border: none;
}
.slick-slider .slick-dots li button:before {
    font-family: 'slick';
    font-size: 6px;
    line-height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    content: '';
    text-align: center;
    opacity: 1;
    background-color: #9E001B;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section Works */

.works-home {
    padding-top: 120px;
}

.works-home .row {
    align-items: center;
}
.works-home h2 {
    border-top: 1px solid #CA2525;
    padding-top: 16px;
}
.works-home h3 {
    margin-bottom: 16px;
}
.padding-fix {
    padding: 0;
}
.works-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    position: relative;
    flex-direction: row;
}

.work-card-first {
    background-image: url("/assets/img/work/ms.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
    height: 400px;
    display: block;
}

.work-card {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
    width: 100%;
    height: 250px;
}

.work-card-second {
    background-image: url("/assets/img/work/tapeta.jpg");
}

.work-card-third {
    background-image: url("/assets/img/work/odin.jpg");
}

.r-margin-left-80 {
    margin-left: 80px;
}

.work-card:nth-child(1) {
    width: 50%;
    height: 350px;
}
.work-card:nth-child(2) {
    width: 50%;
    height: 350px;
}

.work-card:nth-child(3) {
    width: 100%;
    height: 50px;
}

.work-card-text {
    position: absolute;
    left: 16px;
    bottom: 24px;
    z-index: 3;
}

.work-card-text span, .work-card-text-last span {
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    transition: .3s;
}

.work-card-link {
    background-color: transparent;
    transition: background-color 1s ease, backdrop-filter 1s ease, width 1s ease, height 1s ease, border-radius 1s ease, margin 1s ease, color 1s ease;
    position: relative; /* Ensure positioning context for pseudo-elements */
    text-decoration: none;
    overflow: hidden;
}

.work-card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%; /* Adjust as needed */
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 2; /* Ensure it appears above the image but below text */
}

.work-card-first::after {
    background: linear-gradient(to top, rgba(0,84,161,0.8), rgba(0,0,0,0));
} 

.work-card-third::after {
    background: linear-gradient(to top, rgba(225,182,0,0.8), rgba(0,0,0,0));
} 

.work-card-link:hover .work-card-text span {
    text-decoration: underline;
}

.work-card-text span::after {
    content: url("/assets/img/view-project-arrow-right.svg");
    margin-left: 4px;
}

.work-card-link {
    text-decoration: none;
    overflow: hidden; /* Ensures overlay doesn't go outside the card */
}


.work-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(202, 37, 37, .3);
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    z-index: 1;
}

.work-card-link:hover::before {
    opacity: 1; /* Show overlay on hover */
}

/* Section What We Work */


.what-we-work {
    padding: 80px 0;
}

@media only screen and (min-width: 2900px) {
    .what-we-work {
        margin: 120px 0px;
    }
}


.what-we-work h2 {
    text-align: center;
}
.home-slider-what-we-work h2 {
    font-size: 28px;
    text-align: left;
    padding: 0;
}
.home-slider-what-we-work p {
    padding-right: 15%;
}
.home-slider-what-we-work .row {
    align-items: center;
}
.what-we-work .slick-slider .slick-dots li.slick-active button:before {
    background: #CA2525;
}
.what-we-work .slick-slider .slick-dots li button:before {
    background-color: #2D2D2D;
}

/* Section Contact Form */

.contact-form-section {
    height: auto;
    padding: 80px 0;
}
.contact-form-section h2 {
    margin-bottom: 8px;
}
.contact-form-section h1 {
    margin-bottom: 60px;
}
.contact-form {
    display: flex;
    flex-direction: column;
}
.contact-form input,
.contact-form textarea {
    font-size: 24px;
    color: #868686;
    background-color: transparent;
    border: 1px solid #2D2D2D;
    border-radius: 5px;
    margin-bottom: 16px;
    padding: 10px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    color: #CA2525;
    border-color: #CA2525;
    outline: none;
}
.contact-form button {
    text-align: right;
    background-color: transparent;
    border: 0;
    padding: 0;
}
.contact-form .primary-btn::after {
    height: 41px;
}
.contact-hero-right {
    display: flex;
    justify-content: right;
    align-items: center;
    position: relative;
    width: 100%;
}
.contact-over-image {
    z-index: 2;
    animation: slideMainImage 6s ease infinite;
}
.contact-behind-image {
    z-index: 0;
    animation: slideOtherImagesLess 6s ease infinite;
}
.contact-behind-image-bg {
    z-index: 0;
}
.contact-main-image {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    animation: slideOtherImages 6s ease infinite;
}
.question-mark:nth-child(2) {
    top: 150px; right: 100px;
}
.question-mark:nth-child(3) {
    top: 120px; right: 400px;
}
.question-mark:nth-child(4) {
    top: 40px; right: 150px;
}
.contact-form button {
    margin-top: 12px;
    margin-right: 36px!important;
}

/* Animations */

@keyframes slideMainImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
@keyframes slideOtherImages {
    0% { transform: translateY(0); }
    50% { transform: translateY(20px); }
    100% { transform: translateY(0);}
}
@keyframes slideOtherImagesLess {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0);}
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */

@media (max-width: 575.98px) {
    .hero {
        height: 592px;    /* Adjusted height for mobile */
        margin-top: 72px; /* Adjusted margin for mobile */
      }
    
      .hero .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    .hero h1 {
        font-size: 48px;
        padding-right: 15%;
    }
    .hero p {
        font-size: 16px;
    }
    .numbers {
        background-image: url(/assets/img/bg-numbers-mob.png);
        background-size: auto 70%;
        background-position: right 190px;
        text-align: left;
        padding: 60px 0;
        height: auto;
    }
    .numbers .row {
        text-align: center;
        padding: 60px 0;
    }
    .numbers .row .col-lg-4:nth-child(1) {
        justify-content: flex-start !important;
    }
    .numbers .row .col-lg-4:nth-child(3) {
        justify-content: flex-end !important;
    }
    .numbers .circle {
        width: 120px;
        height: 120px;
    }
    .circle-text h2 {
        font-size: 28px;
    }
    .circle-text p {
        font-size: 14px;
    }
    .numbers-text h2 {
        margin-bottom: 0;
    }
    .mathematics {
        padding-bottom: 60px;
    }
    .mathematics img {
        order: -1 !important;
    }
    .slick-prev {
        display: none !important;
    }
    .slick-next {
        display: none !important;
    }
    .how-we-work h2 {
        font-size: 48px;
    }
    .home-slider-how-we-work p {
        padding: 0;
    }
    .works-home {
        padding-top: 60px;
    }
    .what-we-work {
        text-align: center;
        padding: 60px 0 40px;
    }
    .what-we-work h2 {
        font-size: 48px;
    }
    .home-slider-what-we-work h2 {
        font-size: 28px;
        text-align: center;
    }
    .home-slider-what-we-work p {
        padding: 0;
        margin-bottom: 60px;
    }
    .contact-form {
        margin-bottom: 60px;
    }
    .contact-form-section {
        background-position: top center;
        background-size: auto 36%;
        padding: 0;
    }
    .contact-form-section h2 {
        padding-top: 60px;
        font-size: 36px;
        padding: 0;
    }
    .contact-info {
        padding: 80px 0 32px;
    }
    .contact-behind-image-bg {
        top: 20px;
    }
    .contact-main-image {
        top: 30px;
        width: 100%;
    }
    .contact-behind-image-bg {
        width: 100%;
    }
    .question-mark:nth-child(2) {
        top: 150px; left: 50px;
    }
    .question-mark:nth-child(3) {
        top: 120px; right: 50px;
    }
    .question-mark:nth-child(4) {
        top: 40px; left: 150px;
    }
    .contact-hero-right {
        justify-content: center;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero {
        margin-top: 72px;
    }
    .contact-form-section {
        background-position: top center;
        background-size: auto 56%;
    }
    .contact-form-section h2 {
        padding-top: 20px;
    }
    .contact-form-section {
        padding: 60px 0 40px;
    }
    .contact-behind-image-bg {
        top: 20px;
    }
}
@media (max-width: 992px) {
    .home-main-image {
        width: 100%;
    }
    .r-margin-left-80 {
        margin-top: 24px;
    }
    .r-margin-left-80 {
        margin-left: -15px;
    }
}
@media (max-width: 1600px) {
    .contact-behind-image-bg {
        animation: none;
    }
    
}


.home-quotation {
    padding-top: 60px;
}



.home-saying {
    margin: 180px auto;
    padding: 20px 0;
    position: relative;
    width: 100%;
    text-align: center;
    color: white;
    background-color: transparent;
    transition: background-color 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .home-saying h2 {
    min-height: 2rem; /* Adjust this based on the font size */
}

  .home-saying.black {
    background-color: black;
  }

  h2#saying-1 {
    min-height: 2rem;
    font-size: 2rem;
    margin: 0;
  }

  h2#saying-1 i {
    font-style: italic;
    font-family: 'Georgia', serif; /* example font family */
  }

  h2#saying-1 span {
    color: var(--secondary-color); /* a different color for the period */
  }



  .video-container {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for example */
    overflow: hidden; /* Ensures the video doesn't scroll */
  }
  
  .video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1; /* Put the video behind the heading */
  }
  
  .video-container h2 {
    position: relative;
    color: #fff; /* White text for contrast */
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
  }
  


.home-question-answer {
    background: black;
    padding: 100px 0px;
}


.home-question-answer .small-question {
    font-size: 20px;
    color: rgb(177, 177, 177);
    text-transform: uppercase;
}


.home-question-answer .question {
    font-family: "IBM Plex Serif", serif;
    font-size: 48px;
    color: white;
}

@media only screen and (max-width: 650px) {
    .home-question-answer .question {
        font-size: 42px;
        margin: 70px 0px;
    }
}

.home-question-answer h2 {
    font-size: 30px;
    color: var(--secondary-color);
}

.home-question-answer span {
    color: var(--secondary-color);
}


.contact-form-section {
    margin: 100px 0px;
}


.new-hero {
    background: black;
    color: white !important;
}

.new-hero input {
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.hero-btn {
    padding: 10px;
    background: var(--secondary-color);
    color: white;
    border-radius: 10px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    cursor: pointer;
}


.new-hero h2 {
    font-size: 72px;
    color: white !important;
    padding: unset;
    text-align: center;
}

.new-hero p {
    color: white !important;
    padding: unset;
    margin-bottom: 20px;
}



@media only screen and (max-width: 600px) {
    .new-hero {
        height: auto !important;
    }
    
    .new-hero .input-wrapper {
        display: flex;
        flex-direction: column;
    }

    .new-hero h2 {
        font-size: 48px;
        color: white !important;
        padding: unset;
        text-align: center;
    }

    .hero-btn {
        margin-left: 0;
        text-align: center;
    }
}



  .carousel {
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    display: flex;
    > * {
        flex: 0 0 100%;
      }
    }
  
    /* Group the cards for better structure. */
    .group {
      display: flex;
      gap: 20px;
      /* Add padding to the right to create a gap between the last and first card. */
      padding-right: 20px;
    }

  .card {
    width: 100%;
    color: white;
    border-radius: 24px;
    box-shadow: rgba(0, 0, 0, 10%) 5px 5px 20px 0;
    padding: 20px;
    justify-content: center;
    align-items: center;
    background: transparent;
    font-family: "IBM Plex Serif", serif;
}

  .group {
    /* ... */
    will-change: transform; /* We should be nice to the browser - let it know what we're going to animate. */
    animation: scrolling 27s linear infinite;
  }

  @keyframes scrolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }

