/* Front Page Specific Styles */

article.blog-card {
    opacity: 1 !important;
}
/* Smooth image transition setup */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: -1;
}

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

/* Overlay gradient to make text pop against lumber */
.overlay-gradient {
    background: linear-gradient(to bottom,
            rgba(30, 41, 59, 0.3) 0%,
            rgba(15, 23, 42, 0.4) 50%,
            rgba(15, 23, 42, 0.6) 100%);
}

/* Technical crosshair decoration */
.crosshair::after {
    content: "+";
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    font-size: 20px;
    transform: translate(-50%, -50%);
}

.glass-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glassmorphism for the play button */
.glass-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-card {
    border-radius: 30px;
    /* Start with a 1px border */
    border: 3px solid #f3f4f6;
    /* gray-100 */
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    /* Negative margin to make borders overlap, ensuring markers sit on the intersection */
    margin: -1px;
}

.service-card:hover {
    /* Hover State: 
                   - Border becomes 3px 
                   - Color becomes Primary (#1e3a8a) with 20% opacity 
                   - Slight lift
                */

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 3px;
    border-color: rgba(30, 58, 138, 0.2);
    /* #1e3a8a at 20% opacity */
    background-color: white;
    box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.1);
    transform: translateY(-4px);
    z-index: 30;
    /* Bring to front on hover */
}

.service-card-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 60;
    max-width: min(320px, calc(100% - 24px));
    padding: 10px 12px;
    border-radius: 12px;
    background: #2a5291;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 20px 42px -18px rgba(42, 82, 145, 0.7);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.service-card-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: #2a5291;
    transform: translateX(-50%) rotate(45deg);
}

.service-card.has-tooltip-active .service-card-tooltip {
    visibility: visible;
}

@media (hover: none), (pointer: coarse) {
    .service-card-tooltip {
        display: none !important;
    }
}

.products-card-cta {
    background-color: var(--color-primary);
    color: #fff;
}

.products-card-anim:hover .products-card-cta {
    background-color: #fff;
    color: var(--color-primary);
}

/* Marker Positioning 
               - Centers the 22x22 SVG exactly on the corner 
            */
.grid-marker-tl {
    position: absolute;
    top: -11px;
    left: -11px;
    z-index: 20;
    pointer-events: none;
}

.grid-marker-tr {
    position: absolute;
    top: -11px;
    right: -11px;
    z-index: 20;
    pointer-events: none;
}

.grid-marker-bl {
    position: absolute;
    bottom: -11px;
    left: -11px;
    z-index: 20;
    pointer-events: none;
}

.card-connector::after {
    content: "+";
    position: absolute;
    top: -13px;
    /* Adjust based on border placement */
    right: -10px;
    color: #e5e7eb;
    /* tailwind gray-200 */
    background: white;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
    z-index: 10;
}

/* Custom underline style for headers */
.nav-header {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 1.5rem;
}

.nav-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
}

/* Subtle grid markers */
.grid-plus {
    position: absolute;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    font-size: 24px;
    z-index: 20;
}

/* Unique Styling specific to this footer only */
.g-footer-nav-underline {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.g-footer-nav-underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    opacity: 0.3;
}

/* Specific Crosshair Marker */
.g-footer-crosshair {
    position: absolute;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    font-size: 24px;
    z-index: 20;
    line-height: 1;
}


/* Add your front page specific CSS here */

/* ── Service card icon animations ── */

/* Icon circle wrapper */
.service-card .service-icon-wrap {
    transition:
        background-color 0.35s ease,
        border-color     0.35s ease,
        transform        0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow       0.35s ease;
    will-change: transform;
}

/* SVG paths inside the icon */
.service-card .service-icon-wrap svg path,
.service-card .service-icon-wrap svg circle {
    transition: fill 0.35s ease;
}

/* Hover: lift + bounce-scale the icon circle */
.service-card:hover .service-icon-wrap {
    transform: translateY(-6px) scale(1.15) rotate(-8deg);
    background-color: var(--color-primary, #2a5291);
    border-color: var(--color-primary, #2a5291);
    box-shadow: 0 12px 28px -6px rgba(42, 82, 145, 0.4);
}

/* Hover: turn icon white */
.service-card:hover .service-icon-wrap svg path,
.service-card:hover .service-icon-wrap svg circle {
    fill: #ffffff;
}
