/* Portfolio Detail Page Styles */
/* Inherits base styles from common.css */

:root {
    --primary-blue: #0A4C6F;
    --accent-blue: #1E88E5;
    --orange-accent: #FF6B35;
    --dark-navy: #0D1B2A;
    --gray-light: #F8F9FA;
    --gray-medium: #6C757D;
    --success-green: #38a169;
    --warning-red: #e53e3e;
}

/* Project Header */
.project-header {
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: white;
    padding: 120px 0 60px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 10L90 90H10z" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    opacity: 0.1;
}

.project-header .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb span {
    color: rgba(255,255,255,0.7);
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 800px;
    line-height: 1.6;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.meta-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Main Content Area */
.project-content {
    background: var(--gray-light);
    padding: 40px 0 80px;
}

.project-content .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Image */
.hero-image-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Content Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.content-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.section-heading {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--orange-accent));
    border-radius: 2px;
}

.text-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.text-content p:last-child {
    margin-bottom: 0;
}

/* Challenge & Solution Grid */
.challenge-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.challenge-box,
.solution-box {
    padding: 30px;
    border-radius: 12px;
    position: relative;
}

.challenge-box {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 4px solid var(--warning-red);
}

.solution-box {
    background: linear-gradient(135deg, #f0fff4 0%, #e6f7e9 100%);
    border-left: 4px solid var(--success-green);
}

.box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.box-icon {
    font-size: 1.8rem;
}

.challenge-box h3,
.solution-box h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0;
}

.challenge-box p,
.solution-box p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.challenge-box p:last-child,
.solution-box p:last-child {
    margin-bottom: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--orange-accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.2);
    z-index: 1;
}

.timeline-content h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.timeline-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 30px 15px 15px;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.sidebar-card h3 {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

/* Highlight Card */
.highlight-card {
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
    color: white;
}

.highlight-card h3 {
    color: white;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

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

.check-icon {
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--orange-accent);
}

/* Specs Card */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    font-weight: 500;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--orange-accent), #ff8a5c);
    color: white;
    text-align: center;
}

.cta-card h3 {
    color: white;
}

.cta-card p {
    color: rgba(255,255,255,0.95);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cta-card .btn-primary,
.cta-card .btn-secondary {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 24px;
    font-size: 1rem;
}

.cta-card .btn-primary {
    background: white;
    color: var(--orange-accent);
}

.cta-card .btn-primary:hover {
    background: var(--dark-navy);
    color: white;
}

.cta-card .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-card .btn-secondary:hover {
    background: white;
    color: var(--orange-accent);
}

/* Related Services Card */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list li {
    margin-bottom: 12px;
}

.related-list li:last-child {
    margin-bottom: 0;
}

.related-list a {
    display: block;
    padding: 12px 15px;
    background: var(--gray-light);
    border-radius: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.related-list a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateX(5px);
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 16px;
    padding: 60px 40px;
    margin-top: 60px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: var(--orange-accent);
    color: white;
    border-color: var(--orange-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .project-header {
        padding: 100px 0 40px;
    }
    
    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .project-meta {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .challenge-solution-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -27px;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-header .container,
    .project-content .container {
        padding: 0 1rem;
    }
    
    .project-title {
        font-size: 1.6rem;
    }
    
    .meta-item {
        padding: 15px;
    }
    
    .meta-icon {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .bottom-cta {
        padding: 40px 20px;
    }
}