/* Lenis Smooth Scroll Setup */
html.lenis,
html.lenis body {
    height: auto;
    width: 100vw;
    overflow-x: hidden;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Background Grid Pattern */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(161, 161, 170, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(161, 161, 170, 0.1) 1px, transparent 1px);
}

/* Abstract glowing blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

/* Glassmorphism */
.glass-widget {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.gsap-reveal {
    visibility: hidden;
}

/* Swiper Overrides */
.swiper {
    width: 100%;
    max-width: 420px;
    height: 520px;
    padding: 20px 0;
    overflow: visible;
}

@media (min-width: 768px) {
    .swiper {
        max-width: 500px;
        height: 580px;
    }
}

.swiper-slide {
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: filter 0.3s ease;
}

.swiper-slide:not(.swiper-slide-active) {
    filter: brightness(0.7) blur(2px);
}

/* Interactive Feature List Styles */
.feature-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.feature-item.active-feature {
    border-color: var(--borderBase);
}

@media (min-width: 1024px) {
    .feature-item.active-feature {
        transform: translateX(10px);
    }
}

/* Library UI Overrides */
.nice-select {
    width: 100%;
    background-color: transparent !important;
    border-color: var(--borderBase) !important;
    color: inherit !important;
    float: none !important;
    height: 56px !important;
    line-height: 54px !important;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    border-radius: 0.75rem;
}

.nice-select .list {
    background-color: #fff;
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--borderBase);
    z-index: 50;
}

.odometer {
    font-family: 'Sora', sans-serif !important;
}

.mean-container .mean-bar {
    background: transparent;
    z-index: 999;
}

.mean-container a.meanmenu-reveal {
    color: #f97316;
}

.bento-card:hover .bento-gradient {
    opacity: 1;
}

/* Force hide jQuery Knob input */
.dial {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Odometer Fixes */
.odometer,
.odometer-inside {
    display: inline-flex !important;
    flex-direction: row !important;
    white-space: nowrap !important;
    direction: ltr !important;
}

.odometer *,
.odometer-inside,
.odometer-digit,
.odometer-digit-spacer,
.odometer-digit-inner,
.odometer-ribbon,
.odometer-ribbon-inner,
.odometer-value {
    overflow: hidden !important;
}


/* Table specific styles for SaaS comparison */
.comparison-table th {
    border-bottom: 2px solid var(--borderBase);
    padding: 1.5rem 1rem;
}

.comparison-table td {
    padding: 1.5rem 1rem;
    transition: background-color 0.3s ease;
}

.comparison-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--borderBase);
}

.comparison-table tr:hover td {
    background-color: rgba(249, 115, 22, 0.05);
}

/* --- About Us: Team Card Holographic Hover --- */
.team-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-overlay {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.team-card:hover .team-overlay {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- About Us: Bento Card Gradient Hover --- */
.bento-card:hover .bento-gradient {
    opacity: 1;
}

/* --- Contact Page: Nice-Select Overrides --- */
.nice-select {
    width: 100% !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom: 2px solid var(--borderBase) !important;
    border-radius: 0 !important;
    color: inherit !important;
    float: none !important;
    height: 60px !important;
    line-height: 60px !important;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    padding-left: 0.5rem !important;
    transition: all 0.3s ease;
}

.nice-select:focus,
.nice-select.open {
    border-bottom-color: var(--primary-500) !important;
}

.nice-select .list {
    background-color: #fff;
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--borderBase);
    z-index: 100;
    margin-top: 4px;
}

/* --- Auth Pages: Floating Label Animation --- */
.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label {
    transform: translateY(-1.5rem) scale(0.85);
    color: var(--primary-500);
}

/* --- Dashboard: Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* --- Dashboard: Glassmorphism Cards --- */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

/* --- Dashboard: Workspace Ambient Mesh --- */
.workspace-mesh {
    background-image:
        radial-gradient(at 10% 20%, rgba(249, 115, 22, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
}

/* --- Dashboard: Sidebar Active Link --- */
.nav-link.active {
    background: #f3f4f6;
    color: #171717;
    font-weight: 700;
}

/* --- Mobile Menu --- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: #fcfcfc;
    border-left: 1px solid #e5e7eb;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
    background: #f3f4f6;
    color: #f97316;
}

.mobile-menu a.active-link {
    color: #f97316;
    font-weight: 700;
}

/* --- Theme Toggle Active State Highlighter (Light Mode) --- */
#themeToggle .ph-moon {
    color: #f97316;
    filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.4));
    transform: scale(1.1);
    transition: all 0.3s ease;
}
#themeToggle:hover .ph-moon {
    transform: scale(1.2) rotate(-10deg);
}

/* --- Header & Mobile Menu: Login / Signup Highlighting --- */
header a[href="login.html"], #mobileMenu a[href="login.html"] {
    color: #f97316 !important;
    filter: drop-shadow(0 0 2px rgba(249, 115, 22, 0.3));
    transition: all 0.3s ease;
}

header a[href="login.html"]:hover, #mobileMenu a[href="login.html"]:hover {
    color: #ea580c !important;
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.5));
    transform: scale(1.05);
}

header a[href="signup.html"], #mobileMenu a[href="signup.html"] {
    background: #f97316 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
    border-color: transparent !important;
    transition: all 0.3s ease;
}

header a[href="signup.html"]:hover, #mobileMenu a[href="signup.html"]:hover {
    background: #ea580c !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.6);
    transform: scale(1.05);
}