/* Service/Products Section */
#service-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    font-family: 'Noto Sans KR', sans-serif;
    overflow: hidden;
    position: relative;
}

#service-section > div:first-child {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://cdn.imweb.me/upload/S2025021297be7e1958de0/771cd1dc921ef.png') center/cover;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

#service-section > div:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(90, 124, 106, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(108, 117, 125, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

#service-section > div:last-child {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Top Content */
#service-top-content {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

#service-top-content.visible {
    opacity: 1;
    transform: translateY(0);
}

#service-top-content > div:first-child {
    flex: 1;
    padding-right: 60px;
}

#service-top-content > div:first-child > div:first-child {
    color: #f58f27;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    word-break: keep-all;
    word-wrap: break-word;
}

#service-top-content h2 {
    font-size: 48px;
    font-weight: 300;
    color: #6c757d;
    margin: 0 0 10px 0;
    line-height: 1.2;
    word-break: keep-all;
    word-wrap: break-word;
}

#service-top-content h3 {
    font-size: 56px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 30px 0;
    line-height: 1.1;
    word-break: keep-all;
    word-wrap: break-word;
}

#service-top-content p {
    font-size: 18px;
    color: #2d3436;
    line-height: 1.7;
    margin-bottom: 40px;
    word-break: keep-all;
    word-wrap: break-word;
    font-weight: 500;
}

#service-top-content p strong {
    color: #f58f27;
}

#more-view-btn {
    background: transparent;
    border: 2px solid #f58f27;
    color: #f58f27;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    word-break: keep-all;
    word-wrap: break-word;
}

#more-view-btn:hover {
    background: #f58f27;
    color: white;
}

#more-view-btn span {
    background: #f58f27;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Service Cards */
#service-cards {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease 0.3s;
}

#service-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

#card-slider {
    display: flex;
    gap: 20px;
    align-items: end;
    height: 400px;
    position: relative;
    margin-bottom: 40px;
}

.apitech-service-card {
    flex: 1;
    height: 300px;
    border-radius: 0;
    position: relative;
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.apitech-service-card.main-card {
    flex: 1.5;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.apitech-service-card > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
}

.apitech-service-card h4 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    word-break: keep-all;
    word-wrap: break-word;
    line-height: 1.3;
}

.apitech-service-card p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0 0 20px 0;
    word-break: keep-all;
    word-wrap: break-word;
    line-height: 1.5;
    max-width: 200px;
    font-style: italic;
}

.apitech-service-card > div > div:last-child {
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

/* Progress Section */
#apitech-progress-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    margin-top: 30px;
}

.apitech-progress-bar-container {
    width: 50px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.apitech-progress-bar-container:hover {
    background: #d1d5db;
}

.apitech-progress-fill {
    width: 0%;
    height: 100%;
    background: #f58f27;
    border-radius: 2px;
    transition: width 0.1s linear;
}

#apitech-current-page {
    margin-left: 20px;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #service-section {
        padding: 60px 0 !important;
    }
    
    #service-section > div:last-child {
        padding: 0 20px !important;
    }
    
    #service-top-content {
        flex-direction: column !important;
        text-align: center !important;
        margin-bottom: 40px !important;
    }
    
    #service-top-content > div:first-child {
        padding-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    #service-top-content > div:first-child > div:first-child {
        font-size: 12px !important;
    }
    
    #service-top-content h2 {
        font-size: 42px !important;
    }
    
    #service-top-content h3 {
        font-size: 42px !important;
    }
    
    #service-top-content p {
        font-size: 13px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    
    #more-view-btn {
        display: none !important;
    }
    
    #apitech-progress-section {
        display: none !important;
    }
    
    #card-slider {
        flex-direction: column !important;
        height: auto !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .apitech-service-card {
        flex: none !important;
        height: 250px !important;
        width: 100% !important;
    }
    
    .apitech-service-card.main-card {
        height: 250px !important;
        order: 0 !important;
    }
    
    #service-section > div:nth-child(2) {
        display: none !important;
    }
}
