/**
 * 메인 페이지 CSS 스타일
 */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 70px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(43, 46, 74, 0.85) 0%, rgba(231, 40, 85, 0.85) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Particles container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Tech badges */
.tech-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-badge i {
    margin-right: 8px;
    color: var(--primary);
}

/* 서비스 섹션 */
.services-section {
    position: relative;
    padding: 0 0 80px 0;
    overflow: hidden;
}

.services-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 0 0 0;
    position: relative;
    z-index: 1;
}

.services-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
    transform: translate(100px, -150px);
}

.services-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50px, 50px);
}

.services-header .section-title h2 {
    color: white;
    position: relative;
    margin-bottom: 25px;
    font-size: 2.8rem;
    font-weight: 700;
}

.services-header .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

.services-header .section-title p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

.services-content {
    background-color: #fff;
    padding-top: 30px;
    position: relative;
    z-index: 2;
}

/* 서비스 카드 그리드 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 35px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 4px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(45deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0.075;
    z-index: -1;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(231, 40, 85, 0.15);
    border-bottom: 4px solid var(--primary);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 85px;
    height: 85px;
    background-color: rgba(231, 40, 85, 0.1);
    border-radius: 50%;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 2.2rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: white;
    transform: rotateY(360deg);
    box-shadow: 0 10px 25px rgba(231, 40, 85, 0.25);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    margin-top: auto;
    display: inline-block;
}

.service-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.service-card a:hover::after {
    width: 100%;
}

/* 통계 섹션 */
.stats-section {
    background: linear-gradient(45deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 핵심 가치 섹션 */
.values-section {
    background-color: #f9f9f9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.value-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-card:hover::before {
    height: 7px;
}

.value-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: rgba(231, 40, 85, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* 고객사 섹션 */
.clients-section {
    background-color: white;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 100px;
    margin: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
}

/* 고객 후기 섹션 */
.testimonials-section {
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
    background-color: rgba(231, 40, 85, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background-color: rgba(43, 46, 74, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: rgba(231, 40, 85, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.testimonial-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: #ffc107;
    margin-top: 10px;
}

/* 타임라인 섹션 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(231, 40, 85, 0.3), rgba(43, 46, 74, 0.3));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-year {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(231, 40, 85, 0.3);
}

.timeline-content {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: calc(50% - 50px);
    position: relative;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--gray);
    margin-bottom: 10px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 반응형 디자인 */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 25px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .services-header .section-title h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .stat-text {
        font-size: 1rem;
    }
    
    .services-header .section-title h2 {
        font-size: 2.2rem;
    }
    
    .services-header .section-title p {
        font-size: 1rem;
    }
    
    .timeline-content {
        width: calc(50% - 30px);
    }
}

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start;
        padding-left: 60px;
    }

    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }

    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
    }
    
    .services-header .section-title h2 {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}