/* 
 * Prolific Research - Light-Theme Homepage Stylesheet
 * Custom CSS for cinematic hero, stats dashboard, and global panel network items.
 */

/* Cinematic Hero */
.hero-section {
    position: relative;
    padding: 10rem 0 7rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 5;
    position: relative;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-green);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-tagline svg {
    color: var(--color-green);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-title span.highlight-cyan {
    background: linear-gradient(135deg, #0ea5e9, var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span.highlight-green {
    background: linear-gradient(135deg, #84cc16, var(--color-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Futuristic Global Network Mockup */
.hero-graphic-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.network-globe-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    height: 540px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Outer HUD rotating frame rings */
.hud-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(0, 130, 200, 0.08);
    pointer-events: none;
}

.hud-ring-1 { width: 104%; height: 104%; animation: spin 30s linear infinite; }
.hud-ring-2 { width: 96%; height: 96%; border-style: dotted; border-color: rgba(141, 198, 63, 0.08); animation: spin-reverse 35s linear infinite; }

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Connection Arcs Flow Animation */
@keyframes path-dash {
    to {
        stroke-dashoffset: -40;
    }
}
.globe-connection {
    fill: none;
    stroke: url(#arc-grad);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 8 6;
    animation: path-dash 3s linear infinite;
    opacity: 0.85;
}

/* Pulsing Hub Nodes */
@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.globe-pulse {
    fill: none;
    transform-origin: center;
    transform-box: fill-box;
    stroke-width: 1.5;
    animation: pulse-ring 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.cyan-pulse { stroke: var(--color-cyan); }
.green-pulse { stroke: var(--color-green); }
.orange-pulse { stroke: var(--color-orange); }
.navy-pulse { stroke: var(--color-navy); }

/* Globe Custom Tooltips and Hover States */
.globe-node {
    pointer-events: all;
}
.node-tooltip {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.globe-node:hover .node-tooltip {
    opacity: 1;
}
.hero-globe-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}



/* Stats Display Dashboard */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -4rem;
    padding: 0 0 5rem 0;
    background: transparent;
    border: none;
}

.stats-grid-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Trust Logos */
.trust-logos-wrapper {
    background-color: var(--bg-secondary);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Case Study Preview Grid */
.case-study-preview-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.case-study-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 130, 200, 0.15);
}

.case-study-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    position: relative;
    overflow: hidden;
}

.case-study-img-placeholder::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 130, 200, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(141, 198, 63, 0.05) 0%, transparent 50%);
}

.case-study-badge {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h4 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.case-study-kpis {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.case-study-kpi {
    display: flex;
    flex-direction: column;
}

.case-study-kpi-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.case-study-kpi-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-section {
        padding: 8rem 0 5rem 0;
    }
    
    .stats-grid-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

/* ==========================================================================
   Dynamic Case Study Popup Modal Styles
   ========================================================================== */

/* Full Viewport blur-backed transparent overlay */
.case-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5); /* deep slate tint */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999; /* on top of everything */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 1.5rem;
}

.case-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content Card container */
.case-modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.25);
    transform: translateY(25px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    padding: 2.25rem;
}

.case-modal-overlay.active .case-modal-content {
    transform: translateY(0) scale(1);
}

/* Modal Close Button */
.case-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
    padding-bottom: 3px;
}

.case-modal-close:hover {
    background: rgba(0, 130, 200, 0.08); /* brand blue highlight */
    color: var(--color-cyan);
    border-color: rgba(0, 130, 200, 0.2);
    transform: rotate(90deg) scale(1.05);
}

/* Dynamic Case Study Modal Text Content & KPIs */
.case-modal-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.case-modal-text-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    margin-top: 0;
}

/* Detail bullet checklist style */
.case-modal-list {
    margin: 1.25rem 0 0 0;
    padding-left: 1.25rem;
    list-style-type: square;
}

.case-modal-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* KPI Blocks */
.case-modal-kpi-block {
    border: 1px solid rgba(0, 130, 200, 0.18);
    background: rgba(0, 130, 200, 0.01);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
}

.case-modal-kpi-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.case-modal-kpi-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.case-modal-kpi-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive adjustments inside Modal */
@media (max-width: 768px) {
    .case-modal-content {
        padding: 1.75rem;
    }
    
    .case-modal-kpis {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .case-modal-text-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


