:root {
    --color-primary: #4f46e5;
    --color-secondary: #d946ef;
}

body {
    background-color: #f8fafc;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}
body.dark {
    background-color: #090909;
    color: #e2e8f0;
}

.page-template-page-landing-php.v-nav-active {
    margin-left: 0 !important;
}

body.page-template-page-landing-php td.text-xl,
td.font-semibold {
    color: white;
}

.page-template-page-landing-php .header-vertical_nav-item.item--vertical_nav {
    display: none;
}

/* Grid Background Pattern */
.bg-grid-slate-200 {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(226 232 240 / 0.6)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e");
}
body.dark .bg-grid-slate-200 {
    opacity: 0.05;
}

/* logo */
.logo .logo-img {
    width: 170px;
    height: auto;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Glass Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar Active State (Triggered by Scroll) */
#navbar {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#navbar.nav-active {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
body.dark #navbar.nav-active {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}
#navbar.nav-active .h-20 {
    height: 4rem;
} /* Shrink inner container */

/* Mesh Backgrounds */
.mesh-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(at 40% 20%, hsla(260, 100%, 92%, 1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(300, 100%, 94%, 1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(200, 100%, 93%, 1) 0px, transparent 50%);
}
body.dark .mesh-bg {
    background-image: none;
}

/* Refined Device Mockups with Reflection */
.device-screen {
    overflow: hidden;
    position: relative;
    background: white;
}
.screen-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 50;
}

.macbook {
    margin: 0 auto;
    max-width: 720px;
    position: relative;
    z-index: 10;
    transform-style: preserve-3d;
}
.macbook-top {
    background: #0f172a;
    border-radius: 20px 20px 0 0;
    padding: 12px 12px 0 12px;
    border: 1px solid #334155;
    box-shadow: inset 0 0 0 2px #020617;
}
.macbook-screen {
    aspect-ratio: 16/10;
    background: white;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
}
.macbook-bottom {
    height: 20px;
    background: #1e293b;
    border-radius: 0 0 24px 24px;
    position: relative;
    border-top: 2px solid #334155;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
}
.macbook-bottom::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 10px;
    background: #334155;
    border-radius: 0 0 10px 10px;
}

.iphone {
    width: 240px;
    background: #020617;
    border-radius: 48px;
    padding: 8px;
    border: 4px solid #334155;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 20;
}
.iphone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #020617;
    z-index: 20;
    border-radius: 0 0 16px 16px;
}
.iphone-screen {
    aspect-ratio: 9/19.5;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    border: 4px solid #000;
}

.ipad {
    width: 420px;
    background: #1e293b;
    border-radius: 28px;
    padding: 8px;
    border: 2px solid #334155;
    z-index: 5;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}
.ipad-screen {
    aspect-ratio: 3/4;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.animate-marquee { animation: marquee 60s linear infinite; }



/* Brush Stroke Preloader */

#preloader {

    pointer-events: none; /* Make sure it doesn't block interaction */

    background-color: #0f172a; /* Fallback color */

}

.brush-stroke {

    position: absolute;

    top: 0;

    left: -100%; /* Start off-screen to the left */

    width: 34%; /* Each stroke covers roughly 1/3 of the width */

    height: 100%;

    background-color: var(--color-primary); /* Use theme primary color */

    transform: translateX(0); /* Initial state for animation */

}

.brush-stroke:nth-child(2) {

    left: -134%; /* Stagger start for second stroke */

    background-color: var(--color-secondary); /* Different color */

}

.brush-stroke:nth-child(3) {

    left: -268%; /* Stagger start for third stroke */

    background-color: #f7fafc; /* Another color, maybe white or light gray */

}

/* Page Preloader */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff; /* Fallback for older browsers or if Tailwind not loaded */
    z-index: 9999; /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#page-preloader.dark {
    background-color: #0f172a; /* Dark mode background */
}

/* Preloader Dot Fade Animation */
.preloader-dot-fade {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-dot {
    width: 15px;
    height: 15px;
    background-color: var(--color-primary); /* Use primary theme color */
    border-radius: 50%;
    margin: 0 5px;
    animation: preloader-dot-fade 1.4s infinite ease-in-out both;
}

.preloader-dot-1 {
    animation-delay: -0.32s;
}

.preloader-dot-2 {
    animation-delay: -0.16s;
}

@keyframes preloader-dot-fade {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Preloader Pulse Animation */
.preloader-pulse-circle {
    animation: preloader-pulse 1.5s infinite ease-in-out;
}

@keyframes preloader-pulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}





