/* project-detail.css - Styles for project detail pages */

/* Import base styles and colors */
:root {
    /* Primary gradient colors - purple to pink theme */
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --gradient-3: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-4: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f1e 0%, #1a1a3e 50%, #2d1b69 100%);
    
    /* Consistent accent colors */
    --primary-color: #8b5cf6;
    --secondary-color: #d946ef;
    --accent-color: #6366f1;
    --text-light: #e0e7ff;
    --text-muted: #a5b4fc;
    --text-dark: #1e1b18;
    
    /* Glass effect colors */
    --glass-bg: rgba(139, 92, 246, 0.05);
    --glass-border: rgba(139, 92, 246, 0.2);
    --glass-hover: rgba(139, 92, 246, 0.1);
    
    /* Legacy color mapping */
    --dark-bg: #0f0f1e;
    --light-bg: #f8f9ff;
    --accent-color1: #8b5cf6;
    --accent-color2: #1a1a3e;
    --section-bg: rgba(139, 92, 246, 0.02);
    
    /* Shadows and borders */
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --border-radius: 15px;
}

/* Global styles for project pages */
body {
    background: #0a0a0f;
    color: #e0e7ff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    z-index: -1;
}

/* Navigation Bar */
.navbar {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-back {
    color: #e0e7ff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-back:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    transform: translateX(-5px);
}

.nav-back:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 15px;
}

/* Remove bullet points from nav */
.nav-container ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
}

.nav-container li {
    list-style: none !important;
}

.nav-container li::before {
    display: none !important;
}

.nav-container a {
    color: #a5b4fc;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-container a:hover {
    color: #8b5cf6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* Project Hero Section */
.project-hero {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 0.8) 100%);
    color: #e0e7ff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(139, 92, 246, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(217, 70, 239, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.project-hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.project-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 20px rgba(139, 92, 246, 0.5)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 40px rgba(217, 70, 239, 0.8)); }
}

.project-tagline {
    font-size: 1.6rem;
    color: #a5b4fc;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1.1rem;
}

.project-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 1.1rem;
    justify-content: center;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a5b4fc;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s;
}

.project-meta span:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.project-meta i {
    color: var(--primary-color);
}

/* Content Sections */
.project-content {
    padding: 80px 0;
    background: transparent;
    position: relative;
}

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

.content-section {
    margin-bottom: 60px;
}

.content-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.content-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
    border-radius: 2px;
}

/* Highlight Box */
.highlight-box {
    background: rgba(139, 92, 246, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e7ff;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
}

/* Challenge Grid */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.challenge-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.challenge-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.challenge-card:hover::after {
    opacity: 1;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    border-color: var(--primary-color);
}

.challenge-card i {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.challenge-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e0e7ff;
}

.challenge-card p {
    color: #a5b4fc;
}

/* Tech Stack */
.tech-stack {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-stack h3 {
    color: #e0e7ff;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-tag {
    background: var(--gradient-1);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Implementation Flow */
.implementation-flow {
    margin-top: 30px;
}

.flow-steps {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.flow-step {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: start;
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.flow-step:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.flow-step h4 {
    margin-bottom: 8px;
    color: #e0e7ff;
}

.flow-step p {
    color: #a5b4fc;
}

/* Achievement Story */
.achievement-story {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.8;
    color: #e0e7ff;
}

.achievement-story ul {
    margin: 20px 0;
    padding-left: 0;
    color: #a5b4fc;
}

.achievement-story li {
    margin-bottom: 10px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 20px 20px 0 0;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1rem;
    color: #a5b4fc;
}

/* Impact List */
.impact-list {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.impact-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    line-height: 1.8;
    color: #a5b4fc;
}

.impact-list li:last-child {
    border-bottom: none;
}

/* Recognition Cards */
.recognition-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.recognition-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.recognition-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.recognition-card i {
    font-size: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.recognition-card h3 {
    margin-bottom: 15px;
    color: #e0e7ff;
}

.recognition-card p {
    color: #a5b4fc;
}

/* Growth Timeline */
.growth-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.growth-item {
    text-align: center;
}

.growth-item i {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.growth-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e0e7ff;
}

.growth-item p {
    color: #a5b4fc;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section h2 {
    color: #e0e7ff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.project-footer {
    background: rgba(10, 10, 15, 0.9);
    color: #a5b4fc;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: 100px;
}

/* General text color fixes */
.content-section p {
    color: #a5b4fc;
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-section ul {
    color: #a5b4fc;
}

.content-section h3 {
    color: #e0e7ff;
    margin: 30px 0 20px;
    font-size: 1.8rem;
}

.content-section h4 {
    color: #e0e7ff;
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.content-section h5 {
    color: #e0e7ff;
    margin: 20px 0 15px;
}

/* Better list styling */
ul, ol {
    list-style: none;
    padding-left: 0;
}

ul li, ol li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Remove all bullets from navigation */
.navbar ul, nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar li, nav li {
    list-style: none !important;
}

.navbar li::before, nav li::before {
    display: none !important;
    content: none !important;
}

/* Better content list styling */
.content-section ul:not(.nav-menu):not(.tech-list) {
    list-style: none;
    padding: 0;
}

.content-section ul:not(.nav-menu):not(.tech-list) li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.content-section ul:not(.nav-menu):not(.tech-list) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #d946ef);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Animated background particles */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.project-hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.4) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

/* Improved buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Add gradient text to more elements */
strong {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }
    
    .project-hero .subtitle {
        font-size: 1.1rem;
    }
    
    .project-meta {
        gap: 15px;
        font-size: 0.9rem;
    }
    
    .flow-step {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .challenge-grid,
    .metrics-grid,
    .recognition-cards,
    .growth-timeline {
        grid-template-columns: 1fr;
    }
}