/* style.css - Custom stylesheet for Invair */

:root {
    --bg-primary: #ffffff;
    --text-primary: #0f0f11;
    --text-secondary: rgba(15, 15, 17, 0.8);
    --text-tertiary: rgba(15, 15, 17, 0.6);
    --border-primary: rgba(15, 15, 17, 0.08);
    --bg-secondary: #f6f6f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-placeholder: #8e8e93;
    --nav-border: rgba(15, 15, 17, 0.05);
    --accordion-border: rgba(115, 71, 209, 0.2);
    --card-bg: #f9f9fb;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --input-bg: rgba(0, 0, 0, 0.02);
    --input-focus-border: rgba(115, 71, 209, 0.6);
    --invert-val: invert(1);
}

html.dark {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --border-primary: rgba(255, 255, 255, 0.1);
    --bg-secondary: #121212;
    --bg-glass: rgba(0, 0, 0, 0.85);
    --text-placeholder: #5a5a5a;
    --nav-border: rgba(255, 255, 255, 0.05);
    --accordion-border: #462d7c;
    --card-bg: #000000;
    --card-shadow: inset 0 0 20px rgba(115, 71, 209, 0.05), 0 0 30px rgba(115, 71, 209, 0.15);
    --input-bg: transparent;
    --input-focus-border: rgba(115, 71, 209, 0.4);
    --invert-val: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}

html {
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glass navigation */
.glass-nav {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-primary);
}

.hero-gradient {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

.btn-shine:hover::after {
    left: 120%;
}

/* Gradient Text Utility */
.text-gradient-purple {
    background: linear-gradient(90deg, #7347D1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo Capsule */
.logo-capsule {
    border: 1.5px solid var(--text-primary);
    border-radius: 50px;
    width: 80px;
    height: 20px;
    display: flex;
    justify-content: flex-end;
    padding: 1.5px;
    overflow: hidden;
    margin-bottom: 2px;
}

.capsule-fill {
    background-color: #7347D1;
    height: 100%;
    width: 50%;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-code {
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.text-glow:hover {
    text-shadow: 0 0 15px rgba(115, 71, 209, 0.5);
}

/* Global Scrollbar Stylings */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border-primary);
}

::-webkit-scrollbar-thumb {
    background: #22b883;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #032b22;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
    width: 0;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Page Section Transitions */
.section-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

section[data-section-id] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease;
}

section[data-section-id].active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translateY(0);
}

section[data-section-id].active-before {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transform: translateY(-100%);
}

section[data-section-id].active-after {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transform: translateY(100%);
}

/* Floating animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Blog typography and styling overrides */
/* Green for Headings and Bold elements */
.prose-alphabot h1,
.prose-alphabot h2,
.prose-alphabot h3,
.prose-alphabot h4,
.prose-alphabot h5,
.prose-alphabot h6,
.prose-alphabot strong,
#detail-title {
    color: #22b883 !important;
}

/* Black (var(--text-primary)) for Description and Body text */
.prose-alphabot,
.prose-alphabot p,
.prose-alphabot li,
.prose-alphabot ul,
.prose-alphabot ol,
.prose-alphabot table,
.prose-alphabot th,
.prose-alphabot td,
#detail-intro,
#detail-intro p {
    color: var(--text-primary) !important;
}


.prose-alphabot h4 {
    color: #22b883 !important;
    font-size: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.prose-alphabot p {
    margin-bottom: 1.5rem;
}

.prose-alphabot ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.prose-alphabot li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose-alphabot li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background-color: #22b883;
    border-radius: 50%;
}

.prose-alphabot strong {
    font-weight: bold;
}

/* Mobile Smooth continuous scroll overrides */
@media (max-width: 1023px) {
    html {
        scroll-behavior: smooth;
    }

    body {
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .section-container {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    section[data-section-id] {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        z-index: 1 !important;
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    /* Stack hero sub-slide contents and reset absolute positioning */
    .about-sub-slide {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        padding-bottom: 80px !important;
        /* Space for slider controls */
        overflow: visible !important;
    }

    .about-sub-slide>div {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }



    /* Stack the work content grid and remove nested scrollbars */
    #work-content-container {
        height: auto !important;
    }

    #work-content-container .grid {
        height: auto !important;
        overflow: visible !important;
    }

    /* Stack case studies and remove nested scrollbars */
    #case-content-container .overflow-y-auto {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Contact section containers height auto */
    #sect-contact>div {
        height: auto !important;
    }
}

.h-10.md\:h-14.flex.items-center.mb-0 {
    width: auto;
    max-width: 250px;
}

.grid.grid-cols-2.lg\:grid-cols-4.gap-4.xl\:gap-6 {
    margin-bottom: 30px;
}

.grid.grid-cols-2.sm\:grid-cols-2.md\:grid-cols-5.gap-6.pt-6 {
    margin-bottom: 30px;
}

.grid.grid-cols-2.sm\:grid-cols-2.lg\:grid-cols-4.gap-6.pt-6 {
    margin-bottom: 30px;
}