/*
 * Pitechpedia Research V3 — "Ecosystem Intelligence" Design
 * High-fidelity, professional research hub inspired by Google Research.
 */

:root {
    --research-blue: #1A73E8;
    --research-blue-dark: #174EA6;
    --research-blue-light: #E8F0FE;
    --research-text: #202124;
    --research-sub: #5F6368;
    --research-white: #FFFFFF;
    --research-bg: #F8F9FA;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rnd-v3-page {
    background: var(--research-white);
    color: var(--research-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.rnd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== HERO ===== */
.rnd-hero {
    position: relative;
    padding: 140px 0 100px;
    background: radial-gradient(circle at 75% 50%, var(--research-blue-light) 0%, var(--research-white) 100%);
    overflow: hidden;
}

.rnd-hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.rnd-hero-headline {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--research-text);
    margin-bottom: 24px;
}

.rnd-hero-sub {
    font-size: 1.5rem;
    color: var(--research-sub);
    line-height: 1.5;
    margin-bottom: 40px;
    max-width: 600px;
}

.rnd-hero-actions {
    display: flex;
    gap: 16px;
}

.btn-research-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--research-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.btn-research-primary:hover {
    background: var(--research-blue-dark);
    transform: translateY(-1px);
}

.btn-research-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--research-white);
    color: var(--research-text);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #DADCE0;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}

.btn-research-outline:hover {
    background: var(--research-bg);
    border-color: #BDC1C6;
}

.rnd-hero-visual {
    position: absolute;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    width: 900px;
    height: 900px;
    z-index: 1;
    pointer-events: none;
}

.rnd-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 50px rgba(0,0,0,0.05));
    animation: floating 8s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== STATS BAR ===== */
.rnd-stats-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.rnd-stats-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: var(--research-blue-light);
    color: var(--research-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .material-symbols-outlined { font-size: 20px; }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--research-text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--research-sub);
}

/* ===== RESEARCH AREAS ===== */
.rnd-areas {
    padding: 120px 0;
}

.areas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.areas-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--research-text);
    letter-spacing: -1px;
}

.areas-header p {
    font-size: 1.1rem;
    color: var(--research-sub);
    margin-top: 10px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--research-blue);
    text-decoration: none;
    padding-bottom: 2px;
}

.view-all-link:hover { text-decoration: underline; }

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.area-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #000;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.area-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s ease, opacity 0.4s;
    filter: brightness(0.85);
}

.area-card:hover .area-bg-img {
    transform: scale(1.1);
    opacity: 0.6;
}

.area-gradient-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.area-content {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 32px;
    z-index: 2;
}

.area-floating-icon {
    width: 48px;
    height: 48px;
    background: var(--research-white);
    color: var(--research-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s;
}

.area-card:hover .area-floating-icon {
    transform: scale(1.1);
}

.area-floating-icon .material-symbols-outlined { font-size: 24px; }

.area-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.area-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 24px;
}

.area-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.area-card:hover .area-link {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .rnd-hero-headline { font-size: 3.5rem; }
    .rnd-hero-visual { width: 600px; height: 600px; right: -50px; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rnd-container { padding: 0 24px; }
    .rnd-hero { padding: 100px 0 140px; text-align: center; }
    .rnd-hero-content { margin: 0 auto; }
    .rnd-hero-actions { justify-content: center; }
    .rnd-hero-visual { position: relative; width: 100%; height: auto; right: auto; margin-top: 40px; transform: none; top: auto; }
    .rnd-stats-bar { border-radius: 24px; transform: none; margin-top: -40px; justify-content: center; }
    .areas-grid { grid-template-columns: 1fr; }
    .areas-header { flex-direction: column; align-items: flex-start; gap: 20px; }
}
