/* ================= PROJECT DETAIL STYLES ================= */

/* NAVBAR ON PROJECT PAGES */
.navbar.project-nav {
    position: fixed !important; 
    top: 0; 
    left: 0; 
    width: 100%;
    background: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(20px);
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-back {
    display: inline-flex; 
    align-items: center; 
    gap: 0.6rem;
    font-weight: 600; 
    color: rgba(255, 255, 255, 0.95); 
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(20px);
    padding: 0.65rem 1.3rem; 
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-back:hover { 
    background: #6366f1; 
    color: #ffffff; 
    transform: translateX(-5px); 
    border-color: #6366f1;
}

/* PROJECT HERO WITH ANIMATED GRID */
.project-header { 
    padding: 140px 0 80px; 
    text-align: center; 
    position: relative;
    background: #000000;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Grid in Project Hero - BRIGHTER AND VISIBLE */
.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 100%);
    pointer-events: none;
    animation: grid-flow 20s linear infinite;
    z-index: 0;
}

@keyframes grid-flow {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Spotlight Effect - MORE VISIBLE */
.project-header::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: pulse-spotlight 8s ease-in-out infinite;
}

@keyframes pulse-spotlight {
    0%, 100% { 
        opacity: 0.5; 
        transform: translateX(-50%) scale(0.9); 
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1.2); 
    }
}

/* Glass Card Container in Hero */
.project-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.project-hero-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Shimmer Effect on Hero Card */
.project-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    animation: shimmer-card 3s ease-in-out infinite;
}

@keyframes shimmer-card {
    0% { left: -100%; }
    100% { left: 200%; }
}

.project-icon-lg { 
    font-size: 4rem; 
    color: #6366f1; 
    margin-bottom: 1.5rem; 
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.4));
    position: relative;
    z-index: 1;
    animation: float-icon 6s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.project-header h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
    font-weight: 700; 
    color: #ffffff;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.lead-text { 
    font-size: 1.25rem; 
    color: rgba(255, 255, 255, 0.85); 
    max-width: 700px; 
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Tech Badges */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tech-badge:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-2px);
}

/* PROJECT BODY - VERCEL GRID LAYOUT */
.project-body { 
    padding: 80px 0; 
    background: #000000; 
}

/* Grid Layouts */
.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.content-full {
    margin-bottom: 4rem;
}

/* Glass Content Cards - BRIGHTER */
.content-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

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

.content-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.content-card h3 i {
    color: #6366f1;
    font-size: 1.3rem;
}

.content-card p,
.content-card ul {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.content-card ul {
    list-style: none;
    padding: 0;
}

.content-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.content-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

/* Section Headers */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* Timeline/Process Cards - BRIGHTER */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 12px 12px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.process-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.process-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Highlight Stats */
.stat-highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.stat-highlight strong {
    color: #6366f1;
    font-size: 1.1rem;
}

/* Code/Terminal Blocks - FIXED FOR MOBILE RESPONSIVENESS */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    overflow-x: auto;
    margin: 1.5rem 0;
    white-space: pre-wrap; /* Changed from 'pre' to 'pre-wrap' */
    word-wrap: break-word; /* Added */
    line-height: 1.6;
}

/* Syntax Highlighting */
.code-block .comment {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.code-block .command {
    color: #39d0d8;
    font-weight: 600;
}

.code-block .path {
    color: #bc8cff;
}

.code-block .keyword {
    color: #6366f1;
    font-weight: 600;
}

/* Fade-in animations for all content cards */
.content-card,
.process-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.content-card.fade-in-visible,
.process-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVE */
@media (max-width: 968px) {
    .content-grid-2,
    .content-grid-3,
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-header {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .project-hero-card {
        padding: 2rem 1.5rem;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .navbar.project-nav {
        background: rgba(10, 10, 10, 0.95) !important;
    }
    
    .nav-back {
        font-size: 0.85rem;
        padding: 0.55rem 1.1rem;
    }
    
    .project-header {
        padding: 100px 0 50px;
    }
    
    /* Keep grid visible on mobile */
    .project-header::before {
        background-size: 30px 30px;
        mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 60%, transparent 100%);
        -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, black 60%, transparent 100%);
    }
    
    .project-header h1 {
        font-size: 2rem;
    }
    
    .project-icon-lg {
        font-size: 3rem;
    }
    
    .lead-text {
        font-size: 1rem;
    }
    
    .tech-badges {
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .content-card {
        padding: 2rem 1.5rem;
    }
    
    .content-card h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .process-card {
        padding: 1.5rem 1.25rem;
    }
    
    /* Code block mobile fix */
    .code-block {
        padding: 1rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .project-header h1 {
        font-size: 1.75rem;
    }
    
    .lead-text {
        font-size: 0.95rem;
    }
    
    .project-icon-lg {
        font-size: 2.5rem;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Extra small mobile code block adjustment */
    .code-block {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}