:root {
    --primary-color: #3498db;
    --secondary-color: #f50057;
    --dark-color: #2d3436;
    --light-color: #ffffff;
    --gray-color: #dfe6e9;
    --body-bg: #0f172a;
    --card-color: #1e293b;
    --text-color: #ffffff;
    --light-text: #a0aec0;
    --shadow: 0 5px 10px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
    --border: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    
 /* 섹션 구분선 */
.section-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0;
    width: 100%;
}

/* 모바일 탭 하이라이트 제거 */
a {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

}

/* ===== 헤더 스타일 ===== */
header {
    background-color: var(--card-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
    position: relative;
}

.logo:hover::after {
    width: 100%;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin-left: 2.5rem;
}

.menu-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/*.menu-link:hover {*/
/*    color: var(--primary-color);*/
/*}*/

/*.menu-link:hover::after {*/
/*    width: 100%;*/
/*}*/

/* ===== 메인 콘텐츠 ===== */
main {
    padding: 2rem 0;
}

/* ===== 섹션 스타일 ===== */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 5px;
    height: 25px;
    background-color: var(--primary-color);
}

/* ===== 카드 스타일 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-color);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-heading {
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.card-content {
    color: var(--light-text);
    margin-bottom: 1.2rem;
}

.card-action {
    position: relative;
    margin-left: auto;
    width: auto;
    height: auto;
    background-color: transparent;
    color: #ffffff;
    border-radius: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: none;
    transition: var(--transition);
}

/*.card-action:hover {*/
/*    background-color: transparent;*/
/*    color: var(--secondary-color);*/
/*    transform: none;*/
/*}*/

/* ===== 버튼 스타일 ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

/*.btn-primary:hover {*/
/*    background-color: var(--secondary-color);*/
/*    transform: translateY(-3px);*/
/*    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);*/
/*}*/

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/*.btn-outline:hover {*/
/*    background-color: var(--primary-color);*/
/*    color: white;*/
/*    transform: translateY(-3px);*/
/*}*/

/* ===== 환영 섹션 ===== */
.hero {
    background-color: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(245, 0, 87, 0.05);
    border-radius: 50%;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-text {
    /*margin-bottom: 2.5rem;*/
    /*max-width: 600px;*/
    text-align: center;
    color: var(--gray-color);
    opacity: 0.5;
}

/* 히어로 앱 그리드 스타일 */
.hero-section-title {
    font-size: 1.8rem;
    margin: 2rem 0;
    color: var(--primary-color);
}

.hero-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    /*gap: 1.5rem;*/
    justify-content: center;
    place-items: center; /* 그리드 아이템 중앙 정렬 */
}

/* 단일 앱 아이콘을 위한 특별 스타일 */
.hero-app-grid:only-child {
    margin: 0 auto;
}

.hero-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    justify-self: center; /* 그리드 셀 내에서 중앙 정렬 */
    margin: 0 auto; /* 좌우 여백 자동으로 설정하여 중앙 정렬 */
    width: fit-content; /* 콘텐츠에 맞게 너비 조정 */
}

/*.hero-app-item:hover {*/
/*    transform: translateY(-5px);*/
/*}*/

.hero-app-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    transition: var(--transition);
}

/*.hero-app-item:hover .hero-app-icon {*/
/*    background-color: rgba(108, 99, 255, 0.2);*/
/*    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);*/
/*}*/

/*.hero-app-item:hover .hero-app-icon img {*/
/*    transform: scale(1.1);*/
/*}*/

.hero-app-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
}

/* ===== 앱 아이콘 스타일 ===== */
.app-icons-container {
    display: flex;
    overflow-x: auto;
    gap: 1.2rem;
    padding: 0.5rem 0;
    margin-bottom: 0;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; /* IE, Edge */
    scrollbar-width: none; /* Firefox */
}

.app-icons-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

/*.app-icon:hover {*/
/*    transform: translateY(-5px);*/
/*}*/

.app-icon-image {
    width: 60px;
    height: 60px;
    background-color: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    overflow: hidden;
}

/* 앱 아이콘 링크 스타일 수정 */
.app-icon-image a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent; /* 모바일 탭 하이라이트 제거 */
    tap-highlight-color: transparent;
    outline: none; /* 포커스 아웃라인 제거 */
}

.app-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

/*.app-icon:hover .app-icon-image {*/
/*    background-color: rgba(108, 99, 255, 0.2);*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 8px 15px rgba(108, 99, 255, 0.2);*/
/*}*/

/*.app-icon:hover .app-icon-image img {*/
/*    transform: scale(1.1);*/
/*}*/

.app-icon-name {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 500;
}

/* ===== 메뉴 카테고리 스타일 ===== */
.menu-category {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    background-color: var(--card-color);
    color: var(--text-color);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*.category-btn:hover {*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
/*}*/

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* ===== 팀 프로필 스타일 ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.team-member {
    background-color: var(--card-color);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: var(--transition);
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
}

/*.team-member:hover {*/
/*    transform: translateY(-10px);*/
/*    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);*/
/*}*/

.member-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid rgba(108, 99, 255, 0.1);
    margin-right: 2rem;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition);
}

/*.team-member:hover .member-image img {*/
/*    transform: scale(1.05);*/
/*}*/

.member-info {
    flex-grow: 1;
}

.member-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.member-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.member-contact {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 1rem;
}

.member-contact i {
    margin-right: 0.5rem;
    color: var(--light-color);
}

.member-bio {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== 푸터 스타일 ===== */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

/*.footer-column h3::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 250px;*/
/*    bottom: 8px;*/
/*    width: 50px;*/
/*    height: 3px;*/
/*    !*background-color: var(--primary-color);*!*/
/*}*/

.footer-column p {
    color: #b2bec3;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: #b2bec3;
    text-decoration: none;
    transition: var(--transition);
}

/*.footer-list a:hover {*/
/*    color: white;*/
/*    padding-left: 5px;*/
/*}*/

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    color: #b2bec3;
}

/* ===== 유틸리티 클래스 ===== */
.code-block-header {
    background-color: var(--card-color);
    padding: 0.5rem 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-close {
    background-color: #ff5f56;
}

.control-minimize {
    background-color: #ffbd2e;
}

.control-maximize {
    background-color: #27c93f;
}

/* ===== 반응형 스타일 ===== */
/* 대형 화면 (1200px 이상) */
@media screen and (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
}

/* 중형 화면 (992px ~ 1199px) */
@media screen and (max-width: 1199px) and (min-width: 992px) {
    .hero {
        /*padding: 3.5rem;*/
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

/* 태블릿 (768px ~ 991px) */
@media screen and (max-width: 991px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        /*padding: 3rem;*/
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-app-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .hero-app-icon {
        width: 70px;
        height: 70px;
    }

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

    .team-member {
        max-width: 450px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }
}

/* 모바일 (576px ~ 767px) */
@media screen and (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        /*padding: 2.5rem 1.5rem;*/
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-app-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 1.2rem;
    }

    .hero-app-icon {
        width: 65px;
        height: 65px;
    }

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

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

    .app-icon-image {
        width: 50px;
        height: 50px;
    }

    .app-icons-container {
        gap: 1rem;
    }

    .team-member {
        max-width: 350px;
    }

    .member-image {
        width: 140px;
        height: 140px;
    }
}

/* 소형 모바일 (575px 이하) */
@media screen and (max-width: 575px) {
    
    nav .container {
        justify-content: center;
        position: relative;
    }

    .hero {
        /*padding: 2rem 1.2rem;*/
    }

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

    .hero-app-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
    }

    .hero-app-icon {
        width: 60px;
        height: 60px;
    }

    .hero-app-name {
        font-size: 0.8rem;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .member-image {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .member-contact {
        justify-content: center;
    }
}

/* 개인정보처리방침 및 이용약관 페이지 스타일 */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.last-updated {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
    text-align: right;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
}

.policy-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: #444;
}

/* 푸터 링크 스타일 */
.footer-policy-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-policy-links a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-policy-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

@media screen and (max-width: 767px) {
    .page-title {
        font-size: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .footer-policy-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

