/*
 * Pitechpedia Projects V2 — "Innovation Lab" Design
 * High-fidelity, cinematic Projects hub inspired by modern AI research laboratories.
 */

:root {
    --proj-blue: #1A73E8;
    --proj-blue-dark: #174EA6;
    --proj-blue-light: #E8F0FE;
    --proj-text: #202124;
    --proj-sub: #5F6368;
    --proj-white: #FFFFFF;
    --proj-bg: #F8F9FA;
    --shadow-card: 0 1px 2px 0 rgba(60,64,67,0.302), 0 1px 3px 1px rgba(60,64,67,0.149);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
}

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

.proj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HERO SECTION ===== */
.proj-hero {
    padding: 140px 0 100px;
    background: radial-gradient(circle at top right, rgba(26, 115, 232, 0.05), transparent 60%);
    position: relative;
}

.proj-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.proj-headline {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.proj-sub {
    font-size: 1.25rem;
    color: var(--proj-sub);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 40px;
}

.proj-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-p-primary {
    background: var(--proj-blue);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-p-outline {
    background: transparent;
    color: var(--proj-text);
    padding: 14px 28px;
    border: 1px solid #DADCE0;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-p-primary:hover {
    background: var(--proj-blue-dark);
    transform: translateY(-2px);
}

.btn-p-outline:hover {
    background: #F8F9FA;
}

/* Robotic Arm / Globe Pedestal */
.proj-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-pedestal {
    width: 100%;
    max-width: 550px;
    height: 550px;
    background: radial-gradient(circle at center, rgba(26, 115, 232, 0.06) 0%, transparent 70%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-globe-img {
    width: 100%;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* ===== CHIP FILTER BAR ===== */
.proj-filters {
    padding: 40px 0;
    border-top: 1px solid #F1F3F4;
}

.chip-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.chip-container::-webkit-scrollbar { display: none; }

.filter-chip {
    padding: 10px 24px;
    background: var(--proj-bg);
    border: none;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--proj-sub);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-chip.active {
    background: var(--proj-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
}

/* ===== GRID SECTION ===== */
.proj-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

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

.project-card {
    background: var(--proj-white);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(60,64,67,0.12), 0 1px 2px rgba(60,64,67,0.24);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-visual {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .card-visual img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    bottom: -18px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: var(--proj-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: var(--proj-blue);
    z-index: 5;
}

.card-info {
    padding: 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-info p {
    font-size: 0.9rem;
    color: var(--proj-sub);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.card-link {
    color: var(--proj-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.card-link:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .proj-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .proj-sub { margin: 0 auto 40px; }
    .proj-actions { justify-content: center; }
    .proj-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .proj-headline { font-size: 3rem; }
    .proj-grid { grid-template-columns: 1fr; }
}
