.portfolio.section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.section-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h4 {
    color: #0E0F3B;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-heading h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #F7931E;
    border-radius: 2px;
}

.section-heading em {
    color: #F7931E;
    font-style: normal;
    position: relative;
}

.section-heading img {
    display: none;
}

.section-heading .section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card img {
  /* object-fit: cover; */
  height: 300px;
  width: 100%;
}

.portfolio-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card .card-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.technology.section {
    padding: 80px 0;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}



.portofolio-detail.section {
    background: #ffffff;
    padding: 120px 40px 90px 40px !important;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* ===== RESPONSIVE FIXES FOR 14 INCH SCREENS ===== */
@media (min-width: 1200px) and (max-width: 1440px) {
    /* Main Banner Optimization */
    .main-banner {
        padding: 100px 40px 60px 40px !important;
    }
    
    .main-banner .left-content h2 {
        font-size: 40px !important;
        line-height: 52px !important;
        margin-bottom: 18px;
    }
    
    .main-banner .left-content p {
        font-size: 15px;
        line-height: 26px;
        margin-bottom: 30px;
    }
    
    /* Portfolio Cards */
    .portfolio-card {
        margin-bottom: 30px;
    }
    
    .portfolio-card .card-body {
        padding: 25px 20px;
    }
    
    .portfolio-card h5 {
        font-size: 20px;
        margin-bottom: 12px;
        line-height: 28px;
    }
    
    .portfolio-card p {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    
    .portfolio-card .portfolio-meta {
        font-size: 12px;
    }
    
    .portfolio-card .view-project {
        font-size: 13px;
        padding: 8px 20px;
    }
    
    /* Portfolio Filter */
    .portfolio-filter .filter-btn {
        font-size: 14px;
        padding: 10px 20px;
        margin: 5px;
    }
    
    /* Portfolio Grid */
    .portfolio-item {
        margin-bottom: 25px;
    }
    
    .portfolio-item .portfolio-overlay h4 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .portfolio-item .portfolio-overlay p {
        font-size: 13px;
        line-height: 20px;
    }
    
    /* Section Spacing */
    .section {
        padding: 60px 0px;
    }
    
    .section-heading h4 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .section-heading p {
        font-size: 15px;
        line-height: 26px;
    }
    
    /* Client Testimonials */
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-card p {
        font-size: 14px;
        line-height: 24px;
    }
    
    .testimonial-card .client-name {
        font-size: 16px;
    }
    
    .testimonial-card .client-position {
        font-size: 12px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .main-banner {
        padding: 120px 20px 60px 20px !important;
        min-height: 400px;
    }
    
    .main-banner .left-content h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .main-banner .left-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .main-banner .left-content .btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 20px;
    }
    
    .main-banner .right-image {
        margin-top: 2rem;
    }
    
    .main-banner .right-image img {
        max-width: 90%;
        max-height: 300px;
    }
    
    .section-heading h4 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-heading p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .main-banner {
        padding: 100px 15px 50px 15px !important;
        min-height: 350px;
    }
    
    .main-banner .left-content h2 {
        font-size: 1.8rem;
        line-height: 1.25;
        margin-bottom: 0.8rem;
    }
    
    .main-banner .left-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .main-banner .left-content .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .section-heading h4 {
        font-size: 1.5rem;
    }
    
    .section-heading p {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Extra optimization for 1366px screens */
@media (min-width: 1300px) and (max-width: 1400px) {
    .main-banner {
        padding: 90px 30px 50px 30px !important;
    }
    
    .main-banner .left-content h2 {
        font-size: 36px !important;
        line-height: 48px !important;
    }
    
    .portfolio-card .card-body {
        padding: 20px 18px;
    }
    
    .portfolio-card h5 {
        font-size: 18px;
        line-height: 26px;
    }
    
    .portfolio-card p {
        font-size: 13px;
        line-height: 22px;
    }
    
    .portfolio-filter .filter-btn {
        font-size: 13px;
        padding: 8px 18px;
    }
    
    .testimonial-card {
        padding: 20px 18px;
    }
}
