/* 모바일 기본 수정 사항 */

/* 모바일 메뉴 토글 버튼 - 항상 숨김, 모바일에서만 표시 */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
    background: transparent;
    border: none;
    z-index: 9999;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* 768px 이하 모바일/태블릿 */
@media screen and (max-width: 768px) {
    /* 기본 body 패딩 */
    body {
        padding-top: 60px !important;
    }
    
    /* 네비게이션 바 고정 */
    .navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        height: 60px;
    }
    
    /* 컨테이너 패딩 조정 */
    .container {
        padding: 0 15px !important;
    }
    
    /* 모바일 메뉴 토글 표시 */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* 네비게이션 메뉴 - 기본 숨김 */
    .nav-menu {
        display: none;
        position: fixed !important;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a365d !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        z-index: 9997;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    /* 메뉴 항목 스타일 */
    .nav-menu li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a {
        display: block !important;
        padding: 15px 20px !important;
        color: white !important;
        text-decoration: none !important;
        width: 100% !important;
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.1) !important;
    }
    
    /* 햄버거 메뉴 애니메이션 */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* 히어로 섹션 조정 */
    .hero {
        padding: 80px 0 40px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    .hero-text h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-text p {
        font-size: 1rem !important;
    }
    
    /* 버튼 모바일 최적화 */
    .cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .btn-primary, .btn-secondary {
        width: 100% !important;
        padding: 12px 20px !important;
    }
    
    /* 그리드 레이아웃 수정 */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* 입력 필드 - iOS 줌 방지 */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* 테이블 반응형 */
    table {
        display: block !important;
        overflow-x: auto !important;
    }
    
    /* 푸터 모바일 */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

/* 작은 화면 (480px 이하) */
@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem !important;
    }
    
    .logo-icon {
        width: 35px !important;
        height: 35px !important;
    }
}