/* Global Styles */
:root {
    --primary-color: #007bff;    /* 주요 색상 - 파란색 계열 */
    --secondary-color: #6c757d;  /* 보조 색상 - 회색 계열 */
    --dark-color: #343a40;       /* 어두운 색상 - 진한 회색 */
    --light-color: #f8f9fa;      /* 밝은 색상 - 흰색 계열 */
}

body {
    background: url('back.png') no-repeat center top;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 56px;
    min-height: 100vh;
}

/* body::before 오버레이 완전 삭제 */

/* 메인 컨텐츠가 배경 위에 오도록 */
body > * {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    min-height: 400px;
    height: 40vw;
    max-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-color: #6c757d;
    color: white; /* 텍스트 색상 */
}

.hero h1 {
    font-size: 3.5rem; /* 큰 제목 크기 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 텍스트 그림자 효과 */
}

.hero p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-bg-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-gif-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    margin-top: 5px; /* 데스크탑에서도 다람쥐 이미지를 살짝 아래로 내림 */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 768px) {
    /* Hero 섹션 높이 및 이미지 크기 조정 */
    .hero {
        min-height: 140px;
        height: 38vw;
        max-height: 180px;
        padding: 0;
    }
    .hero-gif-bg {
        height: 140px;
        object-fit: contain;
        margin-top: 20px; /* 다람쥐 이미지를 아래로 내림 */
    }
    .hero-content {
        padding: 10px 0 0 0;
    }
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    /* 섹션 여백 및 제목 크기 */
    section {
        padding: 20px 0;
    }
    .section-heading {
        font-size: 1.2rem;
    }
    /* 카드 간격 및 내부 여백 축소 */
    .card-body {
        padding: 1rem;
        background-color: #D4E5F5;
        
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.95rem;
    }
    /* 푸터 폰트 및 여백 축소 */
    footer {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    /* 네비게이션 바 폰트 크기 축소 */
    .navbar-brand {
        font-size: 1.1rem;
    }
    .nav-link {
        font-size: 0.95rem;
    }
}

/* Sections */
section {
    padding: 80px 0; /* 상하 여백 설정 */
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease; /* 부드러운 변환 효과 */
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
}

.card:hover {
    transform: translateY(-5px); /* 마우스 오버시 위로 살짝 이동 */
}

.card-body {
    text-align: center;
    padding: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px; /* 둥근 모서리 */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px); /* 마우스 오버시 위로 살짝 이동 */
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3); /* 그림자 효과 */
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 그림자 효과 */
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    background-color: #D4E5F5;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 