/* Video Section Classes */
.video-texts {
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-text-item {
    transition: opacity 1s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.video-title {
    margin: 0;
    font-size: clamp(3rem, 8vw, 5rem) !important;
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.video-subtitle {
    margin: 0 0 2rem 0;
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    white-space: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.references-container {
    margin-top: 1rem;
}

.references-label {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.references-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.reference-link {
    filter: drop-shadow(2px 2px 3px rgba(14, 32, 50, 0.5));
}

.reference-logo {
    height: 40px;
}

/* Carousel Classes */
.carousel-indicators-custom {
    margin-bottom: 0px;
}

.carousel-slide-bg {
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
}

.carousel-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.carousel-content {
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slide-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
    white-space: nowrap;
}

.slide-subtitle {
    margin: 0.5rem 0;
    font-size: clamp(1rem, 3vw, 1.8rem);
    white-space: nowrap;
}

.subtitle-link {
    color: var(--njorka-light-blue);
}

.slide-button-link {
    margin-top: 1rem;
}

.slide-button-custom {
    font-size: 1.2em;
    border-radius: 0px;
}

.carousel-control-custom-left {
    margin-right: 100px;
}

.carousel-control-custom-right {
    margin-left: 100px;
}

/* Hero Section */
.hero-section {
    scroll-margin-top: 70px;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--njorka-dark-blue);
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeInVideo 2s ease-in-out;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

/* Trust Indicators */
.triangles-bg {
    transform: translateY(-896px) translateX(-270px);
    z-index: 1;
    rotate: -59deg;
    position: absolute;
    opacity: 0.4;
}

.opal-logo {
    height: 45px;
}

/* Products Section */
.product-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.product-icon {
    height: 60px;
    width: 60px;
    opacity: 0.8;
}

/* Solutions Section */
.solution-icon {
    height: 60px;
    width: 60px;
}

.solution-text {
    margin-bottom: 10px;
}

.solution-triangles {
    transform: translateY(-360px) translateX(0);
    z-index: 0;
    rotate: -18deg;
    position: absolute;
    opacity: 0.2;
    scale: 3.5;
    top: 1600px;
}

/* Values Section */
.value-icon {
    height: 60px;
    width: 60px;
}

/* References */
.references-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    padding: 20px;
}

.reference-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-item a img {
    min-height: 50px;
    max-height: 50px;
}

.feature-blocks h1 {
    text-align: center;
    font-size: 2rem;
}

.feature-blocks h2 {
    text-align: center;
    font-size: 2rem;
}

.feature-blocks-intro {
    text-align: center;
    white-space: pre-line;
}

.feature-blocks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-block-card {
    background: var(--color-surface);
    padding: 20px;
    border: 1px solid var(--njorka-light-gray);
    transition: border-color 0.3s ease;
    text-align: center;
    color: var(--njorka-dark-blue) !important;
}

.feature-block-card:hover {
    border-color: var(--njorka-light-blue);
}

.feature-block-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
}

.feature-block-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-block-content p {
    white-space: pre-line;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .feature-blocks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .video-title {
        font-size: 2.5rem;
        white-space: normal !important;
        text-align: center;
        padding: 0 20px;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .video-subtitle {
        font-size: 1.2rem;
        white-space: normal !important;
        text-align: center;
        padding: 0 20px;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .video-text-item {
        padding: 0 20px;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .references-grid {
        flex-direction: column;
    }

    .references-container {
        margin-top: 0.5rem;
        padding: 0 40px;
    }

    .references-label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .references-flex {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-logo {
        height: 30px;
    }

    #specialization-section {
        padding: 0px;
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

@media (max-width: 640px) {
    .feature-blocks-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .feature-block-card {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 16px;
    }

    .feature-block-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-block-content h3 {
        font-size: 1.1rem;
        text-align: left;
    }

    .feature-block-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding: 0 15px;
    }

    .video-subtitle {
        font-size: clamp(0.9rem, 4vw, 1rem);
        padding: 0 15px;
    }

    .video-text-item {
        padding: 0 15px;
    }

    .reference-logo {
        height: 25px;
    }

    .references-container {
        margin-top: 0.5rem;
        padding: 0 40px;
    }
}
