/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
    color: #ffffff;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    will-change: transform;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2563eb 50%, transparent 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Footer Top */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    will-change: transform, opacity;
}

.footer-logo h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #2563eb;
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #a3a3a3;
    margin: 0;
}

/* Footer Services */
.footer-services,
.footer-company,
.footer-contact {
    will-change: transform, opacity;
}

.footer-services h4,
.footer-company h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
}

.footer-services h4::after,
.footer-company h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-company ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-grid li,
.footer-company li {
    margin-bottom: 8px;
}

.services-grid a,
.footer-company a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
    will-change: transform, opacity;
}

.services-grid a:hover,
.footer-company a:hover {
    color: #2563eb;
    transform: translateX(4px);
}

/* 링크 상태 관리 */
.services-grid a:visited,
.footer-company a:visited {
    color: #d1d5db; /* 방문 후에도 기본 색상 유지 */
}

.services-grid a:active,
.footer-company a:active {
    color: #1d4ed8; /* 클릭 순간 더 진한 파란색 */
    transform: translateX(2px);
}

.services-grid a:focus,
.footer-company a:focus {
    color: #d1d5db; /* 포커스 시에도 기본 색상 */
    outline: none; /* 기본 포커스 아웃라인 제거 */
}

/* 모든 링크 상태를 기본 색상으로 강제 (GSAP 애니메이션 후) */
.services-grid a:any-link,
.footer-company a:any-link {
    color: #d1d5db;
}

/* 상태 리셋 클래스 - JavaScript에서 강제 적용 */
.services-grid a.reset-state,
.footer-company a.reset-state {
    color: #d1d5db !important;
    transition: none !important;
}

/* GSAP 애니메이션과의 충돌 방지 */
.services-grid a[style*="color"],
.footer-company a[style*="color"] {
    color: #d1d5db !important;
}

.services-grid a::before,
.footer-company a::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-grid a:hover::before,
.footer-company a:hover::before {
    opacity: 1;
}

.service-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    margin-left: 4px;
}

/* Footer Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 0.9rem;
    color: #d1d5db;
    will-change: transform, opacity;
}

.contact-icon {
    font-size: 1.1rem;
    min-width: 20px;
}

.contact-item a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2563eb;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #374151;
    will-change: transform, opacity;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal p {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

.company-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

.company-details span {
    white-space: nowrap;
}

.company-details .divider {
    color: #6b7280;
    font-size: 0.8rem;
}


.divider {
    color: #6b7280;
    font-size: 0.8rem;
}

.footer-social {
    text-align: right;
}

.footer-slogan {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-container {
        padding: 0 30px;
    }
    
    .footer-top {
        grid-template-columns: 2fr 1.5fr 1fr;
        gap: 40px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 968px) {
    .footer-section {
        padding: 80px 0 50px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        margin-top: 0;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
    
    .company-details {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        text-align: left;
    }
    
    .company-details .divider {
        display: none;
    }
}

@media (max-width: 640px) {
    .footer-section {
        padding: 70px 0 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-brand,
    .footer-contact {
        text-align: center;
    }
    
    .footer-logo h3 {
        font-size: 1.8rem;
    }
    
    .footer-services h4,
    .footer-company h4,
    .footer-contact h4 {
        text-align: center;
        font-size: 1rem;
    }
    
    .footer-services h4::after,
    .footer-company h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-company ul {
        text-align: center;
    }

    /* 중앙 정렬: 서비스 메뉴 (모바일) */
    .footer-services .services-grid {
        grid-template-columns: 1fr; /* 1열 유지 */
        justify-items: center;      /* 항목 중앙 정렬 */
    }
    .footer-services .services-grid li {
        text-align: center;         /* 텍스트 중앙 정렬 */
    }
    .footer-services .services-grid a::before {
        display: none;              /* 좌측 점 아이콘 제거 (중앙 정렬 시 미관) */
    }
    .footer-services .services-grid a:hover {
        transform: none;            /* 중앙 정렬 시 좌우 이동 효과 제거 */
    }
    
    .contact-info {
        align-items: center;
    }
    
    .company-details {
        flex-direction: column;
        gap: 4px;
        align-items: center;
        text-align: center;
    }
    
    .company-details .divider {
        display: none;
    }
}

/* Performance Optimization */
.footer-section * {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}