html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

h3{
    margin-top: 50px;
    text-align: center;
}

h5 {
    text-align: center;
}

/*********************************************/

.hero-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 30px;
    background: #f8fbff;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    z-index: 0;
    opacity: 0.6;
}

.hero-section::before {
    width: 600px;
    height: 600px;
    background: #d6e4f6;
    top: -150px;
    left: -150px;
    transform: rotate(25deg);
}

.hero-section::after {
    width: 500px;
    height: 500px;
    background: #c3cfe0;
    bottom: -150px;
    right: -150px;
    transform: rotate(-20deg);
}

.hero-section .landing-intro {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero-section h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.revolver-wrapper {
    position: relative;
    margin-top: 100px;
    z-index: 2;
    overflow: hidden;
}

.revolver-track {
  display: flex;
  gap: 40px;    
}

/*********************************************/

.card:first-child {
  margin-left: 10px;
}

.card {
    flex: 0 0 calc((100% - 40px) / 3);
    border-radius: 12px;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;   
    display: block;
}

.card-text,
.card-beschreibung {
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 10px black;
    pointer-events: none;
    width: calc(100% - 40px);
    text-align: left;
}

.card-text {
    top: 20px;
    left: 50px;          
    font-size: 1.35rem;
}

.card-beschreibung {
    bottom: 20px;
    left: 50px;
    font-size: 1rem;
}

/*********************************************/

.features-section {
    position: relative;
    width: 90%;
    padding: 65px 0 15px 0; 
    margin: auto;
}

b {
    color: #3f6fb0;
}

.feature-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0px 0px 5px gray;
}

.feature-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: justify;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card,
.btn.third {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.feature-card.visible,
.btn.third.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: perspective(1000px) scale(1.05) translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.feature-card .row {
    row-gap: 20px;
}

.custom-feature-box {
    padding: 20px;
}

.custom-feature-title {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
}

.custom-feature-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

/*********************************************/

.carousel-section {
    width: 100%;
    overflow: hidden;
    background-color: #e5f0ff;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.carousel-slide {
    flex: 0 0 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem 0 1rem;
    box-sizing: border-box;
}

.slide-content {
    width: fit-content;
    max-width: 1000px;
    padding: 2rem 3rem;
    background: #c8dbf9;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); ;
    text-align: center;
    color: #333333;
    font-family: Arial, sans-serif;
}

.slide-content:hover {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.slide-content h3 {
    font-size: 1.35rem;
    font-weight: bold;
}

.slide-content p {
    font-size: 1.1rem;
    font-style: italic;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 22px;
    z-index: 100;
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    margin: 1.5rem 0 3rem 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.carousel-dots .dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    border: solid 1px black;
}

.carousel-dots .dot.active {
    background-color: var(--ivm_orange);
}

/*********************************************/

.cta-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-box {
    flex: 1 1 350px;
    max-width: 480px;
    padding: 50px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff, #f1f6ff);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);

    text-align: center;
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background: #000;
    color: #fff;
    font-size: 1.05rem;
}

.btn.primary:hover {
    background: #3b3b3b;
    transform: translateY(-3px);
}

.btn.secondary {
    background: #578dd5;
    color: white;
}

.btn.secondary:hover {
    background: #3f6fb0;
    transform: translateY(-3px);
}

.btn.third {
    position: relative;
    overflow: hidden;
    background: #578dd5;
    color: white;
    margin-top: 40px;     
    margin-bottom: 40px;
}

.btn.third:hover {
    background: #3f6fb0;
    transform: translateY(-3px);
}

.btn.third {
    position: relative;
    overflow: hidden;
}

.btn.third::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 40%,
        rgba(255,255,255,0.45) 50%,
        transparent 60%
    );
    transform: translateX(-250%);
    pointer-events: none;

    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-250%);
    }
    to {
        transform: translateX(250%);
    }
}
/*********************************************/

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    font-size: 22px;
    z-index: 100;
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

@media (max-width: 767px) {

    h3{
        margin-top: 20px;        
    }

    /*********************************************/

     .hero-section h1 {
        font-size: 1.8rem;
        white-space: normal;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .revolver-track {
        gap: 0;
    }

    /*********************************************/
    
    .card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

    .card {
        flex: 0 0 100%;
        margin: 0;
    }

    .card:not(.active) {
        opacity: 0;
        transform: scale(1);
    }

    .card:first-child {
        margin-left: 0px;
    }
    
    /*********************************************/

    .slide-content h3 {
        font-size: 1rem;
    }   

    .slide-content h5 {
        font-size: 1rem;
    }   

    .slide-content{
        text-align: justify;
        padding: 1.2rem;
    }

    .slide-content p {
        font-size: 0.9rem;   
        line-height: 1.2;
    }

    .carousel-arrow {
        opacity: 0.5;
    }

    /*********************************************/

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    /*********************************************/
     .arrow{
        opacity: 0.6;
    }
}