/* 전체 스타일 */
body {
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: #333;
    overflow-x: hidden; /* 가로 스크롤 방지 */
    width: 100%; /* 전체 너비 설정 */
    max-width: 100%; /* 최대 너비 제한 */
    box-sizing: border-box; /* 박스 사이징 설정 */
    padding-top: 58px; /* 네비게이션 바 고정으로 인한 본문 패딩 추가 */
}

html {
    overflow-x: hidden; /* HTML 요소도 가로 스크롤 방지 */
    width: 100%;
    max-width: 100%;
}

/* 모든 컨테이너와 행에 대한 설정 */
.container, .container-fluid, .row {
    max-width: 100%;
    box-sizing: border-box;
}

/* 이미지에 대한 전체 설정 */
img {
    max-width: 100%;
    height: auto;
}

/* 히어로 섹션 */
.hero-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* 전체 화면 히어로 섹션 */
.hero-section-fullscreen {
    position: relative;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-section-fullscreen .container {
    z-index: 3;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 헤딩 스타일 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* 버튼 스타일 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.btn-outline-primary {
    border-color: #0d6efd;
    color: #0d6efd;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* 카드 스타일 */
.card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* 카드 내용 스타일 추가 */
.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #333;
}

.card-text {
    color: #666;
    margin-bottom: 1.2rem;
}

.card .btn {
    margin-top: 0.5rem;
}

/* 에어바운스 카드 이미지 스타일 */
.card-img-top {
    width: 100%;
    height: 250px; /* 모든 카드 이미지의 높이를 고정 */
    object-fit: cover; /* 이미지 비율을 유지하면서 컨테이너를 채움 */
    object-position: center; /* 이미지를 중앙 정렬 */
    max-width: 100%;
}

/* 에어바운스 소개 섹션 이미지 스타일 */
section.py-5 .col-md-6 img.img-fluid {
    width: 100%;
    height: 400px; /* 소개 섹션 이미지 높이 고정 */
    object-fit: cover;
    object-position: center;
}

/* 갤러리 이미지 스타일 */
.col-md-4.col-6 img {
    width: 100%;
    height: 200px; /* 모든 갤러리 이미지 높이를 동일하게 설정 */
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px; /* 이미지 간의 간격 추가 */
}

/* 구글 폰트 가져오기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Poppins:wght@400;500;600;700&display=swap');

/* 메인 네비게이션 스타일 개선 */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 8px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 6px 0;
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-brand img {
    transition: all 0.3s ease;
    height: 32px !important; /* 로고 크기 축소 */
}

.navbar-scrolled .navbar-brand img {
    transform: scale(0.9);
}

/* 네비게이션 메뉴 아이템 스타일 */
.navbar .nav-item {
    position: relative;
    margin: 0 2px;
}

.navbar .nav-link {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 100px;
    transition: all 0.4s ease;
    position: relative;
}

/* 호버 효과 */
.navbar .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.07);
    transform: translateY(-1px);
}

/* 활성화된 메뉴 스타일 */
.navbar .nav-link.active {
    color: #fff;
    background-color: #0d6efd;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* 메뉴 밑줄 애니메이션 */
.navbar .nav-link:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: #0d6efd;
    transition: all 0.35s ease;
    opacity: 0;
}

.navbar .nav-link:hover::after {
    left: 25%;
    right: 25%;
    opacity: 1;
}

/* 모바일 화면에서의 스타일 조정 */
@media (max-width: 992px) {
    .navbar .nav-link {
        padding: 12px 20px;
        margin: 5px 0;
    }
    
    .navbar .nav-link:hover {
        background-color: rgba(13, 110, 253, 0.1);
        transform: none;
    }
    
    .navbar .nav-link:not(.active)::after {
        display: none;
    }
    
    .navbar-collapse {
        padding: 20px 0;
        box-shadow: 0 20px 20px rgba(0,0,0,0.05);
        border-radius: 0 0 20px 20px;
    }
}

/* 푸터 링크 스타일 */
footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 호버 스케일 효과 */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.2);
}

/* 고정 플로팅 이미지 */
.floating-image {
    position: fixed;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    max-width: 60px; /* 최대 너비 제한 */
    border: 2px solid #fff;
}

.floating-image.band {
    bottom: 100px;
    right: 30px;
    animation: pulse-band 2s infinite;
}

.floating-image.kakao {
    bottom: 30px;
    right: 30px;
    animation: pulse-kakao 2s infinite;
}

.floating-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 밴드 이미지 맥동 효과 */
@keyframes pulse-band {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 97, 251, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(56, 97, 251, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 97, 251, 0);
    }
}

/* 카카오톡 이미지 맥동 효과 */
@keyframes pulse-kakao {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 232, 17, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 232, 17, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 232, 17, 0);
    }
}

/* 부드러운 바운스 효과 */
@keyframes bounce-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 커스텀 애니메이션 */
.card-hover-effect {
    transition: all 0.5s;
    cursor: pointer;
}

.card-hover-effect:hover {
    transform: scale(1.05);
    z-index: 1;
}

/* 아이콘 애니메이션 */
.icon-bounce {
    animation: icon-bounce 2s infinite;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 이미지 줌 효과 */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom {
    transition: transform 0.5s ease;
}

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

/* 텍스트 하이라이트 애니메이션 */
.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0d6efd;
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.text-highlight:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 버튼 펄스 애니메이션 */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* AOS 애니메이션 지연 설정 */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* 스크롤 애니메이션 클래스 */
.scroll-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 조정 */
@media (max-width: 992px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
        text-align: center;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-section .btn {
        margin-top: 20px;
    }
    
    .hero-section-fullscreen {
        min-height: 100vh;
        width: 100%;
        overflow-x: hidden;
    }
    
    section.py-5 .col-md-6 img.img-fluid {
        height: 300px;
        max-width: 100%;
    }
    
    /* 표 요소 처리 */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 플로팅 요소 조정 */
    .floating-image {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 65px;
        overflow-x: hidden;
    }
    
    html {
        overflow-x: hidden;
    }
    
    .hero-section {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    /* 모바일에서 카드가 한 줄에 하나씩 표시되도록 수정 */
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    /* 모바일에서 카드 간격과 여백 조정 */
    .card {
        margin-bottom: 25px;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
    
    .card-img-top {
        height: 200px;
        max-width: 100%;
    }
    
    .col-md-4.col-6 img {
        height: 150px;
        max-width: 100%;
    }
    
    section.py-5 .col-md-6 img.img-fluid {
        height: 250px;
        max-width: 100%;
    }
    
    .floating-image {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-image.band {
        bottom: 75px;
    }
    
    .floating-image.kakao {
        bottom: 20px;
    }
    
    /* 전체 너비 초과 방지 */
    .container, .container-fluid, .row, .col, [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 576px) {
    /* 매우 작은 화면에서의 추가 조정 */
    .container, .container-fluid, .row, .col, [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* 매우 작은 화면에서 카드 스타일 추가 조정 */
    .card {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        max-width: 95%;
    }
    
    /* 에어바운스 갤러리나 상품 목록의 카드들도 한 줄에 하나씩 표시 */
    .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 갤러리 이미지 조정 */
    .col-md-4.col-6 img {
        height: 200px; /* 한 줄에 하나만 표시되므로 높이 늘림 */
    }
    
    h1.display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .floating-image {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-image.band {
        bottom: 65px;
    }
} 