/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #FAF9F5 url('assets/background/gradients/firstPageRightSideBackgroundGradient.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Language Switcher */
.language-switcher {
    /* position: absolute; */
    /* top: 20px; */
    /* right: 20px; */
    /* z-index: 100; */
    margin-top: 15px;
    display: inline-flex;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 100px;
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.66);
    flex-shrink: 0;
}

.lang-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 100px;
    color: #3D3D3D;
    font-family: Poppins;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -1px;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    color: #FFF;
    font-weight: 300;
    background: linear-gradient(93deg, #A59FC3 -82.63%, #542B81 -36.76%, #DC379F 27.24%, #F3A199 73.1%, #FAF6E8 113.63%);
    display: flex;
    padding: 8px 14px;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.lang-btn .flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
}

.lang-btn .flag.flag-us {
    background: linear-gradient(to bottom, #B22234 0%, #B22234 7.69%, #FFFFFF 7.69%, #FFFFFF 15.38%, #B22234 15.38%, #B22234 23.07%, #FFFFFF 23.07%, #FFFFFF 30.76%, #B22234 30.76%, #B22234 38.45%, #FFFFFF 38.45%, #FFFFFF 46.14%, #B22234 46.14%, #B22234 53.83%, #FFFFFF 53.83%, #FFFFFF 61.52%, #B22234 61.52%, #B22234 69.21%, #FFFFFF 69.21%, #FFFFFF 76.9%, #B22234 76.9%, #B22234 84.59%, #FFFFFF 84.59%, #FFFFFF 92.28%, #B22234 92.28%, #B22234 100%);
    position: relative;
}

.lang-btn .flag.flag-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 53.83%;
    background: #3C3B6E;
}

.lang-btn .flag.flag-br {
    background: #009739;
    position: relative;
}

.lang-btn .flag.flag-br::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 6px solid #FEDD00;
    border-top: 6px solid #FEDD00;
}

.lang-btn .flag.flag-br::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #012169;
    border-radius: 50%;
}

/* Page Container */
.page {
    display: none;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page.active {
    display: block;
    opacity: 1;
}

/* Gallery Page */
.gallery-container {
    display: flex;
    width: 100%;
    height: 100vh;
    background: url('./assets/background/gradients/firstPageRightSideBackgroundGradient.png') no-repeat top center;
    background-size: cover;
}

.gallery-left {
    flex: 1;
    padding: 15px 30px;
    overflow: hidden;
    min-width: 0;
    /* background: white; */
    position: relative;
    display: flex;
    flex-direction: column;
}

.gallery-right {
    width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px;
    flex-shrink: 0;
    border-left: 1px solid #D3B3D3;
}

.main-title {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    text-align: start;
    flex-shrink: 0;
}

.gradient-text {
    background: linear-gradient(88deg, #A59FC3 -42.33%, #542B81 0.06%, #DC379F 59.22%, #F3A199 101.61%, #FAF6E8 139.08%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    flex: 1;
    overflow: hidden;
    align-content: start;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    height: fit-content;
}

.video-title {
    color: #3D3D3D;
    font-family: Poppins;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 0;
    flex-shrink: 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

/* .video-card:hover .video-container {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
} */

.video-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    background-color: transparent; /* no background or gradient */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* optional soft shadow */
}

.video-container video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    background-color: #fff; /* optional, in case video has transparent edges */
}




.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.play-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video Title */
.video-card-title {
    color: #3D3D3D;
    text-align: start;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.2;
}

/* QR Section */
.qr-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 30px;
    flex-shrink: 0;
}

/* QR Container */
.qr-container {
    display: flex;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16/9;
    padding: 15px;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    border: 1px solid white;
    background: #F9E7E7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.qr-code {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.qr-title {
    color: #3D3D3D;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.oracia-logo {
    margin-top: 10px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.oracia-logo img {
    width: auto;
    height: 35px;
    object-fit: contain;
}

.oracia-text {
    font-size: 36px;
    font-weight: 300;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.detail-right .oracia-text {
    font-size: 28px;
}

/* Detail Page */
.detail-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.detail-left {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
    gap: 15px;
}

.detail-right {
    width: 600px;
    border-left: 1px solid #D3B3D3;
    padding: 20px 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-player-container {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-height: 55vh;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Video Loading State */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.video-loading.hidden {
    display: none;
}

/* Loading Spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #DC379F;
    border-right: 4px solid #F3A199;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(220, 55, 159, 0.3);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Video Carousel */
.video-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    flex-shrink: 0;
    max-height: 160px;
}

.video-carousel::-webkit-scrollbar {
    height: 6px;
}

.video-carousel::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.video-carousel::-webkit-scrollbar-thumb {
    border-radius: 4px;
}

/* Carousel Item - Container */
.carousel-item {
    width: 25%;
    height: 140px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Thumbnail wrapper - with gradient border for active */
.carousel-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 6.715px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

/* Active item - gradient border on thumbnail wrapper */
.carousel-item.active .carousel-thumbnail-wrapper {
    background: transparent;
    border: 2px solid;
    border-image: linear-gradient(95deg, #A59FC3 -29.68%, #542B81 9.55%, #DC379F 64.28%, #F3A199 103.51%, #FAF6E8 138.17%) 1;
}

/* Thumbnail image */
.carousel-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button overlay */
.carousel-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* <-- no black tint */
}

/* Play icon */
.carousel-play-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-play-icon {
    transform: scale(1.1);
}

/* Title section - outside the bordered container */
.carousel-title {
    width: 100%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hide title for active (playing) video only */
.carousel-item.active .carousel-title {
    display: none;
}


/* Content Section */
.content-section {
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
}

/* ORACIA Logo in detail page */
.oracia-logo-detail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.oracia-logo-detail .oracia-text {
    font-size: 36px;
    font-weight: 300;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* QR Section in detail page */
.qr-section-detail {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    border: 1px solid #FFF;
    background: #F9E7E7;
    flex-shrink: 0;
}

.qr-section-detail .qr-code {
    width: 200px;
    height: 200px;
    margin-bottom: 8px;
}

/* Language Switcher in detail page */
.language-switcher-detail {
    display: inline-flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.66);
}

/* Force 2 columns layout */
@media (max-width: 1400px) {
    /* .video-container {
        max-width: 400px;
    } */

    .qr-container {
        max-width: 400px;
    }

    .gallery-right {
        width: 500px;
    }

    .detail-right {
        width: 500px;
    }
}

/* Responsive adjustments for 27" screen */
@media (min-width: 1920px) {
    .main-title {
        font-size: 40px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }

    .gallery-right {
        width: 650px;
    }

    .detail-right {
        width: 650px;
    }

    /* .video-container {
        max-width: 550px;
    } */

    .qr-container {
        max-width: 550px;
    }
}

/* Accessibility */
button:focus,
.video-card:focus,
.carousel-item:focus {
    outline: none;
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.features-grid {
    display: grid;
    gap: 15px;
    margin-top: 10px;
    flex-shrink: 0;
}

/* Different grid layouts for different feature types */
.features-autopilot {
    grid-template-columns: 250px 1fr;
    grid-template-rows: 190px 110px;
}

.features-synergy {
    grid-template-columns: 250px 1fr;
    grid-template-rows: 190px 110px;
}

.features-ask-oracia {
    grid-template-columns: 1fr 250px;
    grid-template-rows: 190px 110px;
}

.features-smart-crm {
    grid-template-columns: 1fr 250px;
    grid-template-rows: 190px 110px;
}

.feature-block {
    border-radius: 8px;
    border: 1px solid #FFF;
    background: #F9E7E7;
    padding: 10px 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

/* Block with image - spans 2 rows */
.feature-block:nth-child(1) {
    width: 250px;
    height: 315px;
}


/* Block 1 title (with image) */
.feature-title-block1 {
    text-align: center;
    font-family: Poppins;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background: linear-gradient(95deg, #A59FC3 -29.68%, #542B81 9.55%, #DC379F 64.28%, #F3A199 103.51%, #FAF6E8 138.17%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Block 2 title (without subtitle) */
.feature-title-block2 {
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background: linear-gradient(95deg, #A59FC3 -29.68%, #542B81 9.55%, #DC379F 64.28%, #F3A199 103.51%, #FAF6E8 138.17%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Block 3 title (with subtitle) */
.feature-title-block3 {
    color: #3D3D3D;
    text-align: center;
    font-family: Poppins;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;


}

/* Fallback for generic feature-title */
.feature-title {
    text-align: center;
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background: linear-gradient(95deg, #A59FC3 -29.68%, #542B81 9.55%, #DC379F 64.28%, #F3A199 103.51%, #FAF6E8 138.17%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-subtitle {
    text-align: center;
    font-family: Poppins;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    background: linear-gradient(95deg, #A59FC3 -28.48%, #542B81 6.56%, #DC379F 55.45%, #F3A199 90.49%, #FAF6E8 121.46%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 8px 0;
}

.feature-description {
    font-size: 11px;
    text-align: center;
    color: #545961;
    text-align: center;
    font-family: Poppins;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


.feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.feature-svg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.feature-block:hover .feature-svg-image {
    opacity: 1;
}

/* Stars icon in second block */
.feature-stars-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 10px 0;
}

.stars-svg {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Specific block positioning for different layouts */
/* Autopilot: Image LEFT, subtitle BOTTOM-RIGHT, other TOP-RIGHT */
.features-autopilot .feature-block:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.features-autopilot .feature-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    height: 190px;
}

.features-autopilot .feature-block:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    height: 110px;
}

/* Synergy: Image LEFT, subtitle BOTTOM-RIGHT, other TOP-RIGHT */
.features-synergy .feature-block:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.features-synergy .feature-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    height: 190px;
}

.features-synergy .feature-block:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    height: 110px;
}

/* Ask Oracia: Image RIGHT, subtitle BOTTOM-LEFT, other TOP-LEFT */
.features-ask-oracia .feature-block:nth-child(1) {
    grid-column: 2;
    grid-row: 1 / 3;
}

.features-ask-oracia .feature-block:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    height: 110px;
}

.features-ask-oracia .feature-block:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
    height: 190px;
}

/* Smart CRM: Image RIGHT, subtitle BOTTOM-LEFT, other TOP-LEFT */
.features-smart-crm .feature-block:nth-child(1) {
    grid-column: 2;
    grid-row: 1 / 3;
}

.features-smart-crm .feature-block:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    height: 190px;
}

.features-smart-crm .feature-block:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
    height: 110px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }

    .feature-block {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
}