/* 서비스 카드 섹션 스타일 */
.service-section {
    padding: 100px 0;
    /* background-color: #f9f9f9; */
    position: relative;
}

.service-container {
    width: 95vw;
    max-width: 1800px;
    margin: 0 auto;
}

.service-header {
    padding-left:115px;
    margin-bottom: 24px;
}

.service-tag {
    color: #FF6B00;
    font-size: 22px;
    font-weight: 600;
    /* margin-bottom: 20px; */
    letter-spacing: -0.5px;
}

.service-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #111;
    letter-spacing: -1px;
    margin-bottom:20px;
}

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

/* 카드 플립 효과 - 완전히 다른 접근방식으로 변경 */
.service-card {
    width: 100%;
    height: 600px;
    position: relative;
    cursor: pointer;
    margin-bottom: 20px;
}



.service-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card-front {
    background-color: #000;
    z-index: 1;
    transform: rotateY(0deg);
    position: relative;
}

.service-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

.service-card-back {
    background: linear-gradient(135deg, #004080 0%, #001e3c 100%);
    color: white;
    transform: rotateY(180deg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 앞면 스타일 */
.service-card-image {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* Dim 효과 */
/* .service-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    transition: background 0.5s ease;
} */

.service-card:hover .service-card-image::after {
    background: rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    text-align:right;
}

.service-card-title {
    font-size: 48px;
    line-height:1.1;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

/* 플러스 버튼 스타일 */
.card-plus-button {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    z-index: 2;
    transition: all 0.3s ease;
}

.service-card:hover .card-plus-button {
    background-color: #003366;
    transform: rotate(45deg);
}

/* 뒷면 스타일 - 장식 요소 */
.service-card-back::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.service-card-back::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.service-card-back-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.service-card-back-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #4d9fff;
}

.service-card-description {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
}

.service-card-description p {
    margin-bottom: 15px;
    font-size:22px;
}

.service-card-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4d9fff;
    color: white;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    margin-top: auto;
    align-self: center;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    /* overflow: hidden; */
}


.service-card-button:hover {
    background-color: #3a8eee;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}




/* 반응형 스타일 */
@media (max-width: 1600px) {
    .service-container {
        width: 90%;
    }
}

@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .service-title {
        font-size: 36px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .service-title {
        font-size: 28px;
    }
    
    .service-tag {
        font-size: 16px;
    }
    
    .service-card {
        height: 450px;
    }
    
    .service-card-back {
        padding: 30px 20px;
    }
}
