/* 전체 요소 초기화 */
* {
    margin: 0;
    /* 기본 마진 제거 */
    padding: 0;
    /* 기본 패딩 제거 */
    box-sizing: border-box;
    /* 박스 크기 계산 방식 통일 */
}

/* body 설정 */
body {
    font-family: "Arial", sans-serif;
    /* 기본 글꼴 지정 */
    background-color: #fdfdfd;
    /* 배경색 흰색 계열 */
    padding-top: 80px !important;
    /* 헤더 높이만큼 상단 여백 추가 */
}

/* 헤더 겹침 방지: 메인 콘텐츠 상단 여백 */
.content {
    padding-top: 24px;
}

/* 브랜드 섹션 */
.image-section {
    padding: 40px 20px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* 브랜드 박스 컨테이너 */
.brands {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* 브랜드 박스 */
.brand-box {
    background: #fff;
    width: 280px;
    min-height: 200px;
    height: auto;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 1;
    /* 즉시 표시되도록 변경 (애니메이션은 JS에서 처리) */
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    /* 세로로 긴 이미지를 위해 overflow: visible로 변경 */
    /* 클릭 가능함을 표시 */
}

/* 애니메이션 순차적 딜레이 */
.brand-box:nth-child(1) {
    transition-delay: 0.2s;
}

.brand-box:nth-child(2) {
    transition-delay: 0.4s;
}

.brand-box:nth-child(3) {
    transition-delay: 0.6s;
}

.brand-box:nth-child(4) {
    transition-delay: 0.8s;
}

/* 브랜드 박스 이미지 */
.brand-box img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    /* 세로로 긴 이미지를 위해 max-height 설정 */
    object-fit: contain;
    /* contain으로 비율 유지하며 전체 이미지 표시 */
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
    opacity: 1;
    visibility: visible;
    /* 이미지가 확실히 보이도록 */
    /* 호버 효과를 위한 전환 */
}

/* 브랜드 이름 스타일 */
.brand-name {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
    flex-shrink: 0;
    /* 텍스트가 이미지에 의해 압축되지 않도록 */
}

/* show 클래스가 붙으면 등장 애니메이션 완료 상태 유지 */
.brand-box.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* 페이드 아웃 애니메이션을 위한 클래스 */
.brand-box.fade-out {
    opacity: 0 !important;
    transform: translateY(-30px) !important;
}

/* 호버 효과 추가 */
.brand-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-box:hover img {
    transform: scale(1.05);
    /* 호버 시 이미지 약간 확대 */
}

/* 브랜드 박스 반응형 디자인 */
@media (max-width: 1200px) {
    .brands {
        max-width: 100%;
        padding: 10px 20px;
    }

    .brand-box {
        width: 240px;
        min-height: 180px;
        height: auto;
    }

    .brand-box img {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .brands {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .brand-box {
        width: calc(50% - 10px);
        min-width: 150px;
        min-height: 150px;
        height: auto;
        padding: 15px;
    }

    .brand-box img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 200px;
    }

    .brand-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .brand-box {
        width: 100%;
        max-width: 280px;
        min-height: 140px;
        height: auto;
        padding: 15px;
    }

    .brand-box img {
        max-height: 180px;
    }
}

/* Contact 섹션 */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Contact 헤더 */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 구분선 */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #45a049);
    margin: 0 auto;
    border: none;
    border-radius: 2px;
}

/* Contact 그리드 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact 카드 */
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #45a049);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 카드 아이콘 */
.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.card-icon i {
    font-size: 2rem;
    color: white;
}

/* 카드 내용 */
.card-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.card-content h4 {
    font-size: 1.8rem;
    color: #4caf50;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

/* 연락처 세부사항 */
.contact-details {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    color: #4caf50;
    margin-right: 15px;
    font-size: 1.1rem;
}

.contact-item span {
    color: #555;
    font-size: 1rem;
}

/* 경력 섹션 */
.experience-section h5 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.experience-section ul {
    list-style: none;
    padding: 0;
}

.experience-section li {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.experience-section li::before {
    content: '•';
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 회사 정보 카드 특별 스타일 */
.company-info .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.company-info .info-item:last-child {
    border-bottom: none;
}

.company-info .info-item i {
    width: 25px;
    color: #4caf50;
    margin-right: 15px;
    margin-top: 3px;
    font-size: 1.2rem;
}

.company-info .info-item h5 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.company-info .info-item span {
    color: #666;
    font-size: 0.95rem;
}

/* Contact 섹션 반응형 디자인 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i {
        font-size: 1.5rem;
    }
}

/* 상세 설명 섹션 */
.description-section {
    padding: 60px 20px;
    background: #fff;
}

/* 상세 설명 블록 */
.desc-block {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

/* 설명 이미지 */
.desc-block img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 설명 텍스트 */
.desc-text {
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* 푸터 */
.footer {
    background: #222;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9rem;
}