/*
================================================================================
| ROOBUX - NEW DESIGN SYSTEM v3.0 | about.css (Desktop-Only)
================================================================================
| Page-specific styles for about.html.
| - Rebuilt professional timeline.
| - Redesigned team cards with fixed 1:1 aspect-ratio images.
|
| REVISION:
| - [FIX] Added override to force border-only glow.
| - [FIX] Corrected .team-card CSS to target <img> tag directly,
|         fixing alignment and broken image text.
| - [CLEAN] Removed mobile @media queries.
| - [USER REQ] Added a professional heatmap URL.
| - [USER REQ] Added styles for Infrastructure section to balance text and logo.
================================================================================
*/

/*
 * -----------------------------------------------------------------
 * [FIX 1] HOVER GLOW OVERRIDE
 * This fixes the issue where the glow effect from main.css
 * would cover the text. We disable the '::before' pseudo-element
 * and apply the glow as a box-shadow.
 * -----------------------------------------------------------------
 */
.card::before {
    display: none; /* Disable the background glow */
}
.card:hover {
    border-color: var(--color-primary); /* Add border highlight */
    box-shadow: var(--shadow-glow-primary); /* Use the glow shadow */
    transform: translateY(-5px);
}
/* ----------------------------------------------------------------- */


/* --- 1. SUBPAGE HERO (Consistent Style) --- */
.hero-about {
    padding: var(--space-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background: 
        linear-gradient(135deg, rgba(5, 5, 8, 0.95), rgba(14, 14, 20, 0.9)),
        radial-gradient(ellipse at 50% 0%, var(--color-primary-glow), transparent 60%);
}

.hero-about h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--color-text-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
    position: relative;
}

.hero-about p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: var(--space-md) auto 0;
    position: relative;
}

/* --- 2. TIMELINE (Redesigned) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--space-xxl) auto 0;
    padding: var(--space-lg) 0;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 3px;
}

.timeline-item {
    padding: var(--space-md) var(--space-lg);
    position: relative;
    width: 50%;
}

/* The circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -11.5px;
    background-color: var(--color-bg-card);
    border: 4px solid var(--color-primary);
    top: 28px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--color-primary-glow);
    transition: all var(--transition-medium);
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

.timeline-item.right::after {
    left: -8.5px;
}

/* The card content */
.timeline-content {
    /* Uses .card style from main.css */
    padding: var(--space-xl);
    background-color: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
}
.timeline-content::before {
    display: none; /* Disable glow on timeline cards */
}
.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.timeline-item:hover::after {
    transform: scale(1.2);
    background-color: var(--color-primary);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/*
 * -----------------------------------------------------------------
 * [USER REQ] INFRASTRUCTURE SECTION
 * -----------------------------------------------------------------
 */
.infrastructure-section {
    align-items: center; /* Vertically center grid items */
}

.infrastructure-text {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center text content */
    height: 100%; /* Ensure it takes full height of grid cell */
}

/* MODIFICATION: Targeting h2 inside the text block */
.infrastructure-text h2 {
    margin-top: 0; /* Remove extra margin */
}
.infrastructure-text p {
    font-size: 1.1rem; /* Slightly larger text */
    line-height: 1.7;
}

.infrastructure-text ul {
    list-style-type: '✅ '; /* Add checkmark */
    padding-left: 20px;
    font-size: 1rem;
    line-height: 1.7; /* Better spacing */
    margin-top: var(--space-lg);
}

.infrastructure-text ul li {
    padding-left: var(--space-sm);
    margin-bottom: var(--space-md);
}

.infrastructure-logo {
    max-width: 450px; /* Make logo smaller */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Remove the "box" */
    border: none;
    border-radius: 0;
    background: none;
}
/* ----------------------------------------------------------------- */


/* --- 3. TEAM SECTION (Redesigned) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.team-card {
    /* Uses .card style from main.css */
    text-align: center;
}

/*
 * -----------------------------------------------------------------
 * [FIX 2] TEAM CARD IMAGE
 * This now targets the <img> tag directly.
 * -----------------------------------------------------------------
 */
.team-card img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    border: 4px solid var(--color-border);
    transition: all var(--transition-medium);
    overflow: hidden; /* Ensures image is clipped */
    object-fit: cover; /* FIXES ASPECT RATIO */
    
    /* This will style the broken image alt text */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-bg-main);
}

.team-card:hover img {
    border-color: var(--color-primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--color-primary-glow);
}
/* ----------------------------------------------------------------- */


.team-card h4 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    font-size: 1.25rem;
}

.team-card-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: block;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* --- 4. Global Reach Map Placeholder --- */
.map-placeholder {
    height: 400px;
    background-color: var(--color-bg-card);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

/* Disable any ::before or ::after pseudo-elements */
.map-placeholder::before,
.map-placeholder::after {
    display: none;
}

/* Add hover glow effect on borders */
.map-placeholder:hover {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px var(--color-primary-glow);
    transform: translateY(-5px);
}