/* ================================================
   PORTFOLIO DETAIL PAGE STYLES
   ================================================ */

/* ==============================================
   TYPOGRAPHY SYSTEM - Portfolio Detail Page Only
   ============================================== */

/* Heading Styles */
.portfolio-detail h1,
.portfolio-detail .text-h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.portfolio-detail h2,
.portfolio-detail .text-h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.portfolio-detail h3,
.portfolio-detail .text-h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

.portfolio-detail h4,
.portfolio-detail .text-h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.portfolio-detail h5,
.portfolio-detail .text-h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
}

.portfolio-detail h6,
.portfolio-detail .text-h6 {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Paragraph and Text Styles */
.portfolio-detail .text-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.portfolio-detail .text-body-lg {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.portfolio-detail .text-body-sm {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.portfolio-detail .text-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.portfolio-detail .text-muted {
    color: #999;
}

.portfolio-detail .text-dark {
    color: #1a1a1a;
}

.portfolio-detail .text-medium-dark {
    color: #666;
}

/* Special Typography Variants */
.portfolio-detail .hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin-bottom: 1rem;
}

.portfolio-detail .hero-description {
    font-size: 17px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
    margin-bottom: 1.5rem;
}

.portfolio-detail .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.portfolio-detail .section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

.portfolio-detail .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.portfolio-detail .card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.portfolio-detail .card-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.portfolio-detail .feature-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.625rem;
}

.portfolio-detail .feature-text {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.portfolio-detail .info-label {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 0.25rem;
}

.portfolio-detail .info-value {
    font-weight: 600;
    color: #1a1a1a;
}

.portfolio-detail .metric-number {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 0.625rem;
}

.portfolio-detail .metric-label {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.portfolio-detail .cta-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-detail .cta-text {
    color: white;
    opacity: 0.9;
    margin-bottom: 0;
}

.portfolio-detail .badge-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.portfolio-detail .related-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.portfolio-detail .overlay-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Button Text Styles */
.portfolio-detail .btn-text {
    font-size: 14px;
    font-weight: 600;
}

.portfolio-detail .btn-text-lg {
    font-size: 16px;
    font-weight: 600;
}


/* ==============================================
   HERO SECTION
   ============================================== */

.portfolio-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: white;
    color: #1a1a1a;
    padding: 0.5rem 0.75rem;
    display: inline-block;
    border-radius: 0.25rem;
}

.hero-btn {
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.hero-btn-outline {
    border-width: 2px;
}

.hero-btn-outline:hover {
    background: rgba(255,255,255,0.1);
}


/* ==============================================
   INFO CARDS
   ============================================== */

.info-cards-wrapper {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.info-card-icon {
    font-size: 32px;
    margin-bottom: 1rem;
}

.info-card-icon-client {
    color: #667eea;
}

.info-card-icon-calendar {
    color: #f093fb;
}

.info-card-icon-category {
    color: #4facfe;
}

.info-card-icon-likes {
    color: #ff6b6b;
}

.info-card-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.info-card-value {
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
    font-size: 18px;
}

.info-card-value-small {
    font-size: 16px;
}


/* ==============================================
   CONTENT SECTION
   ============================================== */

.portfolio-content {
    padding-top: 120px;
    padding-bottom: 120px;
}


/* ==============================================
   FEATURED IMAGE
   ============================================== */

.featured-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
}

.featured-image {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image:hover {
    transform: scale(1.05);
}


/* ==============================================
   PROJECT DESCRIPTION
   ============================================== */

.project-description-content {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}


/* ==============================================
   SHOPIFY STACK
   ============================================== */

.shopify-title-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    margin-right: 10px;
    fill: #96bf48;
}


/* ==============================================
   FEATURE BOXES
   ============================================== */

.feature-box {
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateX(10px);
}

.feature-box-icon {
    font-size: 24px;
    margin-top: 5px;
    margin-right: 1rem;
}

/* Feature Box Variants */
.feature-box-shopify {
    background: linear-gradient(135deg, #96bf4815 0%, #5e8e3e15 100%);
    border-color: #96bf48;
}

.feature-box-shopify .feature-box-icon {
    color: #96bf48;
}

.feature-box-api {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-color: #667eea;
}

.feature-box-api .feature-box-icon {
    color: #667eea;
}

.feature-box-checkout {
    background: linear-gradient(135deg, #f093fb15 0%, #f5576c15 100%);
    border-color: #f093fb;
}

.feature-box-checkout .feature-box-icon {
    color: #f093fb;
}

.feature-box-metafield {
    background: linear-gradient(135deg, #4facfe15 0%, #00f2fe15 100%);
    border-color: #4facfe;
}

.feature-box-metafield .feature-box-icon {
    color: #4facfe;
}

.feature-box-app {
    background: linear-gradient(135deg, #43e97b15 0%, #38f9d715 100%);
    border-color: #43e97b;
}

.feature-box-app .feature-box-icon {
    color: #43e97b;
}

.feature-box-cli {
    background: linear-gradient(135deg, #ff6b6b15 0%, #ee576515 100%);
    border-color: #ff6b6b;
}

.feature-box-cli .feature-box-icon {
    color: #ff6b6b;
}


/* ==============================================
   GALLERY
   ============================================== */

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 350px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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


/* ==============================================
   CHALLENGE & SOLUTION
   ============================================== */

.challenge-solution-box {
    padding: 3rem;
    border-radius: 20px;
    height: 100%;
}

.challenge-box {
    background: linear-gradient(135deg, #ff6b6b15 0%, #ee576515 100%);
}

.solution-box {
    background: linear-gradient(135deg, #96bf4815 0%, #5e8e3e15 100%);
}

.challenge-solution-icon {
    font-size: 40px;
    margin-bottom: 1rem;
}

.challenge-icon {
    color: #ff6b6b;
}

.solution-icon {
    color: #96bf48;
}

.challenge-title-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    fill: #ff6b6b;
}

.solution-title-icon {
    width: 40px;
    height: 40px;
    fill: #96bf48;
}


/* ==============================================
   RESULTS/METRICS
   ============================================== */

.result-item {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
}

/* Metric Gradient Variants */
.metric-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-gradient-green {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ==============================================
   SIDEBAR
   ============================================== */

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.widget {
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}


/* ==============================================
   TECH TAGS
   ============================================== */

.tech-tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 50px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
}


/* ==============================================
   PROJECT INFO
   ============================================== */

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

.project-info-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.project-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project-info-icon {
    font-size: 20px;
    margin-right: 1rem;
}

.project-info-icon-client {
    color: #667eea;
}

.project-info-icon-calendar {
    color: #f093fb;
}

.project-info-icon-category {
    color: #4facfe;
}

.project-visit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.project-visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}


/* ==============================================
   SHARE BUTTONS
   ============================================== */

.share-btn {
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #212529;
    text-decoration: none;
    display: inline-block;
}

.share-btn:hover {
    text-decoration: none;
}

.share-btn-facebook:hover {
    background: #3b5998 !important;
    color: white !important;
}

.share-btn-twitter:hover {
    background: #1da1f2 !important;
    color: white !important;
}

.share-btn-linkedin:hover {
    background: #0077b5 !important;
    color: white !important;
}


/* ==============================================
   RELATED PROJECTS
   ============================================== */

.related-portfolio-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    background: white;
}

.related-portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.related-thumbnail {
    overflow: hidden;
    position: relative;
}

.related-thumbnail img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-thumbnail:hover img {
    transform: scale(1.1);
}

.related-content {
    padding: 1.5rem;
}

.related-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.related-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-title a:hover {
    color: #667eea;
}

.related-read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.related-read-more:hover {
    padding-left: 10px;
    color: #667eea;
}

.related-likes {
    color: #999;
}


/* ==============================================
   CTA SECTION
   ============================================== */

.back-to-portfolio-cta {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 1rem 3rem;
    transition: all 0.3s ease;
}

.cta-btn-light {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.cta-btn-outline {
    border-width: 2px;
}

.cta-btn-outline:hover {
    background: rgba(255,255,255,0.1);
}


/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 991px) {
    .portfolio-hero {
        min-height: 40vh;
    }
    
    .portfolio-detail .hero-title {
        font-size: 24px;
    }
    
    .portfolio-detail h1 {
        font-size: 24px;
    }
    
    .portfolio-detail h2 {
        font-size: 22px;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
    }
    
    .portfolio-content {
        padding-top: 80px;
        padding-bottom: 80px;
    }
}

@media (max-width: 767px) {
    .portfolio-hero {
        min-height: 35vh;
    }
    
    .portfolio-detail .hero-title {
        font-size: 22px;
    }
    
    .portfolio-detail h1 {
        font-size: 22px;
    }
    
    .portfolio-detail h2 {
        font-size: 20px;
    }
    
    .portfolio-detail h3 {
        font-size: 18px;
    }
    
    .portfolio-detail h4 {
        font-size: 16px;
    }
    
    .portfolio-detail .hero-description {
        font-size: 15px;
    }
    
    .gallery-item {
        height: 250px;
    }
    
    .challenge-solution-box {
        padding: 2rem;
    }
    
    .info-cards-wrapper {
        margin-top: -30px;
    }
    
    .portfolio-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .cta-btn {
        padding: 0.75rem 2rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
