/**
 * Single Portfolio Styles
 * Modern single portfolio page design
 */

/* Portfolio Hero Section */
.portfolio-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #00a8cc 0%, #0077b6 100%);
}

.portfolio-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 168, 204, 0.85) 0%, rgba(0, 119, 182, 0.85) 100%);
    z-index: 2;
}

.portfolio-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 80px 0;
    color: #fff;
}

.portfolio-hero-wrapper {
    max-width: 800px;
}

.portfolio-hero-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.portfolio-hero-category i {
    font-size: 13px;
}

.portfolio-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.portfolio-hero-excerpt {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}

.portfolio-hero-excerpt p {
    margin-bottom: 0;
}

/* Portfolio Content Section */
.portfolio-content-section {
    padding: 60px 0 80px;
    background: #f8f9fa;
}

/* Portfolio Article */
.portfolio-article {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-content {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

.portfolio-content h2,
.portfolio-content h3,
.portfolio-content h4 {
    color: #212529;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.portfolio-content h2 {
    font-size: 32px;
}

.portfolio-content h3 {
    font-size: 26px;
}

.portfolio-content h4 {
    font-size: 22px;
}

.portfolio-content p {
    margin-bottom: 20px;
}

.portfolio-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
}

.portfolio-content ul,
.portfolio-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.portfolio-content li {
    margin-bottom: 10px;
}

.portfolio-content blockquote {
    border-left: 4px solid #00a8cc;
    padding: 20px 25px;
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* Portfolio Tags */
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 2px solid #e9ecef;
}

.portfolio-tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-size: 14px;
}

.portfolio-tags-label i {
    color: #00a8cc;
    font-size: 16px;
}

.portfolio-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-tag:hover {
    background: #00a8cc;
    border-color: #00a8cc;
    color: #fff;
    transform: translateY(-2px);
}

/* Portfolio Sidebar */
.portfolio-sidebar {
    position: sticky;
    top: 100px;
}

/* Portfolio Info Box */
.portfolio-info-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.portfolio-info-title i {
    color: #00a8cc;
    font-size: 22px;
}

.portfolio-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.portfolio-info-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00a8cc 0%, #0077b6 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
}

.portfolio-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.portfolio-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info-value {
    font-size: 15px;
    font-weight: 500;
    color: #212529;
    line-height: 1.5;
}

.portfolio-info-cta {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.portfolio-info-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
}

.portfolio-info-cta .btn i {
    font-size: 18px;
}

/* Portfolio Technology Box */
.portfolio-tech-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-tech-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.portfolio-tech-title i {
    color: #00a8cc;
    font-size: 20px;
}

.portfolio-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #00a8cc 0%, #0077b6 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.portfolio-tech-item i {
    font-size: 12px;
}

/* Portfolio Gallery Box */
.portfolio-gallery-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-gallery-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.portfolio-gallery-title i {
    color: #00a8cc;
    font-size: 20px;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Gallery in sidebar (if any) */
.portfolio-sidebar .portfolio-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portfolio-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

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

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

.portfolio-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 168, 204, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-gallery-item:hover .portfolio-gallery-overlay {
    opacity: 1;
}

.portfolio-gallery-overlay i {
    font-size: 32px;
    color: #fff;
}

/* Portfolio Challenges Box */
.portfolio-challenges-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-challenges-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.portfolio-challenges-title i {
    color: #ffc107;
    font-size: 20px;
}

.portfolio-challenges-content {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}

.portfolio-challenges-content p {
    margin-bottom: 12px;
}

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

.portfolio-challenges-content ul,
.portfolio-challenges-content ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.portfolio-challenges-content li {
    margin-bottom: 8px;
}

/* Portfolio Results Box */
.portfolio-results-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.portfolio-results-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.portfolio-results-title i {
    color: #28a745;
    font-size: 20px;
}

.portfolio-results-content {
    font-size: 14px;
    line-height: 1.7;
    color: #495057;
}

.portfolio-results-content p {
    margin-bottom: 12px;
}

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

.portfolio-results-content ul,
.portfolio-results-content ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.portfolio-results-content li {
    margin-bottom: 8px;
}

.portfolio-results-content strong {
    color: #212529;
    font-weight: 600;
}

/* Portfolio Share Box */
.portfolio-share-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-share-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.portfolio-share-title i {
    color: #00a8cc;
    font-size: 20px;
}

.portfolio-share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.portfolio-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.portfolio-share-btn.facebook {
    background: #1877f2;
}

.portfolio-share-btn.twitter {
    background: #1da1f2;
}

.portfolio-share-btn.linkedin {
    background: #0077b5;
}

.portfolio-share-btn.email {
    background: #ea4335;
}

/* Portfolio CTA Section */
.portfolio-cta-section {
    padding: 0;
    background: #f8f9fa;
}

.portfolio-cta-box {
    background: linear-gradient(135deg, #00a8cc 0%, #0077b6 100%);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 15px 50px rgba(0, 168, 204, 0.3);
    position: relative;
    overflow: hidden;
}

.portfolio-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.portfolio-cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.portfolio-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.portfolio-cta-icon i {
    font-size: 40px;
    color: #fff;
}

.portfolio-cta-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.portfolio-cta-description {
    font-size: 18px;
    line-height: 1.8;
    color: #fff;
    opacity: 0.95;
    margin-bottom: 35px;
}

.portfolio-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.portfolio-cta-buttons .btn {
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.portfolio-cta-buttons .btn-primary-custom {
    background: #fff;
    color: #00a8cc;
    border-color: #fff;
}

.portfolio-cta-buttons .btn-primary-custom:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-cta-buttons .btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.portfolio-cta-buttons .btn-outline-light:hover {
    background: #fff;
    color: #00a8cc;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.portfolio-cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.portfolio-cta-feature i {
    font-size: 20px;
    opacity: 0.9;
}

/* Related Portfolios Section */
.related-portfolios-section {
    padding: 80px 0;
    background: #fff;
}

.related-portfolios-section .section-header {
    margin-bottom: 50px;
}

.related-portfolios-section .section-title {
    font-size: 36px;
    font-weight: 800;
    color: #212529;
    margin-bottom: 15px;
}

.related-portfolios-section .section-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 0;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 991px) {
    .portfolio-sidebar {
        position: static;
        margin-top: 30px;
    }

    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .portfolio-hero {
        min-height: 400px;
    }

    .portfolio-hero-content {
        padding: 60px 0;
    }

    .portfolio-hero-title {
        font-size: 32px;
    }

    .portfolio-hero-excerpt {
        font-size: 16px;
    }

    .portfolio-content-section {
        padding: 40px 0 60px;
    }

    .portfolio-article {
        padding: 25px 20px;
    }

    .portfolio-content {
        font-size: 15px;
    }

    .portfolio-content h2 {
        font-size: 26px;
    }

    .portfolio-content h3 {
        font-size: 22px;
    }

    .portfolio-content h4 {
        font-size: 18px;
    }

    .portfolio-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-info-box,
    .portfolio-tech-box,
    .portfolio-gallery-box,
    .portfolio-challenges-box,
    .portfolio-results-box,
    .portfolio-share-box {
        padding: 20px;
    }

    .portfolio-tech-list {
        gap: 8px;
    }

    .portfolio-tech-item {
        font-size: 12px;
        padding: 6px 12px;
    }

    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .portfolio-sidebar .portfolio-gallery-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-gallery-overlay i {
        font-size: 24px;
    }

    .portfolio-share-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .portfolio-cta-box {
        padding: 40px 30px;
        border-radius: 15px;
    }

    .portfolio-cta-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .portfolio-cta-icon i {
        font-size: 30px;
    }

    .portfolio-cta-title {
        font-size: 28px;
    }

    .portfolio-cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .portfolio-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .portfolio-cta-buttons .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 15px;
    }

    .portfolio-cta-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .related-portfolios-section {
        padding: 60px 0;
    }

    .related-portfolios-section .section-title {
        font-size: 28px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .portfolio-hero-category {
        font-size: 12px;
        padding: 6px 16px;
    }

    .portfolio-hero-title {
        font-size: 26px;
    }

    .portfolio-hero-excerpt {
        font-size: 14px;
    }

    .portfolio-info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

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

    .portfolio-cta-box {
        padding: 30px 20px;
    }

    .portfolio-cta-title {
        font-size: 24px;
    }

    .portfolio-cta-description {
        font-size: 15px;
    }
}
