﻿/**
 * 파일명: style.css
 * 경로: /assets/css/
 * 기능: BizCard.kr 통합 스타일시트
 * 작성일: 2025-10-30
 * 최종 수정: 2025-10-30
 */

/* ===================================
   CSS 변수 (컬러 시스템)
   =================================== */
:root {
    /* 기본 시스템 색상 */
    --primary-color: #0EA5E9;
    --secondary-color: #06B6D4;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --gray-color: #6B7280;
    --white-color: #FFFFFF;
    
    /* 그라데이션 */
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --gradient-hero: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    --gradient-light: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    
    /* 템플릿별 메인 색상 */
    --theme1-primary: #0EA5E9;  /* 심플 화이트 */
    --theme1-secondary: #06B6D4;
    
    --theme2-primary: #3B82F6;  /* 모던 블루 */
    --theme2-secondary: #2563EB;
    
    --theme3-primary: #757575;  /* 미니멀 그레이 */
    --theme3-secondary: #616161;
    
    --theme4-primary: #EF4444;  /* 컬러풀 */
    --theme4-secondary: #F59E0B;
    --theme4-tertiary: #EC4899;
    
    --theme5-primary: #D4AF37;  /* 클래식 */
    --theme5-secondary: #1E293B;
    
    --theme6-primary: #A855F7;  /* 크리에이티브 */
    --theme6-secondary: #EC4899;
    --theme6-tertiary: #3B82F6;
    
    /* 그림자 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 40px rgba(14, 165, 233, 0.15);
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 20px;
    --radius-full: 50%;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ===================================
   전역 리셋 및 기본 스타일
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   네비게이션
   =================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.navbar-brand i {
    font-size: 1.8rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--dark-color);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===================================
   히어로 섹션
   =================================== */
.hero-section {
    background: var(--gradient-light);
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    min-height: auto;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-section .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.hero-section .badge {
    font-weight: 500;
    border-radius: 50px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.hero-section .display-3 {
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2rem;
}

/* URL 입력 카드 */
.hero-section .card {
    border-radius: var(--radius-lg) !important;
    border: 2px solid #E0F2FE;
    box-shadow: var(--shadow-md);
}

.hero-section .input-group-text {
    font-weight: 500;
    color: var(--gray-color);
    background: var(--light-color);
    border: 1px solid #E5E7EB;
}

.hero-section .form-control {
    border: 1px solid #E5E7EB;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.hero-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.15);
}

/* 히어로 이미지 */
.hero-mockup {
    position: relative;
    padding: 20px;
}

.hero-mockup img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.phone-mockup {
    position: relative;
    display: inline-block;
    padding: 50px;
}

.phone-mockup > i {
    font-size: 20rem;
    color: var(--primary-color);
    filter: drop-shadow(0 20px 40px rgba(14, 165, 233, 0.3));
}

.floating-card {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.card-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

/* Avatar Group */
.avatar-group {
    display: flex;
    margin-top: 1.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
    border: 3px solid white;
    color: white;
    font-size: 1.2rem;
}

.avatar:first-child {
    margin-left: 0;
}

/* ===================================
   Features 섹션
   =================================== */
#features {
    padding: 80px 0;
    background: var(--white-color);
}

#features .feature-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    height: 100%;
}

#features .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

#features .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
}

/* ===================================
   템플릿 갤러리
   =================================== */
.template-gallery {
    background: var(--light-color);
    padding: 80px 0;
}

.template-gallery .card {
    border-radius: var(--radius-lg) !important;
    border: 2px solid #E5E7EB !important;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.template-gallery .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.template-gallery .card-img-top {
    padding: 20px;
    background: white;
}

.template-gallery .card-body {
    padding: 1.5rem;
}

.template-gallery .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

/* ===================================
   How It Works 섹션
   =================================== */
#how {
    padding: 80px 0;
    background: var(--white-color);
}

#how .step-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #E5E7EB;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

#how .step-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

#how .step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-hero);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

/* ===================================
   CTA 섹션
   =================================== */
.cta-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.cta-section h2,
.cta-section p {
    position: relative;
    z-index: 1;
}

.cta-section .btn-light {
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   플로팅 버튼
   =================================== */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-hero);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.5);
}

.floating-btn.scroll-top {
    display: none;
}

.floating-btn.scroll-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

/* ===================================
   문의하기 슬라이드
   =================================== */
.contact-slide {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.contact-slide.show {
    right: 0;
}

.contact-slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.contact-slide-overlay.show {
    display: block;
}

.contact-slide-header {
    padding: 30px;
    background: var(--gradient-hero);
    color: white;
    position: relative;
}

.contact-slide-body {
    padding: 30px;
}

.close-slide {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-slide:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===================================
   Footer
   =================================== */
footer {
    background: var(--dark-color);
    padding: 40px 0 20px;
    color: #9CA3AF;
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: #9CA3AF;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================================
   버튼 스타일
   =================================== */
.btn {
    font-weight: 600;
    /* padding: 0.75rem 1rem; */
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-hero);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===================================
   유틸리티 클래스
   =================================== */
.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-hero) !important;
}

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-hover) !important;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   반응형 미디어 쿼리
   =================================== */

/* 태블릿 (1199px 이하) */
@media (max-width: 1199px) {
    .phone-mockup > i {
        font-size: 16rem !important;
    }
    
    .floating-card {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* 태블릿 세로 (991px 이하) */
@media (max-width: 991px) {
    .phone-mockup > i {
        font-size: 14rem !important;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    #features,
    #how,
    .template-gallery {
        padding: 60px 0;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    /* 네비게이션 */
    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .navbar-nav .btn {
        width: 100%;
        margin: 0.5rem 0 !important;
    }
    
    /* 히어로 섹션 */
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-section .display-3 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .phone-mockup > i {
        font-size: 10rem !important;
    }

    /* URL 입력 폼 */
    .hero-section .input-group-text {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .hero-section .form-control {
        font-size: 0.9rem;
    }

    .hero-section .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    /* 섹션 패딩 */
    #features,
    #how,
    .template-gallery,
    .cta-section {
        padding: 50px 0;
    }

    /* Feature & Step 박스 */
    #features .feature-box,
    #how .step-box {
        padding: 2rem 1.5rem;
    }
    
    #features .feature-icon,
    #how .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* 템플릿 갤러리 */
    .template-gallery .card-img-top {
        padding: 25px 20px;
    }

    .template-gallery .container {
        padding-left: 1px;
        padding-right: 1px;
    }

    /* 문의하기 슬라이드 */
    .contact-slide {
        width: 100%;
        right: -100%;
    }

    /* 플로팅 버튼 */
    .floating-buttons {
        right: 20px;
        bottom: 20px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    /* Footer */
    footer {
        padding: 30px 0 15px;
    }
}

/* 소형 모바일 (576px 이하) */
@media (max-width: 576px) {
    .hero-section .display-3 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}