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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   헤더 및 네비게이션
   ============================================ */
.header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1,
.nav-brand .site-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* 드롭다운 메뉴 스타일 */
.nav-item-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.nav-item-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    padding: 0;
}

.nav-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ============================================
   히어로 섹션 (메인 이미지 포함)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.hero-features li {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.hero-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.main-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    max-height: 500px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 이미지 로딩 실패 시 플레이스홀더 */
.main-hero-image:not([src]),
.main-hero-image[src=""],
img:not([src]),
img[src=""] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.main-hero-image:not([src])::after,
.main-hero-image[src=""]::after {
    content: '메인 이미지';
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* ============================================
   버튼 스타일
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    width: 100%;
}

/* 카카오톡 버튼 스타일 */
.kakao-btn {
    background: linear-gradient(135deg, #FEE500 0%, #FDD835 100%);
    color: #3C1E1E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(254, 229, 0, 0.4);
}

.kakao-btn:hover {
    background: linear-gradient(135deg, #FDD835 0%, #FBC02D 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 229, 0, 0.5);
    color: #3C1E1E;
}

.kakao-btn-large {
    background: linear-gradient(135deg, #FEE500 0%, #FDD835 100%);
    color: #3C1E1E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(254, 229, 0, 0.5);
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
    max-width: 400px;
    margin: 0 auto;
}

.kakao-btn-large:hover {
    background: linear-gradient(135deg, #FDD835 0%, #FBC02D 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(254, 229, 0, 0.6);
    color: #3C1E1E;
}

.contact-kakao {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-note {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ============================================
   컨텐츠 섹션 스타일
   ============================================ */
.content-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-text {
    line-height: 1.8;
    color: var(--text-dark);
}

.content-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-text h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.content-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   장점 상세 섹션
   ============================================ */
.benefits-detail-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.benefits-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   섹션 공통 스타일
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ============================================
   서비스 섹션
   ============================================ */
.service-section {
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   이용방법 섹션
   ============================================ */
.process-section {
    background-color: var(--bg-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   장점 섹션
   ============================================ */
.advantages-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-item {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   FAQ 섹션
   ============================================ */
.faq-section {
    background-color: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e5e7eb;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   문의하기 섹션
   ============================================ */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background-color: white;
}

.form-group textarea {
    resize: vertical;
}

/* ============================================
   푸터
   ============================================ */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   반응형 디자인
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* 모바일에서 드롭다운 스타일 */
    .nav-item-dropdown {
        width: 100%;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 0.5rem;
        margin-left: 1rem;
        border-radius: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item-dropdown.active .nav-dropdown {
        max-height: 500px;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
    }
}

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-grid,
    .process-steps,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .content-text h3 {
        font-size: 1.25rem;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
}

/* ============================================
   모바일 가독성 개선 (768px 이하)
   ============================================ */
@media (max-width: 768px) {
    /* 기본 텍스트 크기 및 줄 간격 개선 */
    body {
        font-size: 17px;
        line-height: 1.8;
    }
    
    /* 제목 크기 개선 */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    /* 섹션 패딩 증가 */
    section {
        padding: 3rem 0 !important;
    }
    
    /* 카드 배경 불투명도 증가 (가독성 향상) - 첫 번째 섹션 제외 */
    section:not(#home) .bg-white\/5,
    section:not(#home) [class*="bg-white/5"],
    section:not(#home) [class*="bg-gradient-to-br from-white/10"],
    section:not(#home) [class*="backdrop-blur"] {
        background-color: rgba(15, 23, 42, 0.85) !important;
        backdrop-filter: blur(10px);
    }
    
    /* 텍스트 색상 대비 개선 */
    .text-slate-300,
    [class*="text-slate-300"] {
        color: #e2e8f0 !important;
    }
    
    /* 카드 내부 패딩 증가 */
    [class*="rounded-2xl"],
    [class*="rounded-3xl"] {
        padding: 1.5rem !important;
    }
    
    /* 문단 간격 증가 */
    p {
        margin-bottom: 1.25rem;
        line-height: 1.9;
    }
    
    /* 리스트 아이템 간격 증가 */
    li {
        margin-bottom: 0.75rem;
        line-height: 1.8;
    }
    
    /* 제목 텍스트 크기 조정 */
    h2 {
        font-size: 1.75rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
    
    /* 컨테이너 패딩 증가 */
    .container {
        padding: 0 1.25rem;
    }
    
    /* 글래스모피즘 카드 배경 강화 - 첫 번째 섹션 제외 */
    section:not(#home) [class*="backdrop-blur-xl"],
    section:not(#home) [class*="backdrop-blur-md"] {
        background-color: rgba(15, 23, 42, 0.9) !important;
    }
    
    /* 그라데이션 카드 배경 강화 - 첫 번째 섹션 제외 */
    section:not(#home) [class*="from-amber-500/10"] {
        background: linear-gradient(to bottom right, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15)) !important;
    }
    
    section:not(#home) [class*="from-blue-500/10"] {
        background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.15)) !important;
    }
    
    section:not(#home) [class*="from-purple-500/10"] {
        background: linear-gradient(to bottom right, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.15)) !important;
    }
}

/* ============================================
   모바일 가독성 개선 (480px 이하 - 작은 화면)
   ============================================ */
@media (max-width: 480px) {
    body {
        font-size: 16px;
        line-height: 1.85;
    }
    
    section {
        padding: 2.5rem 0 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        margin-bottom: 1.25rem;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 16px;
        line-height: 1.9;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* 카드 패딩 조정 */
    [class*="p-8"],
    [class*="p-10"],
    [class*="p-12"] {
        padding: 1.25rem !important;
    }
    
    /* 텍스트 색상 더 밝게 */
    .text-slate-300 {
        color: #f1f5f9 !important;
    }
}
