/* 전체 스타일 */
:root {
    --primary-color: #5167a3;
    --secondary-color: #6f7d9b;
    --accent-color: #3e4c6d;
    --light-color: #edf0f7;
    --dark-color: #1e2534;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 18px; /* 기본 글자 크기 증가 */
}

/* 네비게이션 바 스타일 */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem; /* 증가 */
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem; /* 네비게이션 링크 크기 증가 */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff;
}

/* 히어로 섹션 */
.hero {
    padding: 6rem 0;
    background-color: var(--light-color);
    background-image: linear-gradient(135deg, #e6ebf5 0%, #f5f7fa 100%);
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 3.2rem; /* 증가 */
}

.hero h2 {
    font-size: 2.2rem; /* 증가 */
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.hero .lead {
    font-size: 1.4rem; /* 리드 텍스트 크기 증가 */
}

/* 섹션 스타일 */
section {
    padding: 5rem 0;
    scroll-margin-top: 80px; /* 네비게이션 바 높이 + 여유 공간 */
}

section h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2.5rem; /* 증가 */
}

section h3 {
    font-size: 1.8rem; /* 증가 */
}

/* 카드 스타일 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.4rem; /* 증가 */
}

.card-text {
    font-size: 1.1rem; /* 카드 내 텍스트 크기 증가 */
}

/* 다운로드 섹션 */
.qr-code-container {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.qr-code {
    max-width: 120px;
    margin: 0 auto;
}

.desktop-icon img {
    transition: transform 0.3s ease;
}

.desktop-icon img:hover {
    transform: scale(1.1);
}

/* 버튼 스타일 */
.btn {
    font-size: 1.1rem; /* 버튼 텍스트 크기 증가 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    text-align: center;
}

.btn span {
    display: inline-block;
    vertical-align: middle;
}

.download-btn {
    font-size: 1.3rem;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 매뉴얼 섹션 */
.manual-content {
    line-height: 1.8;
}

.manual-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.manual-content ul {
    padding-left: 1.2rem;
}

.manual-content li {
    font-size: 1.1rem; /* 리스트 아이템 크기 증가 */
    margin-bottom: 0.5rem;
}

.accordion-button {
    font-size: 1.1rem; /* 아코디언 버튼 텍스트 크기 증가 */
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.accordion-body {
    font-size: 1.1rem; /* 아코디언 내용 텍스트 크기 증가 */
}

/* 푸터 */
footer {
    background-color: var(--dark-color) !important;
}

footer h3 {
    font-size: 1.6rem; /* 푸터 제목 크기 증가 */
}

footer p {
    font-size: 1.1rem; /* 푸터 텍스트 크기 증가 */
}

.footer-links a {
    text-decoration: none;
    font-size: 1.1rem; /* 푸터 링크 크기 증가 */
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero .btn-group {
        justify-content: center !important;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .qr-code {
        max-width: 100px;
    }
    
    body {
        font-size: 16px; /* 모바일에서는 조금 작게 */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
}

.app-screen-frame {
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 10px;
    max-width: 280px;
    margin: 0 auto;
    height: 540px;
    overflow: hidden;
    border: 3px solid #e0e0e0;
    position: relative;
}

/* 캐러셀 컨테이너가 프레임을 꽉 채우도록 설정 */
.app-screen-frame .carousel,
.app-screen-frame .carousel-inner,
.app-screen-frame .carousel-item {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

/* 이미지가 캐러셀 아이템을 꽉 채우도록 설정 */
.app-screen-frame .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 15px;
}

/* 화면 설명 스타일 */
.screen-description {
    margin-top: 15px;
    min-height: 60px; /* 설명 영역 높이 고정 */
}

.screen-description h5 {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.screen-description p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* 도트 인디케이터 스타일 */
.custom-carousel-indicators {
    margin-top: 15px;
}

.dot-container {
    padding: 5px 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #007bff;
    transform: scale(1.4);
}

/* 모바일에서 프레임 사이즈 조정 */
@media (max-width: 768px) {
    .app-screen-frame {
        max-width: 240px;
        height: 450px;
        padding: 8px;
    }
}

/* 기존 스타일에 추가할 코드 */

/* 데스크톱 다운로드 섹션 균일 높이 설정 */
.desktop-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem !important;
}

.desktop-icon img {
    max-height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 다운로드 버튼 컨테이너 균일 높이 */
.download-button-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* 버튼 스타일 통일 */
.download-button-container .btn,
.download-button-container .dropdown {
    width: 100%;
    height: 100%;
}

.dropdown-toggle,
.download-button-container .btn-primary {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* 드롭다운 메뉴 위치 조정 */
.dropdown-menu {
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .desktop-icon {
        height: 100px;
    }
    
    .desktop-icon img {
        max-height: 60px;
    }
    
    .download-button-container {
        height: 50px;
    }
}