/* ============================================
   Cases Page Styles - NobleHR
   ============================================ */

/* ============================================
   Hero Section - Pricing Style
   ============================================ */
.cases-hero {
    background: linear-gradient(135deg, #0E2044 0%, #5DADE2 100%);
    color: #FFFFFF;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cases-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/hero-background-01.png') center/cover no-repeat;
    filter: blur(3px);
    opacity: 0.3;
    animation: heroBackgroundMove 30s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroBackgroundMove {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-2%, -2%); }
}

.cases-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 32, 68, 0.7) 0%, rgba(93, 173, 226, 0.5) 50%, rgba(14, 32, 68, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* 배경 원형 애니메이션 */
.cases-hero .circle-bg {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    animation: circleFloat 15s ease-in-out infinite;
    z-index: 2;
}

.cases-hero .circle-bg:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.cases-hero .circle-bg:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.cases-hero .circle-bg:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.cases-hero .circle-bg:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    animation-duration: 19s;
}

@keyframes circleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
}

/* 배경 선 애니메이션 */
.cases-hero .line-bg {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 2;
}

.cases-hero .line-bg:nth-child(5) {
    width: 2px;
    height: 100%;
    left: 20%;
    animation: lineFloat1 12s ease-in-out infinite;
}

.cases-hero .line-bg:nth-child(6) {
    width: 2px;
    height: 100%;
    left: 50%;
    animation: lineFloat2 15s ease-in-out infinite;
    animation-delay: 3s;
}

.cases-hero .line-bg:nth-child(7) {
    width: 2px;
    height: 100%;
    right: 25%;
    animation: lineFloat3 18s ease-in-out infinite;
    animation-delay: 6s;
}

.cases-hero .line-bg:nth-child(8) {
    width: 100%;
    height: 2px;
    top: 30%;
    animation: lineFloat4 14s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes lineFloat1 {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
        transform: translateY(20px);
    }
    80% {
        opacity: 0.3;
    }
}

@keyframes lineFloat2 {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
        transform: translateY(-20px);
    }
    80% {
        opacity: 0.4;
    }
}

@keyframes lineFloat3 {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
        transform: translateY(15px);
    }
    80% {
        opacity: 0.3;
    }
}

@keyframes lineFloat4 {
    0%, 100% {
        opacity: 0;
        transform: translateX(0);
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.4;
        transform: translateX(10px);
    }
    80% {
        opacity: 0.3;
    }
}

/* Hero Content */
.cases-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cases-hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.text-highlight {
    color: #FFD700;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Cases Section
   ============================================ */
.cases-section {
    padding: 4rem 0;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

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

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Case Image */
.case-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-image::after {
    opacity: 1;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.case-industry {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--noblehr-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Case Content */
.case-content {
    padding: 2rem;
}

.case-company {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--noblehr-gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.case-size {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--noblehr-gray-600);
}

.case-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--noblehr-primary);
    margin-bottom: 1rem;
}

.case-summary {
    color: var(--noblehr-gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Case Metric */
.case-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: var(--noblehr-gray-50);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--noblehr-success);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--noblehr-gray-600);
    font-weight: 600;
}

/* Case CTA Button */
.case-content .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    color: var(--noblehr-primary);
    border: 2px solid var(--noblehr-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--noblehr-primary);
    color: white;
    transform: translateX(4px);
}

.btn-sm {
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #e0e7ff 100%);
    padding: 6rem 0;
}

.bg-gray-light {
    background: var(--noblehr-gray-50);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--noblehr-gray-900);
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Testimonial Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--noblehr-gray-100);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.testimonial-info {
    flex: 1;
}

.testimonial-info h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--noblehr-gray-900);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.testimonial-info p {
    font-size: 0.95rem;
    color: var(--noblehr-gray-600);
    font-weight: 500;
    line-height: 1.4;
}

/* Testimonial Content */
.testimonial-quote {
    font-size: 1rem;
    color: var(--noblehr-gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--noblehr-primary);
    opacity: 0.3;
    line-height: 0;
    display: block;
    margin-bottom: 0.5rem;
}

/* Testimonial Rating */
.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.star {
    color: #ffd700;
    font-size: 1.35rem;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    transition: all 0.2s ease;
}

.testimonial-card:hover .star {
    transform: scale(1.1);
}

/* ============================================
   Industry Section
   ============================================ */
.industry-section {
    padding: 6rem 0;
    background: var(--noblehr-gray-50);
}

.industry-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.industry-tab {
    padding: 0.875rem 2rem;
    border: 2px solid var(--noblehr-gray-300);
    background: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--noblehr-gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.industry-tab:hover {
    border-color: var(--noblehr-primary);
    color: var(--noblehr-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.industry-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.industry-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.stat-card .stat-label {
    font-size: 1.125rem;
    color: var(--noblehr-gray-700);
    font-weight: 600;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    padding: 6rem 0;
    background: #ffffff;
    color: var(--noblehr-gray-900);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 1.125rem;
    color: var(--noblehr-gray-600);
    font-weight: 600;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #0E2044 0%, #2D5282 100%);
    color: #ffffff;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline-gray {
    background: transparent;
    color: var(--noblehr-gray-700);
    border: 2px solid var(--noblehr-gray-300);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gray:hover {
    background: var(--noblehr-gray-100);
    border-color: var(--noblehr-gray-400);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .cases-hero {
        padding: 4rem 0 3rem;
    }
    
    .cases-hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-tabs {
        gap: 0.5rem;
    }
    
    .industry-tab {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .industry-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-card .stat-value {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline-gray {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cases-hero {
        padding: 3.5rem 0 2.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.25rem;
    }
    
    .cases-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .page-header {
        padding: 4rem 0 3rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .cases-section {
        padding: 3rem 0;
    }

    .case-content {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.5rem;
    }
    
    .testimonial-info h4 {
        font-size: 1.1rem;
    }
    
    .testimonial-info p {
        font-size: 0.875rem;
    }
    
    .industry-tabs {
        gap: 0.5rem;
    }
    
    .industry-tab {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .industry-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .stat-card {
        padding: 1.75rem 1.25rem;
    }
    
    .stat-card .stat-value {
        font-size: 2.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }
}
