/* Custom CSS for CrawlXpert */

/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply Poppins font to all elements */
* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Color Theme Variables */
:root {
    --primary-color: #3B82F6;
    /* Blue-500 */
    --primary-dark: #2563EB;
    /* Blue-600 */
    --primary-light: #93C5FD;
    /* Blue-300 */
    --secondary-color: #10B981;
    /* Emerald-500 */
    --accent-color: #8B5CF6;
    /* Violet-500 */
    --text-dark: #1F2937;
    /* Gray-800 */
    --text-light: #6B7280;
    /* Gray-500 */
    --background-light: #F9FAFB;
    /* Gray-50 */
    --background-dark: #1F2937;
    /* Gray-800 */
    --white: #FFFFFF;
    --black: #000000;
    --error: #EF4444;
    /* Red-500 */
    --success: #10B981;
    /* Emerald-500 */
    --warning: #F59E0B;
    /* Amber-500 */
}

/* Font weight utilities */
.font-light {
    font-weight: 300;
}

.font-regular {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Override Tailwind classes with our custom color variables */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-dark {
    background-color: var(--background-dark) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-primary-light {
    color: var(--primary-light) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    opacity: 0.9;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Better box-shadow utilities */
.shadow-custom {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.shadow-custom-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-custom-hover:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Additional custom styles can be added here */

/* Custom animations for mobile menu */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.menu-open {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
}

.custom-header {
    width: 100%;
    height: 70px;
    padding: 0 0 !important;
}

.custom-header .nav-flex {
    height: 100%;
}

.menu-items a,
.menu-items button {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

/* -------------------- */

.tab-button {
    position: relative;
    transition: all 0.3s ease;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #3B82F6, #8B5CF6);
    transition: width 0.3s ease;
}

.tab-button.active {
    color: #3B82F6;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.tab-content.active {
    opacity: 1;
    max-height: 2000px;
    /* Adjust based on your content */
}

.feature-icon {
    background: linear-gradient(135deg, #60A5FA, #8B5CF6);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------- */

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

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.top-title {
    padding: 10px 20px;
    background-color: var(--primary-dark);
    border-radius: 10px;
    margin-bottom: 20px;
}

.top-title h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--white);
}

.rounded-square-card .point {
    margin-bottom: 10px;
}

.rounded-square-card .point i {
    color: #00a63e;
    margin-right: 10px;
}

.rounded-square-card .point span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
}

.rounded-square-card .point span strong {
    color: var(--text-dark);
}

.box-scroll {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.disc-card {
    width: 24%;
}

.disc-card-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    height: 100%;
}

.box-scroll .disc-card:nth-of-type(odd) {
    transform: translateY(100px);
}

.monitoring-container {
    padding: 20px;
    position: relative;
}

.monitoring-container::before {
    content: "";
    height: 70%;
    width: 12px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 52%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    z-index: 5;
}

.monitoring-dot-1 {
    content: "";
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50px;
    position: absolute;
    left: 0;
    top: 16%;
    transform: translate(-50%, 0);
    z-index: 5;
}

.monitoring-dot-2 {
    content: "";
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50px;
    position: absolute;
    left: 0;
    top: 38%;
    transform: translate(-50%, 0);
    z-index: 5;
}

.monitoring-dot-3 {
    content: "";
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50px;
    position: absolute;
    left: 0;
    bottom: 35%;
    transform: translate(-50%, 0);
    z-index: 5;
}

.monitoring-dot-4 {
    content: "";
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50px;
    position: absolute;
    left: 0;
    bottom: 12%;
    transform: translate(-50%, 0);
    z-index: 5;
}


.abt-section {
    background-image: url(/images/bg-pink.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    background-color: #e9e3ff;
}

.pad-80 {
    padding-block: 80px;
}

.cta-btn-wrapper .cta-btn-desc {
    background-image: url('/preview/v1/assets/images/index/bg-talk.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    background-color: #0b0e14;
    padding: 60px;
    text-align: center;
    border-radius: clamp(12px, 2.15vw, 16px);
    color: #fff;
    position: relative;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    /* Adjust based on content */
}

.accordion-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    padding: 1rem;
    padding-top: 0;
}

.accordion-item button:hover {
    color: var(--primary-color);
}

.contact-section {
    background-image: url(/images/bg-pink.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    background-color: #e9e3ff;
    padding: 50px 20px;
}

.main-div {
    max-width: 500px;
    margin: auto;
}

.modal-form input {
    outline: none !important;
}

.modal-form textarea {
    outline: none !important;
}

.custom-header nav a:hover {
    color: var(--primary-color);
}

.btn-shine a:hover {
    color: var(--white) !important;
}

@media screen and (max-width: 768px) {
    #mobile-menu {
        background: #FFF;
        opacity: 1;
        z-index: 15;
        position: relative;
    }
}

@media screen and (max-width: 1280px) {
    .disc-card {
        width: 48%;
    }

    .box-scroll .disc-card:nth-of-type(odd) {
        transform: translateY(0);
    }

    .box-scroll {
        row-gap: 40px;
        margin-top: 40px;
    }
}

@media screen and (max-width: 768px) {
    .disc-card {
        width: 100%;
    }

    .monitoring-container::before {
        height: 70%;
        width: 4px;
    }

    .monitoring-dot-1 {
        width: 20px;
        height: 20px;
    }

    .monitoring-dot-2 {
        width: 20px;
        height: 20px;
    }

    .monitoring-dot-3 {
        width: 20px;
        height: 20px;
    }

    .monitoring-dot-4 {
        width: 20px;
        height: 20px;
    }

}

/* ---------------------------------- */

.bg-hero-crawling {
    /* background-image: url(../assets/live-crawling-service/banner.webp); */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100%;
    background-color: #e9e3ff;
}

.box-scroll {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.Process-card {
    width: calc(33% - 10px);
    margin-bottom: 20px;
}

.Process-card-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    height: 100%;
}

@media screen and (max-width: 768px) {
    .Process-card {
        width: 100%;
        margin-bottom: 0;
    }

}

/* ------------------------------------------------------- */

/* Optional: Add this CSS to your stylesheet for animation and better styling */

/* Dropdown animation for desktop */
.group:hover .group-hover\:opacity-100 {
    transition-delay: 150ms;
}

/* Rotate icon animation */
.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile dropdown animation */
#mobile-services-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-services-menu.hidden {
    max-height: 0;
}

#mobile-services-menu:not(.hidden) {
    max-height: 300px;
}

/* Fix for mobile dropdown */
.mobile-dropdown {
    width: 100%;
}


/* -------------------------------------------- */

.slider-container .left-arrow {
    top: 94% !important;
}

.slider-container .right-arrow {
    top: 94% !important;
}

/* --------------------------------------------------- */

.client-section {
    padding: 60px 20px;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.logo-item img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%);
}

.footer-text {
    margin-top: 40px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}