/* Portfolio Page Specific Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px 60px;
    position: relative;
}

nav {
    margin-bottom: 30px;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInDown 0.8s ease-out 0.2s backwards;
}

/* Portfolio Detail Content */
.portfolio-detail {
    padding: 60px 40px;
}

.portfolio-detail section {
    margin-bottom: 60px;
}

/* Project Hero */
.project-hero {
    margin-top: -100px;
    margin-bottom: 60px;
}

.hero-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
}

/* Project Overview */
.project-overview p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Project Details Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.detail-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
}

.tech-list,
.results-list {
    list-style: none;
    padding-left: 0;
}

.tech-list li,
.results-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.tech-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.results-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Project Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
}

/* Project Impact */
.project-impact p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 20px 40px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .portfolio-detail {
        padding: 40px 20px;
    }

    .project-hero {
        margin-top: -60px;
    }

    .detail-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .project-overview p,
    .project-impact p {
        font-size: 1.1rem;
    }
}

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

    .subtitle {
        font-size: 1rem;
    }

    .back-link {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .detail-card,
    .feature-item {
        padding: 20px;
    }
}
