/**
 * Projects Component CSS
 * Styles for single project pages and project-related sections
 */

/* ==========================================================================
   Project Hero Section
   ========================================================================== */

.project-hero,
.page-hero {
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    padding: 100px 0;
    text-align: center;
    color: white;
}

.project-hero .hero-icon,
.page-hero .icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.project-hero .hero-icon svg,
.page-hero .icon svg {
    width: 6rem;
    height: 6rem;
    fill: currentColor;
}

.project-hero h1,
.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.project-hero p,
.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Project Overview Section
   ========================================================================== */

.project-overview {
    padding: 80px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-content h3 {
    font-size: 2rem;
    color: var(--primary-color, #484169);
    margin-bottom: 20px;
}

.overview-content p {
    font-size: 1.1rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 20px;
    line-height: 1.8;
}

.overview-meta {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.overview-meta h4 {
    font-size: 1.3rem;
    color: var(--primary-color, #484169);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color, #484169);
}

/* ==========================================================================
   Project Meta / Information Grid Section
   ========================================================================== */

.project-meta-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.meta-item {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item .meta-icon,
.meta-item .icon {
    font-size: 1.5rem;
    margin-top: 3px;
    min-width: 40px;
}

.meta-item .meta-icon svg,
.meta-item .icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--primary-color, #484169);
}

.meta-item .info-icon,
.meta-item .detail-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    border-radius: 10px;
    flex-shrink: 0;
}

.meta-item .info-icon svg,
.meta-item .detail-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.meta-item .meta-content,
.meta-item div {
    flex: 1;
}

.meta-item .info-label,
.meta-item strong {
    display: block;
    color: var(--primary-color, #484169);
    margin-bottom: 5px;
    font-weight: 600;
}

.meta-item .info-value,
.meta-item span {
    color: var(--text-muted, #6c757d);
}

/* ==========================================================================
   Project Details Section
   ========================================================================== */

.project-details-section {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.detail-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(72, 65, 105, 0.15);
}

.detail-card .detail-icon,
.detail-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.detail-card .detail-icon svg,
.detail-card .icon svg {
    width: 3rem;
    height: 3rem;
    fill: var(--primary-color, #484169);
}

.detail-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color, #484169);
    margin-bottom: 15px;
}

.detail-card p {
    color: var(--text-muted, #6c757d);
    line-height: 1.8;
}

/* ==========================================================================
   Project Challenges Section
   ========================================================================== */

.project-challenges {
    padding: 80px 0;
    background: #f8f9fa;
}

.challenge-content {
    max-width: 900px;
    margin: 0 auto;
}

.challenge-list {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.challenge-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.challenge-item .challenge-number,
.challenge-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #484169);
    min-width: 50px;
}

.challenge-item .challenge-text div h4,
.challenge-item div h4 {
    font-size: 1.3rem;
    color: var(--primary-color, #484169);
    margin-bottom: 10px;
}

.challenge-item .challenge-text,
.challenge-item div p {
    color: var(--text-muted, #6c757d);
    line-height: 1.8;
}

/* ==========================================================================
   Project Solutions Section
   ========================================================================== */

.project-solutions {
    padding: 80px 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.solution-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.solution-item .solution-icon,
.solution-item .icon {
    font-size: 2.5rem;
    min-width: 60px;
}

.solution-item .solution-icon svg,
.solution-item .icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: var(--primary-color, #484169);
}

.solution-item .solution-content div h4,
.solution-item div h4 {
    font-size: 1.3rem;
    color: var(--primary-color, #484169);
    margin-bottom: 10px;
}

.solution-item .solution-content div p,
.solution-item div p {
    color: var(--text-muted, #6c757d);
    line-height: 1.8;
}

.solution-item .solution-bullets,
.solution-item div ul {
    margin-top: 10px;
    padding-left: 20px;
    color: var(--text-muted, #6c757d);
}

.solution-item .solution-bullets li,
.solution-item div ul li {
    margin-bottom: 8px;
}

/* ==========================================================================
   Project Results Section
   ========================================================================== */

.project-results {
    padding: 80px 0;
    background: #f8f9fa;
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(72, 65, 105, 0.2);
}

.stat-card .stat-number,
.stat-card .number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-card .stat-label,
.stat-card .label {
    font-size: 1rem;
    opacity: 0.95;
}

/* ==========================================================================
   Project Benefits Section
   ========================================================================== */

.project-benefits {
    padding: 80px 0;
}

.benefits-list {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: start;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.benefit-item .benefit-icon,
.benefit-item .icon {
    font-size: 2rem;
    min-width: 40px;
}

.benefit-item .benefit-icon svg,
.benefit-item .icon svg {
    width: 2rem;
    height: 2rem;
    fill: var(--primary-color, #484169);
}

.benefit-item .benefit-text p,
.benefit-item p {
    color: var(--text-dark, #2c2c2c);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================================================
   Project Testimonial Section
   ========================================================================== */

.project-testimonial {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonial-box {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 8rem;
    color: rgba(72, 65, 105, 0.08);
    font-family: Georgia, serif;
}

.testimonial-text,
.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark, #2c2c2c);
    line-height: 1.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    font-size: 1.3rem;
    color: var(--primary-color, #484169);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-muted, #6c757d);
    margin: 0;
}

.author-company {
    font-size: 0.95rem;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

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

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

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

/* ==========================================================================
   Video Embed Section
   ========================================================================== */

.video-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.video-embed {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   Related Projects Section
   ========================================================================== */

.related-projects {
    padding: 80px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(72, 65, 105, 0.15);
}

.related-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color, #484169), var(--secondary-color, #342e4d));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 30px;
}

.related-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(72, 65, 105, 0.1);
    color: var(--primary-color, #484169);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.related-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color, #484169);
    margin-bottom: 10px;
}

.related-content p {
    color: var(--text-muted, #6c757d);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 968px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .project-hero h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .project-hero p,
    .page-hero p {
        font-size: 1.1rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-box {
        padding: 40px 30px;
    }

    .testimonial-box::before {
        font-size: 5rem;
        left: 20px;
        top: 20px;
    }

    .overview-meta {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .related-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
