/* ========================================
   PROJECT CASE STUDY STYLES
   ======================================== */

/* Project Hero */
.project-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 4rem;
}

.project-hero-content {
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 0.8rem;
}

.project-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.badge-accent {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

.project-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-subtitle strong {
    color: var(--accent);
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px);
}

.hero-blur-1 {
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    opacity: 0.2;
}

.hero-blur-2 {
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: var(--accent);
    opacity: 0.15;
}

/* Project Sections */
.project-section {
    padding: 5rem 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-icon.problem {
    background: rgba(255, 100, 100, 0.15);
    color: #ff6b6b;
}

.card-icon.solution {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent);
}

.problem-list li,
.solution-list li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.problem-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.solution-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    overflow-x: auto;
}

.arch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.arch-node {
    background: rgba(61, 90, 254, 0.1);
    border: 1px solid rgba(61, 90, 254, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: center;
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arch-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(61, 90, 254, 0.2);
}

.arch-node i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.arch-node span {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.arch-node small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.arch-node.aws {
    background: rgba(255, 153, 0, 0.1);
    border-color: rgba(255, 153, 0, 0.3);
}

.arch-node.aws i {
    color: #ff9900;
}

.arch-node.highlight {
    background: rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.4);
}

.arch-node.highlight i {
    color: var(--accent);
}

.arch-node.storage {
    background: rgba(100, 255, 100, 0.1);
    border-color: rgba(100, 255, 100, 0.3);
}

.arch-node.storage i {
    color: #64ff64;
}

.arch-node.output {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}

.arch-node.output i {
    color: var(--accent);
}

.arch-arrow {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.arch-divider {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.arch-divider::before,
.arch-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.arch-divider::before {
    left: 10%;
}

.arch-divider::after {
    right: 10%;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    text-align: center;
}

.tech-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.tech-icon.aws {
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
}

.tech-icon.langchain {
    background: rgba(61, 90, 254, 0.15);
    color: var(--primary);
}

.tech-icon.faiss {
    background: rgba(100, 255, 100, 0.15);
    color: #64ff64;
}

.tech-icon.streamlit {
    background: rgba(255, 75, 75, 0.15);
    color: #ff4b4b;
}

.tech-card h4 {
    margin-bottom: 0.75rem;
    color: #fff;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tech-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
}

/* Code Sections */
.code-section {
    margin-bottom: 2rem;
}

.code-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.code-section pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.code-section code {
    color: #e0e0e0;
}

/* Syntax highlighting */
.keyword {
    color: #c792ea;
}

.class-name {
    color: #82aaff;
}

.function {
    color: #82aaff;
}

.param {
    color: #f78c6c;
}

.string {
    color: #c3e88d;
}

.number {
    color: #f78c6c;
}

.comment {
    color: #546e7a;
    font-style: italic;
}

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

.metric-card {
    text-align: center;
    padding: 2rem;
}

.metric-value {
    margin-bottom: 1rem;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Performance Comparison */
.performance-comparison {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.performance-comparison h4 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-bars {
    max-width: 600px;
    margin: 0 auto;
}

.bar-item {
    margin-bottom: 1.5rem;
}

.bar-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bar-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 40px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: width 1s ease;
}

.bar.baseline {
    background: rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
}

.bar.rag {
    background: var(--gradient-main);
    color: #fff;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Decisions List */
.decisions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.decision-item {
    padding: 1.5rem 2rem;
}

.decision-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.decision-label {
    background: rgba(61, 90, 254, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.decision-header h4 {
    color: #fff;
    margin: 0;
}

.decision-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.decision-item p strong {
    color: var(--accent);
}

/* CTA Section */
.project-cta {
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   RESPONSIVE - PROJECT PAGE
   ======================================== */

@media (max-width: 768px) {
    .project-hero {
        padding-top: 100px;
        min-height: auto;
    }

    .project-hero h1 {
        font-size: 2rem;
    }

    .project-hero h1 br {
        display: none;
    }

    .project-subtitle {
        font-size: 1rem;
    }

    .project-meta {
        gap: 1rem;
    }

    .project-section {
        padding: 3rem 0;
    }

    .architecture-diagram {
        padding: 1.5rem 1rem;
    }

    .arch-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }

    .arch-divider::before,
    .arch-divider::after {
        display: none;
    }

    .code-section pre {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .metric-number {
        font-size: 2.5rem;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .project-hero h1 {
        font-size: 1.6rem;
    }

    .project-badges {
        gap: 0.5rem;
    }

    .arch-node {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }

    .arch-node i {
        font-size: 1.4rem;
    }

    .arch-node span {
        font-size: 0.75rem;
    }

    .metric-number {
        font-size: 2rem;
    }

    .bar {
        font-size: 0.8rem;
        padding-right: 0.5rem;
    }
}
