/* CSS for section section:hero */
.hero-section {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--color-text-light);
    z-index: -10;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-vertical .carousel-item {
    height: 100%;
    transition: transform 1s ease-in-out !important;
}

.carousel-vertical .carousel-inner {
    height: 100%;
}

/* Forward */

/* Exiting slide goes up: */
.carousel-vertical .carousel-item.active.carousel-item-start {
    transform: translateY(-100%) !important;
}

/* Entering slide starts below carousel */
.carousel-vertical .carousel-item.carousel-item-next {
    transform: translateY(100%) !important;
}

/* Entering slide goes up to flush with carousel */
.carousel-vertical .carousel-item.carousel-item-next.carousel-item-start {
    transform: translateY(0%) !important;
}


/* Backward: */

/* Exiting slide goes down: */
.carousel-vertical .carousel-item.active.carousel-item-end {
    transform: translateY(100%) !important;
}

/* Entering slide starts above carousel */
.carousel-vertical .carousel-item.carousel-item-prev {
    transform: translateY(-100%) !important;
}

.bg-img-1 {
    top: 0;
}

.bg-img-2 {
    top: 780px;
}

/* These are likely for an animation, placing them for static view */
.bg-img-3 {
    top: 1560px;
}

.hero-content-container {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-title {
    font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
    font-weight: 1000;
    font-size: 72px;
    line-height: 84px;
    color: #fafafa;
    margin: 0;
}

.animated-text-container {
    display: inline-block;
}

.animated-text {
    font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
    font-weight: 1000;
    font-size: inherit;
    /* match hero title size on all breakpoints */
    line-height: inherit;
    /* keep line height consistent with title */
    color: #f4992c;
    -webkit-text-stroke: 1.5px #1b1d6b;
    text-shadow: 2px 2px 5px rgba(67, 16, 5, 0.25);
}

@media (max-width: 768px) {

    /* Slightly reduce stroke for better readability on small screens */
    .animated-text {
        -webkit-text-stroke-width: 1px;
    }
}

.hero-description-box {
    background-color: rgba(17, 17, 17, 0.2);
    border: 1px solid rgba(250, 250, 250, 0.2);
    backdrop-filter: blur(42px);
    -webkit-backdrop-filter: blur(42px);
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    max-width: 320px;
    display: inline-block;
}

.hero-cta {
    align-self: flex-start;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
        line-height: 1.2;
    }

    .hero-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .hero-description-box {
        margin-top: 0;
        margin-left: 0;
        /* Align with title */
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 600px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-content {
        justify-content: center;
        gap: 40px;
    }
}

/* CSS for section section:about */
.about-section {
    background-color: #27278b;
    padding: 40px 0;
    overflow: hidden;
    z-index: 5;
    position: relative;
    margin: 0 150px;
}

.about-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    max-height: 272px;
}

.about-illustration {
    position: relative;
    width: 423px;
    height: 272px;
    flex-shrink: 0;
}

.about-illustration img {
    position: absolute;
}

.pattern-1 {
    top: -76px;
    left: -69px;
}

.pattern-2 {
    top: -47px;
    left: -98px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    color: var(--color-text-light);
    z-index: 2;
}

.about-text {
    font-family: 'Neue Haas Grotesk Display Pro', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.24px;
    max-width: 652px;
}

.about-cta {
    background: linear-gradient(150deg, #f6ae45 73.03%, #93a1f1 115.33%);
}

.about-cta img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        max-height: none;
    }

    .about-content {
        align-items: flex-start;
        text-align: left;
    }

    .about-illustration {
        width: 100%;
        height: 140px;
        margin-top: 0;
        margin-left: 0;
    }

    .pattern-1,
    .pattern-2 {
        transform: scale(0.7);
        left: 50%;
        margin-left: -211px;
    }

    /* Relax outer margins and clipping for small screens */
    .about-section {
        margin: 0 16px;
        padding: 24px 0;
        overflow: visible;
        /* ensure button/text not cut off */
    }
}

@media (max-width: 768px) {
    .about-text {
        font-size: 18px;
        line-height: 26px;
    }

    .about-illustration {
        height: 120px;
    }
}

/* CSS for section section:services */
.services-section {
    padding-top: 250px;
    padding-bottom: 250px;
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.services-header-left {
    flex: 1;
    max-width: 590px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-header-right {
    flex: 1;
    max-width: 590px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    border: 1px solid #cccccc;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}

.service-card-icon-bg {
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 253, 250, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.service-card-icon-bg img {
    max-width: 200px;
    max-height: 200px;
}

.service-card-content {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.service-card h4 {
    font-size: 32px;
    font-weight: 600;
}

.service-card p {
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-text-medium);
}

@media (max-width: 1024px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .products-section {
        margin-top: -250px;
    }
}

/* CSS for section section:products */
.products-section {
    margin-top: -150px;
    padding-bottom: 200px;
}

.products-container {
    display: flex;
    gap: 30px;
}

.products-sidebar {
    position: sticky;
    height: 300px;
    top: 4.5rem;
    bottom: 10rem;
}

.products-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.products-list {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    z-index: 2;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-content h4 {
    font-size: 32px;
    font-weight: 600;
}

.product-content p {
    font-size: 20px;
    line-height: 1.3;
    color: var(--color-text-medium);
}

.product-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 16px;
}

.product-link img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .products-container {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        gap: 30px;
        position: relative;
        height: 400px;
    }

    .products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-list {
        grid-template-columns: 1fr;
    }
}

/* CSS for section section:testimonials */
.testimonials-section {
    position: relative;
    padding: 92px 0;
    background: linear-gradient(135deg, #f4992c 0%, #494bdf 38.57%, #1b1d6b 141.42%);
    color: var(--color-text-light);
    overflow: hidden;
}

.slider-pagination {
    display: flex;
    gap: 8px;
}

.slider-pagination .dot {
    width: 60px;
    height: 4px;
    background: #dedede;
}

.testimonial .carousel-indicators button {
    width: 60px;
    height: 4px;
    background-color: #dedede !important;
    transition: width 1s ease;
}

.testimonial .carousel-indicators button.active {
    width: 120px;
    height: 4px;
    background-color: var(--color-primary) !important;
}

.testimonial .carousel-indicators {
    top: 22.9em;
    left: 8.5em;
}

.testimonial .slider-arrows {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 50em;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-bottom: 1rem;
    top: 23rem;
}


.testimonial-bg-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-pattern-1 {
    position: absolute;
    left: -170px;
    bottom: -110px;
}

.bg-pattern-2 {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    border: 1px solid #6873e9;
}

.testimonials-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    text-align: center;
}

.testimonials-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 656px;
}

.testimonials-tag {
    color: #f0f0f0;
}

.testimonials-tag::after {
    background-color: var(--color-secondary);
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-heading {
    color: var(--color-text-light);
}

.testimonials-subheading {
    color: #f0f0f0;
}

.testimonial-slider {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
    /* vertically center image and text */
}

.testimonial-image-area {
    position: relative;
    width: 386px;
    height: 380px;
    flex-shrink: 0;
    background-image: url(../../assets/images/12faa6358a1cd3aaac9d8176335b188140683448.png);
    background-size: 550px 600px;
    background-repeat: no-repeat;
}

.testimonial-image-area>img {
    position: absolute;
}

.testimonial-bg-img {
    top: -23px;
    left: -61px;
    width: 674px;
    height: 842px;
}

.testimonial-overlay-pattern {
    top: -25px;
    left: -43px;
}

.testimonial-overlay-pattern-2 {
    bottom: -100px;
    left: -72px;
    opacity: 0.3;
    border: 1px solid #13144d;
}

.testimonial-client-info {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.client-avatar {
    width: 100px;
    height: 100px;
}

.client-name {
    font-size: 24px;
    font-weight: 600;
}

.client-company {
    font-size: 16px;
    color: #dedede;
}

.testimonial-quote-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* center text vertically relative to image */
    text-align: left;
}

.quote-content {
    position: relative;
    padding-top: 30px;
}

.quote-mark {
    font-size: 200px;
    font-weight: 500;
    color: #6873e9;
    position: absolute;
    top: -80px;
    right: 20px;
    left: auto;
    line-height: 1;
}

.quote-text {
    position: relative;
    font-size: 24px;
    font-weight: 500;
    line-height: 40px;
    max-width: 590px;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    /* space between arrows and pagination */
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 16px;
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    background: #27278b;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.arrow-btn img {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .testimonial-slider {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .testimonial-quote-area {
        text-align: center;
        align-items: center;
        /* center with image on mobile */
    }

    .quote-content {
        padding-top: 0;
    }

    .quote-mark {
        display: none;
    }

    .quote-text {
        text-align: center;
    }

    .slider-controls {
        width: 100%;
        justify-content: space-between;
        /* arrows | pagination */
        gap: 16px;
        margin-top: 16px;
        padding: 0 16px;
    }

    /* Move indicators and arrows into normal flow below text */
    .testimonial .carousel-indicators {
        position: static !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .testimonial .slider-arrows {
        position: static !important;
        right: auto;
        left: auto;
        top: auto;
        margin: 0;
        padding: 0;
    }

    .news-container {
        margin: 0 120px;
    }

    .news-header {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .news-slider-controls {
        margin-right: 2em !important;
        margin-left: 0 !important;
        padding-left: 1.5em !important;
        padding-right: 1.5em !important;
    }

    .news-card-wrapper {
        padding-left: 1.5em !important;
    }

}

/* CSS for section section:news */
.news-section {
    padding: 92px 0;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-right: 0;
    padding-right: 0;
    max-width: 100%;
    padding-left: 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin: 0 120px;
}

.news-header-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 611px;
    scrollbar-color: var(--color-primary);
    scrollbar-track-color: var(--color-primary);
    scrollbar-face-color: var(--color-primary);
    scrollbar-base-color: #dedede !important;
}

.news-slider {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: inherit;
}

.news-slider::-webkit-scrollbar {
    display: none;
    width: thin;
}

.news-card-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
    padding-left: 120px;
    padding-right: 20em;
}

.news-card {
    width: 386px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.news-card-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.news-card-image {
    height: 305px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.news-date {
    font-size: 12px;
    font-weight: 500;
}

.news-card h5 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.news-card p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    height: 40px;
    overflow: hidden;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.news-link img {
    width: 20px;
    height: 20px;
}

.card-style-1 {
    background-color: #f0f0f0;
}

.card-style-1 .news-date {
    color: #595959;
}

.card-style-1 h5,
.card-style-1 p {
    color: #262626;
}

.card-style-1 .news-link {
    color: var(--color-primary);
}

.card-style-2 {
    background: linear-gradient(90deg, #ee7611 0%, #f6ae45 100%);
    color: var(--color-text-light);
}

.card-style-2 .news-date,
.card-style-2 p {
    color: #f0f0f0;
}

.card-style-2 .news-link {
    color: var(--color-secondary);
}

.card-style-3 {
    background: linear-gradient(90deg, #27278b 0%, #6873e9 100%);
    color: var(--color-text-light);
}

.card-style-3 .news-date,
.card-style-3 p {
    color: #dedede;
}

.card-style-3 .news-link {
    color: var(--color-primary);
}

.news-slider-controls {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-right: 30em;
    margin-left: 120px;
}

.news-pagination {
    flex-grow: 1;
    height: 4px;
    background: #dedede;
}

.progress-bar {
    width: 16.6%;
    height: 100%;
    background: var(--color-primary);
}

.news-arrows {
    display: flex;
    gap: 12px;
}

.arrow-btn-light {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border: 1px solid #b3b3b3;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* CSS for section section:contact */
.contact-section {
    height: 560px;
    background-image: url('../../assets/images/d171bc1943a204538639c2952e98b17d76603063.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.contact-content-box {
    max-width: 489px;
    background-color: rgba(250, 250, 250, 0.4);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-left: 100px;
    /* Approximate position from design */
}

.contact-content-box .section-heading {
    color: #111111;
}

.contact-buttons {
    display: flex;
    gap: 16px;
}

.btn-light {
    background: var(--color-background);
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .contact-section {
        justify-content: center;
        text-align: center;
    }

    .contact-content-box {
        margin-left: 0;
        align-items: center;
    }

    .contact-buttons {
        flex-direction: column;
    }
}


.hole-overlay {
    width: 100%;
    height: 100%;
    mask:
        url('../../assets/images/253_mask.svg') center no-repeat,
        linear-gradient(#000 0 0);
    /* we need this extra layer for mask-composite */
    mask-size: 100% 200px;
    mask-composite: exclude;
}

@media (max-width: 1024px) {
    .hole-overlay {
        width: 100%;
        height: 100%;
        mask:
            url('../../assets/images/253_mask_v.svg') center no-repeat,
            linear-gradient(#000 0 0);
        /* we need this extra layer for mask-composite */
        mask-size: 200px 100%;
        mask-position: center 7em;
        mask-composite: exclude;
    }
}