/* ═══════════════════════════════════════════════════════════
   PROJECT HUB & CAPSTONE PORTFOLIO STYLES — RootAxis Technologies
   ═══════════════════════════════════════════════════════════ */

:root {
    --ph-purple:        #6425D0;
    --ph-purple-dark:   #4b18a3;
    --ph-purple-light:  #F7F5FC;
    --ph-purple-soft:   rgba(100, 37, 208, 0.08);
    --ph-purple-glow:   rgba(100, 37, 208, 0.25);
    
    --ph-orange:        #FF681F;
    --ph-orange-soft:   rgba(255, 104, 31, 0.08);
    --ph-orange-glow:   rgba(255, 104, 31, 0.28);
    
    --ph-dark:          #0f172a;
    --ph-dark-surface:  #1e293b;
    --ph-text-dark:     #111827;
    --ph-text-mid:      #374151;
    --ph-text-muted:    #64748b;
    
    --ph-card-border:   #E2E8F0;
    --ph-card-bg:       #FFFFFF;
    --ph-glass-bg:      rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════
   1. HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.ph-hero {
    background: linear-gradient(135deg, #0d091a 0%, #170d29 45%, #230b35 75%, #0d091a 100%);
    position: relative;
    overflow: hidden;
    padding: 140px 0 60px;
    color: #ffffff;
}

.ph-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.ph-hero-blob-1 {
    position: absolute;
    top: -15%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 104, 31, 0.22) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: ph-float 14s ease-in-out infinite alternate;
}

.ph-hero-blob-2 {
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(100, 37, 208, 0.28) 0%, transparent 65%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: ph-float 18s ease-in-out infinite alternate-reverse;
}

@keyframes ph-float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.08); }
}

.ph-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffd8c2;
}

.ph-badge-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ph-orange);
    box-shadow: 0 0 10px var(--ph-orange);
    animation: ph-pulse 2s infinite;
}

@keyframes ph-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.7; }
}

.ph-hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.ph-hero-title .gradient-text {
    background: linear-gradient(135deg, #ffab00 0%, #ff681f 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ph-hero-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 780px;
}

/* Stat Box Pills */
.ph-stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px 20px;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.ph-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 104, 31, 0.4);
}

.ph-stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.ph-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   2. SEARCH & FILTER TOOLBAR
   ═══════════════════════════════════════════════════════════ */
.ph-toolbar-strip {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 70px;
    z-index: 95;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.ph-search-input-wrap {
    position: relative;
}

.ph-search-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.15rem;
}

.ph-search-input {
    width: 100%;
    height: 46px;
    padding-left: 44px;
    padding-right: 16px;
    border-radius: 100px;
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.ph-search-input:focus {
    background: #FFFFFF;
    border-color: var(--ph-purple);
    box-shadow: 0 0 0 3px var(--ph-purple-soft);
    outline: none;
}

/* Filter Pills */
.ph-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ph-filter-pill:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #0f172a;
}

.ph-filter-pill.active {
    background: var(--ph-purple);
    border-color: var(--ph-purple);
    color: #FFFFFF;
    box-shadow: 0 3px 12px var(--ph-purple-glow);
}

.ph-filter-pill.active-orange {
    background: var(--ph-orange);
    border-color: var(--ph-orange);
    color: #FFFFFF;
    box-shadow: 0 3px 12px var(--ph-orange-glow);
}

/* ═══════════════════════════════════════════════════════════
   3. PROJECT CARDS GRID
   ═══════════════════════════════════════════════════════════ */
.ph-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ph-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ph-purple), var(--ph-orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ph-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(100, 37, 208, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
    border-color: #CBD5E1;
}

.ph-card:hover::before {
    opacity: 1;
}

.ph-domain-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--ph-purple-soft);
    color: var(--ph-purple);
    border: 1px solid rgba(100, 37, 208, 0.15);
}

.ph-level-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--ph-orange-soft);
    color: var(--ph-orange);
    border: 1px solid rgba(255, 104, 31, 0.15);
}

.ph-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 12px 0 8px;
    transition: color 0.2s ease;
}

.ph-card:hover .ph-card-title {
    color: var(--ph-purple);
}

.ph-card-summary {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    flex-grow: 1;
    margin-bottom: 16px;
}

/* Tech Stack Chips */
.ph-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.ph-chip {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
    font-family: 'JetBrains Mono', monospace;
}

/* Card Action Buttons */
.ph-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    background: var(--ph-purple);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ph-btn-view:hover {
    background: var(--ph-purple-dark);
    box-shadow: 0 4px 12px var(--ph-purple-glow);
    color: #ffffff;
}

.ph-btn-mentor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    background: #FFF7ED;
    color: var(--ph-orange);
    border: 1px solid rgba(255, 104, 31, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ph-btn-mentor:hover {
    background: var(--ph-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 12px var(--ph-orange-glow);
}

/* ═══════════════════════════════════════════════════════════
   4. INTERACTIVE CASE STUDY MODAL / DRAWER
   ═══════════════════════════════════════════════════════════ */
.ph-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.ph-modal-window {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: ph-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ph-modal-in {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.ph-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #FAFAFA;
}

.ph-modal-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ph-modal-close-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

.ph-modal-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 28px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
    overflow-x: auto;
}

.ph-modal-tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ph-modal-tab-btn:hover {
    color: var(--ph-purple);
    background: var(--ph-purple-soft);
}

.ph-modal-tab-btn.active {
    color: var(--ph-purple);
    background: var(--ph-purple-soft);
    box-shadow: inset 0 -2px 0 var(--ph-purple);
}

.ph-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Terminal ASCII Diagram Box */
.ph-ascii-box {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 20px;
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre;
    overflow-x: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Viva Voce QA accordion / card */
.ph-viva-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.ph-viva-q {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.ph-viva-q i {
    color: var(--ph-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ph-viva-a {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
    padding-left: 26px;
    border-left: 2px solid var(--ph-purple);
    margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════
   5. ROADMAP & RUBRIC SECTION
   ═══════════════════════════════════════════════════════════ */
.ph-stage-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.ph-stage-card:hover {
    border-color: var(--ph-purple);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(100, 37, 208, 0.1);
}

.ph-stage-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ph-purple), var(--ph-orange));
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

/* Rubric Comparison Table */
.ph-rubric-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
}

.ph-rubric-table th {
    background: #F8FAFC;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
    border-bottom: 1px solid #E2E8F0;
}

.ph-rubric-table td {
    padding: 16px 20px;
    font-size: 0.86rem;
    color: #334155;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: top;
}

.ph-rubric-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════
   6. MENTORSHIP FORM CARD & MODAL
   ═══════════════════════════════════════════════════════════ */
.ph-cta-banner {
    background: linear-gradient(135deg, #170d29 0%, #2a0b3a 60%, #170d29 100%);
    border-radius: 24px;
    padding: 48px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ph-form-control {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.2s ease;
}

.ph-form-control:focus {
    border-color: var(--ph-purple);
    box-shadow: 0 0 0 3px var(--ph-purple-soft);
    outline: none;
}

.ph-form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ph-hero {
        padding: 50px 0 40px;
    }
    
    .ph-toolbar-strip {
        top: 60px;
    }
    
    .ph-cta-banner {
        padding: 28px 20px;
    }
    
    .ph-modal-window {
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .ph-modal-header,
    .ph-modal-body {
        padding: 18px;
    }
    
    .ph-modal-tabs {
        padding: 8px 18px;
    }
}
