/* ==========================================================================
   Anti Gravity Interactive Card Widget Styles
   ========================================================================== */

/* Main Container Wrapper */
.ag-card-container {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* The Card Anchor */
.ag-interactive-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    z-index: 1;
    cursor: pointer;
    
    /* Default CSS Variables for Gradient Overlays (can be overridden by Elementor style controls) */
    --ag-overlay-start: rgba(10, 25, 41, 0.95);
    --ag-overlay-mid: rgba(10, 25, 41, 0.35);
    --ag-overlay-end: rgba(10, 25, 41, 0);

    --ag-overlay-start-hover: rgba(10, 25, 41, 0.98);
    --ag-overlay-mid-hover: rgba(10, 25, 41, 0.5);
    --ag-overlay-end-hover: rgba(10, 25, 41, 0.1);

    transition: box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Image Background Layer (Scaled inside the card boundaries) */
.ag-card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Beautiful mesh gradient dark placeholder when no image is loaded */
.ag-placeholder-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0b0f19 100%);
    position: relative;
}

.ag-placeholder-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.08;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Normal Overlay layer */
.ag-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(
        to top,
        var(--ag-overlay-start) 0%,
        var(--ag-overlay-mid) 50%,
        var(--ag-overlay-end) 100%
    );
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Overlay layer via pseudo-element */
.ag-card-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        var(--ag-overlay-start-hover) 0%,
        var(--ag-overlay-mid-hover) 50%,
        var(--ag-overlay-end-hover) 100%
    );
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Content Container */
.ag-card-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Left block containing Icon & Title */
.ag-left-block {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Circular Icon Container */
.ag-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
    transition: 
        background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-icon-wrapper i {
    line-height: 1;
}

.ag-icon-wrapper svg {
    display: block;
}

/* Elegant serif Title */
.ag-card-title {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Right block containing the diagonal arrow */
.ag-arrow-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: translate(-12px, 12px);
    transition: 
        opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-arrow-wrapper svg {
    display: block;
}

/* ==========================================================================
   Hover & Focus State Transitions
   ========================================================================== */

/* 1. Scale background image on hover */
.ag-interactive-card:hover .ag-card-image-bg,
.ag-interactive-card:focus-visible .ag-card-image-bg {
    transform: scale(1.08);
}

/* 2. Fade in hover overlay gradient */
.ag-interactive-card:hover .ag-card-overlay::after,
.ag-interactive-card:focus-visible .ag-card-overlay::after {
    opacity: 1;
}

/* 3. Micro-animation on Icon on hover */
.ag-interactive-card:hover .ag-icon-wrapper,
.ag-interactive-card:focus-visible .ag-icon-wrapper {
    transform: scale(1.03);
}

/* 4. Slide in and Fade in Diagonal Arrow */
.ag-interactive-card:hover .ag-arrow-wrapper,
.ag-interactive-card:focus-visible .ag-arrow-wrapper {
    opacity: 1;
    transform: translate(0, 0);
}

/* 5. Subtle title translation to emphasize movement */
.ag-interactive-card:hover .ag-card-title,
.ag-interactive-card:focus-visible .ag-card-title {
    transform: translateX(4px);
}

/* Accessibility outline */
.ag-interactive-card:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

/* ==========================================================================
   Anti Gravity Service Content Card Styles
   ========================================================================== */

.ag-sc-container {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Service Card Wrapper */
.ag-service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: 
        box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Media/Image Wrapper inside Service Card */
.ag-sc-media-wrapper {
    position: relative;
    width: 100%;
    min-height: 280px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Service Card Image */
.ag-sc-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Elegant light grid placeholder for Service Card */
.ag-sc-placeholder-bg {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
}

.ag-sc-placeholder-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Icon Badge overlayed on Image */
.ag-sc-icon-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 5;
    box-sizing: border-box;
    border-style: solid;
    transition: 
        background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        color 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-sc-svg-raw {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ag-sc-svg-raw svg {
    display: block;
}

.ag-sc-icon-badge i {
    line-height: 1;
}

/* Content Body */
.ag-sc-content-body {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-grow: 1;
}

/* Service Card Title */
.ag-sc-title {
    margin: 0;
    padding: 0;
    line-height: 1.25;
    transition: color 0.4s ease;
}

/* Service Card Description */
.ag-sc-desc {
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Hover & Focus State Transitions for Service Card
   ========================================================================== */

/* 1. Scale background image on hover */
.ag-service-card:hover .ag-sc-image,
.ag-service-card:focus-visible .ag-sc-image {
    transform: scale(1.08);
}

/* 2. Micro-animation on badge on hover */
.ag-service-card:hover .ag-sc-icon-badge,
.ag-service-card:focus-visible .ag-sc-icon-badge {
    transform: scale(1.05);
}

/* 3. Accessibility outline */
.ag-service-card:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 4px;
}

/* ==========================================================================
   Anti Gravity Report Content Card Styles
   ========================================================================== */

.ag-rc-container {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Report Card Container Box */
.ag-report-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    transition: box-shadow 0.5s ease;
}

/* Header Area styling */
.ag-rc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 16px;
}

.ag-rc-header-left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Overline Subtitle */
.ag-rc-overline {
    display: block;
    margin-bottom: 8px;
}

/* Serif Title */
.ag-rc-title {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Pill badge wrapper and badge styles */
.ag-rc-badge-wrapper {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ag-rc-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    line-height: 1;
    white-space: nowrap;
}

/* Images Grid Layout */
.ag-rc-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
}

/* Individual Image Item styles */
.ag-rc-image-item-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.ag-rc-image-item {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-rc-image-item-wrapper:hover .ag-rc-image-item {
    transform: scale(1.05);
}

/* Lighter elegant placeholder for Report Card Images */
.ag-rc-placeholder-img {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.ag-rc-placeholder-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Status Cards Grid Layout */
.ag-rc-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
}

/* Individual Status Item block */
.ag-rc-status-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ag-rc-status-item:hover {
    transform: translateY(-2px);
}

.ag-rc-status-label {
    display: block;
    margin-bottom: 6px;
}

.ag-rc-status-value {
    display: block;
    line-height: 1.3;
}

/* Note box at bottom */
.ag-rc-note-box {
    width: 100%;
    box-sizing: border-box;
    border-style: solid;
    border-width: 1px;
    display: flex;
    align-items: center;
}

.ag-rc-note-content {
    display: block;
}

.ag-rc-note-prefix {
    margin-right: 4px;
}

/* ==========================================================================
   Responsive Mobile Styling overrides
   ========================================================================== */

@media (max-width: 768px) {
    /* Scale down the outer card paddings slightly on tablet/mobile */
    .ag-report-card {
        padding: 24px !important;
        border-radius: 28px !important;
    }

    /* Adjust status grid gaps */
    .ag-rc-status-grid {
        gap: 12px !important;
    }

    /* Scale title down on smaller screens */
    .ag-rc-title {
        font-size: 24px !important;
    }

    /* Adjust images grid gaps */
    .ag-rc-images-grid {
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .ag-report-card {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    /* Adjust images grid gaps */
    .ag-rc-images-grid {
        gap: 12px !important;
    }

    /* Adjust overline size */
    .ag-rc-overline {
        font-size: 12px !important;
    }

    /* Adjust status value font sizes slightly */
    .ag-rc-status-value {
        font-size: 16px !important;
    }
}


