/* 커스텀 CSS for 주차/발렛 사이트 */

/* 히어로 섹션 스타일 */
.hero-section {
    height: 60vh;
    overflow: hidden;
}

/* 슬라이드 스타일 */
.hero-slide {
    min-height: 50vh;
    display: flex !important;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* 슬라이드 배경 이미지들 */
.slide-1 {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(26, 37, 47, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%23f8f9fa"/><g fill="%23dee2e6"><rect x="100" y="200" width="200" height="100" rx="10"/><rect x="400" y="150" width="200" height="100" rx="10"/><rect x="700" y="200" width="200" height="100" rx="10"/></g></svg>');
}

.slide-2 {
    background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%23e8f4f8"/><g fill="%23bde3f0"><circle cx="300" cy="200" r="80"/><circle cx="600" cy="300" r="100"/><circle cx="900" cy="200" r="60"/></g></svg>');
}

.slide-3 {
    background: linear-gradient(rgba(231, 76, 60, 0.8), rgba(192, 57, 43, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%23fdf2f2"/><g fill="%23f8d7da"><polygon points="200,150 350,150 275,250"/><polygon points="500,100 650,100 575,200"/><polygon points="800,150 950,150 875,250"/></g></svg>');
}

/* 캐러셀 인디케이터 커스터마이징 */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: transparent;
}

.carousel-indicators .active {
    background-color: white;
}

/* 캐러셀 컨트롤 */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: white;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 24px 24px;
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* 캐러셀 전환 시 텍스트 겹침 방지 */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: flex !important;
}

.carousel-item-start,
.carousel-item-end {
    transform: translateX(0);
}

/* 슬라이드 내용 안정성 보장 */
.hero-content {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.carousel-item:not(.active) .hero-content {
    opacity: 0;
}

.carousel-item.active .hero-content {
    opacity: 1;
}

/* 반응형 디자인 개선 */
@media (max-width: 991px) {
    .hero-slide {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .quick-form {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* 모바일에서만 히어로 섹션 높이 자동 조정 */
    .hero-section {
        height: auto !important;
        overflow: visible !important;
    }
    
    .hero-slide {
        min-height: auto !important;
        text-align: center;
        padding: 3rem 0 !important;
        align-items: flex-start !important;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content .btn {
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    
    .quick-form {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
    }
    
    .quick-form h4 {
        color: #2c3e50;
        margin-bottom: 1.5rem;
    }
    
    /* Services Section 모바일 */
    #services .display-5 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Features Section 모바일 */
    .bg-primary.rounded-3 {
        margin-top: 2rem;
        padding: 2rem 1rem !important;
    }
    
    .display-1 {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .quick-form {
        padding: 1.5rem 1rem;
        margin: 2rem 0.5rem 0;
    }
    
    .quick-form h4 {
        font-size: 1.25rem;
    }
    
    .social-icons .btn {
        width: 32px;
        height: 32px;
        margin: 0 0.25rem;
    }
    
    .social-icons .btn i {
        font-size: 14px;
    }
    
    /* Services Section 모바일 스몰 */
    #services {
        padding: 3rem 0;
    }
    
    #services .display-5 {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem 0.75rem;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    /* Features Section 모바일 스몰 */
    .bg-light {
        padding: 3rem 0 !important;
    }
    
    .col-sm-6.mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .fs-4 {
        font-size: 1.25rem !important;
    }
    
    /* CTA Section 모바일 스몰 */
    .bg-primary {
        padding: 3rem 0 !important;
    }
    
    .bg-primary h3 {
        font-size: 1.5rem;
    }
    
    .bg-primary .lead {
        font-size: 1rem;
    }
}

/* 추가 모바일 유틸리티 */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content .btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .service-card {
        padding: 1rem 0.5rem;
        margin-bottom: 1rem;
    }
}

/* 버튼 호버 효과 개선 */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* 카드 호버 효과 */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 네비게이션 개선 */
.navbar {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 폼 스타일링 개선 */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* 추가적인 유틸리티 클래스 */
.text-gradient {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 소셜 미디어 아이콘 스타일 */
.social-icons .btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.social-icons .btn i {
    font-size: 16px;
}

/* 스크롤 투 탑 버튼 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-to-top-btn {
    animation: fadeInUp 0.4s ease-out;
}

/* 접근성 향상 */
.scroll-to-top-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}