/* ==========================================================================
   Graphin8 - Ultra-Premium Demos Page Theme (2050 Design Standards)
   File: pages/demos/assets/css/demos.css
   ========================================================================== */

:root {
    --svc-navy: #060a20;
    --svc-card-bg: #0f1738;
    --svc-cyan: #5893D4;
    --svc-text-main: #e6eefb;
    --svc-text-muted: #94a3b8;
    --svc-border: rgba(255, 255, 255, 0.08);
    --g8-neon-glow: #bfff00; /* High-contrast energetic lime accent */
    --g8-transition-fluid: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Layout Config */
.g8-demo-main {
    background-color: #000000;
    color: var(--svc-text-main);
    overflow-x: hidden;
    position: relative;
}

/* 2050 Ambient Blur Hero Header Design */
.g8-demo-hero {
    position: relative;
    padding: 140px 0 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--svc-navy) 0%, #000000 100%);
    overflow: hidden;
}

.g8-demo-hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-54%, 0);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88,147,212,0.15) 0%, rgba(6,10,32,0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

.g8-demo-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

/* Breadcrumbs CSS Rules */
.g8-demo-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

.g8-demo-breadcrumb a {
    color: var(--svc-text-muted);
    transition: color 0.3s ease;
}

.g8-demo-breadcrumb a:hover {
    color: #ffffff;
}

.g8-demo-sep {
    color: rgba(255, 255, 255, 0.2);
}

.g8-demo-current {
    color: var(--svc-text-main);
}

/* Hero Abstract - Premium minimalist styling */
.g8-demo-lead {
    max-width: 680px;
    margin: 40px auto 0; /* Breadcrumb se proper breathing room */
    font-size: 0.95rem; /* Futuristic typography humesha sleek aur choti hoti hai */
    font-weight: 300; /* Thinner font weight */
    line-height: 1.8;
    color: var(--svc-text-muted);
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0.6; /* Glassy/Faded look taake heading par focus rahe */
    letter-spacing: 0.02em;
    animation: fadeIn 1s ease forwards;
}

/* Interactive Project Showroom Matrix */
.g8-demo-grid-section {
    padding: 40px 0 100px 0;
}

/* ==========================================================================
   SEO Utility Classes
   ========================================================================== */

/* Visually hiding text but keeping it readable for Search Engines */
.g8-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.g8-demo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Premium Card Architecture & Precise Reference Hover Layout */
.g8-demo-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--svc-card-bg);
    border: 1px solid var(--svc-border);
    transition: border-color 0.4s var(--g8-transition-fluid), transform 0.4s var(--g8-transition-fluid);
    transform: translateZ(0);
}

.g8-demo-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.g8-demo-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.02);
}

.g8-demo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--g8-transition-fluid), filter 0.6s var(--g8-transition-fluid);
}

.g8-demo-card-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

/* Centered Overlapping Hover Reveal Badge Panel Structure */
.g8-demo-meta-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    max-width: 85%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 5;
    transition: transform 0.4s var(--g8-transition-fluid), opacity 0.3s ease, visibility 0.3s ease;
}

.g8-demo-badge-title-box {
    background-color: var(--g8-neon-glow);
    padding: 14px 28px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.g8-demo-project-name {
    color: #000000;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g8-demo-badge-tag-box {
    background-color: #000000;
    padding: 8px 18px;
    width: auto;
    margin-top: -1px; /* Seamless geometric structural alignment */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.g8-demo-project-meta {
    color: #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    white-space: nowrap;
}

/* Master Hover Interaction Declarations */
.g8-demo-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.g8-demo-card:hover .g8-demo-thumb {
    transform: scale(1.06);
    filter: blur(3px) brightness(0.6);
}

.g8-demo-card:hover .g8-demo-card-glass-overlay {
    opacity: 1;
}

.g8-demo-card:hover .g8-demo-meta-badge {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

/* Premium 2050 Minimal CTA Layout Rules */
.g8-demo-cta-section {
    padding: 80px 0 120px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(ellipse at bottom left, rgba(88,147,212,0.04) 0%, rgba(0,0,0,0) 50%);
}

.g8-demo-cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.g8-demo-cta-desc {
    margin-top: 20px;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(230, 238, 251, 0.5); /* Soft transparent muted color */
    letter-spacing: 0.01em;
}

.g8-demo-cta-text {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}



.g8-demo-cta-circle-btn {
    width: clamp(70px, 10vw, 100px);
    height: clamp(70px, 10vw, 100px);
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s var(--g8-transition-fluid);
}

.g8-demo-cta-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.4s var(--g8-transition-fluid);
}

.g8-demo-cta-circle-btn:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: scale(1.05);
}

.g8-demo-cta-circle-btn:hover .g8-demo-cta-icon {
    transform: rotate(-45deg);
}

@media (max-width: 991px) {
    .g8-demo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .g8-demo-lead {
        font-size: 0.9rem;
        padding: 0 20px;
        margin-top: 30px;
    }
    .g8-demo-cta-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}
@media (max-width: 576px) {
    .g8-demo-cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}