@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poly:ital@0;1&display=swap');

:root {
    --primary-text-color: #000;
    --bg-color: #ffffff;
    --btn-color: #fdfdfd;
    --btn-bg: #000;
    --header-link-hover: #000000;
    --header-link-hover-bg: #bababa36;
    --input-hover-bd-color: #232323;
    --dropdown-bg: #f3f4f6;
    --dropdown-hover-bg: #dddddd84;
    --faq-h-text: #0e0e0e;
    --faq-content-text: #1e1e1e;
    --hr-color: #e5e7eb;
    --footer-link: #282828;
    --footer-link-hover: #000;
    --header-bg: #edececa5;
    --hero-gradient: #fcfcfc;
    --hero-bg-img: url("../assets/images/dots-dark.svg");
}

.tw-dark {
    --primary-text-color: #fff;
    --bg-color: #000000;
    --btn-color: #000000;
    --btn-bg: #ffffff;
    --header-link-hover: #ffffff;
    --header-link-hover-bg: #8a8a8a5e;
    --input-hover-bd-color: #f8f8f8;
    --dropdown-bg: #171717;
    --dropdown-hover-bg: #2d2d2ddb;
    --faq-h-text: #efefef;
    --faq-content-text: #d4d4d4;
    --hr-color: #e1e1e195;
    --footer-link: #cfcfcf;
    --footer-link-hover: #ffffff;
    --header-bg: #232323a5;
    --hero-gradient: #000;
    --hero-bg-img: url("../assets/images/dots.svg");
}

html {
    scroll-behavior: smooth;
}

body.modal-open {
    overflow: hidden;
}

header > .collapsible-header {
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
}

hr {
    border-color: var(--hr-color); 
    border-style: solid;
}

.animated-collapse {
    transition: width 0.3s ease;
}

.header-links {
    position: relative;
    display: flex;
    align-items: center;
    min-width: fit-content;
    padding: 8px 15px;
    z-index: 2; 
    cursor: pointer;
    transition: background-color 0.5s, color 0.3s;
}

.header-links::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; 
    width: 100%;
    height: 100%;
    background-color: var(--header-link-hover-bg);
    transform: scale(40%);
    opacity: 0;
    border-radius: 8px;
    transition: all 300ms;
}

.header-links:hover {
    color: var(--header-link-hover);
}

.header-links:hover::after {
    transform: scale(100%);
    opacity: 1;
}

.hero-section {
    background-image: var(--hero-bg-img);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-bg-gradient {
    background: linear-gradient(180deg, var(--hero-gradient) 23%, rgba(0,0,0,0) 87%, var(--hero-gradient) 97%);
}

.gradient-text {
    background: rgb(215,215,215);
    background: linear-gradient(90deg, rgba(215,215,215,1) 18%, rgba(136,136,136,1) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purple-bg-grad {
    background: rgb(126,34,206);
    background: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

/* Dashboard Animation */
#dashboard {
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5s;
}

/* Animated Border Effect */
.animated-border {
    position: relative;
    overflow: visible;
}

.animated-border::after {
    content: '';
    position: absolute;
    top: 0px; 
    left: -100%; 
    width: 30%;
    height: 100%;
    border-radius: inherit; 
    background-color: #6366f1;
    background-repeat: no-repeat;
    background-position: 0% 0%;
    filter: blur(1.5rem);
    opacity: 0.8;
    box-shadow: inset 0px 0px 20px 5px #6366f1;
    z-index: -2;
    pointer-events: none;
    animation: slide 10s ease-in-out infinite;
}

.animated-border::before {
    filter: blur(1.5rem);
    opacity: 0.3;
    will-change: transform;
}

@keyframes slide {
    0% {
        left: -100%;
        right: 100%;
    }
    100% {
        left: 100%;
        right: -100%;
    }
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

.btn {
    padding: 10px 15px;
    width: max-content;
    border-radius: 10px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:disabled {
    cursor: default;
}

.input {
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    min-width: 100px;
    border: 1px solid #979797;
    transition: border 0.3s;
}

.input:active, 
.input:focus, 
.input:focus-within {
    border: 1px solid var(--input-hover-bd-color) !important;
}

.scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 20px;
}

.scrollbar::-webkit-scrollbar-track {
    border-radius: 25px;
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 25px;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    outline: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: var(--dropdown-bg);
    list-style-type: none;
    padding: 0;
    width: 100%;
    left: 0px;
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-menu li {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background-color: var(--dropdown-hover-bg);
}

/* Brand Logos Carousel */
.carousel-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 800px;
}

.carousel {
    display: inline-block;
    animation: scroll 10s linear infinite;
}

.carousel-img {
    display: inline-block;
    margin: 0 20px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.footer-link {
    width: fit-content;
    color: var(--footer-link);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}

.faq-accordion {
    background-color: inherit;
    color: var(--faq-h-text);
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: var(--faq-content-text);
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}

/* Video Carousel Styles (for Sample Videos section) */
.video-carousel-container {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-slide.active {
    opacity: 1;
}

.video-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-content.vertical {
    width: 280px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content.vertical iframe {
    width: 100%;
    height: 90%;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0,0,0,1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 5px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1c1c1d;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    transform: scale(1.1);
}

.carousel-dot.active {
    background: #3b82f6;
    border-color: #1d4ed8;
    transform: scale(1.2);
}

/* Dark mode styles */
.tw-dark .video-carousel-container {
    background: #374151;
}

.tw-dark .carousel-dot {
    border-color: #6b7280;
    background: #4b5563;
}

/* Style the prompt text */
.prompt-text {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    opacity: 1;
}

.prompt-text strong {
    font-weight: 700;
    color: #ffffff;
}

.video-overlay {
    position: absolute;
    bottom: 12px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0);
    color: white;
    padding: 16px 20px;
    text-align: center;
    border-radius: 8px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .problem-item {
        flex-direction: column !important;
        gap: 30px !important;
        margin-bottom: 60px !important;
    }

    .problem-image {
        width: 280px !important;
        height: 280px !important;
    }
}

@media (max-width: 600px) {
    .video-carousel-container {
        height: 300px;
    }
    
    .video-content.vertical {
        width: 240px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 12px;
    }
    
    .carousel-btn.next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .problem-image {
        width: 220px !important;
        height: 220px !important;
    }
}

@media (max-width: 1024px) {
    .problem-item {
        flex-direction: column !important;
        gap: 40px !important;
        margin-bottom: 80px !important;
        text-align: center !important;
    }

    .problem-text {
        order: 1 !important;
        width: 100% !important;
    }

    .problem-image {
        order: 2 !important;
        width: 320px !important;
        height: 320px !important;
    }
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 60px;
        left: 0px;
        flex-direction: column;
        opacity: 0;
        height: 0vh;
        min-height: 0vh;
        width: 100vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: center;
        text-align: center;
        background-color: var(--header-bg);
        overflow-y: auto;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        box-shadow: 0px 2px 3px 2px #9f9f9f7c;
    }
}

/* Video Demo Container - Most Responsive */
.video-demo-container {
    width: min(900px, 90vw); /* Use smaller of 900px or 90% viewport width */
    aspect-ratio: 1226 / 1080; /* Your exact video ratio */
}

@media (max-width: 768px) {
    .video-demo-container {
        width: min(600px, 95vw);
    }
}

@media (max-width: 480px) {
    .video-demo-container {
        width: min(400px, 98vw);
    }
}

/* Ensure video fits properly on all screen sizes */
#hero-demo-video {
    object-fit: cover;
}

@media (max-width: 768px) {
    #hero-demo-video {
        object-fit: contain; /* Show full video on mobile, no cropping */
    }
}

/* iOS Safari only */
@supports (-webkit-touch-callout: none) {
    .logo-link span {
        margin-left: -0.25rem !important;
    }
}
