/* ==========================================================================
   Vindam Landing — Main Styles
   Base reset, layout, grid, borders, panels, and utility classes.
   ========================================================================== */

/* --- Base Reset --- */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #050505;
    color: #e0e0e0;
}

@media (min-width: 1024px) {

    html,
    body {
        overflow: hidden;
        overscroll-behavior: none;
    }
}

/* Prevent accidental horizontal scroll on mobile */
@media (max-width: 1023px) {

    html,
    body {
        overflow-x: hidden;
    }

    /* Force blog content to show in mobile section */
    #mobile-blog-section #left-slide-sales {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        inset: auto !important;
        height: auto !important;
        width: 100% !important;
        background: transparent !important;
        backdrop-filter: none !important;
        z-index: 1 !important;
        display: flex !important;
    }

    /* Hide blog navigation arrows on mobile */
    #mobile-blog-section #btn-sales-to-hero {
        display: none !important;
    }

    /* Ensure blog content wrapper flows normally */
    #mobile-blog-section .flex-grow {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* --- Grid Background Effect --- */
.bg-grid {
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, 10%, black, 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, 10%, black, 90%, transparent);
}

/* --- Tech Borders --- */
.tech-border-r {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-border-l {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-border-b {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* --- Extended Borders (Desktop elastic scroll) --- */
@media (min-width: 1024px) {
    .extended-border-r {
        position: relative;
    }

    .extended-border-r::after {
        content: '';
        position: absolute;
        top: -50vh;
        bottom: -50vh;
        right: 0;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.2);
        pointer-events: none;
        z-index: 10;
    }

    .header-border-r {
        position: relative;
    }

    .header-border-r::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.2);
        pointer-events: none;
        z-index: 10;
    }
}

/* --- Panel with Cut Corner --- */
.panel-cut-corner {
    background: rgba(26, 26, 26, 0.4);
    clip-path: polygon(0 0,
            100% 0,
            100% 85%,
            90% 100%,
            0 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-tech {
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* --- Grid Nodes (intersection squares) --- */
.grid-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: white;
    z-index: 50;
}

/* --- Glowing Text --- */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* --- Button Hover Glitch Effect --- */
.btn-tech {
    position: relative;
    overflow: hidden;
}

.btn-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(109, 190, 218, 0.2), transparent);
    transition: 0.5s;
}

.btn-tech:hover::before {
    left: 100%;
}

/* --- Scrollbar: Hidden --- */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* --- Scrollbar: Custom styled --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-button {
    display: none;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* --- Right Column: Always show all slides on desktop ---
   All right-column cards are always visible, arrows hidden.    */
@media (min-width: 1024px) {

    /* Hide Right Column Arrows */
    #btn-right-1-to-2,
    #btn-right-2-to-1,
    #btn-right-2-to-3,
    #btn-right-3-to-2 {
        display: none !important;
    }

    /* Right Column - Slides Always Static */
    #right-slide-1,
    #right-slide-2,
    #right-slide-3 {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        inset: auto !important;
        height: auto !important;
        flex: 0 0 auto !important;
        margin-bottom: 0 !important;
    }
}

/* --- Right Column Card Descriptions: Hover Reveal ---
   On lg/xl screens, descriptions are collapsed by default.
   They smoothly expand when hovering over the parent card.
   At 2xl+ screens, descriptions are always visible.          */
@media (min-width: 1024px) and (max-width: 1535px) {
    .card-desc {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        transition: max-height 0.3s ease-in-out, opacity 0.25s ease-in-out, margin 0.3s ease-in-out;
    }

    .group:hover .card-desc {
        max-height: 80px !important;
        opacity: 1 !important;
        margin-top: 4px !important;
    }
}