/* --- Custom CSS for PT SRS Solusi Digital --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: #333333;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333333;
}

.btn-gradient {
    background: linear-gradient(90deg, #5F00FF 0%, #DB00FF 100%);
    color: white;
    transition: all 0.3s ease-in-out;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(95, 0, 255, 0.4);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #DB00FF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    max-height: 800px;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(95, 0, 255, 0.6) 0%, rgba(219, 0, 255, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 2rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-card {
    background-color: #F5F5F5;
    border-left: 4px solid #5F00FF;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
    font-style: italic;
    color: #333333;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.testimonial-quote::before {
    content: '“';
    font-size: 3rem;
    color: #DB00FF;
    font-weight: bold;
    line-height: 0;
    position: relative;
    top: 1rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-bg {
    position: relative;
    background-image: url('../images/office.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.contact-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.6);
}

.contact-bg>div {
    position: relative;
    z-index: 10;
}

/* --- Language Switcher --- */
.language-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

.language-toggle-container .lang-icon {
    color: #333333;
}

.toggle-switch {
    width: 60px;
    height: 30px;
    background-color: #e5e7eb;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    box-sizing: border-box;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background-color: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-option {
    width: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
    color: #6b7280;
    transition: color 0.3s ease;
}

.lang-option.active {
    color: #5F00FF;
}

/* --- Coming Soon Badge --- */
.disabled-link {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.coming-soon-badge {
    position: absolute;
    top: -10px;
    right: -20px;
    background-color: #FFD700;
    color: #333333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(15deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Reusable Component Styles from Klaimr page --- */
.gradient-bg {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- General Tab Styles --- */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Problem/Solution Carousel Styles --- */
#problem-solution-carousel {
    height: 500px;
    /* Adjust height as needed */
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1500px;
    /* Creates the 3D space */
    overflow: hidden;
}

.carousel-track {
    position: relative;
    /* Changed from absolute */
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    /* Absolute positioning within the track */
    width: 350px;
    /* Card width */
    height: auto;
    flex-shrink: 0;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    cursor: pointer;
    opacity: 0;
    /* Hide by default, JS will make them visible */
    transform: scale(0.7);
    /* Start scaled down */
}

/* Card Content Styling */
.carousel-card .card-content {
    background-color: #FFFFFF;
    border-radius: 1.5rem;
    /* 24px */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border: 1px solid #e5e7eb;
    /* Subtle border */
}

.carousel-card:not(.is-active) .card-content:hover {
    transform: translateY(-5px);
}

/* Positioning and styling based on state */
.carousel-card.is-active {
    transform: translateZ(0) rotateY(0) scale(1);
    opacity: 1;
    z-index: 10;
    cursor: default;
}

.carousel-card.is-prev {
    transform: translateX(-55%) translateZ(-200px) rotateY(45deg) scale(0.85);
    opacity: 0.6;
    z-index: 5;
}

.carousel-card.is-next {
    transform: translateX(55%) translateZ(-200px) rotateY(-45deg) scale(0.85);
    opacity: 0.6;
    z-index: 5;
}

/* Navigation Buttons */
.carousel-button {
    background-color: rgba(255, 255, 255, 0.8);
    color: #374151;
    /* gray-700 */
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.carousel-button:hover {
    background-color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    color: #111827;
    /* gray-900 */
}

/* Progress Bar */
.progress-bar-container {
    width: 90%;
    height: 4px;
    background-color: #e5e7eb;
    /* gray-200 */
    border-radius: 2px;
    margin: 16px auto 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-card.is-active .progress-bar-container {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4f46e5;
    /* indigo-600 */
    border-radius: 2px;
}

@keyframes fill-progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-card {
        width: 300px;
    }

    .carousel-card.is-prev {
        transform: translateX(-45%) translateZ(-150px) rotateY(50deg) scale(0.8);
    }

    .carousel-card.is-next {
        transform: translateX(45%) translateZ(-150px) rotateY(-50deg) scale(0.8);
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    #problem-solution-carousel {
        height: 450px;
    }

    .carousel-card {
        width: 280px;
    }

    .carousel-card.is-prev {
        transform: translateX(-35%) translateZ(-100px) rotateY(60deg) scale(0.75);
    }

    .carousel-card.is-next {
        transform: translateX(35%) translateZ(-100px) rotateY(-60deg) scale(0.75);
    }

    .carousel-button {
        display: none;
    }

    /* Hide buttons on smallest screens, rely on card click/tap */
}


/* --- Styles for "How It Works" Tabs --- */
#how-it-works-tabs .tab-button {
    position: relative;
    overflow: hidden;
}

#how-it-works-tabs .tab-button.active {
    background-color: white;
    color: #111827;
    border-bottom-color: white !important;
    z-index: 10;
}

#how-it-works-tabs .tab-button:not(.active) {
    background-color: #f3f4f6;
    color: #374151;
}

#how-it-works-tabs .tab-button .loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #e0e7ff;
    z-index: 5;
    border-radius: 0.65rem;
}

#how-it-works-tabs .tab-button.active .loading-bar.running {
    animation-timing-function: linear;
    animation-name: fill-up;
}

@keyframes fill-up {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.video-container .video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    /* 16px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-bottom-left-radius: 0.5rem;
    /* Match video's rounded corners */
    border-bottom-right-radius: 0.5rem;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem;
    /* 8px */
    border-radius: 9999px;
    /* full */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.video-controls button:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

/* Chat Widget Styles */
.chat-widget-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.chat-widget-button {
    background-color: #ffffff; /* White background */
    color: #4f46e5; /* indigo-600 for text */
    border-radius: 9999px; /* pill shape */
    padding: 0.5rem; /* 8px */
    padding-left: 1.5rem; /* 24px */
    display: flex;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #e5e7eb; /* light gray border */
}

.chat-widget-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.chat-widget-options {
    position: absolute;
    bottom: calc(100% + 1rem); /* Position above the button */
    right: 0;
    width: 250px;
    background-color: white;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    visibility: hidden;
}

.chat-widget-container.open .chat-widget-options {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-widget-options a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151; /* gray-700 */
    border-radius: 0.5rem; /* 8px */
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.chat-widget-options a:hover {
    background-color: #f3f4f6; /* gray-100 */
}

.chat-widget-options a svg {
    margin-right: 0.75rem;
}